whoami7 - Manager
:
/
proc
/
thread-self
/
root
/
proc
/
self
/
root
/
home
/
papecmvm
/
public_html
/
application
/
views
/
webapp
/
Upload File:
files >> //proc/thread-self/root/proc/self/root/home/papecmvm/public_html/application/views/webapp/menu.php
<?php use Aws\S3\S3Client; use Aws\S3\Exception\S3Exception; use Aws\CommandPool; require_once APPPATH."third_party/aws/autoload.php"; $CI = & get_instance(); $CI->load->model('app'); //aws $bucketname = 'paperpushbucket'; $key = 'AKIAJJ72VRLHXBD272YQ'; $secret = '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'; $CI->s3 = S3Client::factory( array( 'credentials' => array( 'key' => $key, 'secret' => $secret ), 'version' => 'latest', 'region' => 'ap-south-1' ) ); /*$tot_reg = $CI->alldata->getDatamodelCount('tbl_registration');*/ $userdata = $this->session->userdata('reg_info'); if(!isset($userdata)) { $base = base_url(); redirect($base); } $current_year = date('Y'); if($userdata[0]['type'] == 'office_user'){ $rid = $userdata[0]['rid']; /*$notification = $CI->model->officeModelNoti($rid); if(!empty($notification)){ //echo "<pre>"; print_r($notification); } $new = array_filter($notification, function ($var) { return ($var['sts'] == 'unseen'); }); $ncnt = count($new); */ /*$form_noti_office = $CI->model->formNotiOffice($rid); $form_count_office = count($form_noti_office); $new2 = array_filter($form_noti_office, function ($var) { return ($var['o_noti'] == 'unseen'); }); $ocnt = count($new2);*/ } if($userdata[0]['type'] == 'team_leader'){ $form_noti = $CI->model->formNoti(); $form_count = count($form_noti); //echo "<pre>"; print_r($form_noti); } $path = $userdata[0]['folder_code']; /*$objects = getAWS($path.'/'); $obj_arr = []; foreach($objects as $key => $obj){ $new_obj = explode('/', $obj); $obj_arr[] = $new_obj[1]; } $obj_arr = array_merge(array_unique(array_filter($obj_arr)));*/ $objects = $this->db2->get_where('cust_upload_structure',array('code' => $path))->result_array(); $obj_arr = []; foreach($objects as $key => $obj){ $obj_arr[] = $obj['year']; } //echo '<pre>'; print_r($obj_arr); ?> <style type="text/css"> .navbar-nav > .messages-menu > .dropdown-menu > li .menu > li > a > p{ margin: 0 0 0 25px; } .navbar-nav > .messages-menu > .dropdown-menu > li .menu > li > a > h4{ margin: 0 0 0 25px; } .navbar-nav > .notifications-menu > .dropdown-menu, .navbar-nav > .messages-menu > .dropdown-menu, .navbar-nav > .tasks-menu > .dropdown-menu{ width: 360px!important; } .unseen a{background-color: #bde5fc!important;} .unseen a:hover{background-color: #bde5fc!important;} .formlink h4, .formlink p{ margin-left: 0px!important; } .blink_me { animation: blinker 1.5s linear infinite; } @keyframes blinker { 50% { opacity: 0; } } </style> <body class="skin-blue sidebar-mini"> <div class="wrapper"> <!-- Main Header --> <header class="main-header"> <!-- Logo --> <a href="<?php echo base_url('webapp/welcome');?>" class="logo"> <!-- mini logo for sidebar mini 50x50 pixels --> <span class="logo-mini"><b><i class="fa fa-product-hunt" aria-hidden="true"></i></b></span> <!-- logo for regular state and mobile devices --> <span class="logo-lg"><b>PAPER</b>PUSH</span> </a> <!-- Header Navbar --> <nav class="navbar navbar-static-top" role="navigation"> <!-- Sidebar toggle button--> <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button"> <span class="sr-only">Toggle navigation</span> </a> <!-- Navbar Right Menu --> <div class="navbar-custom-menu"> <ul class="nav navbar-nav"> <!-- Messages: style can be found in dropdown.less--> <?php if($userdata[0]['type'] == 'team_leader'){ /* ?> <li class="dropdown messages-menu"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="true"> <i class="fa fa-bell-o"></i> <span class="label label-success stsCnt"></span> </a> <ul class="dropdown-menu"> <li class="header">You have <span class="stsCnt"></span> notification for form status</li> <li> <!-- inner menu: contains the actual data --> <ul class="menu ajax_stsli"> <?php foreach ($form_noti as $frm_noti) { $enc_fid = $CI->model->encryptdata($frm_noti['fid']); ?> <li class="<?php echo $frm_noti['l_noti']; ?> formlink"><!-- start message --> <a href="<?php echo base_url().'webapp/office/viewForm/'.$enc_fid; ?>"> <h4 class="text-capitalize text-red"> <strong><?php echo $frm_noti['cname']; ?></strong> <small><i class="fa fa-clock-o"></i> <?php echo date('d-m-y, h:i', strtotime($frm_noti['date_time'])); ?> </small> </h4> <p> <?php //echo $frm_noti['path']; $pt = explode('/', $frm_noti['path']); echo $pt[4].' form has been released by '.$frm_noti['oname']; ?> </p> </a> </li> <?php } ?> </ul> </li> </ul> </li> <li class="dropdown messages-menu"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="true"> <i class="fa fa-bell-o"></i> <span class="label label-success stsCnt_two"></span> </a> <ul class="dropdown-menu"> <li class="header">You have <span class="stsCnt_two"></span> notification for update form status</li> <li> <!-- inner menu: contains the actual data --> <ul class="menu ajax_stsli_two"> <?php foreach ($form_noti as $frm_noti) { $enc_fid = $CI->model->encryptdata($frm_noti['fid']); ?> <li class="<?php echo $frm_noti['l_noti']; ?> formlink"><!-- start message --> <a href="<?php echo base_url().'webapp/office/viewForm/'.$enc_fid; ?>"> <h4 class="text-capitalize text-red"> <strong><?php echo $frm_noti['cname']; ?></strong> <small><i class="fa fa-clock-o"></i> <?php echo date('d-m-y, h:i', strtotime($frm_noti['date_time'])); ?> </small> </h4> <p> <?php //echo $frm_noti['path']; $pt = explode('/', $frm_noti['path']); echo $pt[4].' form has been released again by '.$frm_noti['oname']; ?> </p> </a> </li> <?php } ?> </ul> </li> </ul> </li> <?php */ } ?> <?php if($userdata[0]['type'] == 'office_user'){ ?> <li class="dropdown messages-menu"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="true"> <i class="fa fa-bell-o"></i> <span class="label label-success upCnt"></span> </a> <ul class="dropdown-menu"> <li class="header">You have <span class="upCnt">0</span> notification for Customer Uploads</li> <li> <!-- inner menu: contains the actual data --> <ul class="menu ajax_li"> </ul> </li> </ul> </li> <li class="dropdown messages-menu"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="true" onclick="removeNoti('<?php echo $rid; ?>');"> <i class="fa fa-bell-o"></i> <span class="label label-success jcnt accnt"></span> </a> <ul class="dropdown-menu"> <li class="header">You have <span class="jcnt accnt">0</span> notification for Access</li> <li> <!-- inner menu: contains the actual data --> <ul class="menu ajax_accli"> </ul> </li> </ul> </li> <?php /* <li class="dropdown messages-menu"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="true" onclick=""> <i class="fa fa-flag-o"></i> <span class="label label-danger jcnt errCnt"><?php echo $ocnt; ?></span> </a> <ul class="dropdown-menu"> <li class="header">You have <span class="jcnt errCnt"><?php echo $ocnt; ?></span> notification for form status</li> <li> <!-- inner menu: contains the actual data --> <ul class="menu ajax_errli"> <?php foreach ($form_noti_office as $frm_noti_ofc) { $enc_fid = $CI->model->encryptdata($frm_noti_ofc['fid']); $stage = $frm_noti_ofc['stage']; if($stage == 'contra'){ $url = base_url().'webapp/office/update_contra/'.$enc_fid; }elseif($stage == 'receipt'){ $url = base_url().'webapp/office/update_receipt/'.$enc_fid; }elseif($stage == 'payment'){ $url = base_url().'webapp/office/update_payment/'.$enc_fid; }elseif($stage == 'journal'){ $url = base_url().'webapp/office/update_journal/'.$enc_fid; }elseif($stage == 'credit'){ $url = base_url().'webapp/office/update_credit/'.$enc_fid; }elseif($stage == 'debit'){ $url = base_url().'webapp/office/update_debit/'.$enc_fid; }elseif($stage == 'cheque_reg'){ $voucher_type = $frm_noti_ofc['voucher_type']; if($voucher_type == 'payment'){ $url = base_url().'webapp/office/update_payment/'.$enc_fid; }else{ $url = base_url().'webapp/office/update_receipt/'.$enc_fid; } }elseif($stage == 'bank'){ $voucher_type = $frm_noti_ofc['voucher_type']; if($voucher_type == 'payment'){ $url = base_url().'webapp/office/update_payment/'.$enc_fid; }elseif($voucher_type == 'receipt'){ $url = base_url().'webapp/office/update_receipt/'.$enc_fid; }else{ $url = base_url().'webapp/office/update_contra/'.$enc_fid; } }else{ $url = base_url().'webapp/office/update_form/'.$enc_fid; } ?> <li data-toggle="tooltip" data-html="true" data-placement="left" title=" <?php $note = explode('|', $frm_noti_ofc['note']); echo $note = implode('<br> ',$note ); ?>" class="<?php echo $frm_noti_ofc['o_noti']; ?> formlink"><!-- start message --> <a href="<?php echo $url; ?>"> <h4 class="text-capitalize text-green"> <strong><?php echo $frm_noti_ofc['cname']; ?></strong> <small><i class="fa fa-clock-o"></i> <?php echo date('d-m-y, h:i', strtotime($frm_noti_ofc['date_time'])); ?> </small> </h4> <p><?php //echo $frm_noti_ofc['path']; ?> This form is rejected. </p> <p class="text-capitalize text-red"><strong><?php echo $frm_noti_ofc['release_status']; ?></strong></p> </a> </li> <?php } ?> </ul> </li> </ul> </li> */ ?> <?php } ?> <!-- User Account Menu --> <li class="dropdown user user-menu"> <!-- Menu Toggle Button --> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> <!-- The user image in the navbar--> <?php if(!empty($userdata[0]['photo'])){ ?> <img src="<?php echo base_url().'webapp/profile/'.$userdata[0]['photo'];?>" class="user-image" alt="User Image"/> <?php }else{ ?> <img src="<?php echo base_url();?>dist/img/user2-160x160.jpg" class="user-image" alt="User Image"/> <?php } ?> <!-- hidden-xs hides the username on small devices so only the image appears. --> <span class="hidden-xs"><?php echo ucfirst($userdata[0]['name']); ?></span> </a> <ul class="dropdown-menu"> <!-- The user image in the menu --> <li class="user-header"> <?php if(!empty($userdata[0]['photo'])){ ?> <img src="<?php echo base_url().'webapp/profile/'.$userdata[0]['photo'];?>" class="img-circle" alt="User Image"/> <?php }else{ ?> <img src="<?php echo base_url();?>dist/img/user2-160x160.jpg" class="img-circle" alt="User Image" /> <?php } ?> <p> <?php echo ucfirst($userdata[0]['name']); ?> </p> </li> <?php /* <li class="user-body"> <div class="row"> <div class="col-xs-6 text-center"> <a href="<?php echo base_url().'welcome/changelang'; ?>">English</a> </div> <div class="col-xs-6 text-center"> <a href="<?php echo base_url().'welcome/changelang/guj'; ?>">Gujarati</a> </div> <!--<div class="col-xs-4 text-center"> <a href="<?php //echo base_url().'welcome/changelang/hindi'; ?>">Hindi</a> </div>--> </div> <!-- /.row --> </li> */?> <!-- Menu Footer--> <li class="user-footer"> <div class="pull-left"> <a href="<?php echo site_url('webapp/users/profile'); ?>" class="btn btn-default btn-flat">Profile</a> </div> <div class="pull-right"> <a href="<?php echo site_url('webapp/users/logout'); ?>" class="btn btn-default btn-flat">Sign out</a> </div> </li> </ul> </li> <!-- <li> <a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a> </li>--> </ul> </div> </nav> </header> <!-- Left side column. contains the logo and sidebar --> <aside class="main-sidebar"> <!-- sidebar: style can be found in sidebar.less --> <section class="sidebar"> <!-- Sidebar user panel (optional) --> <div class="user-panel"> <div class="pull-left image"> <?php if(!empty($userdata[0]['photo'])){ ?> <img src="<?php echo base_url().'webapp/profile/'.$userdata[0]['photo'];?>" class="img-circle" alt="User Image" /> <?php }else{ ?> <img src="<?php echo base_url();?>dist/img/user2-160x160.jpg" class="img-circle" alt="User Image" /> <?php } ?> </div> <div class="pull-left info"> <p><?php echo ucfirst($userdata[0]['name']); ?></p> <!-- Status --> <a href="#"><i class="fa fa-circle text-success"></i> Online</a> </div> </div> <!-- Sidebar Menu --> <ul class="sidebar-menu"> <li class="header text-uppercase"> <?php if($userdata[0]['type'] == 'office_user'){ echo "office user"; }else{ echo $userdata[0]['type']; } ?> </li> <?php if($userdata[0]['type'] == 'customer'){ if(!in_array($current_year, $obj_arr, TRUE)) { $incr_obj=$current_year+1; $incr_obj = substr($incr_obj, -2); ?> <li class=" bg-green-active li_make_dir"> <form class="make_dir"> <input type="hidden" name="code" value="<?php echo $path; ?>"> <input type="hidden" name="year" value="<?php echo $current_year; ?>"> <button style="color:#fff; width:98%; margin:2px;" type="submit" class="btn bg-olive text-capitalize btn-flat"> <i class="fa fa-globe" aria-hidden="true"></i> <span class="blink_me">Create Directories of <?php echo $current_year.'-'.$incr_obj; ?></span> </button> </form> </li> <?php } } ?> <?php if($userdata[0]['type'] == 'superadmin'){ ?> <?php $where_year = array('year' => $current_year); $getYears = $CI->app->DetailData('tbl_years', $where_year); $ycnt = count($getYears); ?> <li><a href="<?php echo site_url('webapp/welcome');?>"><i class='fa fa-dashboard'></i><span>Dashboard</span></a></li> <li><a href="<?php echo site_url('webapp/people/office');?>"><i class="fa fa-user" aria-hidden="true"></i><span>Office</span></a></li> <li><a href="<?php echo site_url('webapp/people/customer');?>"><i class="fa fa-user-o" aria-hidden="true"></i><span>Customers</span></a></li> <?php } ?> <?php if($userdata[0]['type'] == 'admin'){ ?> <?php $where_year = array('year' => $current_year); $getYears = $CI->app->DetailData('tbl_years', $where_year); $ycnt = count($getYears); ?> <li><a href="<?php echo site_url('webapp/welcome');?>"><i class='fa fa-dashboard'></i><span>Dashboard</span></a></li> <li><a href="<?php echo site_url('webapp/people/office');?>"><i class="fa fa-user" aria-hidden="true"></i><span>Office</span></a></li> <li><a href="<?php echo site_url('webapp/people/customer');?>"><i class="fa fa-user-o" aria-hidden="true"></i><span>Customers</span></a></li> <?php /* ?> <li class="treeview"> <a href="#"><i class='fa fa-cogs'></i> <span>Masters</span> <i class="fa fa-angle-left pull-right"></i></a> <ul class="treeview-menu"> <li><a href="<?php echo base_url(); ?>webapp/master/ledger"><i class="fa fa-circle-o"></i>Ledger</a></li> <li><a href="<?php echo base_url(); ?>webapp/master/tax"><i class="fa fa-circle-o"></i>Tax</a></li> <li><a href="<?php echo base_url(); ?>webapp/master/group"><i class="fa fa-circle-o"></i>Group</a></li> <li><a href="<?php echo base_url(); ?>webapp/master/subgroup"><i class="fa fa-circle-o"></i>Sub Group</a></li> <li><a href="<?php echo base_url(); ?>webapp/master/item_cat"><i class="fa fa-circle-o"></i>Item Category</a></li> <li><a href="<?php echo base_url(); ?>webapp/master/item"><i class="fa fa-circle-o"></i>Item</a></li> <li><a href="<?php echo base_url(); ?>webapp/master/expense"><i class="fa fa-circle-o"></i>Expenses</a></li> <li><a href="<?php echo base_url(); ?>webapp/master/group/grouped_voucher"><i class="fa fa-circle-o"></i>Grouped Vouchers</a></li> </ul> </li> <li><a href="<?php echo site_url('webapp/leader/all_xml');?>"><i class="fa fa-files-o" aria-hidden="true"></i><span>Generated XML</span></a></li> <?php */ ?> <?php } ?> <?php if($userdata[0]['type'] == 'team_leader'){ ?> <?php $where_year = array('year' => $current_year); $getYears = $CI->app->DetailData('tbl_years', $where_year); $ycnt = count($getYears); ?> <li><a href="<?php echo site_url('webapp/welcome');?>"><i class='fa fa-dashboard'></i><span>Dashboard</span></a></li> <li><a href="<?php echo site_url('webapp/people/customer');?>"><i class="fa fa-user-o" aria-hidden="true"></i><span>Customers</span></a></li> <?php } ?> <?php if($userdata[0]['type'] == 'office_user'){ ?> <li><a href="<?php echo site_url('webapp/welcome');?>"><i class='fa fa-dashboard'></i><span>Dashboard</span></a></li> <li><a href="<?php echo site_url('webapp/office');?>"><i class="fa fa-user-o" aria-hidden="true"></i><span>Customers</span></a></li> <?php } ?> <?php /* if($userdata[0]['type'] != 'customer'){ ?> <li><a href="<?php echo site_url('webapp/office/form_grid');?>"><i class="fa fa-file-text-o" aria-hidden="true"></i><span>Forms</span></a></li> <?php } */ ?> <?php if($userdata[0]['type'] == 'customer'){ ?> <li><a href="<?php echo site_url('webapp/welcome');?>"><i class='fa fa-dashboard'></i><span>Dashboard</span></a></li> <li><a href="<?php echo site_url('webapp/customer');?>"><i class="fa fa-file-text-o" aria-hidden="true"></i><span>Documents</span></a></li> <?php } ?> </ul><!-- /.sidebar-menu --> </section> <!-- /.sidebar --> </aside> <aside class="control-sidebar control-sidebar-dark control-sidebar"> <!-- Tab panes --> <div class="tab-content"> <div id="control-sidebar-theme-demo-options-tab" class="tab-pane active"> <div> <div class="form-group"><label class="control-sidebar-subheading"> <h4 class="control-sidebar-heading">Skins</h4><ul class="list-unstyled clearfix"> <li style="float:left; width: 33.33333%; padding: 5px;"><a href="<?php echo base_url();?>welcome/changecolor/skin-blue" style="display: block; box-shadow: 0 0 3px rgba(0,0,0,0.4)" class="clearfix full-opacity-hover"> <div><span style="display:block; width: 20%; float: left; height: 7px; background: #367fa9;"></span><span class="bg-light-blue" style="display:block; width: 80%; float: left; height: 7px;"></span></div> <div><span style="display:block; width: 20%; float: left; height: 20px; background: #222d32;"></span><span style="display:block; width: 80%; float: left; height: 20px; background: #f4f5f7;"></span></div></a><p class="text-center no-margin">Blue</p></li> <li style="float:left; width: 33.33333%; padding: 5px;"><a href="<?php echo base_url();?>welcome/changecolor/skin-black" style="display: block; box-shadow: 0 0 3px rgba(0,0,0,0.4)" class="clearfix full-opacity-hover"><div style="box-shadow: 0 0 2px rgba(0,0,0,0.1)" class="clearfix"><span style="display:block; width: 20%; float: left; height: 7px; background: #fefefe;"></span><span style="display:block; width: 80%; float: left; height: 7px; background: #fefefe;"></span></div> <div><span style="display:block; width: 20%; float: left; height: 20px; background: #222;"></span><span style="display:block; width: 80%; float: left; height: 20px; background: #f4f5f7;"></span></div></a><p class="text-center no-margin">Black</p></li> <li style="float:left; width: 33.33333%; padding: 5px;"><a href="<?php echo base_url();?>welcome/changecolor/skin-purple" style="display: block; box-shadow: 0 0 3px rgba(0,0,0,0.4)" class="clearfix full-opacity-hover"> <div><span style="display:block; width: 20%; float: left; height: 7px;" class="bg-purple-active"></span><span class="bg-purple" style="display:block; width: 80%; float: left; height: 7px;"></span></div> <div><span style="display:block; width: 20%; float: left; height: 20px; background: #222d32;"></span><span style="display:block; width: 80%; float: left; height: 20px; background: #f4f5f7;"></span></div></a><p class="text-center no-margin">Purple</p></li> <li style="float:left; width: 33.33333%; padding: 5px;"><a href="<?php echo base_url();?>welcome/changecolor/skin-green" style="display: block; box-shadow: 0 0 3px rgba(0,0,0,0.4)" class="clearfix full-opacity-hover"> <div><span style="display:block; width: 20%; float: left; height: 7px;" class="bg-green-active"></span><span class="bg-green" style="display:block; width: 80%; float: left; height: 7px;"></span></div> <div><span style="display:block; width: 20%; float: left; height: 20px; background: #222d32;"></span><span style="display:block; width: 80%; float: left; height: 20px; background: #f4f5f7;"></span></div></a><p class="text-center no-margin">Green</p></li> <li style="float:left; width: 33.33333%; padding: 5px;"><a href="<?php echo base_url();?>welcome/changecolor/skin-red" style="display: block; box-shadow: 0 0 3px rgba(0,0,0,0.4)" class="clearfix full-opacity-hover"> <div><span style="display:block; width: 20%; float: left; height: 7px;" class="bg-red-active"></span><span class="bg-red" style="display:block; width: 80%; float: left; height: 7px;"></span></div> <div><span style="display:block; width: 20%; float: left; height: 20px; background: #222d32;"></span><span style="display:block; width: 80%; float: left; height: 20px; background: #f4f5f7;"></span></div></a><p class="text-center no-margin">Red</p></li> <li style="float:left; width: 33.33333%; padding: 5px;"><a href="<?php echo base_url();?>welcome/changecolor/skin-yellow" style="display: block; box-shadow: 0 0 3px rgba(0,0,0,0.4)" class="clearfix full-opacity-hover"> <div><span style="display:block; width: 20%; float: left; height: 7px;" class="bg-yellow-active"></span><span class="bg-yellow" style="display:block; width: 80%; float: left; height: 7px;"></span></div> <div><span style="display:block; width: 20%; float: left; height: 20px; background: #222d32;"></span><span style="display:block; width: 80%; float: left; height: 20px; background: #f4f5f7;"></span></div></a><p class="text-center no-margin">Yellow</p></li> <li style="float:left; width: 33.33333%; padding: 5px;"><a href="<?php echo base_url();?>welcome/changecolor/skin-blue-light" style="display: block; box-shadow: 0 0 3px rgba(0,0,0,0.4)" class="clearfix full-opacity-hover"> <div><span style="display:block; width: 20%; float: left; height: 7px; background: #367fa9;"></span><span class="bg-light-blue" style="display:block; width: 80%; float: left; height: 7px;"></span></div> <div><span style="display:block; width: 20%; float: left; height: 20px; background: #f9fafc;"></span><span style="display:block; width: 80%; float: left; height: 20px; background: #f4f5f7;"></span></div></a><p class="text-center no-margin" style="font-size: 12px">Blue Light</p></li> <li style="float:left; width: 33.33333%; padding: 5px;"><a href="<?php echo base_url();?>welcome/changecolor/skin-black-light" style="display: block; box-shadow: 0 0 3px rgba(0,0,0,0.4)" class="clearfix full-opacity-hover"><div style="box-shadow: 0 0 2px rgba(0,0,0,0.1)" class="clearfix"><span style="display:block; width: 20%; float: left; height: 7px; background: #fefefe;"></span><span style="display:block; width: 80%; float: left; height: 7px; background: #fefefe;"></span></div> <div><span style="display:block; width: 20%; float: left; height: 20px; background: #f9fafc;"></span><span style="display:block; width: 80%; float: left; height: 20px; background: #f4f5f7;"></span></div></a><p class="text-center no-margin" style="font-size: 12px">Black Light</p></li> <li style="float:left; width: 33.33333%; padding: 5px;"><a href="<?php echo base_url();?>welcome/changecolor/skin-purple-light" style="display: block; box-shadow: 0 0 3px rgba(0,0,0,0.4)" class="clearfix full-opacity-hover"> <div><span style="display:block; width: 20%; float: left; height: 7px;" class="bg-purple-active"></span><span class="bg-purple" style="display:block; width: 80%; float: left; height: 7px;"></span></div> <div><span style="display:block; width: 20%; float: left; height: 20px; background: #f9fafc;"></span><span style="display:block; width: 80%; float: left; height: 20px; background: #f4f5f7;"></span></div></a><p class="text-center no-margin" style="font-size: 12px">Purple Light</p></li> <li style="float:left; width: 33.33333%; padding: 5px;"><a href="<?php echo base_url();?>welcome/changecolor/skin-green-light" style="display: block; box-shadow: 0 0 3px rgba(0,0,0,0.4)" class="clearfix full-opacity-hover"> <div><span style="display:block; width: 20%; float: left; height: 7px;" class="bg-green-active"></span><span class="bg-green" style="display:block; width: 80%; float: left; height: 7px;"></span></div> <div><span style="display:block; width: 20%; float: left; height: 20px; background: #f9fafc;"></span><span style="display:block; width: 80%; float: left; height: 20px; background: #f4f5f7;"></span></div></a><p class="text-center no-margin" style="font-size: 12px">Green Light</p></li> <li style="float:left; width: 33.33333%; padding: 5px;"><a href="<?php echo base_url();?>welcome/changecolor/skin-red-light" style="display: block; box-shadow: 0 0 3px rgba(0,0,0,0.4)" class="clearfix full-opacity-hover"> <div><span style="display:block; width: 20%; float: left; height: 7px;" class="bg-red-active"></span><span class="bg-red" style="display:block; width: 80%; float: left; height: 7px;"></span></div> <div><span style="display:block; width: 20%; float: left; height: 20px; background: #f9fafc;"></span><span style="display:block; width: 80%; float: left; height: 20px; background: #f4f5f7;"></span></div></a><p class="text-center no-margin" style="font-size: 12px">Red Light</p></li> <li style="float:left; width: 33.33333%; padding: 5px;"><a href="<?php echo base_url();?>welcome/changecolor/skin-yellow-light" style="display: block; box-shadow: 0 0 3px rgba(0,0,0,0.4)" class="clearfix full-opacity-hover"> <div><span style="display:block; width: 20%; float: left; height: 7px;" class="bg-yellow-active"></span><span class="bg-yellow" style="display:block; width: 80%; float: left; height: 7px;"></span></div> <div><span style="display:block; width: 20%; float: left; height: 20px; background: #f9fafc;"></span><span style="display:block; width: 80%; float: left; height: 20px; background: #f4f5f7;"></span></div></a><p class="text-center no-margin" style="font-size: 12px;">Yellow Light</p></li></ul></div></div> </div> </aside> <script type="text/javascript"> function removeNoti(id){ var controller = 'webapp/office/seeNoti/'; var base_url = '<?php echo site_url(); ?>'; $.ajax({ 'url' : base_url + controller + '/' + id, 'type' : 'POST', dataType: 'json', 'success' : function(data){ if (data.status == 'success') { setTimeout(function(){ $('.unseen').removeClass('unseen'); $('.jcnt').text("0"); }, 10000); } else { } } }); } function ledaerNoti(id){ var controller = 'webapp/office/ledaerNoti/'; var base_url = '<?php echo site_url(); ?>'; $.ajax({ 'url' : base_url + controller + '/' + id, 'type' : 'POST', dataType: 'json', 'success' : function(data){ if (data.status == 'success') { setTimeout(function(){ $('.unseen').removeClass('unseen'); $('.jcnt').text("0"); }, 10000); } else { } } }); } function uploadNoti(id){ var controller = 'webapp/office/uploadNoti/'; var base_url = '<?php echo site_url(); ?>'; $.ajax({ 'url' : base_url + controller + id, 'type' : 'POST', dataType: 'json', 'success' : function(data){ } }); } window.setInterval(function () { unread_notifications(); unread_accNoti(); errNoti(); frmStatus(); //frmStatusTwo(); }, 5000); function unread_notifications(){ //console.log('called'); //return false; var base_url = '<?php echo base_url('webapp/office/upNoti'); ?>'; $.ajax({ 'url' : base_url, 'type' : 'POST', dataType: 'json', 'success' : function(data){ //result = $.parseJSON(data); var cnt = data.cnt; $(".upCnt").text(cnt); $(".ajax_li").html(data.html); } }); } function unread_accNoti(){ //console.log('called'); //return false; var base_url = '<?php echo base_url('webapp/office/accNoti'); ?>'; $.ajax({ 'url' : base_url, 'type' : 'POST', dataType: 'json', 'success' : function(data){ //result = $.parseJSON(data); var cnt = data.cnt; $(".accnt").text(cnt); $(".ajax_accli").html(data.html); } }); } function errNoti(){ //console.log('called'); //return false; var base_url = '<?php echo base_url('webapp/office/errNoti'); ?>'; $.ajax({ 'url' : base_url, 'type' : 'POST', dataType: 'json', 'success' : function(data){ //result = $.parseJSON(data); var cnt = data.cnt; $(".errCnt").text(cnt); $(".ajax_errli").html(data.html); } }); } function frmStatus(){ //console.log('called'); //return false; var base_url = '<?php echo base_url('webapp/office/frmStatus'); ?>'; $.ajax({ 'url' : base_url, 'type' : 'POST', dataType: 'json', 'success' : function(data){ //result = $.parseJSON(data); var cnt = data.cnt; $(".stsCnt").text(cnt); $(".ajax_stsli").html(data.html); } }); } /* function frmStatusTwo(){ var base_url = '<?php //echo base_url('webapp/office/frmStatusTwo'); ?>'; $.ajax({ 'url' : base_url, 'type' : 'POST', dataType: 'json', 'success' : function(data){ //result = $.parseJSON(data); var cnt = data.cnt; $(".stsCnt_two").text(cnt); $(".ajax_stsli_two").html(data.html); } }); } */ $(".make_dir").submit(function (event) { event.preventDefault(); $('.li_make_dir').hide(); alert("This may take a few minutes, Please wait and don't do anything"); $('#loadingDiv').show(); var form_data = $(".make_dir").serialize(); var base_url = '<?php echo site_url(); ?>'; $.ajax({ 'url' : base_url + 'webapp/users/makeStructure_cust', type: 'POST', data: form_data, dataType: 'json', success: function (result) { $('#loadingDiv').hide(); alert('success'); }, error: function () { //alert("Something went wrong!"); //$('.errorLabel').show(); $('#loadingDiv').hide(); alert('success'); } }); }); </script>
Copyright ©2021 || Defacer Indonesia