<%@ Page Language="C#" AutoEventWireup="true" Inherits="Web.inherits.UserViewPage" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>用户资料修改-<%=WebSiteConfig.SiteTitle%></title>
    <link href="<%path:%>Css/common.css" rel="stylesheet" />
    <link href="<%path:%>Css/user.css" rel="stylesheet" />
    <script src="/Js/jquery-1.8.2.min.js"></script>
    <script src="/Js/data.js"></script>
    <script src="/Js/bx.library.js"></script>
    <script src="/Js/form.js"></script>
    <script src="<%path:%>js/web.js"></script>
</head>
<body>
    <!--head-->
    <%template:_head.html%>
    <!--body-->
    <div class="body main">
        <div class="split">&nbsp;</div>
        <div class="usercenter">
            <div class="left"><%template:_usermenu.html%></div>
            <div class="right">
                <div class="content">
                    <div class="title">
                        <h3>资料修改 <span class="note">(<span class="nonullalert">*</span>为必须填写项)</span></h3>
                    </div>
                    <table class="infoform">
                        <tr>
                            <td class="itemtitle">账号</td>
                            <td class="itemcontent">
                                <%=UserIdentity.Account%>
                            </td>
                            <td class="fielddescription">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td class="itemtitle">用户名称</td>
                            <td class="itemcontent">
                                <input id="UserName" name="UserName" type="text" class="text" value="<%=UserIdentity.User.UserName%>" />
                            </td>
                            <td></td>
                        </tr>
                        <tr>
                            <td class="itemtitle">性别</td>
                            <td class="itemcontent">
                                <%if (UserIdentity.User.Sex == null || UserIdentity.User.Sex == 1)
                                {%>
                                <input id="sex1" name="Sex" type="radio" value="1" checked="checked" /><label for="sex1">男</label>
                                <input id="sex2" name="Sex" type="radio" value="2" /><label for="sex2">女</label>
                                <%}
                                else
                                { %>
                                <input id="sex3" name="Sex" type="radio" value="1" /><label for="sex3">男</label>
                                <input id="sex4" name="Sex" type="radio" value="2" checked="checked" /><label for="sex4">女</label>
                                <%} %>
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td class="itemtitle">电话</td>
                            <td class="itemcontent">
                                <input id="Tel" name="Tel" type="text" class="text" value="<%=UserIdentity.User.Tel%>" />
                            </td>
                            <td></td>
                        </tr>
                        <tr>
                            <td class="itemtitle">移动电话</td>
                            <td class="itemcontent">
                                <input id="MobilePhone" name="MobilePhone" type="text" class="text" value="<%=UserIdentity.User.MobilePhone%>" />
                            </td>
                            <td></td>
                        </tr>
                        <tr>
                            <td class="itemtitle">联系地址</td>
                            <td class="itemcontent">
                                <input id="Address" name="Address" type="text" class="text" value="<%=UserIdentity.User.Address%>" />
                            </td>
                            <td></td>
                        </tr>

                        <tr>
                            <td colspan="3" align="center">
                                <input id="Button1" type="button" value="保存" onclick="submitData();" />
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    </div>
    <!--foot-->
    <%template:_foot.html%>
    <script type="text/javascript">
        function submitData() {
            User.modifyUserData(form.getJson(),function(result){
                if (result.status == "success") {
                    Alert("保存成功");
                }
                else {
                    Alert("保存失败，请检查");
                }
            });
        }
    </script>



</body>
</html>