Source for file OCSP_FRMVIEW_LIST_FLEXGRID.phpclass
Documentation is available at OCSP_FRMVIEW_LIST_FLEXGRID.phpclass
  * @project Open CSP-Management  
  * @author Peter Krebs <pitlinz@users.sourceforge.net>  
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License  
  * @version $Id: OCSP_FRMVIEW_LIST_FLEXGRID.phpclass,v 1.6 2008/12/03 21:32:42 pitlinz Exp $  
// ---------------------------------------------------------  
// ---------------------------------------------------------  
  * @project Open CSP-Management  
  * @author Peter Krebs <pitlinz@users.sourceforge.net>  
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License  
  * @version $Id: OCSP_FRMVIEW_LIST_FLEXGRID.phpclass,v 1.6 2008/12/03 21:32:42 pitlinz Exp $  
    /*** class constants  --------------------------------------------- */  
     * @constant string CLASS_SRC_FILE  
    /*** compostion --------------------------------------------------- */  
    /*** attributes  -------------------------------------------------- */  
    // flexgrid layout attributes  
     * @var boolean $grid_showTableToggleBtn   
    /*** factory / construct  ----------------------------------------- */  
    /*** getter / setter ---------------------------------------------- */  
     * sets a jQuery.flexgrid attribute  
     *         height: 200, //default height  
     *         width: 'auto', //auto width  
     *         striped: true, //apply odd even stripes  
     *         minwidth: 30, //min width of columns  
     *         minheight: 100, //min height of columns  
     *         resizable: true, //resizable table  
     *         method: 'POST', // data sending method  
     *         dataType: 'xml', // type of data loaded  
     *         errormsg: 'Connection Error',  
     *         page: 1, //current page  
     *         total: 1, //total pages  
     *         useRp: true, //use the results per page select box  
     *         rp: 15, // results per page  
     *         rpOptions: [10,15,20,25,40],  
     *         pagestat: 'Displaying {from} to {to} of {total} items',  
     *         procmsg: 'Processing, please wait ...',  
     *         minColToggle: 1, //minimum allowed column to be hidden  
     *          showToggleBtn: true, //show or hide column toggle popup  
     *         onSubmit: false // using a custom populate function  
     * @param string $settingName   
     * @param string $value (js escaped  
    /*** jQuery Flexgrid definitions ----------------------------------- */  
     * returns the jQuery js to init the flexgrid  
     * @param int $buttonColPos  0 not show -1 left 1 right  
            url: '" . 
$this->myControl->getJsonUrl() . 
"',  
        $arr_searchItems    = 
array();  
            $arr_colModel['lst_buttons_left'] = 
array(  
                    'display'     => 
"'Aktionen'",  
                    'name'          => 
"'lst_buttons_left'",  
                    'width'        => 
(sizeof($arr_LeftButtons) * 
22),  
        if ($arr_fields = 
$this->myForm->getFields(Null,$debug))  
            foreach($arr_fields as &$obj_fld)  
                if (!$obj_fld->isHidden('flexgrid'))  
                    $arr_colModel[$obj_fld->getName()] = 
array(  
                        'display'     => 
"'" . 
str_replace("'","\\'",$obj_fld->getLstLabel()) . 
"'",   
                        'name'          => 
"'" . 
$obj_fld->getName() . 
"'",  
                        'sortable'     => 
($obj_fld->isSearchable() ? 
'true' : 
'false'),   
                        'width'        => 
(intval($obj_fld->getLstWidth()) ? 
$obj_fld->getLstWidth() : 
($obj_fld->getSize() * 
5)),  
                        'hide'         => 
($obj_fld->isHidden('list') ? 
'true' : 
'false')  
                    if ($obj_fld->isSearchable())  
                        $arr_searchItems[$obj_fld->getName()] = 
array(  
                            'display'     => 
"'" . 
$obj_fld->getLstLabel() . 
"'",   
                            'name'          => 
"'" . 
$obj_fld->getName() . 
"'"                          
        if (sizeof($arr_RightButtons))  
            $arr_colModel['lst_buttons_right'] = 
array(  
                    'display'     => 
"' Aktionen '",  
                    'name'          => 
"'lst_buttons_right'",  
                    'width'        => 
(sizeof($arr_RightButtons) * 
22),  
        $str_ret .= 
",\ncolModel : [";  
        foreach($arr_colModel as $arr_colDesc)  
            foreach($arr_colDesc as $str_key => 
$mix_val)  
                $str_ret .= 
$cha_sepInner .  
$str_key . 
" : " . 
$mix_val;  
            $str_ret .= 
",\nsearchitems:[";  
            foreach($arr_searchItems as $arr_itemDesc)  
                $str_ret .= 
$cha_SISep . 
"{";  
                foreach($arr_itemDesc as $str_key => 
$mix_val)  
                    $str_ret .= 
$cha_sep .  
$str_key . 
" : " . 
$mix_val;  
                {name: 'Add', bclass: 'add', onpress : test},  
                {name: 'Delete', bclass: 'delete', onpress : test},  
            $str_ret .= 
"," . 
$str_attName . 
": " . 
$str_value;  
     * returns the list HTML code  
        $str_ret = 
"<table id=\"".
$this->getGridDOMId() .
"\"></table>";  
 
 
	
		Documentation generated on Thu, 08 Jan 2009 17:46:39 +0100 by phpDocumentor 1.4.0a2