Esempio n. 1
0
$yesNo["خیر"] = 0;
$yesNo["بله"] = 1;
$gname = 'grid1';
$input = array($gname => array('table' => 'parvaz', 'div' => 'main_div'));
$xgrid = new xgrid($input);
$xgrid->column[$gname][0]['name'] = '';
$xgrid->column[$gname][1]['name'] = 'شماره پرواز';
$xgrid->column[$gname][2]['name'] = '';
$xgrid->column[$gname][3]['name'] = 'شرکت';
$xgrid->column[$gname][3]['clist'] = loadCompany();
$xgrid->column[$gname][4]['name'] = 'مبدا';
$xgrid->column[$gname][4]['clist'] = loadCity();
$xgrid->column[$gname][5]['name'] = 'مقصد';
$xgrid->column[$gname][5]['clist'] = loadCity();
$xgrid->column[$gname][6]['name'] = 'هواپیما';
$xgrid->column[$gname][6]['clist'] = loadPlain();
$xgrid->column[$gname][7]['name'] = 'قیمت مصوب';
$xgrid->column[$gname][7]['cfunction'] = array('monize');
$xgrid->column[$gname][8]['name'] = 'ظرفیت پایه';
$xgrid->column[$gname][9]['name'] = 'ساعت پرواز';
$xgrid->column[$gname][10]['name'] = 'ساعت ورود';
$xgrid->column[$gname][11]['name'] = 'ک.م.س<br/>%';
$xgrid->column[$gname][12]['name'] = 'نوع';
$xgrid->column[$gname][12]['clist'] = $noe;
$xgrid->column[$gname][13]['name'] = 'مبلغ خرید';
$xgrid->column[$gname][13]['cfunction'] = array('monize');
$xgrid->column[$gname][14]['name'] = 'فروشنده';
$xgrid->column[$gname][14]['clist'] = loadCustomer();
$xgrid->column[$gname][15]['name'] = 'رنگ';
$xgrid->column[$gname][16]['name'] = 'شناور است';
$xgrid->column[$gname][16]['clist'] = $yesNo;
Esempio n. 2
0
$grid->columnHeaders[6] = "هواپیما";
$grid->columnHeaders[7] = "قیمت مصوب";
$grid->columnHeaders[8] = "ظرفیت پایه";
$grid->columnHeaders[9] = "ساعت پرواز";
$grid->columnHeaders[10] = "ساعت ورود <br>به مقصد";
$grid->columnHeaders[11] = "کمیسیون پایه(به درصد)";
$grid->columnHeaders[12] = "نوع پرواز";
$grid->columnHeaders[13] = "مبلغ خرید<br>پیشفرض";
$grid->columnHeaders[14] = "شرکت<br/>فروشنده";
$grid->columnHeaders[15] = "رنگ";
$grid->columnHeaders[16] = "شناور است";
$grid->columnHeaders[17] = "تعریف پرواز جهت رزرو";
$grid->columnLists[3] = loadCompany();
$grid->columnLists[4] = loadCity();
$grid->columnLists[5] = loadCity();
$grid->columnLists[6] = loadPlain();
$grid->columnLists[14] = loadCustomer();
$grid->columnLists[12] = $noe;
$grid->columnLists[16] = $yesNo;
$grid->columnFunctions[7] = "monize";
$grid->columnFunctions[13] = "monize";
$grid->columnFunctions[17] = "tarikh";
$grid->addFunction = "add_item";
$grid->editFunction = "edit_item";
$grid->intial();
$grid->executeQuery();
$out = $grid->getGrid();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">