headerQuick Menu Access
This commit is contained in:
parent
67f838d52d
commit
057289ad06
@ -477,7 +477,8 @@ class cashbook extends BaseController
|
||||
|
||||
|
||||
echo "<script>alert('Saved Successfully!');
|
||||
window.location.href='bankdata';</script>";
|
||||
</script>";
|
||||
redirect('Bankingstatement','refresh');
|
||||
|
||||
}
|
||||
else
|
||||
@ -797,7 +798,8 @@ class cashbook extends BaseController
|
||||
|
||||
|
||||
echo "<script>alert('Saved Successfully!');
|
||||
window.location.href='bankdata';</script>";
|
||||
</script>";
|
||||
redirect('Bankingstatement','refresh');
|
||||
|
||||
}
|
||||
else
|
||||
@ -1518,7 +1520,8 @@ class cashbook extends BaseController
|
||||
$this->global['pageTitle'] = $this->CompanyName.' : Bank Statement';
|
||||
|
||||
if($this->input->post('btn_submit'))
|
||||
{
|
||||
{
|
||||
//$this->global['pageTitle'] = $this->CompanyName.' : bankstatement';
|
||||
$ab=$this->input->post('financialyear');
|
||||
|
||||
$fa=substr($ab,0,-5);
|
||||
@ -1629,13 +1632,13 @@ class cashbook extends BaseController
|
||||
$tdate = $this->input->post('to_date');
|
||||
$bankid= $_GET['d'];
|
||||
$data['clearbalance']=$_GET['cb'];
|
||||
if($data['clearbalance']==0)
|
||||
{
|
||||
echo "<script>alert('No Mapped Amount!')</script>";
|
||||
redirect('Bankingstatement','refresh');
|
||||
}
|
||||
else
|
||||
{
|
||||
// if($data['clearbalance']==0)
|
||||
// {
|
||||
// echo "<script>alert('No Mapped Amount!')</script>";
|
||||
// redirect('Bankingstatement','refresh');
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
$data['balancetoclear']=$_GET['btc'];
|
||||
$data['mappingcashbook']=$this->cashbook_model->mappingcash($SupplierName,$fdate,$tdate,$bankid);
|
||||
$data['mappingiv'] = $this->cashbook_model->creditinvoicelist($bankid);
|
||||
@ -1644,7 +1647,7 @@ class cashbook extends BaseController
|
||||
$data['supplier'] = $this->cashbook_model->getsupplier();
|
||||
//redirect('Bankingstatement','refresh');
|
||||
$this->loadViews("bankinvoicesettlement", $this->global,$data,NULL);
|
||||
}
|
||||
//}
|
||||
}
|
||||
public function mappingdebit()
|
||||
{
|
||||
|
||||
@ -1346,6 +1346,55 @@ function attendanceyear($empID ='')
|
||||
|
||||
$this->loadViews("Report_Material_inward_Register", $this->global,$data,NULL);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
*favourite add function and load view
|
||||
*/
|
||||
|
||||
function favourite()
|
||||
{
|
||||
//$this->global['pageTitle'] = 'Siddharth :Favourite ';
|
||||
$this->global['pageTitle'] = $this->CompanyName.' : Add Favourite';
|
||||
|
||||
|
||||
// $data['ponoreset']=$this->purchaseorder_model->ponoresetfinyear();
|
||||
|
||||
|
||||
$this->loadViews("Favourite", $this->global,Null);
|
||||
|
||||
}
|
||||
function favouriteadd()
|
||||
{
|
||||
$name = $this->input->post('name');
|
||||
$url = $this->input->post('url');
|
||||
$status = $this->input->post('status');
|
||||
$CreateBy = $this->session->userdata ( 'userId' );
|
||||
|
||||
$dt = new DateTime('now', new DateTimeZone('Asia/Kolkata'));
|
||||
$createddt = $dt->format('Y-m-d H:i:s');
|
||||
$menu = $this->input->post('menu');
|
||||
// $RowCount = $this->input->post('txtRowCount');
|
||||
// $DeletedRow = $this->input->post('txtDeletedRow');
|
||||
// $comma_separated = explode(':', $DeletedRow);
|
||||
$favourite = array('Menu_Name'=>$name,'Menu_URL'=>$url,'Status'=>$status,'Created_BY'=>$CreateBy,'Created_ON'=>$createddt,'Menu_ID'=>$menu);
|
||||
$getdata= $this->user_model->favouriteadd($favourite);
|
||||
// print_r($favourite);
|
||||
// die();
|
||||
if($getdata==1)
|
||||
|
||||
{
|
||||
echo"success";
|
||||
|
||||
}
|
||||
else{
|
||||
echo"failed";
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@ -47,4 +47,17 @@ if(!function_exists('verifyHashedPassword'))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function get_fav($user)
|
||||
{
|
||||
$CI = &get_instance();
|
||||
$CI->load->database();
|
||||
$user = (int)$user;
|
||||
$CI->db->reconnect();
|
||||
$CI->db->where('Created_BY',$user);
|
||||
$CI->db->where('Status',1);
|
||||
return $CI->db->get('T_fav_add')->result();
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@ -374,7 +374,7 @@ class cashbook_model extends CI_Model
|
||||
$query = $this->db->query($sql);
|
||||
return $query->result();
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
function bankfile($FileDetails)
|
||||
@ -607,7 +607,7 @@ function debitbankstatemet($Supplierid,$fdate,$tdate)
|
||||
function igrmastermultiple($igrno,$pono)
|
||||
{
|
||||
$this->db->distinct();
|
||||
$this->db->select('BillNo,IGRNO,FilePath,PONO,Remarks');
|
||||
$this->db->select('BillNo,IGRNO,FilePath,PONO');
|
||||
$this->db->from('T_Inwardgateregister_fileupload');
|
||||
if(!empty($igrno) && !empty($pono)){
|
||||
$this->db->where('PONO',$pono);
|
||||
|
||||
@ -299,20 +299,28 @@ GROUP BY financial_year";
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
*fav model
|
||||
*/
|
||||
function favouriteadd($favourite)
|
||||
|
||||
{ //echo $favourite['Menu_ID'];die;
|
||||
if($favourite['Menu_ID'] !=''){
|
||||
//echo "if";
|
||||
|
||||
// $this->db->where('id', $id);
|
||||
// return $this->db->delete('employee');
|
||||
$this->db->where('Menu_ID',$favourite['Menu_ID']);
|
||||
$this->db->delete('T_fav_add');
|
||||
|
||||
}else{
|
||||
//echo "else";
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$this->db->insert('T_fav_add',$favourite);
|
||||
$r = $this->db->affected_rows();
|
||||
return $r;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
1220
application/views/Favourite.php
Normal file
1220
application/views/Favourite.php
Normal file
File diff suppressed because it is too large
Load Diff
@ -432,7 +432,7 @@ $( function() {
|
||||
return date;
|
||||
}
|
||||
} );
|
||||
function igrno(i)
|
||||
function igrno(i)
|
||||
{
|
||||
var igrno=$('#igrno'+i).text();
|
||||
var pono =$('#pono'+i).text();
|
||||
|
||||
@ -103,7 +103,8 @@ function isNumberKey(evt)
|
||||
return true;
|
||||
}
|
||||
|
||||
$(document).ready(function(){
|
||||
$(document).ready(function()
|
||||
{
|
||||
// var recDiv = document.getElementById('Recepit');
|
||||
// var payDiv = document.getElementById('Payment');
|
||||
$("#supplier,#Paymentsupplier").select2();
|
||||
@ -141,10 +142,10 @@ $(document).ready(function(){
|
||||
$("#merchantgst").val(supplier_gstno);
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
/**** receipt autocomplete ends here ********/
|
||||
|
||||
|
||||
@ -226,17 +226,68 @@
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" data-toggle="control-sidebar"><i class="fa fa-gears" style="font-size: 20px;"></i></a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<!-- Control Sidebar -->
|
||||
<aside class="control-sidebar control-sidebar-dark" style="padding-bottom: 5px !important;">
|
||||
<div class="tab-content">
|
||||
<p>
|
||||
<a style='color: #fbf5fb;'href="<?php echo base_url(); ?>user/Favourite">
|
||||
<i class="fa fa-star-half-o"></i>
|
||||
<span>Favourite</span>
|
||||
|
||||
</a>
|
||||
</p>
|
||||
<p>
|
||||
<a style='color: #fbf5fb;' href="<?php echo base_url(); ?>loadChangePass">
|
||||
<i class="fa fa-key"></i>
|
||||
<span>Change Password</span>
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
</aside>
|
||||
<!-- /.control-sidebar -->
|
||||
|
||||
<aside class="main-sidebar fixed"><!-- sidebar: style can be found in sidebar.less -->
|
||||
<section class="sidebar"><!-- sidebar menu: : style can be found in sidebar.less -->
|
||||
<ul class="sidebar-menu">
|
||||
<!-- <li class="header">MAIN NAVIGATION</li> -->
|
||||
<li class="active treeview">
|
||||
<a href="">
|
||||
<i class="fa fa-star"></i>
|
||||
<span>Quick Access</span>
|
||||
<span class="pull-right-container">
|
||||
<span class="fa fa-angle-down pull-right"></span>
|
||||
</span>
|
||||
</a>
|
||||
|
||||
<ul class="treeview-menu">
|
||||
<?php
|
||||
$fav = get_fav($this->session->userdata('userId'));
|
||||
foreach($fav as $index=>$favget) {
|
||||
if($index <=6){
|
||||
$menu = $favget->Menu_URL;
|
||||
//echo $menu?>
|
||||
<li><a href='<?php echo base_url().$menu ?>'>
|
||||
|
||||
<!-- <i class="fa fa-arrow-circle-up"></i>
|
||||
--> <span><?php echo $favget->Menu_Name ?></span>
|
||||
</a>
|
||||
<?php
|
||||
}} ?>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
<!-- Dashboard Starts -->
|
||||
|
||||
<li class="active treeview">
|
||||
<a href="<?php echo base_url(); ?>dashboard">
|
||||
<i class="fa fa-dashboard"></i><span>Dashboard</span>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user