Commit 396f89b9 by Jansa Jose

Merge branch 'jansa'

parents 84b44f0a 10425309
...@@ -30,7 +30,6 @@ class Settings extends CI_Controller { ...@@ -30,7 +30,6 @@ class Settings extends CI_Controller {
$updateArray['site_title'] = encrypt_data($updateArray['smtp_host']); $updateArray['site_title'] = encrypt_data($updateArray['smtp_host']);
$updateArray['smtp_username'] = encrypt_data($updateArray['smtp_username']); $updateArray['smtp_username'] = encrypt_data($updateArray['smtp_username']);
$updateArray['smtp_password'] = encrypt_data($updateArray['smtp_password']); $updateArray['smtp_password'] = encrypt_data($updateArray['smtp_password']);
$updateArray['ipok_fee'] = encrypt_data($updateArray['ipok_fee']);
$result = $this->Settings_model->update_sitetitle($updateArray); $result = $this->Settings_model->update_sitetitle($updateArray);
if($result){ if($result){
$this->session->set_flashdata('message', array('message' => 'Successfully Changed', 'title' => 'Success !', 'class' => 'success')); $this->session->set_flashdata('message', array('message' => 'Successfully Changed', 'title' => 'Success !', 'class' => 'success'));
......
...@@ -5658,14 +5658,14 @@ print_r(date('H:i',$ms));exit();*/ ...@@ -5658,14 +5658,14 @@ print_r(date('H:i',$ms));exit();*/
} }
/* public function encrypt_data(){ public function encrypt_data(){
$data = 'Leg fracture'; $data = '20';
$new = encrypt_data($data); $new = encrypt_data($data);
$neww = decrypt_data($new); $neww = decrypt_data($new);
print_r($new);echo"<br>"; print_r($new);echo"<br>";
print_r($neww); print_r($neww);
exit(); exit();
}*/ }
public function set_prescriptions(){ public function set_prescriptions(){
header('Content-type: application/json'); header('Content-type: application/json');
......
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
<div class="row"> <div class="row">
<div class="form-group col-xs-4"> <div class="form-group col-xs-4">
<br><label>IPOK Fee(in %)</label> <br><label>IPOK Fee(in %)</label>
<?php $ipok_fee =decrypt_data($data['ipok_fee']); ?> <?php $ipok_fee =$data['ipok_fee']; ?>
<input type="text" name="ipok_fee" class="form-control required" placeholder="Enter IPOK Fee" value="<?php echo $ipok_fee;?>"> <input type="text" name="ipok_fee" class="form-control required" placeholder="Enter IPOK Fee" value="<?php echo $ipok_fee;?>">
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment