Foros > PHP: duda con php y html para generar una nueva fila de listado.

  1. ktpioter

    Mensajes [2] - Enviado el Miércoles 26 de Setiembre de 2007 a las 13:44hs

    Les agradecer?a si me pueden asesorar ya que esto me tiene mareado.


    pagezise = es la cantidad de datos a mostrar en un html, en este caso 10, tal como muestra la siguiente:


    ____________________________________________________________________


    function clsGridusuarios()
    {
    global $FileName;
    $this->ComponentName = "usuarios";
    $this->Visible = True;
    $this->Errors = new clsErrors();
    $this->ErrorBlock = "Grid usuarios";
    $this->ds = new clsusuariosDataSource();
    $this->PageSize = CCGetParam($this->ComponentName . "PageSize", "");
    if(!is_numeric($this->PageSize) || !strlen($this->PageSize))
    $this->PageSize = 10;
    else if ($this->PageSize > 100)
    $this->PageSize = 100;
    else
    $this->PageSize = intval($this->PageSize);
    if($this->PageSize == 0)
    $this->Errors->addError("

    Form: Grid " . $this->ComponentName . "
    Error: (CCS06) Invalid page size.

    ");
    $this->PageNumber = intval(CCGetParam($this->ComponentName . "Page", 1));

    $this->Link1 = new clsControl(ccsLink, "Link1", "Link1", ccsText, "", CCGetRequestParam("Link1", ccsGet));
    $this->Image1 = new clsControl(ccsImage, "Image1", "Image1", ccsText, "", CCGetRequestParam("Image1", ccsGet));
    $this->Label1 = new clsControl(ccsLabel, "Label1", "Label1", ccsText, "", CCGetRequestParam("Label1", ccsGet));
    $this->Label2 = new clsControl(ccsLabel, "Label2", "Label2", ccsText, "", CCGetRequestParam("Label2", ccsGet));
    $this->Label3 = new clsControl(ccsLabel, "Label3", "Label3", ccsText, "", CCGetRequestParam("Label3", ccsGet));
    $this->Label4 = new clsControl(ccsLabel, "Label4", "Label4", ccsText, "", CCGetRequestParam("Label4", ccsGet));
    $this->id_usuario = new clsControl(ccsLabel, "id_usuario", "id_usuario", ccsInteger, "", CCGetRequestParam("id_usuario", ccsGet));
    }


    _________________________________________________________


    Su correspondiente html que muestra las variables y clase anteriore es:

















    {Label1} {Label2}
    {Label3}


    {Label4}





    ________________________________________________________________


    Trabajando php con html me lista los 10 componentes que contienen (image y labels) de?cada usuario en toda una l?nea, y lo necesario es que la divida en 2 l?neas de 5, o sea listar 5 y luego abajo otras 5, y no seguidas. Es un l?o pero espero que me hayan comprendido.


    Gracias


    ?


    ?


responder

Para poder responder a este tema tenes que ingresar. Si no tenes una cuenta podes registrarse gratis..

publicidad