Viewing file: v_info.php (3.53 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php echo form_open('info/info/mainMenu',array('id'=>'info_ctrl'));?> <script language="javascript"> function doMainMenu(stid,gpid,url){ if(url.search(".php")>0){ //alert(url); document.info_ctrl.action = "<?=base_url();?>"+url; document.info_ctrl.userName.value = "<?=$this->session->userdata('UsLogin');?>"; document.info_ctrl.password.value = "<?=$this->session->userdata('UsPassword');?>"; document.info_ctrl.submit(); }else{ document.info_ctrl.action = 'mainMenu'; document.info_ctrl.stid.value = stid; document.info_ctrl.gpid.value = gpid; document.info_ctrl.submit(); } } </script> <table width="100%" border="0" cellspacing="0" cellpadding="0" summary="" valign="top"> <?php //print_r($this->session->all_userdata());
if(isset($system)){
$st = 0; // echo $user->getname(); foreach($system->result() as $row){
$stid = $row->GpStID; $gpid = $row->GpID; if($row->GpStID != $st){ $st = $row->GpStID; $sub = 0; ?> <tr><td colspan='4'> </td></tr> <tr> <td colspan='4'><span style="font-weight: bold;font-size: 12pt; color:#0033FF;"><?php echo $row->StNameT; ?></span></td> </tr> <tr><td colspan='2' align='left'><img src='<?php echo base_url().'images/grouping_bar.jpg';?>' ></td></tr> <? } if($sub == 0){ echo "<tr>"; }elseif($sub == 4){ $sub = 0; echo "</tr>"; } $sub+=1; $name = preg_split('[-]', $row->GpNameT); if(!isset($name[1])){ $name[1] = $name[0]; $name[0] = $row->StNameT; } echo "<td><table><tr>"; echo "<td width=32 ><img src='".base_url()."images/subsysgrp.gif'></td><td>"; //echo "<td onclick=\"doSubmit($stid,$gpid)\" >"; // echo anchor("info/info/mainMenu/$stid/$gpid",$name[0].'<br>'.$name[1],array() ); //echo $name[1]; //array( 'onMouseOver'=>"window.status=' '; return true" ) ?> <span style="font-weight: bold; " onclick="doMainMenu(<?=$stid?>,<?=$gpid?>,'<?=$row->StURL?>')" onmouseover="this.style.cursor='pointer';this.style.color = '#0066FF';" onmouseout="this.style.color = '#000000';"> <?php echo $name[0].'<br>'.$name[1]?> </span> <?php echo "</td></tr></table></td>"; } ?>
<? }elseif(isset($sm)){ ?>
<? foreach($sm as $v => $row ){ ?> <tr valign="top"> <?// for($i=0;$i<$row['MnLevel'];$i++){ ?>
<? //} if($row['MnURL']!=''){ ?> <td ><?php echo nbs(4*$row['MnLevel']);?> <img src="<?=base_url();?>images/submenu_mini.gif" width="18" align="absmiddle"> <span onclick="doSubmitMn(<?=$row['MnStID']?>,<?=$row['MnID']?>)" onmouseover="this.style.cursor='pointer';this.style.color = '#0066FF';" onmouseout="this.style.color = '#000000';"> <?=$row['MnNameT']?> </span> </td> <? //echo anchor(site_url()."info/info/subMenu/".$row['MnStID'].'/'.$row['MnID'],$row['MnNameT']); //array( 'onMouseOver'=>"window.status=' '; return true" )?> <? }else{ ?> <td><?php echo nbs(4*$row['MnLevel']);?> <img src="<?=base_url();?>images/submenu_mini.gif" width="18" align="absmiddle"> <? echo $row['MnNameT']; //array( 'onMouseOver'=>"window.status=' '; return true" )?> </td> <? } ?> </tr> <? } ?>
<? }else{ ?> <tr > <td align="center"> <img src="<?=base_url()?>images/infosys-v2.0.1.0.00.jpg" width='288' height='59' align='center'> </td> </tr> <? } ?></table> <?php echo form_close();?>
|