| @@ 43-48 (lines=6) @@ | ||
| 40 | $uname_user = $this->CI->common->find_uniq_rendno('10', 'number', 'accounts'); |
|
| 41 | $password = $this->CI->common->generate_password(); |
|
| 42 | $logintype = $this->CI->session->userdata('logintype'); |
|
| 43 | if ($logintype == 1 || $logintype == 5) { |
|
| 44 | $account_data = $this->CI->session->userdata("accountinfo"); |
|
| 45 | $loginid = $account_data['id']; |
|
| 46 | } else { |
|
| 47 | $loginid = "0"; |
|
| 48 | } |
|
| 49 | $sip_device = null; |
|
| 50 | $opensips_device = null; |
|
| 51 | if (!$entity_type) { |
|
| @@ 235-240 (lines=6) @@ | ||
| 232 | $uname = $this->CI->common->find_uniq_rendno(common_model::$global_config['system_config']['cardlength'], 'number', 'accounts'); |
|
| 233 | $password = $this->CI->common->generate_password(); |
|
| 234 | $params=array('name' => 'number', 'value' => $uname, 'size' => '20', 'class' => "text field medium", 'id' => 'number','readonly'=>true); |
|
| 235 | if ($logintype == 1 || $logintype == 5) { |
|
| 236 | $account_data = $this->CI->session->userdata("accountinfo"); |
|
| 237 | $loginid = $account_data['id']; |
|
| 238 | } else { |
|
| 239 | $loginid = "0"; |
|
| 240 | } |
|
| 241 | if ($id > 0) { |
|
| 242 | $val = 'accounts.email.' . $id; |
|
| 243 | $account_val='accounts.number.'.$id; |
|
| @@ 51-57 (lines=7) @@ | ||
| 48 | ||
| 49 | function get_charges_search_form() {
|
|
| 50 | $logintype = $this->CI->session->userdata('logintype');
|
|
| 51 | if ($logintype == 1 || $logintype == 5) {
|
|
| 52 | $account_data = $this->CI->session->userdata("accountinfo");
|
|
| 53 | $loginid = $account_data['id']; |
|
| 54 | ||
| 55 | }else{
|
|
| 56 | $loginid = "0"; |
|
| 57 | } |
|
| 58 | $form['forms'] = array("", array('id' => "charges_search"));
|
|
| 59 | $form['Search'] = array( |
|
| 60 | array('Name', 'INPUT', array('name' => 'description[description]', '', 'size' => '20', 'class' => "text field"), '', 'tOOL TIP', '1', 'description[description-string]', '', '', '', 'search_string_type', ''),
|
|
| @@ 152-158 (lines=7) @@ | ||
| 149 | ||
| 150 | function build_list_for_email_client_area(){
|
|
| 151 | $logintype = $this->CI->session->userdata('logintype');
|
|
| 152 | if ($logintype == 1 || $logintype == 5) {
|
|
| 153 | $account_data = $this->CI->session->userdata("accountinfo");
|
|
| 154 | $loginid = $account_data['id']; |
|
| 155 | ||
| 156 | }else{
|
|
| 157 | $loginid = "0"; |
|
| 158 | } |
|
| 159 | $form['forms'] = array(base_url() . 'email/email_client_area/', array('id' => 'commission_form', 'method' => 'POST', 'name' => 'commission_form'));
|
|
| 160 | $form['Filter'] = array( |
|
| 161 | array('Rate Group', 'pricelist_id', 'SELECT', '',array("name"=>"pricelist_id","rules"=>"required"), 'tOOL TIP', 'Please Enter account number', 'id', 'name', 'pricelists', 'build_dropdown', 'where_arr', array("status" => "0","reseller_id" => $loginid)),
|
|
| @@ 347-353 (lines=7) @@ | ||
| 344 | $account_data = $this->CI->session->userdata("accountinfo");
|
|
| 345 | $acc_arr= array('Account', 'accountid', 'SELECT', '', '', 'tOOL TIP', 'Please Enter account number', 'id', 'IF(`deleted`=1,concat( first_name, " ", last_name, " ", "(", number, ")^" ),concat( first_name, " ", last_name, " ", "(", number, ")" )) as number', 'accounts', 'build_dropdown_deleted', 'where_arr', array("reseller_id" => $reseller_id,"type"=>"0,1,3"));
|
|
| 346 | $logintype = $this->CI->session->userdata('logintype');
|
|
| 347 | if ($logintype == 1 || $logintype == 5) {
|
|
| 348 | $account_data = $this->CI->session->userdata("accountinfo");
|
|
| 349 | $loginid = $account_data['id']; |
|
| 350 | ||
| 351 | }else{
|
|
| 352 | $loginid = "0"; |
|
| 353 | } |
|
| 354 | if($logintype==0 || $logintype==3){
|
|
| 355 | $acc_arr=null; |
|
| 356 | } |
|