?
Current Path : /home1/savoy/public_html/savoyglobal.net/drafthr/system/application/views/ |
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/leftbar.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <script type="text/javascript" src="<?=base_url()?>/assets/js/ddaccordion.js"></script> <script type="text/javascript"> ddaccordion.init({ headerclass: "expandable", //Shared CSS class name of headers group that are expandable contentclass: "categoryitems", //Shared CSS class name of contents group revealtype: "click", //Reveal content when user clicks or onmouseover the header? Valid value: "click" or "mouseover mouseoverdelay: 200, //if revealtype="mouseover", set delay in milliseconds before header expands onMouseover collapseprev: true, //Collapse previous content (so only one open at any time)? true/false defaultexpanded: [0], //index of content(s) open by default [index1, index2, etc]. [] denotes no content onemustopen: false, //Specify whether at least one header should be open always (so never all headers closed) animatedefault: false, //Should contents open by default be animated into view? persiststate: true, //persist state of opened contents within browser session? toggleclass: ["", "openheader"], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"] togglehtml: ["prefix", "", ""], //Additional HTML added to the header when it's collapsed and expanded, respectively ["position", "html1", "html2"] (see docs) animatespeed: "fast", //speed of animation: integer in milliseconds (ie: 200), or keywords "fast", "normal", or "slow" oninit:function(headers, expandedindices){ //custom code to run when headers have initalized //do nothing }, onopenclose:function(header, index, state, isuseractivated){ //custom code to run whenever a header is opened or closed //do nothing } }) </script> <style type="text/css"> .arrowlistmenu{ width: 150px; /*width of accordion menu*/ } .arrowlistmenu .menuheader{ /*CSS class for menu headers in general (expanding or not!)*/ font: bold 14px Arial; color: white; background: black url(image/titlebar.png) repeat-x center left; margin-bottom: 20px; /*bottom spacing between header and rest of content*/ text-transform: uppercase; padding: 5px 1px 5px 10px; /*header text is indented 10px*/ cursor: hand; cursor: pointer; } .arrowlistmenu .openheader{ /*CSS class to apply to expandable header when it's expanded*/ background-image: url(image/titlebar-active.png); } .arrowlistmenu ul{ /*CSS for UL of each sub menu*/ list-style-type: none; margin: 0; padding: 0; margin-bottom: 20px; /*bottom spacing between each UL and rest of content*/ background-color: #F3F3F3; } .arrowlistmenu ul li{ padding-bottom: 10px; /*bottom spacing between menu items*/ } .arrowlistmenu ul li a{ color: #A70303; background:url(../../../../assets/images/arrow.gif) no-repeat 0 4px; display: block; padding: 2px 0; padding-left: 19px; /*link text is indented 19px*/ text-decoration: none; font-weight: bold; border-bottom: 1px solid #dadada; font-size: 90%; } .arrowlistmenu ul li a:visited{ color: #A70303; } .arrowlistmenu ul li a:hover{ /*hover state CSS*/ color: #A70303; background-color: #F3F3F3; text-decoration: underline; } </style> <div id="left-column"> <?php if($modname != "HR" && $modname != "Settings" && $modname != "Accounting") { ?> <h3><?php echo $modname; ?></h3> <ul class="nav"> <?php foreach($menus as $list) { ?> <li><span><span><?=anchor('master/index/'.$list['menu_id'].'/'.$list['module_id'].'', $list['caption'])?></span></span></li> <?php } ?> </ul> <?php } ?> <?php if($modname == "HR") { ?> <h3><?php echo $modname; ?></h3> <ul class="nav"> <?php foreach($menus as $list) { if($list['sort'] >= 1 && $list['sort'] <= 5) { ?> <li><span><span><?=anchor('master/index/'.$list['menu_id'].'/'.$list['module_id'].'', $list['caption'])?></span></span></li> <?php } } ?> </ul> <?php } ?> <?php if($modname == "HR") { ?> <div class="arrowlistmenu"> <h3 class="menuheader expandable">HR Master</h3> <ul class="categoryitems"> <?php $x=0; foreach($menus as $list) { if($list['sort'] >= 6 && $list['sort'] <= 14) { ?> <li><span><?=anchor('master/index/'.$list['menu_id'].'/'.$list['module_id'].'', $list['caption'])?></span></li> <?php } } ?> </ul> </div> <?php } if($modname == "HR") { ?> <div class="arrowlistmenu"> <h3 class="menuheader expandable">Timesheet</h3> <ul class="categoryitems"> <?php foreach($menus as $list) { if($list['sort'] >= 15 && $list['sort'] <= 18) { ?> <li><span><span><?=anchor('master/index/'.$list['menu_id'].'/'.$list['module_id'].'', $list['caption'])?></span></span></li> <?php } } ?> </ul> </div> <?php } if($modname == "HR") { ?> <div class="arrowlistmenu"> <h3 class="menuheader expandable">Payroll</h3> <ul class="categoryitems"> <?php $x=0; foreach($menus as $list) { if($list['sort'] >= 19 && $list['sort'] <= 21) { ?> <li><span><?=anchor('master/index/'.$list['menu_id'].'/'.$list['module_id'].'', $list['caption'])?></span></li> <?php } } ?> </ul> </div> <?php } ?> <?php if($modname == "Settings") { ?> <h3><?php echo $modname; ?></h3> <ul class="nav"> <?php foreach($menus as $list) { if($list['sort'] >= 1 && $list['sort'] <=2) { ?> <li><span><span><?=anchor('master/index/'.$list['menu_id'].'/'.$list['module_id'].'', $list['caption'])?></span></span></li> <?php } } ?> </ul> <?php } ?> <?php if($modname == "Settings") { ?> <div class="arrowlistmenu"> <h3 class="menuheader expandable">Tasks</h3> <ul class="categoryitems"> <?php $x=0; foreach($menus as $list) { if($list['sort'] >=3 && $list['sort'] <= 5) { ?> <li><span><?=anchor('master/index/'.$list['menu_id'].'/'.$list['module_id'].'', $list['caption'])?></span></li> <?php } } ?> </ul> </div> <?php } ?> <?php if($modname == "Settings") { ?> <div class="arrowlistmenu"> <h3 class="menuheader expandable">GL Settings</h3> <ul class="categoryitems"> <?php $x=0; foreach($menus as $list) { if($list['sort'] >= 6 && $list['sort'] <= 9) { ?> <li><span><?=anchor('master/index/'.$list['menu_id'].'/'.$list['module_id'].'', $list['caption'])?></span></li> <?php } } ?> </ul> </div> <?php } ?> <?php if($modname == "Accounting") { ?> <div class="arrowlistmenu"> <h3 class="menuheader expandable">Transactions</h3> <ul class="categoryitems"> <?php $x=0; foreach($menus as $list) { if($list['sort'] >= 1 && $list['sort'] <= 9) { ?> <li><span><?=anchor('master/index/'.$list['menu_id'].'/'.$list['module_id'].'', $list['caption'])?></span></li> <?php } } ?> </ul> </div> <div class="arrowlistmenu"> <h3 class="menuheader expandable">Reports</h3> <ul class="categoryitems"> <?php $x=0; foreach($menus as $list) { if($list['sort'] > 9 && $list['sort'] <= 21) { ?> <li><span><?=anchor('master/index/'.$list['menu_id'].'/'.$list['module_id'].'', $list['caption'])?></span></li> <?php } } ?> </ul> </div> <div class="arrowlistmenu"> <h3 class="menuheader expandable">Masters</h3> <ul class="categoryitems"> <?php $x=0; foreach($menus as $list) { if($list['sort'] >= 22 && $list['sort'] <= 25) { ?> <li><span><?=anchor('master/index/'.$list['menu_id'].'/'.$list['module_id'].'', $list['caption'])?></span></li> <?php } } ?> </ul> </div> <?php } ?> </div>