@@ -22,18 +22,18 @@ discard block |
||
22 | 22 | ############################################################################### |
23 | 23 | |
24 | 24 | if ( ! defined('BASEPATH')) exit('No direct script access allowed'); |
25 | -class User_form{ |
|
25 | +class User_form { |
|
26 | 26 | function __construct($library_name = '') { |
27 | 27 | $this->CI = & get_instance(); |
28 | 28 | } |
29 | 29 | |
30 | 30 | |
31 | -function build_packages_list_for_user(){ |
|
31 | +function build_packages_list_for_user() { |
|
32 | 32 | $grid_field_arr = json_encode(array( |
33 | - array(gettext("Name"), "310", "package_name", "", "", "","","true","center"), |
|
34 | - array(gettext("Rate Group"), "250", "pricelist_id", "name", "pricelists", "get_field_name","","true","center"), |
|
35 | - array(gettext("Included Seconds"), "260", "includedseconds", "", "", "","","true","center"), |
|
36 | - array(gettext("Status"), "160", "status", "status", "status", "get_status","","true","center"), |
|
33 | + array(gettext("Name"), "310", "package_name", "", "", "", "", "true", "center"), |
|
34 | + array(gettext("Rate Group"), "250", "pricelist_id", "name", "pricelists", "get_field_name", "", "true", "center"), |
|
35 | + array(gettext("Included Seconds"), "260", "includedseconds", "", "", "", "", "true", "center"), |
|
36 | + array(gettext("Status"), "160", "status", "status", "status", "get_status", "", "true", "center"), |
|
37 | 37 | )); |
38 | 38 | return $grid_field_arr; |
39 | 39 | } |
@@ -51,22 +51,22 @@ discard block |
||
51 | 51 | |
52 | 52 | function build_emails_list_for_user() { |
53 | 53 | $grid_field_arr = json_encode(array( |
54 | - array(gettext("Date"), "110", "date", "", "", "","","true","center"), |
|
55 | - array(gettext("From"), "170", "from", "", "", "","","true","center"), |
|
56 | - array(gettext("Body"), "550", "body", "", "", "","","true","center"), |
|
57 | - array(gettext("Attachement"), "100", "attachment", "attachment", "attachment", "attachment_icons","","true","center"), |
|
58 | - array(gettext("Status"), "100", "status", "status", "status", "email_status","","true","center"), |
|
54 | + array(gettext("Date"), "110", "date", "", "", "", "", "true", "center"), |
|
55 | + array(gettext("From"), "170", "from", "", "", "", "", "true", "center"), |
|
56 | + array(gettext("Body"), "550", "body", "", "", "", "", "true", "center"), |
|
57 | + array(gettext("Attachement"), "100", "attachment", "attachment", "attachment", "attachment_icons", "", "true", "center"), |
|
58 | + array(gettext("Status"), "100", "status", "status", "status", "email_status", "", "true", "center"), |
|
59 | 59 | )); |
60 | 60 | return $grid_field_arr; |
61 | 61 | } |
62 | - function build_user_emails_search(){ |
|
62 | + function build_user_emails_search() { |
|
63 | 63 | $form['forms'] = array("", array('id' => "user_emails_search")); |
64 | 64 | $form['Search'] = array( |
65 | 65 | array(gettext('From Date'), 'INPUT', array('name' => 'date[]', 'id' => 'customer_cdr_from_date', 'size' => '20', |
66 | 66 | 'class' => "text field "), '', 'tOOL TIP', '', 'date[date-date]'), |
67 | 67 | array(gettext('To Date'), 'INPUT', array('name' => 'date[]', 'id' => 'customer_cdr_to_date', 'size' => '20', 'class' => "text field "), '', 'tOOL TIP', '', 'date[date-date]'), |
68 | - array(gettext('From'), 'INPUT', array('name' => 'from[from]', '','id'=>'from', 'size' => '20', 'class' => "text field "), '', 'tOOL TIP', '1', 'from[from-string]', '', '', '', 'search_string_type', ''), |
|
69 | - array(gettext('Body'), 'INPUT', array('name' => 'body[body]', '','id'=>'body', 'size' => '20', 'class' => "text field "), '', 'tOOL TIP', '1', 'body[body-string]', '', '', '', 'search_string_type', ''), |
|
68 | + array(gettext('From'), 'INPUT', array('name' => 'from[from]', '', 'id'=>'from', 'size' => '20', 'class' => "text field "), '', 'tOOL TIP', '1', 'from[from-string]', '', '', '', 'search_string_type', ''), |
|
69 | + array(gettext('Body'), 'INPUT', array('name' => 'body[body]', '', 'id'=>'body', 'size' => '20', 'class' => "text field "), '', 'tOOL TIP', '1', 'body[body-string]', '', '', '', 'search_string_type', ''), |
|
70 | 70 | array('', 'HIDDEN', 'ajax_search', '1', '', '', ''), |
71 | 71 | array('', 'HIDDEN', 'advance_search', '1', '', '', '') |
72 | 72 | ); |
@@ -77,28 +77,28 @@ discard block |
||
77 | 77 | |
78 | 78 | function get_userprofile_form_fields($dataArr = false) { |
79 | 79 | if ($dataArr['id'] > 0) |
80 | - $val = 'accounts.email.' . $dataArr['id']; |
|
80 | + $val = 'accounts.email.'.$dataArr['id']; |
|
81 | 81 | else |
82 | 82 | $val = 'accounts.email'; |
83 | 83 | $uname = $this->CI->common->find_uniq_rendno(common_model::$global_config['system_config']['cardlength'], 'number', 'accounts'); |
84 | 84 | $password = $this->CI->common->generate_password(); |
85 | - $logintype=$this->CI->session->userdata('logintype'); |
|
86 | - $pin = ($logintype == '0')?array(gettext('Pin'), 'INPUT', array('name' => 'pin', 'size' => '20', 'class' => "text field medium"), 'tOOL TIP', ''):array('', 'HIDDEN', array('name' => 'Pin'), '', '', '', ''); |
|
87 | - $form['forms'] = array(base_url() . 'user/user_myprofile/', array("id" => "user_form", "name" => "user_form")); |
|
85 | + $logintype = $this->CI->session->userdata('logintype'); |
|
86 | + $pin = ($logintype == '0') ? array(gettext('Pin'), 'INPUT', array('name' => 'pin', 'size' => '20', 'class' => "text field medium"), 'tOOL TIP', '') : array('', 'HIDDEN', array('name' => 'Pin'), '', '', '', ''); |
|
87 | + $form['forms'] = array(base_url().'user/user_myprofile/', array("id" => "user_form", "name" => "user_form")); |
|
88 | 88 | |
89 | 89 | $form['User Profile'] = array( |
90 | 90 | array('', 'HIDDEN', array('name' => 'id'), '', '', '', ''), |
91 | 91 | array('', 'HIDDEN', array('name' => 'type', 'value' => '0'), '', '', ''), |
92 | - array(gettext('Account Number'), 'INPUT', array('name' => 'number', 'value' => $uname, 'size' => '20', 'readonly' => true, 'class' => "text field medium"), '', 'tOOL TIP', 'Please Enter account number'), |
|
92 | + array(gettext('Account Number'), 'INPUT', array('name' => 'number', 'value' => $uname, 'size' => '20', 'readonly' => true, 'class' => "text field medium"), '', 'tOOL TIP', 'Please Enter account number'), |
|
93 | 93 | $pin, |
94 | 94 | array(gettext('Company'), 'INPUT', array('name' => 'company_name', 'size' => '15', 'class' => 'text field medium'), 'trim|xss_clean', 'tOOL TIP', ''), |
95 | - array(gettext('First Name'), 'INPUT', array('name' => 'first_name', 'id' => 'first_name', 'size' => '15', 'class' => "text field medium"), 'trim|required|xss_clean', 'tOOL TIP', 'Please Enter account number'), |
|
96 | - array(gettext('Last Name'), 'INPUT', array('name' => 'last_name', 'size' => '15', 'class' => "text field medium"), 'trim|alpha_dash|xss_clean', 'tOOL TIP', 'Please Enter Password'), |
|
97 | - array(gettext('Telephone 1'), 'INPUT', array('name' => 'telephone_1', 'size' => '15', 'class' => "text field medium"), '', 'tOOL TIP', 'Please Enter Password'), |
|
98 | - array(gettext('Telephone 2'), 'INPUT', array('name' => 'telephone_2', 'size' => '15', 'class' => "text field medium"), '', 'tOOL TIP', 'Please Enter Password'), |
|
99 | - array(gettext('Email'), 'INPUT', array('name' => 'email', 'size' => '50', 'class' => "text field medium"), 'required|valid_email|is_unique[' . $val . ']', 'tOOL TIP', 'Please Enter Password'), |
|
100 | - array(gettext('Address 1'), 'INPUT', array('name' => 'address_1', 'size' => '15', 'class' => "text field medium"), '', 'tOOL TIP', 'Please Enter Password'), |
|
101 | - array(gettext('Address 2'), 'INPUT', array('name' => 'address_2', 'size' => '15', 'class' => "text field medium"), '', 'tOOL TIP', 'Please Enter Password'), |
|
95 | + array(gettext('First Name'), 'INPUT', array('name' => 'first_name', 'id' => 'first_name', 'size' => '15', 'class' => "text field medium"), 'trim|required|xss_clean', 'tOOL TIP', 'Please Enter account number'), |
|
96 | + array(gettext('Last Name'), 'INPUT', array('name' => 'last_name', 'size' => '15', 'class' => "text field medium"), 'trim|alpha_dash|xss_clean', 'tOOL TIP', 'Please Enter Password'), |
|
97 | + array(gettext('Telephone 1'), 'INPUT', array('name' => 'telephone_1', 'size' => '15', 'class' => "text field medium"), '', 'tOOL TIP', 'Please Enter Password'), |
|
98 | + array(gettext('Telephone 2'), 'INPUT', array('name' => 'telephone_2', 'size' => '15', 'class' => "text field medium"), '', 'tOOL TIP', 'Please Enter Password'), |
|
99 | + array(gettext('Email'), 'INPUT', array('name' => 'email', 'size' => '50', 'class' => "text field medium"), 'required|valid_email|is_unique['.$val.']', 'tOOL TIP', 'Please Enter Password'), |
|
100 | + array(gettext('Address 1'), 'INPUT', array('name' => 'address_1', 'size' => '15', 'class' => "text field medium"), '', 'tOOL TIP', 'Please Enter Password'), |
|
101 | + array(gettext('Address 2'), 'INPUT', array('name' => 'address_2', 'size' => '15', 'class' => "text field medium"), '', 'tOOL TIP', 'Please Enter Password'), |
|
102 | 102 | array(gettext('City'), 'INPUT', array('name' => 'city', 'size' => '20', 'class' => "text field medium"), '', 'tOOL TIP', 'Please Enter Password'), |
103 | 103 | array(gettext('Province/State'), 'INPUT', array('name' => 'province', 'size' => '15', 'class' => "text field medium"), '', 'tOOL TIP', 'Please Enter Password'), |
104 | 104 | array(gettext('Zip/Postal Code'), 'INPUT', array('name' => 'postal_code', 'size' => '15', 'class' => "text field medium"), 'trim|xss_clean', 'tOOL TIP', 'Please Enter Password'), |
@@ -111,63 +111,63 @@ discard block |
||
111 | 111 | } |
112 | 112 | |
113 | 113 | function get_userprofile_change_password() { |
114 | - $form['forms'] = array(base_url() . 'user/user_change_password/', array("id" => "customer_alert_threshold", "name" => "user_change_password")); |
|
114 | + $form['forms'] = array(base_url().'user/user_change_password/', array("id" => "customer_alert_threshold", "name" => "user_change_password")); |
|
115 | 115 | $form[gettext('Change Password')] = array( |
116 | 116 | array('', 'HIDDEN', array('name' => 'id'), '', '', '', ''), |
117 | 117 | array(gettext('Old Password'), 'INPUT', array('name' => 'password', 'size' => '20', 'class' => "text field medium", 'id' => 'new_password'), 'required|password_check[accounts]', 'tOOL TIP', '', ''), |
118 | 118 | array(gettext('New Password'), 'INPUT', array('name' => 'new_password', 'size' => '20', 'class' => "text field medium", 'id' => 'new_password'), 'required|', 'tOOL TIP', '', ''), |
119 | - array(gettext('Confirm Password'), 'INPUT', array('name' => 'new_confirm_password', 'size' => '20', 'class' => "text field medium", 'id' => 'password'), "required|matches[new_password]", 'tOOL TIP', '', ''), |
|
119 | + array(gettext('Confirm Password'), 'INPUT', array('name' => 'new_confirm_password', 'size' => '20', 'class' => "text field medium", 'id' => 'password'), "required|matches[new_password]", 'tOOL TIP', '', ''), |
|
120 | 120 | ); |
121 | 121 | $form['button_save'] = array('name' => 'action', 'content' => gettext('Save'), 'value' => 'save', 'type' => 'submit', 'class' => 'btn btn-line-parrot'); |
122 | 122 | return $form; |
123 | 123 | } |
124 | 124 | |
125 | - function build_user_invoices(){ |
|
125 | + function build_user_invoices() { |
|
126 | 126 | $account_info = $accountinfo = $this->CI->session->userdata('accountinfo'); |
127 | - $currency_id=$account_info['currency_id']; |
|
128 | - $currency=$this->CI->common->get_field_name('currency', 'currency', $currency_id); |
|
129 | - $url=($this->CI->session->userdata('logintype')==0 )?"/user/user_invoice_download/":'/invoices/invoice_main_download/'; |
|
130 | - $grid_field_arr = json_encode(array( |
|
131 | - array(gettext("Number"),"110","id","id,'',type","invoices","build_concat_string","","true","center"), |
|
132 | - array(gettext("Type"),"100","id","id,'',type","invoices","build_concat_string","","true","center"), |
|
133 | - array(gettext("Generated Date"),"110","invoice_date","invoice_date","","get_invoice_date","","true","center"), |
|
134 | - array(gettext("From Date"),"100","from_date","from_date","","get_from_date","","true","center"), |
|
135 | - array(gettext("Due Date"),"100","","","","","","true","center"), |
|
136 | - array(gettext("Last Pay Date"),"100","","","","","","true","center"), |
|
137 | - array(gettext("Amount")."($currency)","100","id","id","id","get_invoice_total","","true","right"), |
|
138 | - array(gettext("Outstanding Amount")."<br>($currency)","150","","","","","","true","right"), |
|
139 | - array(gettext("Action"),"140","","","",array( |
|
140 | - "DOWNLOAD"=>array("url"=>$url,"mode"=>"single"), |
|
127 | + $currency_id = $account_info['currency_id']; |
|
128 | + $currency = $this->CI->common->get_field_name('currency', 'currency', $currency_id); |
|
129 | + $url = ($this->CI->session->userdata('logintype') == 0) ? "/user/user_invoice_download/" : '/invoices/invoice_main_download/'; |
|
130 | + $grid_field_arr = json_encode(array( |
|
131 | + array(gettext("Number"), "110", "id", "id,'',type", "invoices", "build_concat_string", "", "true", "center"), |
|
132 | + array(gettext("Type"), "100", "id", "id,'',type", "invoices", "build_concat_string", "", "true", "center"), |
|
133 | + array(gettext("Generated Date"), "110", "invoice_date", "invoice_date", "", "get_invoice_date", "", "true", "center"), |
|
134 | + array(gettext("From Date"), "100", "from_date", "from_date", "", "get_from_date", "", "true", "center"), |
|
135 | + array(gettext("Due Date"), "100", "", "", "", "", "", "true", "center"), |
|
136 | + array(gettext("Last Pay Date"), "100", "", "", "", "", "", "true", "center"), |
|
137 | + array(gettext("Amount")."($currency)", "100", "id", "id", "id", "get_invoice_total", "", "true", "right"), |
|
138 | + array(gettext("Outstanding Amount")."<br>($currency)", "150", "", "", "", "", "", "true", "right"), |
|
139 | + array(gettext("Action"), "140", "", "", "", array( |
|
140 | + "DOWNLOAD"=>array("url"=>$url, "mode"=>"single"), |
|
141 | 141 | )) |
142 | 142 | )); |
143 | 143 | return $grid_field_arr; |
144 | 144 | } |
145 | 145 | function build_user_invoices_search() |
146 | 146 | { |
147 | - $form['forms'] = array("",array('id'=>"user_invoice_search")); |
|
147 | + $form['forms'] = array("", array('id'=>"user_invoice_search")); |
|
148 | 148 | $form['Search'] = array( |
149 | - array(gettext('From Date'), 'INPUT', array('name' => 'from_date[0]','id'=>'invoice_from_date','size' => '20', 'class' => "text field"), '', 'tOOL TIP', '', 'from_date[from_date-date]'), |
|
150 | - array(gettext('To Date'), 'INPUT', array('name' => 'to_date[1]','id'=>'invoice_to_date','size' => '20', 'class' => "text field"), '', 'tOOL TIP', '', 'to_date[to_date-date]'), |
|
149 | + array(gettext('From Date'), 'INPUT', array('name' => 'from_date[0]', 'id'=>'invoice_from_date', 'size' => '20', 'class' => "text field"), '', 'tOOL TIP', '', 'from_date[from_date-date]'), |
|
150 | + array(gettext('To Date'), 'INPUT', array('name' => 'to_date[1]', 'id'=>'invoice_to_date', 'size' => '20', 'class' => "text field"), '', 'tOOL TIP', '', 'to_date[to_date-date]'), |
|
151 | 151 | array(gettext('Amount'), 'INPUT', array('name' => 'amount[amount]', 'value' => '', 'size' => '20', 'class' => "text field "), '', 'Tool tips info', '1', 'amount[amount-string]', '', '', '', 'search_string_type', ''), |
152 | - array(gettext('Generated Date'), 'INPUT', array('name' => 'invoice_date[0]','','size' => '20', 'class' => "text field",'id'=>'invoice_date'), '', 'tOOL TIP', '', 'invoice_date[invoice_date-date]'), |
|
153 | - array('', 'HIDDEN', 'ajax_search','1', '', '', ''), |
|
154 | - array('', 'HIDDEN', 'advance_search','1', '', '', '')); |
|
155 | - $form['button_search'] = array('name' => 'action', 'id'=>"user_invoice_search_btn",'content' => gettext('Search'), 'value' => 'save', 'type' => 'button', 'class' => 'btn btn-line-parrot pull-right'); |
|
156 | - $form['button_reset'] = array('name' => 'action','id'=>"id_reset", 'content' => gettext('Clear'), 'value' => 'cancel', 'type' => 'reset', 'class' => 'btn btn-line-sky pull-right margin-x-10'); |
|
152 | + array(gettext('Generated Date'), 'INPUT', array('name' => 'invoice_date[0]', '', 'size' => '20', 'class' => "text field", 'id'=>'invoice_date'), '', 'tOOL TIP', '', 'invoice_date[invoice_date-date]'), |
|
153 | + array('', 'HIDDEN', 'ajax_search', '1', '', '', ''), |
|
154 | + array('', 'HIDDEN', 'advance_search', '1', '', '', '')); |
|
155 | + $form['button_search'] = array('name' => 'action', 'id'=>"user_invoice_search_btn", 'content' => gettext('Search'), 'value' => 'save', 'type' => 'button', 'class' => 'btn btn-line-parrot pull-right'); |
|
156 | + $form['button_reset'] = array('name' => 'action', 'id'=>"id_reset", 'content' => gettext('Clear'), 'value' => 'cancel', 'type' => 'reset', 'class' => 'btn btn-line-sky pull-right margin-x-10'); |
|
157 | 157 | return $form; |
158 | 158 | } |
159 | 159 | function build_user_charge_history() { |
160 | 160 | $account_info = $accountinfo = $this->CI->session->userdata('accountinfo'); |
161 | - $currency_id=$account_info['currency_id']; |
|
162 | - $currency=$this->CI->common->get_field_name('currency', 'currency', $currency_id); |
|
161 | + $currency_id = $account_info['currency_id']; |
|
162 | + $currency = $this->CI->common->get_field_name('currency', 'currency', $currency_id); |
|
163 | 163 | $grid_field_arr = json_encode(array( |
164 | 164 | array(gettext("Created Date"), "140", "created_date", "", "", ""), |
165 | - array(gettext("Invoice Number"), "120", "created_date", "", "", "","","true","center"), |
|
165 | + array(gettext("Invoice Number"), "120", "created_date", "", "", "", "", "true", "center"), |
|
166 | 166 | array(gettext("Charge Type"), "100", "item_type", "", "", ""), |
167 | - array(gettext("Before Balance")."<br/>($currency)", "120", "before_balance", "before_balance", "before_balance", "convert_to_currency","","true","right"), |
|
168 | - array(gettext("Debit")."<br/>($currency)", "120", "debit", "debit", "debit", "convert_to_currency","","true","right"), |
|
169 | - array(gettext("Credit")."<br/>($currency)", "120", "credit", "credit", "credit", "convert_to_currency","","true","right"), |
|
170 | - array(gettext("After Balance")."<br/>($currency)", "120", "after_balance", "after_balance", "after_balance", "convert_to_currency","","true","right"), |
|
167 | + array(gettext("Before Balance")."<br/>($currency)", "120", "before_balance", "before_balance", "before_balance", "convert_to_currency", "", "true", "right"), |
|
168 | + array(gettext("Debit")."<br/>($currency)", "120", "debit", "debit", "debit", "convert_to_currency", "", "true", "right"), |
|
169 | + array(gettext("Credit")."<br/>($currency)", "120", "credit", "credit", "credit", "convert_to_currency", "", "true", "right"), |
|
170 | + array(gettext("After Balance")."<br/>($currency)", "120", "after_balance", "after_balance", "after_balance", "convert_to_currency", "", "true", "right"), |
|
171 | 171 | array(gettext("Description"), "180", "description", "", "", ""), |
172 | 172 | )); |
173 | 173 | return $grid_field_arr; |
@@ -187,14 +187,14 @@ discard block |
||
187 | 187 | return $form; |
188 | 188 | } |
189 | 189 | |
190 | - function build_user_subscription(){ |
|
190 | + function build_user_subscription() { |
|
191 | 191 | $account_info = $accountinfo = $this->CI->session->userdata('accountinfo'); |
192 | - $currency_id=$account_info['currency_id']; |
|
193 | - $currency=$this->CI->common->get_field_name('currency', 'currency', $currency_id); |
|
192 | + $currency_id = $account_info['currency_id']; |
|
193 | + $currency = $this->CI->common->get_field_name('currency', 'currency', $currency_id); |
|
194 | 194 | $grid_field_arr = json_encode(array( |
195 | - array(gettext("Name"), "335", "description", "", "", "","","true","center"), |
|
196 | - array(gettext("Amount")."($currency)", "335", "charge", "charge", "charge", "convert_to_currency","","true","right"), |
|
197 | - array(gettext("Billing Cycle"), "335", "sweep_id", "sweep", "sweeplist", "get_field_name","","true","center"), |
|
195 | + array(gettext("Name"), "335", "description", "", "", "", "", "true", "center"), |
|
196 | + array(gettext("Amount")."($currency)", "335", "charge", "charge", "charge", "convert_to_currency", "", "true", "right"), |
|
197 | + array(gettext("Billing Cycle"), "335", "sweep_id", "sweep", "sweeplist", "get_field_name", "", "true", "center"), |
|
198 | 198 | )); |
199 | 199 | return $grid_field_arr; |
200 | 200 | } |
@@ -217,20 +217,20 @@ discard block |
||
217 | 217 | |
218 | 218 | function build_user_didlist() { |
219 | 219 | $account_info = $accountinfo = $this->CI->session->userdata('accountinfo'); |
220 | - $currency_id=$account_info['currency_id']; |
|
221 | - $currency=$this->CI->common->get_field_name('currency', 'currency', $currency_id); |
|
220 | + $currency_id = $account_info['currency_id']; |
|
221 | + $currency = $this->CI->common->get_field_name('currency', 'currency', $currency_id); |
|
222 | 222 | $grid_field_arr = json_encode(array( |
223 | - array(gettext("DID"), "105", "number", "", "", "","","true","center"), |
|
224 | - array(gettext("Country"), "90", "country_id", "country", "countrycode", "get_field_name","","true","center"), |
|
225 | - array(gettext("Per Minute<br/>Cost")."($currency)", "90", "cost", "cost", "cost", "convert_to_currency","","true","right"), |
|
226 | - array(gettext("Initial<br/>Increment"), "100", "init_inc", "", "", "","","true","center"), |
|
227 | - array(gettext("Increment"), "100", "inc", "", "", "","","true","center"), |
|
228 | - array(gettext("Setup<br/>Fee")."($currency)", "100", "setup", "setup", "setup", "convert_to_currency","","true","right"), |
|
229 | - array(gettext("Monthly<br/>Fee")."($currency)", "100", "monthlycost", "monthlycost", "monthlycost", "convert_to_currency","","true","right"), |
|
230 | - array(gettext("Call Type"), "105", "call_type", "call_type", "call_type", "get_call_type","","true","center"), |
|
231 | - array(gettext("Destination"), "153", "extensions", "", "", "","","true","center"), |
|
232 | - array(gettext("Status"), "90", "status", "status", "dids", "get_did_status","","true","center"), |
|
233 | - array(gettext("Modified <br/>Date"), "100", "last_modified_date", "last_modified_date", "last_modified_date", "convert_GMT_to","","true","center"), |
|
223 | + array(gettext("DID"), "105", "number", "", "", "", "", "true", "center"), |
|
224 | + array(gettext("Country"), "90", "country_id", "country", "countrycode", "get_field_name", "", "true", "center"), |
|
225 | + array(gettext("Per Minute<br/>Cost")."($currency)", "90", "cost", "cost", "cost", "convert_to_currency", "", "true", "right"), |
|
226 | + array(gettext("Initial<br/>Increment"), "100", "init_inc", "", "", "", "", "true", "center"), |
|
227 | + array(gettext("Increment"), "100", "inc", "", "", "", "", "true", "center"), |
|
228 | + array(gettext("Setup<br/>Fee")."($currency)", "100", "setup", "setup", "setup", "convert_to_currency", "", "true", "right"), |
|
229 | + array(gettext("Monthly<br/>Fee")."($currency)", "100", "monthlycost", "monthlycost", "monthlycost", "convert_to_currency", "", "true", "right"), |
|
230 | + array(gettext("Call Type"), "105", "call_type", "call_type", "call_type", "get_call_type", "", "true", "center"), |
|
231 | + array(gettext("Destination"), "153", "extensions", "", "", "", "", "true", "center"), |
|
232 | + array(gettext("Status"), "90", "status", "status", "dids", "get_did_status", "", "true", "center"), |
|
233 | + array(gettext("Modified <br/>Date"), "100", "last_modified_date", "last_modified_date", "last_modified_date", "convert_GMT_to", "", "true", "center"), |
|
234 | 234 | array(gettext("Action"), "80", "", "", "", array("EDIT" => array("url" => "/user/user_did_edit/", "mode" => "popup"), |
235 | 235 | "DELETE" => array("url" => "/user/user_dids_action/delete/", "mode" => "single"))) |
236 | 236 | )); |
@@ -243,11 +243,11 @@ discard block |
||
243 | 243 | array(gettext('DID'), 'INPUT', array('name' => 'number[number]', '', 'size' => '20', 'class' => "text field"), '', 'tOOL TIP', '1', 'number[number-string]', '', '', '', 'search_string_type', ''), |
244 | 244 | array(gettext('Country'), 'country_id', 'SELECT', '', '', 'tOOL TIP', 'Please Enter account number', 'id', 'country', 'countrycode', 'build_dropdown', '', ''), |
245 | 245 | array(gettext('Initial Increment'), 'INPUT', array('name' => 'init_inc[init_inc]', '', 'size' => '20', 'class' => "text field "), '', 'tOOL TIP', '1', 'init_inc[init_inc-integer]', '', '', '', 'search_int_type', ''), |
246 | - array(gettext('Call Type'), 'call_type', 'SELECT', '', '', 'tOOL TIP', '', '', '', '', 'set_call_type_search', '',''), |
|
246 | + array(gettext('Call Type'), 'call_type', 'SELECT', '', '', 'tOOL TIP', '', '', '', '', 'set_call_type_search', '', ''), |
|
247 | 247 | array(gettext('Destination'), 'INPUT', array('name' => 'extensions[extensions]', '', 'size' => '20', 'class' => "text field"), '', 'tOOL TIP', '1', 'extensions[extensions-string]', '', '', '', 'search_string_type', ''), |
248 | 248 | |
249 | 249 | array(gettext('Status'), 'status', 'SELECT', '', '', 'tOOL TIP', 'Please Enter account number', '', '', '', 'set_search_status', '', ''), |
250 | - array('', 'HIDDEN', 'ajax_search', '1', '', '', ''),array('', 'HIDDEN', 'advance_search', '1', '', '', '') |
|
250 | + array('', 'HIDDEN', 'ajax_search', '1', '', '', ''), array('', 'HIDDEN', 'advance_search', '1', '', '', '') |
|
251 | 251 | ); |
252 | 252 | |
253 | 253 | $form['button_search'] = array('name' => 'action', 'id' => "user_did_search_btn", 'content' => gettext('Search'), 'value' => 'save', 'type' => 'button', 'class' => 'btn btn-line-parrot pull-right'); |
@@ -258,10 +258,10 @@ discard block |
||
258 | 258 | |
259 | 259 | function build_user_ipmap() { |
260 | 260 | $grid_field_arr = json_encode(array( |
261 | - array(gettext("Name"), "240", "name", "", "", "","","true","center"), |
|
262 | - array(gettext("IP"), "240", "ip", "", "", "","","true","center"), |
|
263 | - array(gettext("Prefix"), "220", "prefix", "", "", "","","true","center"), |
|
264 | - array(gettext("Created Date"), "174", "created_date", "created_date", "created_date", "convert_GMT_to","","true","center"), |
|
261 | + array(gettext("Name"), "240", "name", "", "", "", "", "true", "center"), |
|
262 | + array(gettext("IP"), "240", "ip", "", "", "", "", "true", "center"), |
|
263 | + array(gettext("Prefix"), "220", "prefix", "", "", "", "", "true", "center"), |
|
264 | + array(gettext("Created Date"), "174", "created_date", "created_date", "created_date", "convert_GMT_to", "", "true", "center"), |
|
265 | 265 | array(gettext("Action"), "150", "", "", "", array("DELETE" => array("url" => "user/user_ipmap_action/delete/", "mode" => "single"))) |
266 | 266 | )); |
267 | 267 | return $grid_field_arr; |
@@ -281,27 +281,27 @@ discard block |
||
281 | 281 | return $form; |
282 | 282 | } |
283 | 283 | |
284 | - function build_user_sipdevices(){ |
|
284 | + function build_user_sipdevices() { |
|
285 | 285 | $grid_field_arr = json_encode(array( |
286 | - array("<input type='checkbox' name='chkAll' class='ace checkall'/><label class='lbl'></label>", "30", "", "", "", "","","false","center"), |
|
287 | - array(gettext("User Name"), "105", "username", "", "", "","","true","center"), |
|
288 | - array(gettext("Password"), "105", "password", "", "", "","","true","center"), |
|
289 | - array(gettext("Caller Name"), "110", "effective_caller_id_name", "", "", "","","true","center"), |
|
290 | - array(gettext("Caller Number"), "110", "effective_caller_id_number", "", "", "","","true","center"), |
|
291 | - array(gettext("Status"), "125", "status", "", "", "","","true","center"), |
|
292 | - array(gettext("Created Date"), "110", "creation_date", "creation_date", "creation_date", "convert_GMT_to","","true","center"), |
|
293 | - array(gettext("Modified Date"), "130", "last_modified_date", "last_modified_date", "last_modified_date", "convert_GMT_to","","true","center"), |
|
294 | - array(gettext("Voicemail"), "90", "voicemail_enabled", "", "", "","","true","center"), |
|
295 | - array(gettext("Action"), "110", "", "", "", array("EDIT" => array("url" => "/accounts/fssipdevices_action/edit/", "mode" => "single","layout"=>"medium"), |
|
286 | + array("<input type='checkbox' name='chkAll' class='ace checkall'/><label class='lbl'></label>", "30", "", "", "", "", "", "false", "center"), |
|
287 | + array(gettext("User Name"), "105", "username", "", "", "", "", "true", "center"), |
|
288 | + array(gettext("Password"), "105", "password", "", "", "", "", "true", "center"), |
|
289 | + array(gettext("Caller Name"), "110", "effective_caller_id_name", "", "", "", "", "true", "center"), |
|
290 | + array(gettext("Caller Number"), "110", "effective_caller_id_number", "", "", "", "", "true", "center"), |
|
291 | + array(gettext("Status"), "125", "status", "", "", "", "", "true", "center"), |
|
292 | + array(gettext("Created Date"), "110", "creation_date", "creation_date", "creation_date", "convert_GMT_to", "", "true", "center"), |
|
293 | + array(gettext("Modified Date"), "130", "last_modified_date", "last_modified_date", "last_modified_date", "convert_GMT_to", "", "true", "center"), |
|
294 | + array(gettext("Voicemail"), "90", "voicemail_enabled", "", "", "", "", "true", "center"), |
|
295 | + array(gettext("Action"), "110", "", "", "", array("EDIT" => array("url" => "/accounts/fssipdevices_action/edit/", "mode" => "single", "layout"=>"medium"), |
|
296 | 296 | "DELETE" => array("url" => "/accounts/fssipdevices_action/delete/", "mode" => "single"))) |
297 | 297 | )); |
298 | 298 | return $grid_field_arr; |
299 | 299 | } |
300 | 300 | |
301 | - function build_user_sipdevices_search(){ |
|
301 | + function build_user_sipdevices_search() { |
|
302 | 302 | $form['forms'] = array("", array('id' => "user_sipdevices_search")); |
303 | 303 | $form['Search'] = array( |
304 | - array(gettext('Username'), 'INPUT', array('name' => 'username[username]', '', 'size' => '20', 'class' => "text field"), '', 'tOOL TIP', '1', 'username[username-string]', '', '', '', 'search_string_type', ''), |
|
304 | + array(gettext('Username'), 'INPUT', array('name' => 'username[username]', '', 'size' => '20', 'class' => "text field"), '', 'tOOL TIP', '1', 'username[username-string]', '', '', '', 'search_string_type', ''), |
|
305 | 305 | array('', 'HIDDEN', 'ajax_search', '1', '', '', ''), |
306 | 306 | array('', 'HIDDEN', 'advance_search', '1', '', '', ''), |
307 | 307 | ); |
@@ -310,17 +310,17 @@ discard block |
||
310 | 310 | return $form; |
311 | 311 | } |
312 | 312 | |
313 | - function build_user_sipdevices_form($id=''){ |
|
314 | - $val=$id > 0 ? 'sip_devices.username.'.$id : 'sip_devices.username'; |
|
313 | + function build_user_sipdevices_form($id = '') { |
|
314 | + $val = $id > 0 ? 'sip_devices.username.'.$id : 'sip_devices.username'; |
|
315 | 315 | $uname_user = $this->CI->common->find_uniq_rendno('10', '', ''); |
316 | 316 | $password = $this->CI->common->generate_password(); |
317 | - $form['forms'] = array(base_url() . 'user/user_sipdevices_save/', array("id" => "user_sipdevices_form", "name" => "user_sipdevices_form")); |
|
317 | + $form['forms'] = array(base_url().'user/user_sipdevices_save/', array("id" => "user_sipdevices_form", "name" => "user_sipdevices_form")); |
|
318 | 318 | $form[gettext('Device Information')] = array( |
319 | 319 | array('', 'HIDDEN', array('name' => 'id'), '', '', '', ''), |
320 | - array(gettext('Username'), 'INPUT', array('name' => 'fs_username', 'size' => '20', 'value'=>$uname_user,'id'=>'username', 'class' => "text field medium"), 'trim|required|is_unique['.$val.']|xss_clean', 'tOOL TIP', 'Please Enter account number','<i style="color: #1BCB61;font-size: 14px;padding-left: 5px;padding-top: 8px;float: left;" title="Reset Password" class="change_number fa fa-refresh"></i>'), |
|
321 | - array(gettext('Password'), 'INPUT', array('name' => 'fs_password', 'size' => '20', 'value'=>$password ,'id'=>'password','class' => "text field medium"), 'trim|required|xss_clean', 'tOOL TIP', 'Please Enter Password','<i style="color: #1BCB61;font-size: 14px;padding-left: 5px;padding-top: 8px;float: left;" title="Reset Password" class="change_pass fa fa-refresh"></i>'), |
|
322 | - array(gettext('Caller Name'), 'INPUT', array('name' => 'effective_caller_id_name', 'size' => '20', 'class' => "text field medium"), '', 'tOOL TIP', 'Please Enter account number'), |
|
323 | - array(gettext('Caller Number'), 'INPUT', array('name' => 'effective_caller_id_number', 'size' => '20', 'class' => "text field medium"), '', 'tOOL TIP', 'Please Enter account number'), |
|
320 | + array(gettext('Username'), 'INPUT', array('name' => 'fs_username', 'size' => '20', 'value'=>$uname_user, 'id'=>'username', 'class' => "text field medium"), 'trim|required|is_unique['.$val.']|xss_clean', 'tOOL TIP', 'Please Enter account number', '<i style="color: #1BCB61;font-size: 14px;padding-left: 5px;padding-top: 8px;float: left;" title="Reset Password" class="change_number fa fa-refresh"></i>'), |
|
321 | + array(gettext('Password'), 'INPUT', array('name' => 'fs_password', 'size' => '20', 'value'=>$password, 'id'=>'password', 'class' => "text field medium"), 'trim|required|xss_clean', 'tOOL TIP', 'Please Enter Password', '<i style="color: #1BCB61;font-size: 14px;padding-left: 5px;padding-top: 8px;float: left;" title="Reset Password" class="change_pass fa fa-refresh"></i>'), |
|
322 | + array(gettext('Caller Name'), 'INPUT', array('name' => 'effective_caller_id_name', 'size' => '20', 'class' => "text field medium"), '', 'tOOL TIP', 'Please Enter account number'), |
|
323 | + array(gettext('Caller Number'), 'INPUT', array('name' => 'effective_caller_id_number', 'size' => '20', 'class' => "text field medium"), '', 'tOOL TIP', 'Please Enter account number'), |
|
324 | 324 | array(gettext('Status'), 'status', 'SELECT', '', '', 'tOOL TIP', 'Please Select Status', '', '', '', 'set_status'), |
325 | 325 | ); |
326 | 326 | |
@@ -339,7 +339,7 @@ discard block |
||
339 | 339 | } |
340 | 340 | |
341 | 341 | function build_user_animap() { |
342 | - $grid_field_arr = json_encode(array(array(gettext("Caller ID"), "735", "number", "", "", "","","true","center"), |
|
342 | + $grid_field_arr = json_encode(array(array(gettext("Caller ID"), "735", "number", "", "", "", "", "true", "center"), |
|
343 | 343 | array(gettext("Action"), "275", "", "", "", array("DELETE" => array("url" => "user/user_animap_action/delete/", "mode" => "single"))) |
344 | 344 | )); |
345 | 345 | return $grid_field_arr; |
@@ -347,22 +347,22 @@ discard block |
||
347 | 347 | |
348 | 348 | function user_rates_list_buttons() { |
349 | 349 | $buttons_json = json_encode(array( |
350 | - array(gettext("Export CSV"),"btn btn-xing" ,"fa fa-download fa-lg", "button_action", "/user/user_rates_list_export/", 'single') |
|
350 | + array(gettext("Export CSV"), "btn btn-xing", "fa fa-download fa-lg", "button_action", "/user/user_rates_list_export/", 'single') |
|
351 | 351 | )); |
352 | 352 | return $buttons_json; |
353 | 353 | } |
354 | 354 | |
355 | 355 | function user_rates_list() { |
356 | 356 | $account_info = $accountinfo = $this->CI->session->userdata('accountinfo'); |
357 | - $currency_id=$account_info['currency_id']; |
|
358 | - $currency=$this->CI->common->get_field_name('currency', 'currency', $currency_id); |
|
359 | - $grid_field_arr = json_encode(array(array(gettext("Code"), "155", "pattern", "pattern", "", "get_only_numeric_val","","true","center"), |
|
360 | - array(gettext("Destination"), "200", "comment", "", "", "","","true","center"), |
|
361 | - array(gettext("Connect Cost")."($currency)", "200", "connectcost", "", "", "","","true","right"), |
|
362 | - array(gettext("Included Seconds"), "200", "includedseconds", "", "", "","","true","center"), |
|
363 | - array(gettext("Per Minute Cost")."($currency)", "200", "cost", "", "", "","","true","right"), |
|
364 | - array(gettext("Initial Increment"), "130", "init_inc", "", "", "","","true","center"), |
|
365 | - array(gettext("Increment"), "180", "inc", "", "", "","","true","center") |
|
357 | + $currency_id = $account_info['currency_id']; |
|
358 | + $currency = $this->CI->common->get_field_name('currency', 'currency', $currency_id); |
|
359 | + $grid_field_arr = json_encode(array(array(gettext("Code"), "155", "pattern", "pattern", "", "get_only_numeric_val", "", "true", "center"), |
|
360 | + array(gettext("Destination"), "200", "comment", "", "", "", "", "true", "center"), |
|
361 | + array(gettext("Connect Cost")."($currency)", "200", "connectcost", "", "", "", "", "true", "right"), |
|
362 | + array(gettext("Included Seconds"), "200", "includedseconds", "", "", "", "", "true", "center"), |
|
363 | + array(gettext("Per Minute Cost")."($currency)", "200", "cost", "", "", "", "", "true", "right"), |
|
364 | + array(gettext("Initial Increment"), "130", "init_inc", "", "", "", "", "true", "center"), |
|
365 | + array(gettext("Increment"), "180", "inc", "", "", "", "", "true", "center") |
|
366 | 366 | )); |
367 | 367 | return $grid_field_arr; |
368 | 368 | } |
@@ -387,8 +387,8 @@ discard block |
||
387 | 387 | return $form; |
388 | 388 | } |
389 | 389 | |
390 | - function user_alert_threshold(){ |
|
391 | - $form['forms'] = array(base_url() . 'user/user_alert_threshold/', array("id" => "customer_alert_threshold", "name" => "customer_alert_threshold")); |
|
390 | + function user_alert_threshold() { |
|
391 | + $form['forms'] = array(base_url().'user/user_alert_threshold/', array("id" => "customer_alert_threshold", "name" => "customer_alert_threshold")); |
|
392 | 392 | $form[gettext('Low Balance Alert Email')] = array( |
393 | 393 | array('', 'HIDDEN', array('name' => 'id'), '', '', '', ''), |
394 | 394 | array(gettext('Enable Email Alerts ?'), 'notify_flag', 'SELECT', '', '', 'tOOL TIP', '', '', '', '', 'custom_status'), |
@@ -400,34 +400,34 @@ discard block |
||
400 | 400 | } |
401 | 401 | function build_cdrs_report($type) { |
402 | 402 | $account_info = $accountinfo = $this->CI->session->userdata('accountinfo'); |
403 | - $currency_id=$account_info['currency_id']; |
|
404 | - $currency=$this->CI->common->get_field_name('currency', 'currency', $currency_id); |
|
403 | + $currency_id = $account_info['currency_id']; |
|
404 | + $currency = $this->CI->common->get_field_name('currency', 'currency', $currency_id); |
|
405 | 405 | |
406 | - if($type == '0' || $type =='1'){ |
|
407 | - $cost_array=array(gettext("Debit")."($currency)", "140", "debit", "debit", "debit", "convert_to_currency","","true","right"); |
|
406 | + if ($type == '0' || $type == '1') { |
|
407 | + $cost_array = array(gettext("Debit")."($currency)", "140", "debit", "debit", "debit", "convert_to_currency", "", "true", "right"); |
|
408 | 408 | } |
409 | - if($type =='3'){ |
|
410 | - $cost_array=array(gettext("Debit")."($currency)", "140", "cost", "cost", "cost", "convert_to_currency","","true","right"); |
|
409 | + if ($type == '3') { |
|
410 | + $cost_array = array(gettext("Debit")."($currency)", "140", "cost", "cost", "cost", "convert_to_currency", "", "true", "right"); |
|
411 | 411 | } |
412 | 412 | $grid_field_arr = json_encode(array( |
413 | - array(gettext("Date"), "170", "callstart", "callstart", "callstart", "convert_GMT_to","","true","center"), |
|
414 | - array(gettext("Caller ID"), "110", "callerid", "", "", "","","true","center"), |
|
415 | - array(gettext("Called Number"), "160", "callednum", "", "", "","","true","center"), |
|
416 | - array(gettext("Destination"), "160", "notes", "", "", "","","true","center"), |
|
417 | - array(gettext("Duration"), "140", "billseconds", "user_cdrs_report_search", "billseconds", "convert_to_show_in","","true","center"), |
|
413 | + array(gettext("Date"), "170", "callstart", "callstart", "callstart", "convert_GMT_to", "", "true", "center"), |
|
414 | + array(gettext("Caller ID"), "110", "callerid", "", "", "", "", "true", "center"), |
|
415 | + array(gettext("Called Number"), "160", "callednum", "", "", "", "", "true", "center"), |
|
416 | + array(gettext("Destination"), "160", "notes", "", "", "", "", "true", "center"), |
|
417 | + array(gettext("Duration"), "140", "billseconds", "user_cdrs_report_search", "billseconds", "convert_to_show_in", "", "true", "center"), |
|
418 | 418 | $cost_array, |
419 | - array(gettext("Disposition"), "160", "disposition", "", "", "","","true","center"), |
|
420 | - array(gettext("Call Type"), "233", "calltype", "", "", "","","true","center"), |
|
419 | + array(gettext("Disposition"), "160", "disposition", "", "", "", "", "true", "center"), |
|
420 | + array(gettext("Call Type"), "233", "calltype", "", "", "", "", "true", "center"), |
|
421 | 421 | )); |
422 | 422 | return $grid_field_arr; |
423 | 423 | } |
424 | 424 | |
425 | 425 | function build_cdrs_report_search($type) { |
426 | - if($type == '0' || $type =='1'){ |
|
427 | - $cost_array=array(gettext('Debit'), 'INPUT', array('name' => 'debit[debit]', 'value' => '', 'size' => '20', 'class' => "text field "), '', 'Tool tips info', '1', 'debit[debit-integer]', '', '', '', 'search_int_type', ''); |
|
426 | + if ($type == '0' || $type == '1') { |
|
427 | + $cost_array = array(gettext('Debit'), 'INPUT', array('name' => 'debit[debit]', 'value' => '', 'size' => '20', 'class' => "text field "), '', 'Tool tips info', '1', 'debit[debit-integer]', '', '', '', 'search_int_type', ''); |
|
428 | 428 | } |
429 | - if($type =='3'){ |
|
430 | - $cost_array=array(gettext('Debit'), 'INPUT', array('name' => 'cost[cost]', 'value' => '', 'size' => '20', 'class' => "text field "), '', 'Tool tips info', '1', 'cost[cost-integer]', '', '', '', 'search_int_type', ''); |
|
429 | + if ($type == '3') { |
|
430 | + $cost_array = array(gettext('Debit'), 'INPUT', array('name' => 'cost[cost]', 'value' => '', 'size' => '20', 'class' => "text field "), '', 'Tool tips info', '1', 'cost[cost-integer]', '', '', '', 'search_int_type', ''); |
|
431 | 431 | } |
432 | 432 | $form['forms'] = array("", array('id' => "user_cdrs_report_search")); |
433 | 433 | $form['Search'] = array( |
@@ -443,25 +443,25 @@ discard block |
||
443 | 443 | array('', 'HIDDEN', 'ajax_search', '1', '', '', ''), |
444 | 444 | array('', 'HIDDEN', 'advance_search', '1', '', '', '') |
445 | 445 | ); |
446 | - $form['display_in']=array('name' => 'search_in',"id"=>"search_in","function"=>"search_report_in", "content"=>gettext("Display records in"),'label_class' => "search_label col-md-3 no-padding","dropdown_class"=>"form-control","label_style"=>"font-size:13px;","dropdown_style"=>"background: #ddd; width: 21% !important;"); |
|
446 | + $form['display_in'] = array('name' => 'search_in', "id"=>"search_in", "function"=>"search_report_in", "content"=>gettext("Display records in"), 'label_class' => "search_label col-md-3 no-padding", "dropdown_class"=>"form-control", "label_style"=>"font-size:13px;", "dropdown_style"=>"background: #ddd; width: 21% !important;"); |
|
447 | 447 | $form['button_search'] = array('name' => 'action', 'id' => "user_cdr_search_btn", 'content' => gettext('Search'), 'value' => 'save', 'type' => 'button', 'class' => 'btn btn-line-parrot pull-right'); |
448 | 448 | $form['button_reset'] = array('name' => 'action', 'id' => "id_reset", 'content' => gettext('Clear'), 'value' => 'cancel', 'type' => 'reset', 'class' => 'btn btn-line-sky pull-right margin-x-10'); |
449 | 449 | return $form; |
450 | 450 | } |
451 | 451 | function build_cdrs_report_buttons() { |
452 | - $buttons_json = json_encode(array(array(gettext("Export"),"btn btn-xing" ," fa fa-download fa-lg", "button_action", "/user/user_report_export/", 'single'))); |
|
452 | + $buttons_json = json_encode(array(array(gettext("Export"), "btn btn-xing", " fa fa-download fa-lg", "button_action", "/user/user_report_export/", 'single'))); |
|
453 | 453 | return $buttons_json; |
454 | 454 | } |
455 | 455 | |
456 | - function build_user_refill_report(){ |
|
456 | + function build_user_refill_report() { |
|
457 | 457 | $account_info = $accountinfo = $this->CI->session->userdata('accountinfo'); |
458 | - $currency_id=$account_info['currency_id']; |
|
459 | - $currency=$this->CI->common->get_field_name('currency', 'currency', $currency_id); |
|
458 | + $currency_id = $account_info['currency_id']; |
|
459 | + $currency = $this->CI->common->get_field_name('currency', 'currency', $currency_id); |
|
460 | 460 | $grid_field_arr = json_encode(array( |
461 | - array(gettext("Date"), "220", "payment_date", "", "", "","","true","center"), |
|
462 | - array(gettext("Amount")."($currency)", "220", "credit", "credit", "credit", "convert_to_currency","","true","right"), |
|
463 | - array(gettext("Refill By"), "270", "payment_by", "payment_by", "payment_by", "get_refill_by","","true","center"), |
|
464 | - array(gettext("Note"), "300", "notes", "", "", "","","true","center") |
|
461 | + array(gettext("Date"), "220", "payment_date", "", "", "", "", "true", "center"), |
|
462 | + array(gettext("Amount")."($currency)", "220", "credit", "credit", "credit", "convert_to_currency", "", "true", "right"), |
|
463 | + array(gettext("Refill By"), "270", "payment_by", "payment_by", "payment_by", "get_refill_by", "", "true", "center"), |
|
464 | + array(gettext("Note"), "300", "notes", "", "", "", "", "true", "center") |
|
465 | 465 | )); |
466 | 466 | return $grid_field_arr; |
467 | 467 | } |
@@ -481,14 +481,14 @@ discard block |
||
481 | 481 | } |
482 | 482 | |
483 | 483 | function build_user_fund_transfer_form($number, $currency_id, $id) { |
484 | - $form['forms'] = array(base_url() . 'user/user_fund_transfer_save/', array('id' => 'user_fund_transfer_form', 'method' => 'POST','class'=>'build_user_fund_transfer_frm' ,'name' => 'user_fund_transfer_form')); |
|
484 | + $form['forms'] = array(base_url().'user/user_fund_transfer_save/', array('id' => 'user_fund_transfer_form', 'method' => 'POST', 'class'=>'build_user_fund_transfer_frm', 'name' => 'user_fund_transfer_form')); |
|
485 | 485 | $form[gettext('Fund Transfer')] = array( |
486 | 486 | array('', 'HIDDEN', array('name' => 'id', 'value' => $id), '', '', '', ''), |
487 | 487 | array('', 'HIDDEN', array('name' => 'account_currency', 'value' => $currency_id), '', '', ''), |
488 | 488 | array(gettext('From Account'), 'INPUT', array('name' => 'fromaccountid', 'size' => '20', 'value' => $number, 'readonly' => true, 'class' => "text field medium"), 'required', 'tOOL TIP', 'Please Enter account number'), |
489 | 489 | array(gettext('To Account'), 'INPUT', array('name' => 'toaccountid', 'size' => '20', 'class' => "text field medium"), 'trim|required|numeric', 'tOOL TIP', 'Please Enter to account number'), |
490 | - array(gettext('Amount'), 'INPUT', array('name' => 'credit', 'size' => '20', 'class' => "text field medium"), 'trim|required|numeric', 'tOOL TIP', ''), |
|
491 | - array(gettext('Note'), 'TEXTAREA', array('name' => 'notes', 'size' => '20', 'cols' => '63', 'rows' => '5', 'class' => "form-control col-md-5 text field medium",'style'=>'height: 80px;'), '', 'tOOL TIP', '') |
|
490 | + array(gettext('Amount'), 'INPUT', array('name' => 'credit', 'size' => '20', 'class' => "text field medium"), 'trim|required|numeric', 'tOOL TIP', ''), |
|
491 | + array(gettext('Note'), 'TEXTAREA', array('name' => 'notes', 'size' => '20', 'cols' => '63', 'rows' => '5', 'class' => "form-control col-md-5 text field medium", 'style'=>'height: 80px;'), '', 'tOOL TIP', '') |
|
492 | 492 | ); |
493 | 493 | $form['button_save'] = array('name' => 'action', 'content' => 'Transfer', 'value' => gettext('save'), 'id' => "submit", 'type' => 'submit', 'class' => 'btn btn-line-parrot'); |
494 | 494 | return $form; |
@@ -503,10 +503,10 @@ discard block |
||
503 | 503 | } |
504 | 504 | function build_user_opensips() { |
505 | 505 | $grid_field_arr = json_encode(array( |
506 | - array("<input type='checkbox' name='chkAll' class='ace checkall'/><label class='lbl'></label>", "30", "", "", "", "","","false","center"), |
|
507 | - array("Username", "240", "username", "", "", "","","true","center"), |
|
508 | - array("Password", "240", "password", "", "", "","","true","center"), |
|
509 | - array("Domain", "240", "domain", "", "", "","","true","center"), |
|
506 | + array("<input type='checkbox' name='chkAll' class='ace checkall'/><label class='lbl'></label>", "30", "", "", "", "", "", "false", "center"), |
|
507 | + array("Username", "240", "username", "", "", "", "", "true", "center"), |
|
508 | + array("Password", "240", "password", "", "", "", "", "true", "center"), |
|
509 | + array("Domain", "240", "domain", "", "", "", "", "true", "center"), |
|
510 | 510 | array("Action", "200", "", "", "", |
511 | 511 | array("EDIT" => array("url" => 'user/user_opensips_edit/', "mode" => "popup"), |
512 | 512 | "DELETE" => array("url" => 'user/user_opensips_delete/', "mode" => "popup") |
@@ -515,17 +515,17 @@ discard block |
||
515 | 515 | } |
516 | 516 | |
517 | 517 | function build_user_opensips_form($id = false) { |
518 | - $val = $id > 0 ? 'subscriber.username.' . $id : 'subscriber.username'; |
|
518 | + $val = $id > 0 ? 'subscriber.username.'.$id : 'subscriber.username'; |
|
519 | 519 | $uname_user = $this->CI->common->find_uniq_rendno('10', '', ''); |
520 | 520 | $password = $this->CI->common->generate_password(); |
521 | 521 | $accountinfo = $this->CI->session->userdata('accountinfo'); |
522 | - $form['forms'] = array(base_url() . 'user/user_opensips_save/', array("id" => "opensips_form", "name" => "opensips_form")); |
|
522 | + $form['forms'] = array(base_url().'user/user_opensips_save/', array("id" => "opensips_form", "name" => "opensips_form")); |
|
523 | 523 | $form['Opensips Device'] = array( |
524 | 524 | array('', 'HIDDEN', array('name' => 'id'), '', '', '', ''), |
525 | 525 | array('', 'HIDDEN', array('name' => 'accountcode', 'value' =>$accountinfo['number']), '', '', '', ''), |
526 | - array('Username', 'INPUT', array('name' => 'username', 'size' => '20', 'id' => 'username', 'value' => $uname_user, 'class' => "text field medium"), 'trim|required|xss_clean', 'tOOL TIP', 'Please Enter account number', '<i style="cursor:pointer; font-size: 17px; padding-left:10px; padding-top:6px;" title="Reset Password" class="change_number fa fa-refresh"></i>'), |
|
526 | + array('Username', 'INPUT', array('name' => 'username', 'size' => '20', 'id' => 'username', 'value' => $uname_user, 'class' => "text field medium"), 'trim|required|xss_clean', 'tOOL TIP', 'Please Enter account number', '<i style="cursor:pointer; font-size: 17px; padding-left:10px; padding-top:6px;" title="Reset Password" class="change_number fa fa-refresh"></i>'), |
|
527 | 527 | array('Password', 'PASSWORD', array('name' => 'password', 'size' => '20', 'id' => 'password1', 'value' => $password, 'class' => "text field medium"), 'trim|required|xss_clean', 'tOOL TIP', 'Please Enter Password', '<i style="cursor:pointer; font-size: 17px; padding-left:10px; padding-top:6px;" title="Reset Password" class="change_pass fa fa-refresh"></i>'), |
528 | - array('Domain', 'INPUT', array('name' => 'domain', 'size' => '20', 'class' => "text field medium"), '', 'tOOL TIP', 'Please Enter account number'), |
|
528 | + array('Domain', 'INPUT', array('name' => 'domain', 'size' => '20', 'class' => "text field medium"), '', 'tOOL TIP', 'Please Enter account number'), |
|
529 | 529 | array('Status', 'status', 'SELECT', '', '', 'tOOL TIP', 'Please Select Status', '', '', '', 'set_status'), |
530 | 530 | ); |
531 | 531 | $form['button_save'] = array('name' => 'action', 'content' => 'Save', 'value' => 'save', 'type' => 'button', 'id' => 'submit', 'class' => 'btn btn-line-parrot'); |
@@ -545,11 +545,11 @@ discard block |
||
545 | 545 | |
546 | 546 | return $form; |
547 | 547 | } |
548 | - function build_user_did_form(){ |
|
549 | - $form['forms'] = array(base_url() . 'user/user_dids_action/edit/', array("id" => "user_did_form", "name" => "user_did_form")); |
|
548 | + function build_user_did_form() { |
|
549 | + $form['forms'] = array(base_url().'user/user_dids_action/edit/', array("id" => "user_did_form", "name" => "user_did_form")); |
|
550 | 550 | $form['Edit'] = array( |
551 | - array('', 'HIDDEN', array('name' => 'free_didlist'),'', '', '', ''), |
|
552 | - array(gettext('DID'), 'INPUT', array('name' => 'number', 'size' => '20', 'class' => "text field medium","readonly"=>"true"), 'trim|required|is_numeric|xss_clean|integer', 'tOOL TIP', 'Please Enter account number'), |
|
551 | + array('', 'HIDDEN', array('name' => 'free_didlist'), '', '', '', ''), |
|
552 | + array(gettext('DID'), 'INPUT', array('name' => 'number', 'size' => '20', 'class' => "text field medium", "readonly"=>"true"), 'trim|required|is_numeric|xss_clean|integer', 'tOOL TIP', 'Please Enter account number'), |
|
553 | 553 | array(gettext('Call Type'), 'call_type', 'SELECT', '', '', 'tOOL TIP', '', '', '', '', 'set_call_type', ''), |
554 | 554 | array(gettext('Destination'), 'INPUT', array('name' => 'extensions', 'size' => '20', 'class' => "text field medium"), 'trim|required|xss_clean', 'tOOL TIP', 'Please Enter Password'), |
555 | 555 | ); |
@@ -559,31 +559,31 @@ discard block |
||
559 | 559 | } |
560 | 560 | |
561 | 561 | function build_provider_report_buttons() { |
562 | - $buttons_json = json_encode(array(array("Export","btn btn-xing" ," fa fa-download fa-lg", "button_action", "/user/user_provider_cdrreport_export/", 'single'))); |
|
562 | + $buttons_json = json_encode(array(array("Export", "btn btn-xing", " fa fa-download fa-lg", "button_action", "/user/user_provider_cdrreport_export/", 'single'))); |
|
563 | 563 | return $buttons_json; |
564 | 564 | } |
565 | 565 | |
566 | 566 | |
567 | 567 | function build_provider_report($type) { |
568 | 568 | $account_info = $accountinfo = $this->CI->session->userdata('accountinfo'); |
569 | - $currency_id=$account_info['currency_id']; |
|
570 | - $currency=$this->CI->common->get_field_name('currency', 'currency', $currency_id); |
|
569 | + $currency_id = $account_info['currency_id']; |
|
570 | + $currency = $this->CI->common->get_field_name('currency', 'currency', $currency_id); |
|
571 | 571 | |
572 | - if($type == '0' || $type =='1'){ |
|
573 | - $cost_array=array("Debit($currency)", "140", "debit", "debit", "debit", "convert_to_currency","","true","right"); |
|
572 | + if ($type == '0' || $type == '1') { |
|
573 | + $cost_array = array("Debit($currency)", "140", "debit", "debit", "debit", "convert_to_currency", "", "true", "right"); |
|
574 | 574 | } |
575 | - if($type =='3'){ |
|
576 | - $cost_array=array("Cost($currency)", "140", "cost", "cost", "cost", "convert_to_currency","","true","right"); |
|
575 | + if ($type == '3') { |
|
576 | + $cost_array = array("Cost($currency)", "140", "cost", "cost", "cost", "convert_to_currency", "", "true", "right"); |
|
577 | 577 | } |
578 | 578 | $grid_field_arr = json_encode(array( |
579 | - array("Date", "170", "callstart", "callstart", "callstart", "convert_GMT_to","","true","center"), |
|
580 | - array("Caller ID", "110", "callerid", "", "", "","","true","center"), |
|
581 | - array("Called Number", "160", "callednum", "", "", "","","true","center"), |
|
582 | - array("Destination", "160", "notes", "", "", "","","true","center"), |
|
583 | - array("Duration", "140", "billseconds", "user_provider_cdrs_report_search", "billseconds", "convert_to_show_in","","true","center"), |
|
579 | + array("Date", "170", "callstart", "callstart", "callstart", "convert_GMT_to", "", "true", "center"), |
|
580 | + array("Caller ID", "110", "callerid", "", "", "", "", "true", "center"), |
|
581 | + array("Called Number", "160", "callednum", "", "", "", "", "true", "center"), |
|
582 | + array("Destination", "160", "notes", "", "", "", "", "true", "center"), |
|
583 | + array("Duration", "140", "billseconds", "user_provider_cdrs_report_search", "billseconds", "convert_to_show_in", "", "true", "center"), |
|
584 | 584 | $cost_array, |
585 | - array("Disposition", "160", "disposition", "", "", "","","true","center"), |
|
586 | - array("Call Type", "233", "calltype", "", "", "","","true","center"), |
|
585 | + array("Disposition", "160", "disposition", "", "", "", "", "true", "center"), |
|
586 | + array("Call Type", "233", "calltype", "", "", "", "", "true", "center"), |
|
587 | 587 | )); |
588 | 588 | return $grid_field_arr; |
589 | 589 | } |
@@ -591,7 +591,7 @@ discard block |
||
591 | 591 | |
592 | 592 | function build_provider_report_search($type) { |
593 | 593 | |
594 | - $cost_array=array('Cost ', 'INPUT', array('name' => 'cost[cost]', 'value' => '', 'size' => '20', 'class' => "text field "), '', 'Tool tips info', '1', 'cost[cost-integer]', '', '', '', 'search_int_type', ''); |
|
594 | + $cost_array = array('Cost ', 'INPUT', array('name' => 'cost[cost]', 'value' => '', 'size' => '20', 'class' => "text field "), '', 'Tool tips info', '1', 'cost[cost-integer]', '', '', '', 'search_int_type', ''); |
|
595 | 595 | $form['forms'] = array("", array('id' => "user_provider_cdrs_report_search")); |
596 | 596 | $form['Search'] = array( |
597 | 597 | array('From Date', 'INPUT', array('name' => 'callstart[]', 'id' => 'customer_cdr_from_date', 'size' => '20', 'class' => "text field "), '', 'tOOL TIP', '', 'start_date[start_date-date]'), |
@@ -607,7 +607,7 @@ discard block |
||
607 | 607 | array('', 'HIDDEN', 'ajax_search', '1', '', '', ''), |
608 | 608 | array('', 'HIDDEN', 'advance_search', '1', '', '', '') |
609 | 609 | ); |
610 | - $form['display_in']=array('name' => 'search_in',"id"=>"search_in","function"=>"search_report_in", "content"=>"Display records in",'label_class' => "search_label col-md-3 no-padding","dropdown_class"=>"form-control","label_style"=>"font-size:13px;","dropdown_style"=>"background: #ddd; width: 21% !important;"); |
|
610 | + $form['display_in'] = array('name' => 'search_in', "id"=>"search_in", "function"=>"search_report_in", "content"=>"Display records in", 'label_class' => "search_label col-md-3 no-padding", "dropdown_class"=>"form-control", "label_style"=>"font-size:13px;", "dropdown_style"=>"background: #ddd; width: 21% !important;"); |
|
611 | 611 | $form['button_search'] = array('name' => 'action', 'id' => "user_provider_cdr_search_btn", 'content' => 'Search', 'value' => 'save', 'type' => 'button', 'class' => 'btn btn-line-parrot pull-right'); |
612 | 612 | $form['button_reset'] = array('name' => 'action', 'id' => "id_reset", 'content' => 'Clear', 'value' => 'cancel', 'type' => 'reset', 'class' => 'btn btn-line-sky pull-right margin-x-10'); |
613 | 613 | return $form; |
@@ -31,22 +31,22 @@ |
||
31 | 31 | <div class="col-md-12 no-padding color-three border_box"> |
32 | 32 | <div class="pull-left"> |
33 | 33 | <ul class="breadcrumb"> |
34 | - <?php $accountinfo=$this->session->userdata('accountinfo'); |
|
35 | - if($accountinfo['type']==1){ ?> |
|
36 | - <li><a href="<?= base_url() . "user/user_myprofile/"; ?>">My Profile</a></li> |
|
37 | - <?php }else{ ?> |
|
34 | + <?php $accountinfo = $this->session->userdata('accountinfo'); |
|
35 | + if ($accountinfo['type'] == 1) { ?> |
|
36 | + <li><a href="<?= base_url()."user/user_myprofile/"; ?>">My Profile</a></li> |
|
37 | + <?php } else { ?> |
|
38 | 38 | <li><a href="#">Configuration</a></li> |
39 | 39 | <?php } ?> |
40 | 40 | <li class='active'> |
41 | - <a href="<?= base_url() . "user/user_alert_threshold/"; ?>">Alert Threshold</a> |
|
41 | + <a href="<?= base_url()."user/user_alert_threshold/"; ?>">Alert Threshold</a> |
|
42 | 42 | </li> |
43 | 43 | </ul> |
44 | 44 | </div> |
45 | - <?php if($accountinfo['type']==1) { ?> |
|
45 | + <?php if ($accountinfo['type'] == 1) { ?> |
|
46 | 46 | <div class="pull-right"> |
47 | 47 | <ul class="breadcrumb"> |
48 | 48 | <li class="active pull-right"> |
49 | - <a href="<?= base_url() . "user/user_myprofile/"; ?>"> <i class="fa fa-fast-backward" aria-hidden="true"></i> Back</a></li> |
|
49 | + <a href="<?= base_url()."user/user_myprofile/"; ?>"> <i class="fa fa-fast-backward" aria-hidden="true"></i> Back</a></li> |
|
50 | 50 | </ul> |
51 | 51 | </div> |
52 | 52 | <?php }?> |
@@ -34,7 +34,7 @@ |
||
34 | 34 | <div class="col-md-12 no-padding color-three border_box"> |
35 | 35 | <div class="pull-left"> |
36 | 36 | <ul class="breadcrumb"> |
37 | - <li class="active"><a href="<?= base_url() . "user/user_myprofile/";?>"> My Profile </a></li> |
|
37 | + <li class="active"><a href="<?= base_url()."user/user_myprofile/"; ?>"> My Profile </a></li> |
|
38 | 38 | </ul> |
39 | 39 | </div> |
40 | 40 | </div> |
@@ -60,16 +60,16 @@ discard block |
||
60 | 60 | <div class="col-md-12 no-padding color-three border_box"> |
61 | 61 | <div class="pull-left"> |
62 | 62 | <ul class="breadcrumb"> |
63 | - <li><a href="<?= base_url() . "user/user_myprofile/"; ?>">My Profile</a></li> |
|
63 | + <li><a href="<?= base_url()."user/user_myprofile/"; ?>">My Profile</a></li> |
|
64 | 64 | <li class='active'> |
65 | - <a href="<?= base_url() . "user/user_invoice_config/"; ?>">Company Profile</a> |
|
65 | + <a href="<?= base_url()."user/user_invoice_config/"; ?>">Company Profile</a> |
|
66 | 66 | </li> |
67 | 67 | </ul> |
68 | 68 | </div> |
69 | 69 | <div class="pull-right"> |
70 | 70 | <ul class="breadcrumb"> |
71 | 71 | <li class="active pull-right"> |
72 | - <a href="<?= base_url() . "user/user_myprofile/"; ?>"> <i class="fa fa-fast-backward" aria-hidden="true"></i> Back</a></li> |
|
72 | + <a href="<?= base_url()."user/user_myprofile/"; ?>"> <i class="fa fa-fast-backward" aria-hidden="true"></i> Back</a></li> |
|
73 | 73 | </ul> |
74 | 74 | </div> |
75 | 75 | </div> |
@@ -96,8 +96,8 @@ discard block |
||
96 | 96 | <div class='col-md-4 no-padding'><label>Invoice Due Notification:</label></div> |
97 | 97 | <div class='col-md-6'> |
98 | 98 | <select name="invoice_due_notification" value="<?= $account_data['invoice_due_notification'] ?>" class="col-md-12 form-control"> |
99 | - <option value=0 <?=$account_data['invoice_due_notification'] ==0 ? 'selected':''; ?>>Enable</option> |
|
100 | - <option value=1 <?=$account_data['invoice_due_notification'] ==1 ? 'selected':''; ?>>Disable</option> |
|
99 | + <option value=0 <?=$account_data['invoice_due_notification'] == 0 ? 'selected' : ''; ?>>Enable</option> |
|
100 | + <option value=1 <?=$account_data['invoice_due_notification'] == 1 ? 'selected' : ''; ?>>Disable</option> |
|
101 | 101 | </select> |
102 | 102 | </div> |
103 | 103 | </div> |
@@ -111,8 +111,8 @@ discard block |
||
111 | 111 | <div class='col-md-4 no-padding '><label>Invoice Notification:</label></div> |
112 | 112 | <div class='col-md-6'> |
113 | 113 | <select name="invoice_notification" value="<?= $account_data['invoice_notification'] ?>" class="col-md-12 form-control"> |
114 | - <option value=0 <?=$account_data['invoice_notification'] ==0 ? 'selected':''; ?> >Enable</option> |
|
115 | - <option value=1 <?=$account_data['invoice_notification'] ==1 ? 'selected':''; ?> >Disable</option> |
|
114 | + <option value=0 <?=$account_data['invoice_notification'] == 0 ? 'selected' : ''; ?> >Enable</option> |
|
115 | + <option value=1 <?=$account_data['invoice_notification'] == 1 ? 'selected' : ''; ?> >Disable</option> |
|
116 | 116 | </select> |
117 | 117 | </div> |
118 | 118 | </div> |
@@ -198,13 +198,13 @@ discard block |
||
198 | 198 | </div> |
199 | 199 | </div> |
200 | 200 | <?php |
201 | - if($account_data['logo'] != ''){ |
|
202 | - $logo=$account_data['file']; |
|
203 | - }else{ |
|
204 | - $logo=$account_data['logo']; |
|
201 | + if ($account_data['logo'] != '') { |
|
202 | + $logo = $account_data['file']; |
|
203 | + } else { |
|
204 | + $logo = $account_data['logo']; |
|
205 | 205 | } |
206 | - if($logo != ''){ |
|
207 | - $file_name= base_url()."upload/$logo"; |
|
206 | + if ($logo != '') { |
|
207 | + $file_name = base_url()."upload/$logo"; |
|
208 | 208 | ?> |
209 | 209 | |
210 | 210 | <div class='col-md-12 no-padding'> |
@@ -42,22 +42,22 @@ |
||
42 | 42 | <div class="col-md-12 no-padding color-three border_box"> |
43 | 43 | <div class="pull-left"> |
44 | 44 | <ul class="breadcrumb"> |
45 | - <?php $accountinfo=$this->session->userdata('accountinfo'); |
|
46 | - if($accountinfo['type']==1){ ?> |
|
47 | - <li><a href="<?= base_url() . "user/user_myprofile/"; ?>">My Profile</a></li> |
|
48 | - <?php }else{ ?> |
|
45 | + <?php $accountinfo = $this->session->userdata('accountinfo'); |
|
46 | + if ($accountinfo['type'] == 1) { ?> |
|
47 | + <li><a href="<?= base_url()."user/user_myprofile/"; ?>">My Profile</a></li> |
|
48 | + <?php } else { ?> |
|
49 | 49 | <li><a href="#">Billing</a></li> |
50 | 50 | <?php } ?> |
51 | 51 | <li class='active'> |
52 | - <a href="<?= base_url() . "user/user_charges_history/"; ?>">Charges History </a> |
|
52 | + <a href="<?= base_url()."user/user_charges_history/"; ?>">Charges History </a> |
|
53 | 53 | </li> |
54 | 54 | </ul> |
55 | 55 | </div> |
56 | - <?php if($accountinfo['type']==1) { ?> |
|
56 | + <?php if ($accountinfo['type'] == 1) { ?> |
|
57 | 57 | <div class="pull-right"> |
58 | 58 | <ul class="breadcrumb"> |
59 | 59 | <li class="active pull-right"> |
60 | - <a href="<?= base_url() . "user/user_myprofile/"; ?>"> <i class="fa fa-fast-backward" aria-hidden="true"></i> Back</a></li> |
|
60 | + <a href="<?= base_url()."user/user_myprofile/"; ?>"> <i class="fa fa-fast-backward" aria-hidden="true"></i> Back</a></li> |
|
61 | 61 | </ul> |
62 | 62 | </div> |
63 | 63 | <?php }?> |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | |
2 | 2 | <? extend('master.php') ?> |
3 | -<?php error_reporting(E_ERROR);?> |
|
3 | +<?php error_reporting(E_ERROR); ?> |
|
4 | 4 | <? startblock('extra_head') ?> |
5 | 5 | <style> |
6 | 6 | body{ |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | <input type="text" name="gross_amount" id="gross_amount" value="0" class="form-control"> |
83 | 83 | </div> |
84 | 84 | <div class='col-md-7 no-padding'> |
85 | - <label style=" float: left;">Tax Rate: (<?= $paypal_tax;?>%):</label> |
|
85 | + <label style=" float: left;">Tax Rate: (<?= $paypal_tax; ?>%):</label> |
|
86 | 86 | </div> |
87 | 87 | <div class='col-md-5'> |
88 | 88 | <input type="text" name="tax_amount" id="tax_amount" readonly value="0" class="form-control"> |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | <input type="hidden" readonly name="quantity" value="1"> |
112 | 112 | <input type="hidden" readonly name="rm" value="2"> |
113 | 113 | <input type="hidden" readonly name="no_shipping" value="1"> |
114 | - <input type="hidden" readonly name="PHPSESSID" value="<?=session_id();?>"> |
|
114 | + <input type="hidden" readonly name="PHPSESSID" value="<?=session_id(); ?>"> |
|
115 | 115 | <input type="hidden" readonly name="currency_code" value="USD"> |
116 | 116 | <input type="hidden" readonly name="notify_url" value="<?= base_url()?>login/paypal_response/"> |
117 | 117 | <input type="hidden" readonly name="return" value="<?= base_url()?>login/paypal_response/"> |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | |
128 | 128 | <div class="col-md-12 margin-b-10 margin-t-10"> |
129 | 129 | <div style="text-align:center;"> |
130 | - <img src="<?php echo base_url();?>/assets/images/paypal_logo11.png" alt="paypal"> |
|
130 | + <img src="<?php echo base_url(); ?>/assets/images/paypal_logo11.png" alt="paypal"> |
|
131 | 131 | </div> |
132 | 132 | </div> |
133 | 133 |
@@ -52,24 +52,24 @@ |
||
52 | 52 | <div class="col-md-12 no-padding color-three border_box"> |
53 | 53 | <div class="pull-left"> |
54 | 54 | <ul class="breadcrumb"> |
55 | - <?php $accountinfo=$this->session->userdata('accountinfo'); |
|
56 | - if($accountinfo['type']==1){ ?> |
|
57 | - <li><a href="<?= base_url() . "user/user_myprofile/"; ?>">My Profile</a></li> |
|
58 | - <?php }else{ ?> |
|
55 | + <?php $accountinfo = $this->session->userdata('accountinfo'); |
|
56 | + if ($accountinfo['type'] == 1) { ?> |
|
57 | + <li><a href="<?= base_url()."user/user_myprofile/"; ?>">My Profile</a></li> |
|
58 | + <?php } else { ?> |
|
59 | 59 | <li><a href="#">Billing</a></li> |
60 | 60 | <?php } |
61 | 61 | ?> |
62 | 62 | |
63 | 63 | <li class='active'> |
64 | - <a href="<?= base_url() . "user/user_invoices_list/"; ?>">Invoices </a> |
|
64 | + <a href="<?= base_url()."user/user_invoices_list/"; ?>">Invoices </a> |
|
65 | 65 | </li> |
66 | 66 | </ul> |
67 | 67 | </div> |
68 | - <?php if($accountinfo['type']==1) { ?> |
|
68 | + <?php if ($accountinfo['type'] == 1) { ?> |
|
69 | 69 | <div class="pull-right"> |
70 | 70 | <ul class="breadcrumb"> |
71 | 71 | <li class="active pull-right"> |
72 | - <a href="<?= base_url() . "user/user_myprofile/"; ?>"> <i class="fa fa-fast-backward" aria-hidden="true"></i> Back</a></li> |
|
72 | + <a href="<?= base_url()."user/user_myprofile/"; ?>"> <i class="fa fa-fast-backward" aria-hidden="true"></i> Back</a></li> |
|
73 | 73 | </ul> |
74 | 74 | </div> |
75 | 75 | <?php }?> |
@@ -14,16 +14,16 @@ |
||
14 | 14 | <div class="col-md-12 no-padding color-three border_box"> |
15 | 15 | <div class="pull-left"> |
16 | 16 | <ul class="breadcrumb"> |
17 | - <li><a href="<?= base_url() . "user/user_myprofile/"; ?>">My Profile</a></li> |
|
17 | + <li><a href="<?= base_url()."user/user_myprofile/"; ?>">My Profile</a></li> |
|
18 | 18 | <li class='active'> |
19 | - <a href="<?= base_url() . "user/user_packages/"; ?>">Packages</a> |
|
19 | + <a href="<?= base_url()."user/user_packages/"; ?>">Packages</a> |
|
20 | 20 | </li> |
21 | 21 | </ul> |
22 | 22 | </div> |
23 | 23 | <div class="pull-right"> |
24 | 24 | <ul class="breadcrumb"> |
25 | 25 | <li class="active pull-right"> |
26 | - <a href="<?= base_url() . "user/user_myprofile/"; ?>"> <i class="fa fa-fast-backward" aria-hidden="true"></i> Back</a></li> |
|
26 | + <a href="<?= base_url()."user/user_myprofile/"; ?>"> <i class="fa fa-fast-backward" aria-hidden="true"></i> Back</a></li> |
|
27 | 27 | </ul> |
28 | 28 | </div> |
29 | 29 | </div> |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | <ul class="breadcrumb"> |
64 | 64 | <li><a href="#">Configuration</a></li> |
65 | 65 | <li class="active"> |
66 | - <a href="<?= base_url() . "user/user_speeddial/"; ?>"> Speed Dial </a> |
|
66 | + <a href="<?= base_url()."user/user_speeddial/"; ?>"> Speed Dial </a> |
|
67 | 67 | </li> |
68 | 68 | </ul> |
69 | 69 | </div> |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | </label> |
120 | 120 | </div> |
121 | 121 | <div class="col-md-3"> |
122 | - <input class="col-md-2 form-control" name="speed_dial_<?php echo $i; ?>" id="speed_dial_<?php echo $i; ?>" size="16" type="text" value="<?php if (isset($speeddial[$i]) && !empty($speeddial[$i])) { |
|
122 | + <input class="col-md-2 form-control" name="speed_dial_<?php echo $i; ?>" id="speed_dial_<?php echo $i; ?>" size="16" type="text" value="<?php if (isset($speeddial[$i]) && ! empty($speeddial[$i])) { |
|
123 | 123 | echo $speeddial[$i]; |
124 | 124 | } ?>"> |
125 | 125 | </div> |