<tr> <td colspan="3"><div class="error" id="err_div" style="display:none;"></div></td> </tr> <tr> <td colspan="3"><div class="success" id="success_div" <?php if($this->session->flashdata('success') == '') { echo 'style="display:none;"'; }?>><?php echo $this->session->flashdata('success');?></div></td> </tr> <tr> <td align="center" height="20" colspan="3"> <table cellspacing="0" cellpadding="0" border="0" width="95%" class="search_col"> <thead> <?php $used_acl_nodes_count = restricted_customer_acl_nodes_count($customer_id); $limit_of_acl_nodes = customer_access_any_cell($customer_id, 'total_acl_nodes'); $remaining = $limit_of_acl_nodes - $used_acl_nodes_count; if($used_acl_nodes_count < $limit_of_acl_nodes) { ?> <tr class="main_text" style="background:none;"> <td align="right" colspan="5"> <a href="<?php echo base_url();?>reseller/info/new_acl_node"><?php echo $this->lang->line('reseller_view_new_acl_node');?></a> <br/> <?php echo $this->lang->line('reseller_view_you_can_add_upto');?> <?php echo $limit_of_acl_nodes;?> <?php echo $this->lang->line('reseller_view_acl_node');?> (<?php echo $remaining;?> <?php echo $this->lang->line('reseller_view_acl_nodes_ramining');?>) </td> </tr> <?php } else {?> <tr class="main_text" style="background:none;">
function new_acl_node() { $customer_id = $this->session->userdata('customer_id'); $used_acl_nodes_count = restricted_customer_acl_nodes_count($customer_id); $limit_of_acl_nodes = customer_access_any_cell($customer_id, 'total_acl_nodes'); if($used_acl_nodes_count < $limit_of_acl_nodes) { $data['customer_id'] = $customer_id; $data['page_name'] = 'new_acl_node'; $data['selected'] = 'customers_ip'; $data['sub_selected'] = ''; $data['page_title'] = 'NEW ACL NODE'; $data['main_menu'] = ''; $data['sub_menu'] = ''; $data['main_content'] = 'reseller/reseller_info/new_acl_node_view'; $data['dont_show_this'] = 1; $this->load->view('default/template',$data); } else { redirect ('customer/customer_acl_nodes'); } }