$tHeader->addAction('postingData', 'Posting', 'images/' . $_SESSION['theme'] . "/posting.png"); $tHeader->_actions[2]->setAltImg('images/' . $_SESSION['theme'] . "/posted.png"); if (!in_array($_SESSION['empl']['kodejabatan'], $postJabatan)) { $tHeader->_actions[2]->_name = ''; } $tHeader->addAction('detailPDF', 'Print Data Detail', 'images/' . $_SESSION['theme'] . "/pdf.jpg"); $tHeader->_actions[3]->addAttr('event'); $tHeader->_actions[3]->addAttr($tipeVal); $tHeader->addAction('detailData', 'Print Data Detail', 'images/' . $_SESSION['theme'] . "/zoom.png"); $tHeader->_actions[4]->addAttr('event'); $tHeader->_actions[4]->addAttr($tipeVal); $tHeader->addAction('detailExcel', 'Print Data Detail', 'images/excel.jpg'); $tHeader->_actions[5]->addAttr('event'); $tHeader->_actions[5]->addAttr($tipeVal); $tHeader->pageSetting(1, $totalRow, 10); $tHeader->setWhere($whereContArr); //$tHeader->_switchException = array(); $tHeader->_switchException = array('detailData', 'detailPDF', 'detailExcel'); //$tHeader->addAction('detailPDF','Print Data Detail','images/'.$_SESSION['theme']."/pdf.jpg"); //$tHeader->_actions[3]->addAttr('event'); //$tHeader->pageSetting(1,$totalRow,10); //$tHeader->setWhere($whereContArr); //$tHeader->_switchException = array('detailPDF'); #echo "<pre>"; #print_r($tHeader); #=== Display View # Title & Control OPEN_BOX(); echo "<div align='center'><h3>" . $_SESSION['lang']['panen'] . "</h3></div>"; echo "<div><table align='center'><tr>"; foreach ($ctl as $el) {
$tHeader->addAction('deleteData', 'Delete', 'images/' . $_SESSION['theme'] . "/delete.png"); $tHeader->addAction('postingData', 'Posting', 'images/' . $_SESSION['theme'] . "/posting.png"); $tHeader->_actions[2]->setAltImg('images/' . $_SESSION['theme'] . "/posted.png"); $tHeader->addAction('detailPDF', 'Print Voucher', 'images/' . $_SESSION['theme'] . "/pdf.jpg"); if (!in_array($_SESSION['empl']['kodejabatan'], $postJabatan) and $_SESSION['empl']['tipelokasitugas'] != 'HOLDING') { $tHeader->_actions[2]->_name = ''; } $tHeader->_actions[3]->addAttr('event'); $tHeader->pageSetting($param['page'], $totalRow, $param['shows']); $tHeader->addAction('tampilDetail', 'Print Data Detail', 'images/' . $_SESSION['theme'] . "/zoom.png"); $tHeader->_actions[4]->addAttr('event'); $tHeader->addAction('detailPDF2', 'Print Bukti Pembayaran', 'images/' . $_SESSION['theme'] . "/pdf.jpg"); $tHeader->_actions[5]->addAttr('event'); $tHeader->_switchException = array('detailPDF', 'detailPDF2', 'tampilDetail'); if (isset($param['where'])) { $tHeader->setWhere($arrWhere); } $tHeader->setAlign($align); # View $tHeader->renderTable(); break; # Form Add Header # Form Add Header case 'showAdd': // View echo formHeader('add', array()); echo "<div id='detailField' style='clear:both'></div>"; break; # Form Edit Header # Form Edit Header case 'showEdit':