Ejemplo n.º 1
0
            $col->renderer = "function(v,p,r){return PGList.opRenderMembers(v,p,r);}";
            $col->width = 50;
            $mdg->addButton = true;
            $mdg->addHandler = "function(){PGListObject.AddMember();}";
            $mdg->enableRowEdit = true;
            $mdg->rowEditOkHandler = "function(v,p,r){ return PGListObject.editMember(v,p,r);}";
            $mdg->pageSize = "20";
            $mdg->EnableSearch = false;
            $mdg->width = 760;
            $mdg->height = 630;
            $mdg->title = "لیست افراد";
            $mdg->autoExpandColumn = "staff_id";
            $mdg->DefaultSortField = "staff_id";
            $mdg->notRender = true;
            $mgrid = $mdg->makeGrid_returnObjects();
            $drp_SalaryItm = manage_domains::DRP_SalaryItems("salary_item_type_id", "", "", "", "", $ItemTyp);
        }
    }
}
?>
<script>
    PGListObject.list_type = <?php 
echo $_POST['list_type'];
?>
; 
    PGListObject.grid = <?php 
echo $grid;
?>
;       
    PGListObject.grid.render("PGDIV");