Exemplo n.º 1
0
 public function plugin_custom_post()
 {
     $this->form_validation->set_rules('website_script_plugin_custom', 'Custom Script Plugin');
     if ($this->form_validation->run() === TRUE) {
         $website_script_plugin_custom = $this->input->post('website_script_plugin_custom');
         $SettingList = new SettingList();
         $SettingList->construct(array('construct_Arr' => array(array('keyword_Str' => 'website_script_plugin_custom', 'value_Str' => $website_script_plugin_custom))));
         $SettingList->update(array());
         //送出成功訊息
         $this->load->model('Message');
         $this->Message->show(array('message' => '設定成功', 'url' => 'admin/base/global/global/plugin'));
     } else {
         //送出失敗訊息
         $validation_errors_Str = validation_errors();
         $validation_errors_Str = !empty($validation_errors_Str) ? $validation_errors_Str : '設定錯誤';
         $this->load->model('Message');
         $this->Message->show(array('message' => $validation_errors_Str, 'url' => 'admin/base/global/global/plugin'));
     }
 }
Exemplo n.º 2
0
 public function transfer_post()
 {
     $bank_code_Str = $this->input->post('bank_code_Str', TRUE);
     $bank_account_Str = $this->input->post('bank_account_Str', TRUE);
     $bank_account_name_Str = $this->input->post('bank_account_name_Str', TRUE);
     $bank_account_remark_Str = $this->input->post('bank_account_remark_Str', TRUE);
     $SettingList = new SettingList();
     $SettingList->construct(['construct_Arr' => [['keyword_Str' => 'bank_code', 'value_Str' => $bank_code_Str, 'modelname_Str' => 'shop_transfer'], ['keyword_Str' => 'bank_account', 'value_Str' => $bank_account_Str, 'modelname_Str' => 'shop_transfer'], ['keyword_Str' => 'bank_account_name', 'value_Str' => $bank_account_name_Str, 'modelname_Str' => 'shop_transfer'], ['keyword_Str' => 'bank_account_remark', 'value_Str' => $bank_account_remark_Str, 'modelname_Str' => 'shop_transfer']]]);
     $SettingList->update();
     //送出成功訊息
     $this->load->model('Message');
     $this->Message->show(array('message' => '設定成功', 'url' => 'admin/shop/store/global/transfer'));
 }