Example #1
0
//公共文件
include_once "../global.php";
//包含底层模型
include_once 'xjt_model.php';
//校捷通公共文件
include_once "xjt_global.php";
$mod = request_var('mod', '');
$act = request_var('act', '');
if ($mod == 'changeaccmobile') {
    $msg = '';
    if ($act == 'submit') {
        $soap = new Soap_xjt();
        //创建接口对象
        $newMobile = request_var('newmobile', '');
        if (preg_match('/^1[0-9]{10}$/', $newMobile)) {
            $result = $soap->changeAccMobile($userData['m_account'], $newMobile);
            if ($result) {
                message_box('您的找回密码手机号已经修改', XJT, go_to(array('/xjt' => '返回')));
                exit;
            } else {
                $msg = '';
            }
        } else {
            $msg = '您输入手机号格式不符,请输入正确的手机号';
        }
    }
    $mobile = request_var('mobile', '');
    $smarty->assign('msg', $msg);
    $smarty->assign('oldmobile', $mobile);
    $smarty->display('xjt/changeaccmobile.tpl');
} else {