submenu issues fixed

This commit is contained in:
venbatechnologies@gmail.com 2018-03-12 17:03:05 +05:30
parent 48fb603e1c
commit c3233bbd13
2 changed files with 68 additions and 74 deletions

View File

@ -1208,15 +1208,13 @@ function attendanceyear($empID ='')
$EmpID = $this->input->post('EmpList'); $EmpID = $this->input->post('EmpList');
$role = $this->input->post('role'); $role = $this->input->post('role');
$password = $this->input->post('password'); $password = $this->input->post('password');
$dt = new DateTime('now', new DateTimeZone('Asia/Kolkata')); $dt = new DateTime('now', new DateTimeZone('Asia/Kolkata'));
$updatedDate = $dt->format('Y-m-d H:i:s'); $updatedDate = $dt->format('Y-m-d H:i:s');
$email = $this->input->post('MailID');
// echo $EmpID;
$userInfo = array(); $userInfo = array();
$userInfo = array('email'=>$email,'password'=>getHashedPassword($password),'roleId'=>$role,'EmpId'=>$EmpID,'updatedDtm'=>$updatedDate);
$userInfo = array('password'=>getHashedPassword($password),'roleId'=>$role,'EmpId'=>$EmpID,'updatedDtm'=>$updatedDate);

View File

@ -453,75 +453,71 @@
<?php if ($check == 1){break;}}?> <?php if ($check == 1){break;}}?>
<?php }?> <?php }?>
<!--Requisition Menus starts here --> <!--Requisition Menus starts here -->
<?php if($DEPCode != HR){?> <?php if($DEPCode != HR){?>
<?php if($DEPCode != SECURITY){?>
<li class="treeview"> <?php if($DEPCode != SECURITY){?>
<a href="#"> <li class="treeview">
<i class="fa fa-thumb-tack"></i> <a href="#">
<span>Requisition</span> <i class="fa fa-thumb-tack"></i>
<span class="pull-right-container"> <span>Requisition</span>
<i class="fa fa-angle-down pull-right"></i> <span class="pull-right-container">
</span> <i class="fa fa-angle-down pull-right"></i>
</a> </span>
<ul class="treeview-menu"> </a>
<li> <ul class="treeview-menu">
<a href="<?php echo base_url(); ?>storerequisition"> <li>
<i class="fa fa-upload"></i> <a href="<?php echo base_url(); ?>Requisition">
<span>Store Requisition</span> <i class="fa fa-arrow-circle-up"></i>
</a> <span>Raise Requisition </span>
</a>
</li>
<li>
<a href="<?php echo base_url(); ?>UpdatePOStatus">
<i class="fa fa-arrow-circle-up"></i>
<span>Update Service PO Status </span>
</a>
</li>
<li>
<a href="<?php echo base_url(); ?>ApproveRequisition">
<i class="fa fa-thumbs-o-up"></i>
<span>Approve Requisition </span>
</a>
</li>
<?php if(empty($DepAccesslist)){?>
<?php if($DEPCode == PURCHASE){?>
<li>
<a href="<?php echo base_url(); ?>CreatePO">
<i class="fa fa-empire"></i>
<span>Purchase Order From Requisition</span>
</a>
</li>
<?php }?>
<?php }
else{?>
<?php foreach($DepAccesslist as $dep){?>
<?php $assd=$dep->AssDep;
if($assd == PURCHASE){?>
<li>
<a href="<?php echo base_url(); ?>CreatePO">
<i class="fa fa-empire"></i>
<span>Purchase Order From Requisition</span>
</a>
</li> </li>
<li> <?php }}?>
<a href="<?php echo base_url(); ?>UpdatePOStatus">
<i class="fa fa-arrow-circle-up"></i> <?php }?>
<span>Update Service PO Status </span> </ul>
</a> </li>
</li> <?php }?>
<li> <?php }?>
<a href="<?php echo base_url(); ?>approvalstorerequisitionslip">
<i class="fa fa-eye"></i>
<span>Approve Store Requisition</span>
</a>
</li>
<?php if(empty($DepAccesslist)){?>
<?php if($DEPCode == STORE || $DEPCode == FINANCE || $DEPCode == MANAGEMENT || $DEPCode == QUALITY || $DEPCode == PRODUCTION){?>
<?php if($DEPCode == STORE){?>
<li>
<a href="<?php echo base_url(); ?>storerequisitionlisting">
<i class="fa fa-eye"></i>
<span>Store Requisition Listing</span>
</a>
</li>
<?php }?>
<?php }?>
<?php }
else{ $check = 0;?>
<?php foreach($DepAccesslist as $dep){?>
<?php $assd=$dep->AssDep;
if($assd == STORE || $assd == QUALITY || $DEPCode == STORE || $DEPCode == QUALITY || $DEPCode == PRODUCTION || $assd == PRODUCTION){ $check =1;?>
<li class="treeview">
<a href="<?php echo base_url(); ?>storerequisitionlisting">
<i class="fa fa-eye"></i>
<span>Store Requisition Listing</span>
</a>
</li>
<?php } if($check == 1){break;} }?>
<?php }?>
</ul>
</li>
<?php }?>
<?php }?>
<!--Requisition Menus end here --> <!--Requisition Menus end here -->
<!--purchase order menus stats here--> <!--purchase order menus stats here-->