@@ -236,7 +236,7 @@ |
||
| 236 | 236 | <div class="container"> |
| 237 | 237 | <form method="post" action="<?= base_url()?>email/email_client_get/" enctype="multipart/form-data" name="myform" id="myform" onsubmit="return(regvalidate())"> |
| 238 | 238 | <span style="margin-left:10px; text-align: center;background-color: none;color:#DD191D;"> |
| 239 | - <? if(isset($error) && !empty($error)) { |
|
| 239 | + <? if (isset($error) && ! empty($error)) { |
|
| 240 | 240 | echo $error; |
| 241 | 241 | }?> |
| 242 | 242 | </span> |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 23 | 23 | ############################################################################### |
| 24 | 24 | |
| 25 | -if (!defined('BASEPATH'))
|
|
| 25 | +if ( ! defined('BASEPATH'))
|
|
| 26 | 26 | exit('No direct script access allowed');
|
| 27 | 27 | |
| 28 | 28 | class Charges_form {
|
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | function get_charge_form_fields() {
|
| 34 | - $form['forms'] = array(base_url() . 'charges/periodiccharges_save/', array('id' => 'charges_form', 'method' => 'POST', 'name' => 'charges_form'));
|
|
| 34 | + $form['forms'] = array(base_url().'charges/periodiccharges_save/', array('id' => 'charges_form', 'method' => 'POST', 'name' => 'charges_form'));
|
|
| 35 | 35 | $form['Information'] = array( |
| 36 | 36 | array('', 'HIDDEN', array('name' => 'id'), '', '', '', ''),
|
| 37 | 37 | array('Name', 'INPUT', array('name' => 'description', 'size' => '20', 'class' => "text field medium"), 'trim|required|xss_clean', 'tOOL TIP', 'Please Enter account number'),
|
@@ -52,13 +52,13 @@ discard block |
||
| 52 | 52 | $account_data = $this->CI->session->userdata("accountinfo");
|
| 53 | 53 | $loginid = $account_data['id']; |
| 54 | 54 | |
| 55 | - }else{
|
|
| 55 | + } else {
|
|
| 56 | 56 | $loginid = "0"; |
| 57 | 57 | } |
| 58 | 58 | $form['forms'] = array("", array('id' => "charges_search"));
|
| 59 | 59 | $form['Search'] = array( |
| 60 | 60 | array('Name', 'INPUT', array('name' => 'description[description]', '', 'size' => '20', 'class' => "text field"), '', 'tOOL TIP', '1', 'description[description-string]', '', '', '', 'search_string_type', ''),
|
| 61 | - array('Rate Group', 'pricelist_id', 'SELECT', '', '', 'tOOL TIP', 'Please Enter account number', 'id', 'name', 'pricelists', 'build_dropdown', 'where_arr', array('status'=>0,'reseller_id'=>$loginid)),
|
|
| 61 | + array('Rate Group', 'pricelist_id', 'SELECT', '', '', 'tOOL TIP', 'Please Enter account number', 'id', 'name', 'pricelists', 'build_dropdown', 'where_arr', array('status'=>0, 'reseller_id'=>$loginid)),
|
|
| 62 | 62 | array('Amount', 'INPUT', array('name' => 'charge[charge]', 'value' => '', 'size' => '20', 'class' => "text field"), '', 'Tool tips info', '1', 'charge[charge-integer]', '', '', '', 'search_int_type', ''),
|
| 63 | 63 | array('Billing Cycle', 'sweep_id', 'SELECT', '', '', 'tOOL TIP', 'Please Enter account number', 'id', 'sweep', 'sweeplist', 'build_dropdown', '', ''),
|
| 64 | 64 | array('Status', 'status', 'SELECT', '', '', 'tOOL TIP', 'Please Enter account number', '', '', '', 'set_search_status'),
|
@@ -77,28 +77,28 @@ discard block |
||
| 77 | 77 | function build_charge_list_for_admin() {
|
| 78 | 78 | |
| 79 | 79 | $account_info = $accountinfo = $this->CI->session->userdata('accountinfo');
|
| 80 | - $currency_id=$account_info['currency_id']; |
|
| 81 | - $currency=$this->CI->common->get_field_name('currency', 'currency', $currency_id);
|
|
| 80 | + $currency_id = $account_info['currency_id']; |
|
| 81 | + $currency = $this->CI->common->get_field_name('currency', 'currency', $currency_id);
|
|
| 82 | 82 | |
| 83 | 83 | // array(display name, width, db_field_parent_table,feidname, db_field_child_table,function name); |
| 84 | - $grid_field_arr = json_encode(array(array("<input type='checkbox' name='chkAll' class='ace checkall'/><label class='lbl'></label>", "30", "", "", "", "","","false","center"),
|
|
| 84 | + $grid_field_arr = json_encode(array(array("<input type='checkbox' name='chkAll' class='ace checkall'/><label class='lbl'></label>", "30", "", "", "", "", "", "false", "center"),
|
|
| 85 | 85 | /** |
| 86 | 86 | ASTPP 3.0 |
| 87 | 87 | For DID edit on DID number |
| 88 | 88 | **/ |
| 89 | - array(gettext("Name"), "140", "description", "", "", "","EDITABLE","true","center"),
|
|
| 89 | + array(gettext("Name"), "140", "description", "", "", "", "EDITABLE", "true", "center"),
|
|
| 90 | 90 | /**************************************************/ |
| 91 | - array(gettext("Rate Group"), "140", "pricelist_id", "name", "pricelists", "get_field_name","","true","center"),
|
|
| 92 | - array("Amount($currency)", "125", "charge", "charge", "charge", "convert_to_currency","","true","right"),
|
|
| 93 | - array(gettext("Prorate"), "125", "pro_rate", "pro_rate", "charges", "get_prorate","","true","center"),
|
|
| 94 | - array(gettext("Billing Cycle"), "130", "sweep_id", "sweep", "sweeplist", "get_field_name","","true","center"),
|
|
| 91 | + array(gettext("Rate Group"), "140", "pricelist_id", "name", "pricelists", "get_field_name", "", "true", "center"),
|
|
| 92 | + array("Amount($currency)", "125", "charge", "charge", "charge", "convert_to_currency", "", "true", "right"),
|
|
| 93 | + array(gettext("Prorate"), "125", "pro_rate", "pro_rate", "charges", "get_prorate", "", "true", "center"),
|
|
| 94 | + array(gettext("Billing Cycle"), "130", "sweep_id", "sweep", "sweeplist", "get_field_name", "", "true", "center"),
|
|
| 95 | 95 | /** |
| 96 | 96 | ASTPP 3.0 |
| 97 | 97 | Show Creation date,last_modified date in reseller grid with admin login |
| 98 | 98 | **/ |
| 99 | - array(gettext("Status"), "125", "status", "status", "charges", "get_status","","true","center"),
|
|
| 100 | - array(gettext("Created Date"), "150", "creation_date", "", "", "","","true","center"),
|
|
| 101 | - array(gettext("Modified Date"), "150", "last_modified_date", "", "", "","","true","center"),
|
|
| 99 | + array(gettext("Status"), "125", "status", "status", "charges", "get_status", "", "true", "center"),
|
|
| 100 | + array(gettext("Created Date"), "150", "creation_date", "", "", "", "", "true", "center"),
|
|
| 101 | + array(gettext("Modified Date"), "150", "last_modified_date", "", "", "", "", "true", "center"),
|
|
| 102 | 102 | /************************************************/ |
| 103 | 103 | /* |
| 104 | 104 | ASTPP 3.0 |
@@ -114,8 +114,8 @@ discard block |
||
| 114 | 114 | /********************************************/ |
| 115 | 115 | |
| 116 | 116 | function build_grid_buttons() {
|
| 117 | - $buttons_json = json_encode(array(array("Create" , "btn btn-line-warning btn" , "fa fa-plus-circle fa-lg", "button_action", "/charges/periodiccharges_add/", "popup"),
|
|
| 118 | - array("Delete", "btn btn-line-danger","fa fa-times-circle fa-lg", "button_action", "/charges/periodiccharges_delete_multiple/")
|
|
| 117 | + $buttons_json = json_encode(array(array("Create", "btn btn-line-warning btn", "fa fa-plus-circle fa-lg", "button_action", "/charges/periodiccharges_add/", "popup"),
|
|
| 118 | + array("Delete", "btn btn-line-danger", "fa fa-times-circle fa-lg", "button_action", "/charges/periodiccharges_delete_multiple/")
|
|
| 119 | 119 | )); |
| 120 | 120 | return $buttons_json; |
| 121 | 121 | } |
@@ -123,15 +123,15 @@ discard block |
||
| 123 | 123 | function build_charges_list_for_customer($accountid, $accounttype) {
|
| 124 | 124 | |
| 125 | 125 | $account_info = $accountinfo = $this->CI->session->userdata('accountinfo');
|
| 126 | - $currency_id=$account_info['currency_id']; |
|
| 127 | - $currency=$this->CI->common->get_field_name('currency', 'currency', $currency_id);
|
|
| 126 | + $currency_id = $account_info['currency_id']; |
|
| 127 | + $currency = $this->CI->common->get_field_name('currency', 'currency', $currency_id);
|
|
| 128 | 128 | |
| 129 | - $grid_field_arr = json_encode(array(array("Name", "140", "description", "", "", "","","true","center"),
|
|
| 130 | - array("Amount($currency)", "140", "charge", "charge", "charge", "convert_to_currency","","true","right"),
|
|
| 131 | - array("Prorate", "125", "pro_rate", "pro_rate", "charges", "get_prorate","","true","center"),
|
|
| 132 | - array("Billing Cycle", "170", "sweep_id", "sweep", "sweeplist", "get_field_name","","true","center"),
|
|
| 133 | - array("Created Date", "150", "creation_date", "", "", "","","true","center"),
|
|
| 134 | - array("Modified Date", "150", "last_modified_date", "", "", "","","true","center"),
|
|
| 129 | + $grid_field_arr = json_encode(array(array("Name", "140", "description", "", "", "", "", "true", "center"),
|
|
| 130 | + array("Amount($currency)", "140", "charge", "charge", "charge", "convert_to_currency", "", "true", "right"),
|
|
| 131 | + array("Prorate", "125", "pro_rate", "pro_rate", "charges", "get_prorate", "", "true", "center"),
|
|
| 132 | + array("Billing Cycle", "170", "sweep_id", "sweep", "sweeplist", "get_field_name", "", "true", "center"),
|
|
| 133 | + array("Created Date", "150", "creation_date", "", "", "", "", "true", "center"),
|
|
| 134 | + array("Modified Date", "150", "last_modified_date", "", "", "", "", "true", "center"),
|
|
| 135 | 135 | array("Action", "150", "", "", "", array("DELETE" => array("url" => "accounts/".$accounttype."_subscription_action/delete/$accountid/$accounttype/", "mode" => "single")))
|
| 136 | 136 | )); |
| 137 | 137 | return $grid_field_arr; |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | <div class="col-md-12"> |
| 17 | 17 | <div class="w-box"> |
| 18 | 18 | <span style="margin-left:10px; text-align: center;background-color: none;color:#1c8400;"> |
| 19 | - <? if(isset($error) && !empty($error)) { |
|
| 19 | + <? if (isset($error) && ! empty($error)) { |
|
| 20 | 20 | echo $error; |
| 21 | 21 | }?> |
| 22 | 22 | </span> |
@@ -131,7 +131,7 @@ |
||
| 131 | 131 | </label> |
| 132 | 132 | </div> |
| 133 | 133 | <div class="col-md-3"> |
| 134 | - <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])) { |
|
| 134 | + <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])) { |
|
| 135 | 135 | echo $speeddial[$i]; |
| 136 | 136 | } ?>"> |
| 137 | 137 | </div> |
@@ -206,13 +206,13 @@ |
||
| 206 | 206 | </div> |
| 207 | 207 | </div> |
| 208 | 208 | <?php |
| 209 | - if($account_data['logo'] != ''){ |
|
| 210 | - $logo=$account_data['file']; |
|
| 211 | - }else{ |
|
| 212 | - $logo=$account_data['logo']; |
|
| 209 | + if ($account_data['logo'] != '') { |
|
| 210 | + $logo = $account_data['file']; |
|
| 211 | + } else { |
|
| 212 | + $logo = $account_data['logo']; |
|
| 213 | 213 | } |
| 214 | - if($logo != ''){ |
|
| 215 | - $file_name= base_url()."upload/$logo"; |
|
| 214 | + if ($logo != '') { |
|
| 215 | + $file_name = base_url()."upload/$logo"; |
|
| 216 | 216 | ?> |
| 217 | 217 | |
| 218 | 218 | <div class='col-md-12 no-padding'> |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | <div class="w-section inverse no-padding"> |
| 14 | 14 | <?php echo $form; ?> |
| 15 | 15 | <?php |
| 16 | - if(isset($validation_errors) && $validation_errors != ''){ ?>
|
|
| 16 | + if (isset($validation_errors) && $validation_errors != '') { ?>
|
|
| 17 | 17 | <script> |
| 18 | 18 | var ERR_STR = '<?php echo $validation_errors; ?>'; |
| 19 | 19 | print_error(ERR_STR); |
@@ -29,23 +29,23 @@ |
||
| 29 | 29 | parent::__construct(); |
| 30 | 30 | } |
| 31 | 31 | |
| 32 | - function index(){ |
|
| 32 | + function index() { |
|
| 33 | 33 | $data['account_info'] = $this->session->userdata['accountinfo']; |
| 34 | 34 | $data['username'] = $this->session->userdata('user_name'); |
| 35 | 35 | $data['page_title'] = "Test Mail"; |
| 36 | - $this->load->view('view_newmail',$data); |
|
| 36 | + $this->load->view('view_newmail', $data); |
|
| 37 | 37 | } |
| 38 | - function customer_mail_result($flag=FALSE){ |
|
| 38 | + function customer_mail_result($flag = FALSE) { |
|
| 39 | 39 | $account_info = $this->session->userdata['accountinfo']; |
| 40 | 40 | $post_array = $this->input->post(); |
| 41 | - $post_array['accountid']=$account_info['id']; |
|
| 42 | - $post_array['history_id']=0; |
|
| 43 | - $post_array['email']=$post_array['to']; |
|
| 41 | + $post_array['accountid'] = $account_info['id']; |
|
| 42 | + $post_array['history_id'] = 0; |
|
| 43 | + $post_array['email'] = $post_array['to']; |
|
| 44 | 44 | unset($post_array['to']); |
| 45 | - $this->email_lib->send_email($post_array,$post_array,'','',0,0); |
|
| 45 | + $this->email_lib->send_email($post_array, $post_array, '', '', 0, 0); |
|
| 46 | 46 | $this->thanks(); |
| 47 | 47 | } |
| 48 | - function thanks(){ |
|
| 48 | + function thanks() { |
|
| 49 | 49 | $this->load->view('view_mail_response'); |
| 50 | 50 | } |
| 51 | 51 | |
@@ -9,15 +9,15 @@ |
||
| 9 | 9 | */ |
| 10 | 10 | |
| 11 | 11 | $astpp_config = parse_ini_file("/var/lib/astpp/astpp-config.conf"); |
| 12 | -$config['SERVER_NAME'] = $astpp_config['base_url']; // Your web site url |
|
| 13 | -$config['CRON_TIME_LIMIT'] = 0; // 0 = no time limit |
|
| 14 | -$config['argv'] = array("LowBalance"=>"lowbalance/low_balance", |
|
| 12 | +$config['SERVER_NAME'] = $astpp_config['base_url']; // Your web site url |
|
| 13 | +$config['CRON_TIME_LIMIT'] = 0; // 0 = no time limit |
|
| 14 | +$config['argv'] = array("LowBalance"=>"lowbalance/low_balance", |
|
| 15 | 15 | "Lowcredit"=>"lowcreditlimit/low_creditlimit", |
| 16 | 16 | "UpdateBalance" => "updateBalance/GetUpdateBalance", |
| 17 | 17 | "CurrencyUpdate" => "currencyupdate/update_currency", |
| 18 | 18 | "GenerateInvoice" => "generateInvoice/getInvoiceData", |
| 19 | 19 | "FeedBack"=>"feedback/customer_feedback_result/TRUE", |
| 20 | 20 | "BroadcastEmail" => "broadcastemail/broadcast_email"); |
| 21 | -$config['CRON_BETA_MODE'] = false; // Beta Mode (useful for blocking submissions for testing) |
|
| 21 | +$config['CRON_BETA_MODE'] = false; // Beta Mode (useful for blocking submissions for testing) |
|
| 22 | 22 | |
| 23 | 23 | ?> |
@@ -21,13 +21,13 @@ discard block |
||
| 21 | 21 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 22 | 22 | ############################################################################### |
| 23 | 23 | |
| 24 | -if (!defined('BASEPATH')) |
|
| 24 | +if ( ! defined('BASEPATH')) |
|
| 25 | 25 | exit('No direct script access allowed'); |
| 26 | 26 | |
| 27 | 27 | /** |
| 28 | 28 | * Dynamically build forms for display |
| 29 | 29 | */ |
| 30 | -class locale_Menu{ |
|
| 30 | +class locale_Menu { |
|
| 31 | 31 | |
| 32 | 32 | function __construct($library_name = '') { |
| 33 | 33 | |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | $this->CI->load->model('db_model'); |
| 36 | 36 | $this->CI->load->library('email'); |
| 37 | 37 | $this->CI->load->library('session'); |
| 38 | - $current_locale=$this->CI->session->userdata('user_language'); |
|
| 38 | + $current_locale = $this->CI->session->userdata('user_language'); |
|
| 39 | 39 | putenv("LC_ALL=$current_locale"); |
| 40 | 40 | setlocale(LC_ALL, $current_locale); |
| 41 | 41 | bindtextdomain(WEBSITE_DOMAIN, FCPATH.'/application/modules/dashboard/language'); |