Ignore:
Timestamp:
Nov 20, 2014 8:58:58 AM (10 years ago)
Author:
quyenla
Message:
 
Location:
pro-violet-viettel/sourcecode/application/modules/admin/controllers
Files:
2 edited

Legend:

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

    r422 r576  
    7575        if (strlen($input['full_name'])==0)
    7676        {
    77             $result['errors'][]="Tên cộng tác viên khÃŽng được để trống";
     77            $result['errors'][]=array("content"=>"Tên cộng tác viên khÃŽng được để trống","field"=>"full_name");
    7878        }
    7979        if (strlen($input['login_name'])==0)
    8080        {
    81             $result['errors'][]="Tên đăng nhập khÃŽng được để trống";
     81            $result['errors'][]=array("content"=>"Tên đăng nhập khÃŽng được để trống","field"=>"login_name");
    8282        }
    8383        else
     
    8585            if ($this->collabolator_model->isExist(array('field'=>'login_name','value'=>$input['login_name'])))
    8686            {
    87                 $result['errors'][]="Tên đăng nhập đã được sá»­ dụng";
     87                $result['errors'][]=array("content"=>"Tên đăng nhập đã được sá»­ dụng","field"=>"login_name");
    8888            }
    8989        }
    9090        if (strlen($input['cellphone'])==0)
    9191        {
    92             $result['errors'][]="Số điện thoại khÃŽng được để trống";
     92            $result['errors'][]=array("content"=>"Số điện thoại khÃŽng được để trống","field"=>"cellphone");
    9393        }
    9494        else
     
    9696            if ($this->collabolator_model->isExist(array('field'=>'cellphone','value'=>$input['cellphone'])))
    9797            {
    98                 $result['errors'][]="Số điện thoại đã được sá»­ dụng";
     98                $result['errors'][]=array("content"=>"Số điện thoại đã được sá»­ dụng","field"=>"cellphone");
    9999            }
    100100        }
    101101        if (strlen($input['passwd'])==0)
    102102        {
    103             $result['errors'][]="Mật khẩu khÃŽng được để trống";
    104         }
    105         if ($input['passwd'] != $input['passwd2'])
    106         {
    107             $result['errors'][]="Mật khẩu khÃŽng trùng nhau";
     103            $result['errors'][]=array("content"=>"Mật khẩu khÃŽng được để trống","field"=>"passwd");
     104        }
     105        else
     106        {
     107            if ($input['passwd'] != $input['passwd2'])
     108            {
     109                $result['errors'][]=array("content"=>"Mật khẩu phải trùng nhau","field"=>"passwd");
     110            }
    108111        }
    109112        if (!isset($result['errors']))
  • pro-violet-viettel/sourcecode/application/modules/admin/controllers/smstemplate.php

    r411 r576  
    7575        if (strlen($input['sms_content'])==0)
    7676        {
    77             $result['errors'][]="Nội dung tin nhắn khÃŽng được để trống";
     77            $result['errors'][]=array("content"=>"Nội dung tin nhắn khÃŽng được để trống","field"=>"sms_content");
    7878        }
    7979        if (strlen($input['sms_reply'])==0)
    8080        {
    81             $result['errors'][]="Tin nhắn trả về khÃŽng được để trống";
     81            $result['errors'][]=array("content"=>"Tin nhắn trả về khÃŽng được để trống","field"=>"sms_reply");
    8282        }
    8383        else
     
    9191             */
    9292        }
     93        if (strlen($input['commandcode'])==0)
     94        {
     95            $result['errors'][]=array("content"=>"Command code khÃŽng được để trống","field"=>"commandcode");
     96        }
    9397        if (strlen($input['service_id'])==0)
    9498        {
    95             $result['errors'][]="Mã dịch vụ khÃŽng được để trống";
     99            $result['errors'][]=array("content"=>"Service id khÃŽng được để trống","field"=>"service_id");
    96100        }
    97101        else
Note: See TracChangeset for help on using the changeset viewer.