Ignore:
Timestamp:
Nov 6, 2014 11:09:26 AM (11 years ago)
Author:
namnd
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pro-violet-viettel/sourcecode/application/modules/admin/controllers/admin_acc.php

    r424 r425  
    9090                        else
    9191                        {
    92                                 if ($this->admin_model->check_exist(array('field'=>'phone','value'=>$input['phone'])))
     92                                if(!preg_match('/[0-9]/', $input['phone'])){
     93                                        $result['errors']['phone_err']="Phone khÃŽng đúng định dạng";
     94                                }else if ($this->admin_model->check_exist(array('field'=>'phone','value'=>$input['phone'])))
    9395                                {
    9496                                        $result['errors']['phone_err']="Số điện thoại đã được sá»­ dụng";
    9597                                }
     98                               
    9699                        }
    97100                        if (strlen($input['passwd'])==0)
Note: See TracChangeset for help on using the changeset viewer.