|
@@ 67-71 (lines=5) @@
|
| 64 |
|
} else { |
| 65 |
|
$val = 'accounts.email'; |
| 66 |
|
$account_val='accounts.number'; |
| 67 |
|
if (common_model::$global_config['system_config']['opensips'] == 0) { |
| 68 |
|
$sip_device = array('Create Opensips Device', 'opensips_device_flag', 'SELECT', '', '', 'tOOL TIP', 'Please Enter account number', '', '', '', 'set_prorate'); |
| 69 |
|
} else { |
| 70 |
|
$sip_device = array('Create SIP Device', 'sip_device_flag', 'SELECT', '', '', 'tOOL TIP', 'Please Enter account number', '', '', '', 'set_prorate'); |
| 71 |
|
} |
| 72 |
|
$account = array('Account', 'INPUT',$params, 'required|integer|greater_than[0]|is_unique[' . $account_val . ']', 'tOOL TIP', '', '<i style="cursor:pointer; font-size: 17px; padding-left:10px; padding-top:6px;color: #1bcb61;" title="Generate Account" class="change_number fa fa-refresh" ></i>'); |
| 73 |
|
$password = array('Password', 'INPUT', array('name' => 'password', 'value' => $password, 'size' => '20', 'class' => "text field medium", 'id' => 'password'), 'required|', 'tOOL TIP', '', '<i style="cursor:pointer; font-size: 17px; padding-left:10px; padding-top:6px;color: #1bcb61;" title="Reset Password" class="change_pass fa fa-refresh" ></i>'); |
| 74 |
|
$balance = array('Balance', 'INPUT', array('name' => 'balance', 'size' => '20','class' => "text field medium"), '', 'tOOL TIP', ''); |
|
@@ 161-165 (lines=5) @@
|
| 158 |
|
$loginid = $account_data['id']; |
| 159 |
|
} else { |
| 160 |
|
$loginid = "0"; |
| 161 |
|
if (common_model::$global_config['system_config']['opensips'] == 0) { |
| 162 |
|
$opensips_device = array(gettext('Create Opensips Device'), 'opensips_device_flag', 'SELECT', '', '', 'tOOL TIP', 'Please Enter account number', '', '', '', 'custom_status'); |
| 163 |
|
} else { |
| 164 |
|
$sip_device = array(gettext('Create SIP Device'), 'sip_device_flag', 'SELECT', '', '', 'tOOL TIP', 'Please Enter account number', '', '', '', 'custom_status'); |
| 165 |
|
} |
| 166 |
|
} |
| 167 |
|
$form['forms'] = array(base_url() . 'accounts/customer_bulk_save/', array("id" => "customer_bulk_form", "name" => "customer_bulk_form")); |
| 168 |
|
$form[gettext('General Details')] = array( |