Esempio n. 1
0
$input = array($gname => array('table' => 'ticket', 'div' => 'main_div_ticket'));
$xgrid = new xgrid($input);
$xgrid->whereClause[$gname] = $wer;
$xgrid->column[$gname][0]['name'] = '';
$xgrid->column[$gname][1]['name'] = '';
$xgrid->column[$gname][2]['name'] = 'نام و نام خانوادگی';
//$xgrid->column[$gname][2]['name'] ='نوع';
//$xgrid->column[$gname][2]['clist'] = loadType();
$xgrid->column[$gname][3]['name'] = 'توضیحات';
//$xgrid->column[$gname][3]['cfunction'] = array('monize');
$xgrid->column[$gname][4]['name'] = '';
$xgrid->column[$gname][5]['name'] = 'کد رهگیری';
$xgrid->column[$gname][3]['cfunction'] = array('rahgiri');
$xgrid->column[$gname][6]['name'] = '';
$xgrid->column[$gname][7]['name'] = 'آژانس خریدار';
$xgrid->column[$gname][7]['clist'] = loadCustomerName();
$xgrid->column[$gname][8]['name'] = '';
$xgrid->column[$gname][9]['name'] = '';
$xgrid->column[$gname][10]['name'] = '';
$xgrid->column[$gname][11]['name'] = '';
$xgrid->column[$gname][12]['name'] = 'تاریخ صدور';
$xgrid->column[$gname][12]['cfunction'] = array('hamed_pdate');
$xgrid->column[$gname][13]['name'] = '';
$xgrid->column[$gname][14]['name'] = '';
$xgrid->column[$gname][] = array('name' => 'شماره بلیت', 'fieldname' => 'id', 'css' => '', 'typ' => 'int', 'access' => 'a', 'cfunction' => array('loadPrint'));
$xgrid->column[$gname][] = array('name' => 'قیمت<br>فروخته شده', 'fieldname' => 'id', 'css' => '', 'typ' => 'int', 'access' => 'a', 'cfunction' => array('loadMablagh'));
for ($j = 0; $j < count($xgrid->column[$gname]); $j++) {
    $xgrid->column[$gname][$j]['access'] = 'a';
}
$xgrid->column[$gname][2]['access'] = 'a';
$xgrid->canEdit[$gname] = TRUE;
Esempio n. 2
0
$wer = ' en<>-1 and `parvaz_det_id`=' . $parvaz_det_id;
$grid = new jshowGrid_new('ticket', 'girid1');
$grid->index_width = "50px";
$grid->whereClause = $wer;
$grid->columnHeaders[0] = null;
$grid->columnHeaders[1] = null;
$grid->columnHeaders[2] = "نام و نام خانوادگی";
$grid->columnHeaders[3] = 'توضیحات';
$grid->columnHeaders[4] = null;
$grid->columnFunctions[4] = "loadAdl";
$grid->columnHeaders[5] = "کد رهگیری";
$grid->columnFunctions[5] = "rahgiri";
$grid->columnHeaders[6] = null;
//$grid->columnFunctions[6] = "loadParvazInfo";
$grid->columnHeaders[7] = "آژانس خریدار";
$grid->columnLists[7] = loadCustomerName();
$grid->columnHeaders[8] = null;
$grid->columnHeaders[9] = null;
$grid->columnHeaders[10] = null;
$grid->columnHeaders[11] = null;
$grid->columnHeaders[12] = 'تاریخ صدور';
$grid->columnFunctions[12] = "hamed_pdate";
$grid->columnHeaders[13] = null;
$grid->columnHeaders[14] = null;
$grid->addFeild('id', 9);
$grid->columnHeaders[9] = 'شماره بلیت';
$grid->columnFunctions[9] = 'loadPrint';
$grid->addFeild('id');
$grid->columnHeaders[17] = 'قیمت<br>فروخته شده';
$grid->columnFunctions[17] = "loadMablagh";
$grid->width = '99%';