<!--
Author		 : ???
Created Date : ???
Revision	 : 1) Hasan | 2015/03/10 | mainpage layout revision, including v_mainmenu.php, move mainpage style from custom.css, and hide 
									   scrollbar in Quick Navigation
			   2) 
-->
<style type="text/css">
/*Media query*/

* {
    box-sizing: border-box;
}
.row::after {
    content: "";
    clear: both;
    display: block;
}
[class*="col-"] {
    float: left;
    padding: 15px;
}
html {
    font-family: "Lucida Sans", sans-serif;
}

.aside {
    padding: 15px;
    color: #ffffff;
    text-align: center;
    font-size: 14px;
	border:1px solid #E0ECFF;
}

/* For desktop: */
.col-1 {width: 14.67%;}
.col-2 {width: 16.66%;}
.col-3 {width: 25%;}
.col-4 {width: 33.33%;}
.col-5 {width: 43.10%;}
.col-6 {width: 50%;}
.col-7 {width: 58.33%;}
.col-8 {width: 66.66%;}
.col-9 {width: 75%;}
.col-10 {width: 83.33%;}
.col-11 {width: 91.66%;}
.col-12 {width: 100%;}

@media only screen and (max-width: 768px) {
    /* For mobile phones: */
    [class*="col-"] {
        width: 100%;
    }
}
</style>
<?php 
	$this->load->model('m_custom', 'custom', TRUE);
	$this->load->model('list/m_approval', 'm_approval', TRUE);
	
	$EmployeeCode  = $this->session->userdata('username'); 
	$employee_name = $this->custom->get_employee_name($EmployeeCode); 
	$approval_list = $this->m_approval->search_menu(); 
	
?>

<div class="easyui-layout" id="mainpage-menu" data-options="border:false,fit:true">
	<!-- Main Menu -->
    <div title="" data-options="region:'north',plain:true,border:false" style="background:#EEE;">
    	<?php include('v_mainmenu.php'); ?>
    </div>
    <!-- End of Main Menu -->
	
    <!-- Quick Navigation Menu -->
    <!--<div id="quick-navigation" title="" data-options="region:'west',split:true" collapsible="false" style="width:180px;padding:2px;">
        <div class="easyui-panel" title="Approval" iconCls="icon-ok" collapsible="true" style="margin-bottom:3px;">
            <div class="mainpage_nav">
                <ul>
                    <li><a href="#" style="border-top:none;" onclick="tab_add('Approval List','list/approval','icon-ok');"><img src="<?=base_url()?>assets/custom/icons/question-frame.png" alt=""/><span>Approval Listing</span></a></li> 						
                </ul>
            </div>	
        </div>
        
        <div class="easyui-panel" title="Sales" collapsible="true" style="margin-bottom:3px;">			     
            <div class="mainpage_nav">
                <ul>
                    <li><a href="#" style="border-top:none;" onclick="tab_add('New Sales Quotation','list/sales_quotation/add','icon-add');"><img src="<?=base_url()?>assets/plugins/jquery-easyui-1.3.6/themes/icons/sales-quotation.png" alt=""/><span>Sales Quotation</span></a></li>
                    <li><a href="#" onclick="tab_add('New Sales Order','list/sales_order/add','icon-add');"><img src="<?=base_url()?>assets/plugins/jquery-easyui-1.3.6/themes/icons/sales-order.png" alt=""/><span>Sales Order</span></a></li>							
                    <li><a href="#" onclick="tab_add('New Delivery Order','list/delivery_order/add','icon-add');"><img src="<?=base_url()?>assets/plugins/jquery-easyui-1.3.6/themes/icons/delivery-order.png" alt=""/><span>Delivery Order</span></a></li>			   
                    <li><a href="#" onclick="tab_add('New Sales Return','list/sales_return/add','icon-add');"><img src="<?=base_url()?>assets/plugins/jquery-easyui-1.3.6/themes/icons/sales-return.png" alt=""/><span>Sales Return</span></a></li>
                    <li><a href="#" onclick="tab_add('New Sales Receipt','list/sales_receipt/add','icon-add');"><img src="<?=base_url()?>assets/plugins/jquery-easyui-1.3.6/themes/icons/sales-receipt.png" alt=""/><span>Sales Receipt</span></a></li>	
                </ul>
            </div>	
        </div>
    
        <div class="easyui-panel" title="Purchase" collapsible="true" style="margin-bottom:3px;">
            <div class="mainpage_nav">
                <ul>
                    <li><a href="#" style="border-top:none;" onclick="tab_add('New Purchase Requisition','list/purchases_requisition/add','icon-add');"><img src="<?=base_url()?>assets/plugins/jquery-easyui-1.3.6/themes/icons/purchase-requisition.png" alt=""/><span>Purchase Requisition</span></a></li>
                    <li><a href="#" onclick="tab_add('New Purchase Order','list/purchases_order/add','icon-add');"><img src="<?=base_url()?>assets/plugins/jquery-easyui-1.3.6/themes/icons/purchase.png" alt=""/><span>Purchase Order</span></a></li>							
                    <li><a href="#" onclick="tab_add('New Receive Items','list/receive_item/add','icon-add');"><img src="<?=base_url()?>assets/plugins/jquery-easyui-1.3.6/themes/icons/receive-item.png" alt=""/><span>Receive Item</span></a></li>			   
                    <li><a href="#" onclick="tab_add('New Purchase Invoice','list/purchases_invoice/add','icon-add')"><img src="<?=base_url()?>assets/plugins/jquery-easyui-1.3.6/themes/icons/purchase-invoice.png" alt=""/><span>Purchase Invoice</span></a></li>						
                    <li><a href="#" onclick="tab_add('New Purchase Return','list/purchases_return/add','icon-add');"><img src="<?=base_url()?>assets/plugins/jquery-easyui-1.3.6/themes/icons/purchase-return.png" alt=""/><span>Purchase Return</span></a></li>
                    <li><a href="#" onclick="tab_add('New Purchase Payment','list/purchases_payment/add','icon-add');"><img src="<?=base_url()?>assets/plugins/jquery-easyui-1.3.6/themes/icons/purchase-payment.png" alt=""/><span>Purchase Payment</span></a></li>
                </ul>
            </div>	
        </div>
        
    
        <div class="easyui-panel" title="Purchase Expense" collapsible="true" style="margin-bottom:3px;">
            <div class="mainpage_nav">
                <ul>
                    <li><a href="#" style="border-top:none;" onclick="tab_add('New Expense Cash Bon','activities/purchase_expense_cashbon','icon-add');"><img src="<?=base_url()?>assets/plugins/jquery-easyui-1.3.6/themes/icons/moneys.png" alt=""/><span>Expense (Cash Bon)</span></a></li>			   
                    <li><a href="#" onclick="tab_add('New Expense Payment','activities/purchase_expense_real','icon-add');"><img src="<?=base_url()?>assets/plugins/jquery-easyui-1.3.6/themes/icons/cash-bon.png" alt=""/><span>Expense Payment</span></a></li>
                </ul>
            </div>	
        </div>
        
        <div class="easyui-panel" title="Links" collapsible="true">
            <div class="mainpage_nav">
                <ul>
                    <li><a href="#" style="border-top:none;"><img src="<?=base_url()?>assets/custom/icons/question-frame.png" alt=""/><span>User Manual</span></a></li>			   
                    <li><a href="#"><img src="<?=base_url()?>assets/custom/icons/question-frame.png" alt=""/><span>Use Case</span></a></li>	
                </ul>
            </div>	
        </div>
    </div>-->
    <!-- End of Quick Navigation Menu -->
    
    <!-- Content -->
    <div class="easyui-tabs" id="tt" title="" data-options="region:'center',plain:true,tabHeight:20" style="padding:0px;background:#EEE;">
    	<!-- if there any remainder !-->
<!--        <div  style="width:88%;" data-options="iconCls:'icon-alert'" title="<span class='blink'>Dashboard</span>">-->
        <div id="ifmWindow" data-options="iconCls:'icon-alert'" title="<span class='blink'>Dashboard</span>"> <!--style=" overflow-y: scroll; overflow-x: hidden;"-->
           <div style="float:left; border:#E0ECFF solid 1px;">
            <div id="quick-navigation" title="" data-options="region:'west',split:true" collapsible="false" style="width:180px;padding:2px;">
        <div class="easyui-panel" title="Approval" iconCls="icon-ok" collapsible="true" style="margin-bottom:3px;">
            <div class="mainpage_nav" style="width:200px;height:290px;padding:10px;">
                <ul>
                    <li>
                    	<ul id="tree_data_source" class="easyui-tree" >
                                <li>
                                    <span>&nbsp;Transaction Type</span>
                                   
                                    <ul>	
                                     	<?php
											foreach($approval_list as $row_detail){
										?>								
                                        
                                            <?php
												$approval_list_page = $this->m_approval->search_menu_mainpage($row_detail->TransMenu); 
												
												if(empty($approval_list_page->TransNo)){
													$TransNo = '';
													$TransLink = '';
													$TransType = '';
												?>
                                                	<li data-options="state:'closed'">
                                                <?php
												}
												else{
												?>
                                                	<li>
                                                <?php
													$TransNo = $approval_list_page->TransNo;
													$TransLink = $approval_list_page->TransLink;
													$TransType = $approval_list_page->TransType;
												}
											?>
                                            <span><?php echo $row_detail->TransMenu;?></span>
											<ul>	
                                                <li><a onclick="tab_edit('<?php echo $TransType;?>', '<?php echo $TransLink;?>/', 'icon-edit', 'edit', '<?php echo $TransNo;?>')"><?php echo $TransNo;?></a></li>										
                                            </ul>
                                        </li>
                                        <?php	
												
											}
										?>
                                    </ul>
                                </li>
                            </ul>
                    </li> 						
                </ul>
            </div>	
        </div>
        
       
        
    
       
        
        <div class="easyui-panel" title="Link" collapsible="true" style="height:250px;">
            <div class="mainpage_nav">
                <ul>
                    <li><a href="#" style="border-top:none;" onclick="not_complate();"><img src="<?=base_url()?>assets/custom/icons/question-frame.png" alt=""/><span>User Manual</span></a></li>			   
                    <li><a href="#" onclick="not_complate();"><img src="<?=base_url()?>assets/custom/icons/moneys.png" alt=""/><span>Use Case Diagram</span></a></li>	
                    <li><a href="#" onclick="not_complate();"><img src="<?=base_url()?>assets/custom/icons/newspaper.png" alt=""/><span>Activity Diagram</span></a></li>
                    <li><a href="#" onclick="not_complate();"><img src="<?=base_url()?>assets/custom/icons/clipboard-invoice.png" alt=""/><span>Sequence Diagram</span></a></li>
                    <li><a href="#" onclick="not_complate();"><img src="<?=base_url()?>assets/custom/icons/chart.png" alt=""/><span>DFD (Data Flow)</span></a></li>
                    <li><a href="#" onclick="not_complate();"><img src="<?=base_url()?>assets/custom/icons/book-open-bookmark.png" alt=""/><span>ERD</span></a></li>
                    <li><a href="#" onclick="not_complate();"><img src="<?=base_url()?>assets/custom/icons/books.png" alt=""/><span>Send Mail</span></a></li>
                    <li><a href="#" onclick="not_complate();"><img src="<?=base_url()?>assets/custom/icons/user-business.png" alt=""/><span>Our Team</span></a></li>
                    <li><a href="http://www.klikbca.com/" target="_blank"><img src="<?=base_url()?>assets/custom/icons/table.png" alt=""/><span>Kurs (E Rate) Bca</span></a></li>
                </ul>
            </div>	
        </div>
    </div>
    </div>
            <div class="col-5 center">
              <div class="aside">
              	<div >
                    <table  border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td><a onclick="tab_add('Vendors','list/vendors','icon-vendor')" id="link_id"><img src="<?=base_url()?>assets/dashboard/images/referensi_02.jpg" width="67" height="83" alt="" border="0"></a></td>
                            <td><img src="<?=base_url()?>assets/dashboard/images/referensi_30.gif" width="59" height="54" alt=""></td>
                            <td><a onclick="tab_add('Purchase Requisitons','list/purchases_requisition','icon-purchase')" id="link_id"><img src="<?=base_url()?>assets/dashboard/images/referensi_05.jpg" width="56" height="91" alt="" border="0"></a></td>
                            <td><img src="<?=base_url()?>assets/dashboard/images/referensi_30.gif" width="59" height="54" alt=""></td>
                            <td><a onclick="tab_add('Purchase Orders ','list/purchases_order','icon-purchase')" id="link_id"><img src="<?=base_url()?>assets/dashboard/images/referensi_06.jpg" width="56" height="91" alt="" border="0"></a></td>
                            <td><img src="<?=base_url()?>assets/dashboard/images/referensi_30.gif" width="59" height="54" alt=""></td>
                            <td><a onclick="tab_add('Receive Items','list/receive_item','icon-purchase')" id="link_id"><img src="<?=base_url()?>assets/dashboard/images/referensi_07.jpg" width="56" height="91" alt="" border="0"></a></td>
                            <td><img src="<?=base_url()?>assets/dashboard/images/referensi_30.gif" width="59" height="54" alt=""></td>
                            <td><a onclick="tab_add('Purchase Invoices','list/purchases_invoice','icon-purchase')" id="link_id"><img src="<?=base_url()?>assets/dashboard/images/referensi_08.jpg" width="56" height="91" alt="" border="0"></a></td>
                        </tr>
                        <tr>
                            <td colspan="6"></td>
                            <td colspan="2"><div align="left"><img src="<?=base_url()?>assets/dashboard/images/referensi_33.gif" alt="" width="117" height="54" align="right"></div></td>
                            <td><img src="<?=base_url()?>assets/dashboard/images/referensi_31.gif" width="59" height="54" alt=""></td>
                        </tr>
                        <tr>
                            <td colspan="6"></td>
                            <td><a onclick="tab_add('Purchase Return','list/purchases_return','icon-purchase')" id="link_id"><img src="<?=base_url()?>assets/dashboard/images/referensi_10.jpg" width="56" height="91" alt="" border="0"></a></td>
                            <td>&nbsp;</td>
                          <td><a onclick="tab_add('Purchase Payment','list/purchases_payment','icon-purchase')" id="link_id"><img src="<?=base_url()?>assets/dashboard/images/referensi_09.jpg" width="56" height="91" alt="" border="0"></a></td>
                        </tr>
                    </table>
                    </div>
                </div>
            </div>
			
            <div class="col-5 right">
                <div class="aside">
                	<div >
                        <table  border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td><a onclick="tab_add('Customers','list/customers','icon-customer')" id="link_id"><img src="<?=base_url()?>assets/dashboard/images/customer.jpg" width="67" height="83" alt="" border="0"></a></td>
                                <td><img src="<?=base_url()?>assets/dashboard/images/referensi_30.gif" width="59" height="54" alt=""></td>
                                <td><a onclick="tab_add('Sales Quotation','list/sales_quotation','icon-sales')" id="link_id"><img src="<?=base_url()?>assets/dashboard/images/referensi_11.jpg" width="56" height="81" alt="" border="0"></a></td>
                                <td><img src="<?=base_url()?>assets/dashboard/images/referensi_30.gif" width="59" height="54" alt=""></td>
                                <td><a onclick="tab_add('Sales Orders','list/sales_order','icon-sales')" id="link_id"><img src="<?=base_url()?>assets/dashboard/images/referensi_12.jpg" width="56" height="91" alt="" border="0"></a></td>
                                <td><img src="<?=base_url()?>assets/dashboard/images/referensi_30.gif" width="59" height="54" alt=""></td>
                                <td><a onclick="tab_add('Delivery Orders','list/delivery_order','icon-sales')" id="link_id"><img src="<?=base_url()?>assets/dashboard/images/referensi_13.jpg" width="56" height="91" alt="" border="0"></a></td>
                                <td><img src="<?=base_url()?>assets/dashboard/images/referensi_30.gif" width="59" height="54" alt=""></td>
                                <td><a onclick="tab_add('Sales Invoice','list/sales_invoice','icon-sales')" id="link_id"><img src="<?=base_url()?>assets/dashboard/images/referensi_14.jpg" width="56" height="91" alt="" border="0"></a></td>
                            </tr>
                            <tr>
                                <td colspan="6"></td>
                                <td colspan="2"><div align="left"><img src="<?=base_url()?>assets/dashboard/images/referensi_33.gif" alt="" width="117" height="54" align="right"></div></td>
                                <td><img src="<?=base_url()?>assets/dashboard/images/referensi_31.gif" width="59" height="54" alt=""></td>
                            </tr>
                            <tr>
                                <td colspan="6"></td>
                                <td><a onclick="tab_add('Sales Return','list/sales_return','icon-sales')" id="link_id"><img src="<?=base_url()?>assets/dashboard/images/referensi_16.jpg" width="56" height="91" alt="" border="0"></a></td>
                                <td>&nbsp;</td>
                              <td><a onclick="tab_add('Sales Receipts','list/sales_receipt','icon-sales')" id="link_id"><img src="<?=base_url()?>assets/dashboard/images/referensi_15.jpg" width="56" height="91" alt="" border="0"></a></td>
                            </tr>
                        </table>
                   </div>
                </div>
            </div>
            
            <div class="col-5 left">
                <div class="aside">
                <div >
                    <table  border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td><a onMouseOver="showhint('Pendataan Pegawai', this, event, '100px')"><img src="<?=base_url()?>assets/dashboard/images/user.jpg" width="67" height="83" alt="" border="0"></a></td>
                                <td><img src="<?=base_url()?>assets/dashboard/images/referensi_30.gif" width="59" height="54" alt=""></td>
                                <td><a onclick="tab_add('Other Payment','list/other_payment','icon-bank')" id="link_id"><img src="<?=base_url()?>assets/dashboard/images/referensi_17.jpg" width="56" height="91" alt="" border="0" /></a></td>
                                <td><img src="<?=base_url()?>assets/dashboard/images/referensi_30.gif" width="59" height="54" alt=""></td>
                                <td><a onclick="tab_add('Other Income','list/other_incone','icon-bank')" id="link_id"><img src="<?=base_url()?>assets/dashboard/images/referensi_18.jpg" width="56" height="91" alt="" border="0" /></a></td>
                                <td><img src="<?=base_url()?>assets/dashboard/images/referensi_30.gif" width="59" height="54" alt="" /></td>
                                <td><a onclick="tab_add('Expense Cash-Bon','list/purchases_expense_cashbon','icon-expense')" id="link_id"><img src="<?=base_url()?>assets/dashboard/images/referensi_19.jpg" width="56" height="91" alt="" border="0" /></a></td>
                                <td><img src="<?=base_url()?>assets/dashboard/images/referensi_30.gif" width="59" height="54" alt="" /></td>
                                <td><a onclick="tab_add('Expense Payment','list/purchases_expense_real','icon-expense')" id="link_id"><img src="<?=base_url()?>assets/dashboard/images/referensi_20.jpg" width="56" height="91" alt="" border="0" /></a></td>
                            </tr>
                            <tr>
                                 <td><img src="<?=base_url()?>assets/dashboard/images/referensi_34.png" alt="" width="67" height="83" align="top"></td>
                                <td><img src="<?=base_url()?>assets/dashboard/images/referensi_30.gif" width="59" height="54" alt=""></td>
                                <td><img src="<?=base_url()?>assets/dashboard/images/referensi_30.gif" width="59" height="54" alt="" /></td>
                                <td><img src="<?=base_url()?>assets/dashboard/images/referensi_30.gif" width="59" height="54" alt=""></td>
                                <td><img src="<?=base_url()?>assets/dashboard/images/referensi_30.gif" width="59" height="54" alt="" /></td>
                                <td><img src="<?=base_url()?>assets/dashboard/images/referensi_30.gif" width="59" height="54" alt="" /></td>
                                <td><a onclick="tab_add('Purchase Payment','list/purchases_payment','icon-purchase')" id="link_id"><img src="<?=base_url()?>assets/dashboard/images/referensi_09.jpg" width="56" height="91" alt="" border="0" /></a></td>
                            <td><img src="<?=base_url()?>assets/dashboard/images/referensi_30.gif" width="59" height="54" alt="" /></td>
                                <td><a onclick="tab_add('Sales Receipts','list/sales_receipt','icon-sales')" id="link_id"><img src="<?=base_url()?>assets/dashboard/images/referensi_15.jpg" width="56" height="91" alt="" border="0"></a></td>
                            </tr>
                            
                        </table>
                        </div>
                </div>
            </div>
            
            <div class="col-5 right">
                <div class="aside">
                <div >
                   <table  border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td><a onclick="modal_open('New Company','dlg_new_company','icon-document')" id="link_id"><img src="<?=base_url()?>assets/dashboard/images/referensi_21.jpg" width="67" height="83" alt="" border="0"></a></td>
                            <td><img src="<?=base_url()?>assets/dashboard/images/referensi_30.gif" width="59" height="54" alt=""></td>
                            <td><a onclick="tab_add('Branch Info','setup/branch_info','icon-branch')" id="link_id"><img src="<?=base_url()?>assets/dashboard/images/referensi_22.jpg" width="56" height="91" alt="" border="0" /></a></td>
                            <td><img src="<?=base_url()?>assets/dashboard/images/referensi_30.gif" width="59" height="54" alt=""></td>
                            <td><a onclick="tab_add('Chart Of Account','list/coa','icon-coa')" id="link_id"><img src="<?=base_url()?>assets/dashboard/images/referensi_23.jpg" width="56" height="91" alt="" border="0" /></a></td>
                            <td><img src="<?=base_url()?>assets/dashboard/images/referensi_30.gif" width="59" height="54" alt="" /></td>
                            <td><a onclick="tab_add('Item Product','list/items','icon-item')" id="link_id"><img src="<?=base_url()?>assets/dashboard/images/referensi_24.jpg" width="56" height="91" alt="" border="0" /></a></td>
                            <td><img src="<?=base_url()?>assets/dashboard/images/referensi_30.gif" width="59" height="54" alt="" /></td>
                            <td><a onclick="tab_add('Item Categories','list/item_categories','icon-item')" id="link_id"><img src="<?=base_url()?>assets/dashboard/images/referensi_25.jpg" width="56" height="91" alt="" border="0" /></a></td>
                        </tr>
                        <tr>
                             <td><img src="<?=base_url()?>assets/dashboard/images/referensi_34.png" alt="" width="67" height="83" align="top"></td>
                            <td><img src="<?=base_url()?>assets/dashboard/images/referensi_30.gif" width="59" height="54" alt=""></td>
                            <td><img src="<?=base_url()?>assets/dashboard/images/referensi_30.gif" width="59" height="54" alt="" /></td>
                            <td><img src="<?=base_url()?>assets/dashboard/images/referensi_30.gif" width="59" height="54" alt=""></td>
                            <td><img src="<?=base_url()?>assets/dashboard/images/referensi_30.gif" width="59" height="54" alt="" /></td>
                            <td><img src="<?=base_url()?>assets/dashboard/images/referensi_30.gif" width="59" height="54" alt="" /></td>
                            <td><a onclick="tab_add('Preferences','setup/preference_item','icon-preference')" id="link_id"><img src="<?=base_url()?>assets/dashboard/images/referensi_26.jpg" width="56" height="91" alt="" border="0" /></a></td>
                        <td><img src="<?=base_url()?>assets/dashboard/images/referensi_30.gif" width="59" height="54" alt="" /></td>
                            <td><a onclick="tab_add('Item Inventories','list/inventories','icon-inventory')" id="link_id"><img src="<?=base_url()?>assets/dashboard/images/referensi_27.jpg" width="56" height="91" alt="" border="0"></a></td>
                        </tr>
                        
                    </table>
                    </div>
                </div>
            </div>
        </div>
  </div>
    <!-- End of Content -->
    <div title="" data-options="region:'south',plain:true" style="height:20px;padding:2px;">
    	<div style="float:left;">Information Bar</div>
        <div style="float:left;" id="footerKey"></div>
        <div style="float:right;">
            

            Login as : <?=$employee_name?> - <?=$this->session->userdata('username')?> - <?=$this->session->userdata("jobtitle")?> / <?=$this->session->userdata('company')?> / <?=$this->session->userdata('branch')?>
        </div>
    </div>
    
</div>

<script type="text/javascript">
    var idleTime = 0;

    $(document).ready(function (){
        //Increment the idle time counter every minute.
        var idleInterval = setInterval(timerIncrement, 30000); // 0.5 Seconds

        //Zero the idle timer on mouse movement.
        $(this).mousemove(function (e) {
            idleTime = 0;
        });

	$(this).keypress(function (e) {
		idleTime = 0;
	});
    });

    function timerIncrement() {
	idleTime = idleTime + 1;

	if (idleTime > 50) { // 1 hour
            window.location.href='<?=site_url('login/process_logout')?>';
	}
    }
	
	function not_complate(){
		$.messager.alert('Maaf','Maaf link belum tersedia untuk saat ini sedang dalam proses pembuatan','warning');
	}
</script>