コード例 #1
0
     foreach ($settings->result() as $rowSet): 
     
 ?>
     <tr class="main_text" height="20px">
         <td align="left"><?php echo $rowSet->param_name;?></td>
         <td align="left"><?php echo $rowSet->param_value;?></td>
         
         
         
         <?php if($this->session->userdata('user_type') == 'admin'){?>
             <?php if($rowSet->param_name != 'sip-ip' && $rowSet->param_name != 'sip-port' ) {?>
             <td align="left"><a href="#" id="<?php echo $rowSet->id;?>" class="delete_setting"><img src="<?php echo base_url();?>assets/images/button_cancel.png" style="width:16px;margin-left:15px;border:none;cursor:pointer;" /></a></td>
             <?php } else { echo "<td>&nbsp;</td>";} ?>
         <?php 
             } else if($this->session->userdata('user_type') == 'sub_admin'){
                     if(sub_admin_access_any_cell($this->session->userdata('user_id'), 'delete_settings') == 1)
                     {
         ?>
                         <?php if($rowSet->param_name != 'sip-ip' && $rowSet->param_name != 'sip-port' ) {?>
                         <td align="left"><a href="#" id="<?php echo $rowSet->id;?>" class="delete_setting"><img src="<?php echo base_url();?>assets/images/button_cancel.png" style="width:16px;margin-left:15px;border:none;cursor:pointer;" /></a></td>
                         <?php } else { echo "<td>&nbsp;</td>";} ?>
         <?php 
                     }
                     else
                     {
         ?>
                         <td align="left">---</td>
         <?php
                     }
                 }
         ?>
コード例 #2
0
ファイル: freeswitch.php プロジェクト: rithyskun/vBilling
 function active_calls()
 {
     if($this->session->userdata('user_type') == 'sub_admin')
     {
         if(sub_admin_access_any_cell($this->session->userdata('user_id'), 'active_calls') == 0)
         {
             redirect ('freeswitch/');
         }
     }
     $data['page_name']		=	'active_calls';
     $data['selected']		=	'freeswitch';
     $data['sub_selected']   =   'active_calls';
     $data['page_title']		=	'Active Calls';
     $data['main_menu']	    =	'default/main_menu/main_menu';
     $data['sub_menu']	    =	'default/sub_menu/freeswitch_sub_menu';
     $data['main_content']	=	'freeswitch/activity_view';
     $this->load->view('default/template',$data);
 }
コード例 #3
0
ファイル: did.php プロジェクト: rithyskun/vBilling
	function new_did()
	{
		if($this->session->userdata('user_type') == 'sub_admin')
        {
            if(sub_admin_access_any_cell($this->session->userdata('user_id'), 'new_did') == 0)
            {
                redirect ('did/');
            }
        }
        
        $data['page_name']		=	'new_did';
		$data['selected']		=	'did';
		$data['sub_selected']   =   'new_did';
		$data['page_title']		=	'NEW DID';
		$data['main_menu']	    =	'default/main_menu/main_menu';
		$data['sub_menu']	    =	'default/sub_menu/did_sub_menu';
		$data['main_content']	=	'did/add_did_view';
		$this->load->view('default/template',$data);
	}
コード例 #4
0
ファイル: carriers.php プロジェクト: rithyskun/vBilling
	function update_carrier($carrier_id)
	{
		if($this->session->userdata('user_type') == 'sub_admin')
        {
            if(sub_admin_access_any_cell($this->session->userdata('user_id'), 'edit_carriers') == 0)
            {
                redirect ('carriers/');
            }
        }
        
        $data['carrier']            =   $this->carriers_model->get_single_carrier($carrier_id);
		$data['carrier_gateways']   =   $this->carriers_model->carrier_gateways($carrier_id);
		$data['carrier_id']     =   $carrier_id;

		$data['page_name']		=	'edit_carrier';
		$data['selected']		=	'carriers';
		$data['sub_selected']   =   '';
		$data['page_title']		=	'UPDATE CARRIER';
		$data['main_menu']	    =	'default/main_menu/main_menu';
		$data['sub_menu']	    =	'default/sub_menu/carriers_sub_menu';
		$data['main_content']	=	'carriers/edit_carrier_view';
		$this->load->view('default/template',$data);
	}
コード例 #5
0
ファイル: cdr_sub_menu.php プロジェクト: rithyskun/vBilling
         <?php if($this->session->userdata('user_type') == 'admin'){?>
             <li><a href="<?php echo base_url();?>cdr/customer_stats" <?php if($sub_selected == 'customer_stats') { echo 'class="sub_selected"' ;}?>>Customer Stats</a></li>
         <?php 
         } else if($this->session->userdata('user_type') == 'sub_admin'){
             if(sub_admin_access_any_cell($this->session->userdata('user_id'), 'view_customer_stats') == 1)
             {
         ?>
                 <li><a href="<?php echo base_url();?>cdr/customer_stats" <?php if($sub_selected == 'customer_stats') { echo 'class="sub_selected"' ;}?>>Customer Stats</a></li>
         <?php 
             }
         }
         ?>
         
         
         
         
         <?php if($this->session->userdata('user_type') == 'admin'){?>
             <li><a href="<?php echo base_url();?>cdr/call_destination" <?php if($sub_selected == 'call_destination') { echo 'class="sub_selected"' ;}?>>Call Destination</a></li>
         <?php 
         } else if($this->session->userdata('user_type') == 'sub_admin'){
             if(sub_admin_access_any_cell($this->session->userdata('user_id'), 'view_call_destination') == 1)
             {
         ?>
                 <li><a href="<?php echo base_url();?>cdr/call_destination" <?php if($sub_selected == 'call_destination') { echo 'class="sub_selected"' ;}?>>Call Destination</a></li>
         <?php 
             }
         }
         ?>
     </ul>
     <div class="clr"></div>
 </div>
コード例 #6
0
                         </tr>
                         <tr>
                             <td align="center" colspan="2"><input border="0" id="submitaddSubtractBlnceForm" type="image" src="<?php echo base_url();?>assets/images/btn-submit.png"></td>
                         </tr>
                     </tbody>
                 </table>
             </form>
         </td>
     </tr>
     
     <tr class="main_text" style="background:none;">
         <td align="right" colspan="3"><a href="#" class="add_deduct_balance">Add/Deduct Balance</a></td>
     </tr>
 <?php 
     } else if($this->session->userdata('user_type') == 'sub_admin'){
             if(sub_admin_access_any_cell($this->session->userdata('user_id'), 'add_deduct_balance') == 1)
             {
 ?>
                  <tr class="main_text balance_form" style="display:none;">
                     <td colspan="3">
                         <form enctype="multipart/form-data"  method="post" action="" name="addSubtractBlnce" id="addSubtractBlnce">
                             <input type="hidden" name="customer_id" value="<?php echo $customer_id;?>" />
                             
                             <table cellspacing="3" cellpadding="2" border="0" width="95%" class="search_col">
                                 <tbody>
                                     <tr>
                                         <td align="right" width="45%"><span class="required">*</span> Balance to add/deduct:</td>
                                         <td align="left" width="55%"><input type="text" value="" name="balance" id="balance" maxlength="50" class="textfield"></td>
                                     </tr>
                                     <tr>
                                         <td align="right"><span class="required">*</span> Action:</td>
コード例 #7
0
   <td align="center"><input type="checkbox" id="<?php echo $row->id;?>" class="enable_checkbox" <?php if($row->enabled == 1){ echo 'checked="checked"';}?>/></td>
   <?php 
                                   }
                                   else
                                   {
                       ?>
   <td align="center"><?php if($row->enabled == 1){ echo 'Enabled';} else { echo "Disabled";}?></td>
   <?php
                                   }
                               }
                       ?>
   <?php if($this->session->userdata('user_type') == 'admin'){?>
   <td align="left"><a href="#" id="<?php echo $row->id;?>" class="delete_group"><img src="<?php echo base_url();?>assets/images/button_cancel.png" style="width:16px;margin-left:15px;border:none;cursor:pointer;" /></a></td>
   <?php 
                           } else if($this->session->userdata('user_type') == 'sub_admin'){
                                   if(sub_admin_access_any_cell($this->session->userdata('user_id'), 'delete_rate_groups') == 1)
                                   {
                       ?>
   <td align="left"><a href="#" id="<?php echo $row->id;?>" class="delete_group"><img src="<?php echo base_url();?>assets/images/button_cancel.png" style="width:16px;margin-left:15px;border:none;cursor:pointer;" /></a></td>
   <?php 
                                   }
                                   else
                                   {
                       ?>
   <td align="left">---</td>
   <?php
                                   }
                               }
                       ?>
 <tr style="height:5px;">
   <td colspan="4" id="shadowDiv" style="height:5px;margin-top:0px;background-color:#fff"></td>
コード例 #8
0
ファイル: groups.php プロジェクト: rithyskun/vBilling
	function new_rate($rate_group_id = '')
	{
		if($this->session->userdata('user_type') == 'sub_admin')
        {
            if(sub_admin_access_any_cell($this->session->userdata('user_id'), 'new_rate') == 0)
            {
                redirect ('groups/');
            }
        }
        
        $data['rate_group_id']		=	$rate_group_id;
        
        $data['page_name']		=	'new_rate';
		$data['selected']		=	'groups';
		$data['sub_selected']   =   'new_rate';
		$data['page_title']		=	'NEW RATE';
		$data['main_menu']	    =	'default/main_menu/reseller_main_menu';
		$data['sub_menu']	    =	'default/sub_menu/reseller/groups_sub_menu';
		$data['main_content']	=	'groups/add_rate_view';
		$this->load->view('default/template',$data);
	}
コード例 #9
0
ファイル: invoices_view.php プロジェクト: rithyskun/vBilling
 <td align="center" height="30"><a href="<?php echo base_url(); ?>billing/download_invoice/<?php echo $row->invoice_id;?>"><img src="<?php echo base_url();?>assets/images/export-pdf.gif"/> View Invoice</a></td>
 
 <td align="center" height="30"><a href="<?php echo base_url(); ?>billing/download_cdr/<?php echo $row->invoice_id;?>"><img src="<?php echo base_url();?>assets/images/export-pdf.gif"/> View CDR</a></td>
 
 
 <?php if($row->parent_id == '0'){?>
 
 <?php if($this->session->userdata('user_type') == 'admin'){?>
     <?php if($latest_status == 'pending' || $latest_status == 'over_due') {?>
     <td align="center" height="30"><a href="<?php echo base_url(); ?>billing/mark_as_paid/<?php echo $row->id; ?>">Mark as Paid</a></td>
     <?php } else {?>
     <td align="center" height="30">-</td>
     <?php } ?>
 <?php 
     } else if($this->session->userdata('user_type') == 'sub_admin'){
             if(sub_admin_access_any_cell($this->session->userdata('user_id'), 'mark_invoices_paid') == 1)
             {
 ?>
                 <?php if($latest_status == 'pending' || $latest_status == 'over_due') {?>
                 <td align="center" height="30"><a href="<?php echo base_url(); ?>billing/mark_as_paid/<?php echo $row->id; ?>">Mark as Paid</a></td>
                 <?php } else {?>
                 <td align="center" height="30">-</td>
                 <?php } ?>
 <?php 
             }
             else
             {
 ?>
                 <td align="center" height="30">-</td>
 <?php
             }
コード例 #10
0
		<li><a href="<?php echo base_url();?>freeswitch/" <?php if($sub_selected == 'list_profiles') { echo 'class="sub_selected"' ;}?>>List Profiles</a></li>
		
        <?php if($this->session->userdata('user_type') == 'admin'){?>
            <li><a href="<?php echo base_url();?>freeswitch/new_profile" <?php if($sub_selected == 'new_profile') { echo 'class="sub_selected"' ;}?>>New Profile</a></li>
        <?php 
        } else if($this->session->userdata('user_type') == 'sub_admin'){
            if(sub_admin_access_any_cell($this->session->userdata('user_id'), 'new_profiles') == 1)
            {
        ?>
                <li><a href="<?php echo base_url();?>freeswitch/new_profile" <?php if($sub_selected == 'new_profile') { echo 'class="sub_selected"' ;}?>>New Profile</a></li>
        <?php 
            }
        }
        ?>
        
		
        <?php if($this->session->userdata('user_type') == 'admin'){?>
            <li><a href="<?php echo base_url();?>freeswitch/freeswitch_esl" <?php if($sub_selected == 'freeswitch_esl') { echo 'class="sub_selected"' ;}?>>FreeSWITCH Status</a></li>
        <?php 
        } else if($this->session->userdata('user_type') == 'sub_admin'){
            if(sub_admin_access_any_cell($this->session->userdata('user_id'), 'freeswitch_status') == 1)
            {
        ?>
                <li><a href="<?php echo base_url();?>freeswitch/freeswitch_esl" <?php if($sub_selected == 'freeswitch_esl') { echo 'class="sub_selected"' ;}?>>FreeSWITCH Status</a></li>
        <?php 
            }
        }
        ?>
	</ul>
	<div class="clr"></div>
</div>
コード例 #11
0
 * Portions created by Initial Developer (Digital Linx) are Copyright (C) 2011
 * Initial Developer (Digital Linx). All Rights Reserved.
 *
 * Contributor(s)
 * "Digital Linx - <vbilling at digitallinx.com>"
 *
 * vBilling - VoIP Billing and Routing Platform
 * version 0.1.3
 *
 */
?>
<div id="subMenu">
        <ul>
            <li><a href="<?php echo base_url();?>billing/" <?php if($sub_selected == 'summary_billing') { echo 'class="sub_selected"' ;}?>>Billing Summary</a></li>
            
            
            <?php if($this->session->userdata('user_type') == 'admin'){?>
                <li><a href="<?php echo base_url();?>billing/invoices/" <?php if($sub_selected == 'list_invoices') { echo 'class="sub_selected"' ;}?>>Invoices</a></li>
            <?php 
            } else if($this->session->userdata('user_type') == 'sub_admin'){
                if(sub_admin_access_any_cell($this->session->userdata('user_id'), 'view_invoices') == 1)
                {
            ?>
                    <li><a href="<?php echo base_url();?>billing/invoices/" <?php if($sub_selected == 'list_invoices') { echo 'class="sub_selected"' ;}?>>Invoices</a></li>
            <?php 
                }
            }
            ?>
        </ul>
        <div class="clr"></div>
    </div>
コード例 #12
0
                            foreach ($gateways->result() as $row): 
                            
                        ?>
                            <tr class="main_text" height="20px">
                                <td align="left"><?php echo $row->gateway_param;?></td>
                                <td align="left"><?php echo $row->gateway_value;?></td>
                                
                                <?php if($row->gateway_param != 'username' && $row->gateway_param != 'password' && $row->gateway_param != 'proxy' && $row->gateway_param != 'register' && $row->gateway_param != 'channels') {?>
			
                                

                                <?php if($this->session->userdata('user_type') == 'admin'){?>
                                    <td align="left"><a href="#" id="<?php echo $row->id;?>" class="delete_gateway_config"><img src="<?php echo base_url();?>assets/images/button_cancel.png" style="width:16px;margin-left:15px;border:none;cursor:pointer;" /></a></td>
                                <?php 
                                    } else if($this->session->userdata('user_type') == 'sub_admin'){
                                            if(sub_admin_access_any_cell($this->session->userdata('user_id'), 'edit_gateway') == 1)
                                            {
                                ?>
                                                <td align="left"><a href="#" id="<?php echo $row->id;?>" class="delete_gateway_config"><img src="<?php echo base_url();?>assets/images/button_cancel.png" style="width:16px;margin-left:15px;border:none;cursor:pointer;" /></a></td>
                                <?php 
                                            }
                                            else
                                            {
                                ?>
                                                <td align="left">---</td>
                                <?php
                                            }
                                        }
                                ?>
                                
                                <?php } else { echo "<td align='left'>&nbsp;</td>";} ?>
コード例 #13
0
ファイル: pop_up_menu.php プロジェクト: rithyskun/vBilling
                                        if(sub_admin_access_any_cell($this->session->userdata('user_id'), 'view_customers_sip') == 1)
                                        {
                                    ?>
                                            <li <?php if($selected == 'sip_access'){ echo 'class="current"';}?>><a href="<?php echo base_url();?>customers/sip_access/<?php echo $customer_id;?>"><span>SIP Credentials</span></a></li>
                                    <?php 
                                        }
                                    }
                                    ?>
                                    
                                     
                                     
                                      <?php if($this->session->userdata('user_type') == 'admin'){?>
                                        <li <?php if($selected == 'manage_balance'){ echo 'class="current"';}?>><a href="<?php echo base_url();?>customers/manage_balance/<?php echo $customer_id;?>"><span>Manage Balance</span></a></li>
                                    <?php 
                                    } else if($this->session->userdata('user_type') == 'sub_admin'){
                                        if(sub_admin_access_any_cell($this->session->userdata('user_id'), 'view_customers_balance') == 1)
                                        {
                                    ?>
                                            <li <?php if($selected == 'manage_balance'){ echo 'class="current"';}?>><a href="<?php echo base_url();?>customers/manage_balance/<?php echo $customer_id;?>"><span>Manage Balance</span></a></li>
                                    <?php 
                                        }
                                    }
                                    ?>
                                     
                                </ul>
                            </td>
                        </tr>
                    </table>
                    </td>

                </tr>
コード例 #14
0
ファイル: activity_view.php プロジェクト: rithyskun/vBilling
							else echo 0;
                        } ?>
                        </td>
                        <td align="center"><?php $diff=time()-strtotime(get_attribute('created'));
                                                 $hours = floor($diff / 3600);
                                                 $mins = floor(($diff - ($hours*3600)) / 60);
                                                 $seconds = floor(($diff - ($hours*3600) - ($mins*60)));
                                                 echo $hours. ':' .$mins. ':' .$seconds; ?>
                        </td>

                        <?php if($this->session->userdata('user_type') == 'admin'){?>
                            <td align="center">
                                <a href="#" id="<?php echo $uuid; ?>" class="cutcalls"><img src="<?php echo base_url();?>assets/images/button_cancel.png" style="width:16px;border:none;cursor:pointer;" /></a>
                            </td>
                        <?php } else if($this->session->userdata('user_type') == 'sub_admin') {
                            if(sub_admin_access_any_cell($this->session->userdata('user_id'), 'cut_calls') == 1) { ?>
                                <td align="center">
                                    <a href="#" id="<?php echo $uuid;?>" class="cutcalls"><img src="<?php echo base_url();?>assets/images/button_cancel.png" style="width:16px;border:none;cursor:pointer;" /></a>
                                </td>
                            <?php } else { ?>
                                <td align="center">---</td>
                            <?php }
                        } ?>
                    </tr>
        <!--    <td align="center"><?php // $uuid = get_attribute_xml(); echo $uuid; ?></td>-->
        <!--  <td align="center"><?php // print_r (get_uuid_dump_xml($uuid)); ?></td>-->

        <?php $x = $x + 1;
                } ?>
                    <tr style="height:5px;">
                        <td colspan="16" id="shadowDiv" style="height:5px;margin-top:0px;background-color:#fff"></td>
コード例 #15
0
ファイル: groups.php プロジェクト: rithyskun/vBilling
	function add_localization_groups(){
		if($this->session->userdata('user_type') == 'sub_admin')
        {
            if(sub_admin_access_any_cell($this->session->userdata('user_id'), 'new_rate_groups') == 0)
            {
                redirect ('groups/');
            }
        }
        
        $data['page_name']		=	'group_view';
		$data['selected']		=	'groups';
		$data['sub_selected']   =   'add_localization_groups';
		$data['page_title']		=	'NEW GROUP';
		$data['main_menu']	    =	'default/main_menu/main_menu';
		$data['sub_menu']	    =	'default/sub_menu/groups_sub_menu';
		$data['main_content']	=	'groups/add-localization-group-view';
		$this->load->view('default/template',$data);
	}
コード例 #16
0
ファイル: customers.php プロジェクト: rithyskun/vBilling
    function invoices($customer_id)
    {
        if($this->session->userdata('user_type') == 'sub_admin')
        {
            if(sub_admin_access_any_cell($this->session->userdata('user_id'), 'view_customers_billing') == 0)
            {
                redirect ('customers/edit_customer/'.$customer_id.'');
            }
        }
        
        $data['customer_id']    =   $customer_id;
        
        //for filter & search
        $filter_date_from       = '';
        $filter_date_to         = '';
        $filter_customers       = $customer_id;
        $filter_status          = '';
        $filter_sort            = '';
        $search                 = '';

        $msg_records_found = "Records Found";

        if($this->input->get('searchFilter'))
        {
            $filter_date_from       = $this->input->get('filter_date_from');
            $filter_date_to         = $this->input->get('filter_date_to');
            $filter_status          = $this->input->get('filter_status');
            $filter_sort            = $this->input->get('filter_sort');
            $search                 = $this->input->get('searchFilter');
            $msg_records_found      = "Records Found Based On Search Criteria";
        }

        if($filter_date_from != '')
        {
            if (!checkdateTime($filter_date_from))
            {
                //$filter_date_from   = '';
            }
        }

        if($filter_date_to != '')
        {
            if (!checkdateTime($filter_date_to))
            {
                //$filter_date_to   = '';
            }
        }

        $data['filter_date_from']           = $filter_date_from;
        $data['filter_date_to']             = $filter_date_to;
        $data['filter_status']              = $filter_status;
        $data['filter_sort']                = $filter_sort;
        
        //for pagging set information
        $this->load->library('pagination');
        $config['per_page'] = '20';
        $config['base_url'] = base_url().'customers/invoices/'.$customer_id.'/?searchFilter='.$search.'&filter_date_from='.$filter_date_from.'&filter_date_to='.$filter_date_to.'&filter_status='.$filter_status.'&filter_sort='.$filter_sort.'';
        $config['page_query_string'] = TRUE;

        $config['num_links'] = 6;

        $config['cur_tag_open'] = '<span class="current">';
        $config['cur_tag_close'] = '</span> ';

        $config['next_link'] = 'next';
        $config['next_tag_open'] = '<span class="next-site">';
        $config['next_tag_close'] = '</span>';

        $config['prev_link'] = 'previous';
        $config['prev_tag_open'] = '<span class="prev-site">';
        $config['prev_tag_close'] = '</span>';

        $config['first_link'] = 'first';
        $config['last_link'] = 'last';

        $data['count'] = $this->billing_model->get_invoices_count($filter_date_from, $filter_date_to, $filter_customers, $filter_billing_type = '', $filter_status);
        $config['total_rows'] = $data['count'];

        if(isset($_GET['per_page']))
        {
            if(is_numeric($_GET['per_page']))
            {
                $config['uri_segment'] = $_GET['per_page'];
            }
            else
            {
                $config['uri_segment'] = '';
            }
        }
        else
        {
            $config['uri_segment'] = '';
        }

        $this->pagination->initialize($config);

        $data['msg_records_found'] = "".$data['count']."&nbsp;".$msg_records_found."";

        $data['invoices']       =   $this->billing_model->get_invoices($config['per_page'],$config['uri_segment'],$filter_date_from, $filter_date_to, $filter_customers, $filter_billing_type = '', $filter_status, $filter_sort);
        
        $data['page_name']		=	'customer_invoices';
        $data['selected']		=	'billing';
        $data['sub_selected']   =   '';
        $data['page_title']		=	'INVOICES';
        $data['main_menu']	    =	'';
        $data['sub_menu']	    =	'';
        $data['main_content']	=	'customers/invoices_view';
        $data['dont_show_this'] = 1;
        $this->load->view('default/template',$data);
    }
コード例 #17
0
ファイル: did_sub_menu.php プロジェクト: rithyskun/vBilling
 * Portions created by Initial Developer (Digital Linx) are Copyright (C) 2011
 * Initial Developer (Digital Linx). All Rights Reserved.
 *
 * Contributor(s)
 * "Digital Linx - <vbilling at digitallinx.com>"
 *
 * vBilling - VoIP Billing and Routing Platform
 * version 0.1.3
 *
 */
?>
<div id="subMenu">
        <ul>
            <li><a href="<?php echo base_url();?>did/" <?php if($sub_selected == 'list_did') { echo 'class="sub_selected"' ;}?>>List DIDs</a></li>
            
            <?php if($this->session->userdata('user_type') == 'admin'){?>
                <li><a href="<?php echo base_url();?>did/new_did" <?php if($sub_selected == 'new_did') { echo 'class="sub_selected"' ;}?>>New DID</a></li>
            <?php 
            } else if($this->session->userdata('user_type') == 'sub_admin'){
                if(sub_admin_access_any_cell($this->session->userdata('user_id'), 'new_did') == 1)
                {
            ?>
                    <li><a href="<?php echo base_url();?>did/new_did" <?php if($sub_selected == 'new_did') { echo 'class="sub_selected"' ;}?>>New DID</a></li>
            <?php 
                }
            }
            ?>
            
        </ul>
        <div class="clr"></div>
    </div>
コード例 #18
0
                                             <td width="1%" align="center">---</td>
                     <?php
                                         }
                                     }
                             ?>
                         <?php } else { ?>
                             <td width="1%" align="center">---</td>
                     <?php } ?>
                         
                         
                         <?php if(customer_any_cell($customer_id, 'parent_id') == $this->session->userdata('customer_id')){?>
                             <?php if($this->session->userdata('user_type') == 'admin'){?>
                                 <td width="2%" align="center"><input type="checkbox" id="<?php echo $row->id;?>" class="enable_checkbox" <?php if($row->enabled == 1){ echo 'checked="checked"';}?>/></td>
 <?php 
                                 } else if($this->session->userdata('user_type') == 'sub_admin'){
                                         if(sub_admin_access_any_cell($this->session->userdata('user_id'), 'enable_disable_sip') == 1)
                                         {
                             ?>
                                             <td width="2%" align="center"><input type="checkbox" id="<?php echo $row->id;?>" class="enable_checkbox" <?php if($row->enabled == 1){ echo 'checked="checked"';}?>/></td>
 <?php 
                                         }
                                         else
                                         {
                             ?>
                                             <td width="2%" align="center"><?php if($row->enabled == 1){ echo 'Enabled';} else { echo "Disabled";}?></td>
                     <?php
                                         }
                                     }
                             ?>
                         <?php } else { ?>
                             <td width="2%" align="center"><?php if($row->enabled == 1){ echo 'Enabled';} else { echo "Disabled";}?></td>