Commit e9769db3 by Teeradone Darunnat

teeradone

parent 11362870
...@@ -177,7 +177,7 @@ class UsersController extends AppController { ...@@ -177,7 +177,7 @@ class UsersController extends AppController {
$dateNow = $today->i18nFormat('yyyy-MM-dd HH:mm:ss'); $dateNow = $today->i18nFormat('yyyy-MM-dd HH:mm:ss');
$hasher = new DefaultPasswordHasher(); $hasher = new DefaultPasswordHasher();
$firstname = $this->request->data['firstname']; $firstname = $this->request->data['firstname'];
// $phone_no = $this->request->data['phone_no']; // $moblie_no = $this->request->data['moblie_no'];
$lastname = $this->request->data['lastname']; $lastname = $this->request->data['lastname'];
$master_country_id = $this->request->data['master_country_id']; $master_country_id = $this->request->data['master_country_id'];
$master_province_id = $this->request->data['master_province_id']; $master_province_id = $this->request->data['master_province_id'];
......
...@@ -92,7 +92,7 @@ ...@@ -92,7 +92,7 @@
<div class="form-group has-feedback"> <div class="form-group has-feedback">
<div class="col-md-12"> <div class="col-md-12">
<label class="label-text-sub"><?php echo __('Phone Number (Mobile)');?><em>* </em></label> <label class="label-text-sub"><?php echo __('Phone Number (Mobile)');?><em>* </em></label>
<input type="text" name="phone_no" id="phone_no" onkeypress="check_phone();" value="" maxlength="10" placeholder="000-000-0000" class="mask form-control-reg border-bottom-from"> <input type="text" name="moblie_no" id="moblie_no" onkeypress="check_phone();" value="" maxlength="10" placeholder="000-000-0000" class="mask form-control-reg border-bottom-from">
</div> </div>
</div> </div>
</div> </div>
...@@ -294,12 +294,12 @@ ...@@ -294,12 +294,12 @@
return false; return false;
} }
var phone_no = document.getElementById("phone_no").value; var moblie_no = document.getElementById("moblie_no").value;
if (phone_no == null || phone_no == "") { if (moblie_no == null || moblie_no == "") {
alert("Please enter your phone number."); alert("Please enter your phone number.");
return false; return false;
} }
if(document.getElementById("phone_no").value.length != 10) if(document.getElementById("moblie_no").value.length != 10)
{ {
alert('Please enter a 10 digit phone number.'); alert('Please enter a 10 digit phone number.');
return false; return false;
......
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 sign in to comment