?
Current Path : /home1/savoy/public_html/savoyglobal.net/drafthr/system/application/views/Home/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : /home1/savoy/public_html/savoyglobal.net/drafthr/system/application/views/Home/menulist.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?><script type="text/javascript"> function showhidediv(val) { if(document.getElementById(val).style.display=="none") { document.getElementById(val).style.display="block"; document.getElementById(val+"_1").src="<?php echo base_url();?>assets/images/uparrow.png"; } else { document.getElementById(val).style.display="none"; document.getElementById(val+"_1").src="<?php echo base_url();?>assets/images/downarrow.png"; } } function view_attempt(id,uid) { $(".anchor1").colorbox({width:"66%",height:"70%", inline:true, href:"#combo"}); $("#combo").load("<?= site_url('sessions/viewattempts/') ?>" +"/" + uid+"/" + id,function(data){ //alert(data); }); } function setclass(id) { document.getElementById(id).className='divmouse_over'; } function removeclass(id) { document.getElementById(id).className='divmouse_out'; } </script> <style> .divmouse_over { background-color: #f8f6f6; border:gray 1px solid } divmouse_out { background-color: white; } </style> <?php $modname=""; $modcheck=""; $i=0; $modulearray=array('3'); $menuarray=array('31','32','33','34','37','38','39','44','51'); $permissionallowedarray=$this->settingsmodel->permissionList(); echo '<div style="width:100% ; padding:20px; ">'; echo '<div>'; foreach ($modulelist as $menulst) { if ((in_array($menulst['menu_id'], $permissionallowedarray)) && ( !in_array($menulst['menu_id'], $menuarray)) && (!in_array($menulst['module_id'], $modulearray))) { if($modname!=$menulst['module_name']) { $i=0; if($modcheck!=$menulst['module_name'] && $modcheck!="" ) { echo '</div>'; } $modname=$menulst['module_name']; echo '</div><div style="border:solid 1px #d4d4d4 ; width:100%; float:right;margin:5px 0 5px 0;">'; echo '<div style="cursor:pointer" onclick="showhidediv('. "'" . $modname ."'" . ')" class="menulistheader"><div style="color:#42729f; width:97%; float:left">'.$menulst['module_name'].'</div><div style=""><img id="'. $modname . '_1" class="clickimage" width="10" height="10" src="'. base_url() . 'assets/images/uparrow.png" title="'. $menulst['module_name'] .'" alt="'. $menulst['module_name'] .'" border="0" onclick="showhidediv('. "'" . $modname ."'" . ')" /></div></div>'; $modcheck=$menulst['module_name']; if($i==0) { echo '<div id='.$modname.' width:100%; float:left;text-align:center;margin:5px 0 0 0;">'; $i=1; } echo '<div id="'.$menulst['menu_id'].'" onmouseover="setclass(this.id)" onmouseout="removeclass(this.id)" style="text-align:center;border:#d0cece 1px solid;font-size:11px; width:75px;height:75px; float:left;margin:5px 0 5px 5px;padding-top:6px;"> <a href="'. base_url() . 'index.php/master/index/'. $menulst['menu_id'] .'/'. $menulst['module_id'] .'"> <img width="35" height="35" src="'. base_url() .'assets/images/'. $menulst['imagepath'] .'" title="'. $menulst['caption'] .'" alt="'. $menulst['caption'] .'" border="0" /><br/>'. $menulst['caption']. '</a> </div>'; } else { echo '<div id="'.$menulst['menu_id'].'" onmouseover="setclass(this.id)" onmouseout="removeclass(this.id)" style=" text-align:center;border:#d0cece 1px solid;font-size:11px; width:75px;height:75px; float:left;margin:5px 0 5px 5px;padding-top:6px;"><a href="'. base_url() . 'index.php/master/index/'. $menulst['menu_id'] .'/'. $menulst['module_id'] .'"><img width="35" height="35" src="'. base_url() .'assets/images/'. $menulst['imagepath'] .'" title="'. $menulst['caption'] .'" alt="'. $menulst['caption'] .'" border="0" /><br/>'. $menulst['caption']. '</a> </div>'; } } } echo '</div>'; echo '</div>'; ?> <div style="display: none"> <div id="combo"></div> </div>