urut_up(gpost('table'), $cid); } else { if ($act == 'dn') { urut_dn(gpost('table'), $cid); } } require_once MODDIR . 'control.php'; require_once MODDIR . 'xtable/xtable.php'; $opt = gpost('opt'); require_once VWDIR . gpost('page') . '.php'; } else { if ($app == 'notifbox') { notifbox(); } else { if ($app == 'gpage_tab') { require_once MODDIR . 'xtable/xtable.php'; require_once MODDIR . 'control.php'; require_once MODDIR . 'gpage.php'; gpage_tab_show($page); } else { if ($app == 'setting') { require_once MODDIR . 'setting.php'; } } } } } } } } }
function gpage_tabs_singlebox2(){ $a=func_get_args(); $id=$a[0]; $gptab=gpost('gptab'.$id.'_index','1'); $n=count($a); $tabs=array(); $pages=array(); for($i=1;$i<=$n;$i++){ $k=explode(":",$a[$i-1]); $tabs[$i]=$k[0]; if(count($k)>1) $pages[$i]=$k[1]; else $pages[$i]=''; } hiddenval('gptab'.$id.'_index',$gptab); hiddenval('gptab'.$id.'_num',$n); echo '<div style="float:left;width:100%;margin-bottom:20px;border-bottom:1px solid #01a8f7">'; for($i=1;$i<=$n;$i++){ echo '<div id="gptab'.$id.'_'.$i.'" class="gptab'.($gptab==$i?'1':'').'" onclick="gpage_tab_singlebox2_get('.$id.','.$i.')">'.$tabs[$i].'</div>'; } echo '</div>'; for($i=1;$i<=$n;$i++){ hiddenval('gptab'.$id.'_page'.$i,$pages[$i]); } echo '<div id="loader_gpage'.$id.'_tab" style="display:none"><img src="'.IMGR.'loader.gif" /></div>'; echo '<div id="box_gpage'.$id.'_tab" style="float:left;width:100%">'; for($i=1;$i<=$n;$i++){ if($pages[$i]!='' && $gptab==$i){ gpage_tab_show($pages[$i]); } } echo '</div>'; }