Commit c0bf77b3 by Tobin

web site title

parent 54f520d6
......@@ -849,5 +849,15 @@ class Api extends CI_Controller {
$this->errorResponse('894','Something went wrong, Please try again');
}
}
function siteSettings(){
try{
$settings = getSettings();
$this->response(array('data'=>array('siteTitle'=>$settings['web_site_title'])));
} catch(Exception $e) {
$this->errorResponse('894','Something went wrong, Please try again');
}
}
}
?>
......@@ -10,7 +10,7 @@ class Api_model extends CI_Model {
try{
$res = array('status'=>0,'message'=>'Something went wrong','code'=>'ER07');
$this->db->select('customer.name,customer.dob,customer.phone,customer.email,customer.profile_image
AS image,customer.gender,users.id AS userId,customer.profile_city AS city,customer.dob,customer.email_verified');
AS image,customer.profile_image AS profile_image_qr,customer.gender,users.id AS userId,customer.profile_city AS city,customer.dob,customer.email_verified');
$this->db->where('users.status',1);
$this->db->where('users.password',md5($data['password']));
$this->db->where('customer.email',$data['email_id']);
......
......@@ -405,7 +405,8 @@ class Validation_model extends CI_Model {
'message' => 'Request Data is null or empty'
)
)
)
),
'siteSettings' => array()
);
public function _consruct(){
......
......@@ -25,7 +25,7 @@
<div class="box box-warning">
<div class="box-header with-border">
<div class="col-md-6">
<h3 class="box-title">Site Details</h3>
<h3 class="box-title">Admin Panel Details</h3>
</div>
<div class="col-md-6" align="right">
<a class="btn btn-sm btn-primary" href="<?= base_url() ?>">Back</a>
......@@ -62,31 +62,25 @@
<label>Admin Email-ID</label>
<input type="email" name="admin_mail_id" class="form-control required" placeholder="Admin Email-ID" value="<?= $data['admin_mail_id'] ?>">
</div>
<div class="form-group col-xs-6">
<label>Web Base URL</label>
<input type="text" name="web_base_url" class="form-control required"
placeholder="Web Base URL" value="<?= $data['web_base_url'] ?>">
</div>
</div>
<div class="form-group col-xs-5">
<div class="form-group">
<label>Site Logo</label>
<div class="col-md-12">
<div class="col-md-3">
<img id="site_logo" src="<?= base_url($data['site_logo']) ?>" onerror="this.src='<?=base_url("assets/images/no_image.png")?>';" height="75" width="75">
</div>
<div class="col-md-9" style="padding-top: 25px;">
<input name="site_logo" type="file" accept="image/*" onchange="setImg(this,'site_logo');" />
<label>Site Logo</label><input name="site_logo" type="file" accept="image/*" onchange="setImg(this,'site_logo');" />
</div>
</div>
</div>
<div class="form-group">
<label>Favicon Icon</label>
<div class="col-md-12">
<div class="col-md-3">
<img id="fav_icon_image" src="<?= base_url($data['fav_icon']) ?>" onerror="this.src='<?=base_url("assets/images/no_image.png")?>';" height="75" width="75">
</div>
<div class="col-md-9" style="padding-top: 25px;">
<label>Favicon Icon</label>
<input name="fav_icon" type="file" accept="image/*" onchange="setImg(this,'fav_icon_image');" />
</div>
</div>
......@@ -95,6 +89,25 @@
</div>
<div class="box-header with-border">
<div class="col-md-6">
<h3 class="box-title">Web Details</h3>
</div>
</div>
<div class="box-body">
<div class="form-group col-xs-12">
<div class="form-group col-xs-4">
<label>Site Title</label>
<input type="text" name="web_site_title" class="form-control required"
placeholder="Web Base URL" value="<?= $data['web_site_title'] ?>">
</div>
<div class="form-group col-xs-6">
<label>Web Base URL</label>
<input type="text" name="web_base_url" class="form-control required"
placeholder="Web Base URL" value="<?= $data['web_base_url'] ?>">
</div>
</div>
</div>
<div class="box-header with-border">
<div class="col-md-6">
<h3 class="box-title">Payment Gateway Details</h3>
</div>
</div>
......@@ -128,11 +141,17 @@
</div>
</div>
<div class="box-body">
<div class="form-group col-xs-7">
<div class="form-group col-xs-12">
<div class="form-group col-xs-12">
<div class="form-group col-xs-8">
<label>FireBase App-ID</label>
<input type="text" name="app_id" class="form-control required" placeholder="App-ID" value="<?= $data['app_id'] ?>">
</div>
<div class="form-group col-xs-4">
<label>Force Update App</label>
<input type="text" name="force_update" class="form-control required" placeholder="Force Update App (0/1)" value="<?=$data['force_update']?>" data-parsley-pattern="^[0,1]+$">
</div>
</div>
<div class="form-group col-xs-7">
<div class="form-group col-xs-6">
<label>IOS Version</label>
<input type="text" name="ios_version" class="form-control required" placeholder="Enter IOS Version" value="<?= $data['ios_version'] ?>">
......@@ -149,10 +168,6 @@
<label>Android Playstore URL</label>
<input type="text" name="android_playstore_url" class="form-control required" placeholder="Enter Android Playstore URL" value="<?= $data['android_playstore_url'] ?>">
</div>
<div class="form-group col-xs-6">
<label>Force Update App</label>
<input type="text" name="force_update" class="form-control required" placeholder="Force Update App (0/1)" value="<?=$data['force_update']?>" data-parsley-pattern="^[0,1]+$">
</div>
</div>
</div>
<div class="box-footer" style="padding-left:46%">
......
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