<%@ 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="/Aspx/blue/Css/common.css" rel="stylesheet" />
    <link href="/Aspx/blue/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="/Aspx/blue/js/web.js"></script>
</head>
<body>
<!--Create Time: 2015/1/2 22:43:01-->
    <!--head-->
    <div class="head">
    <div class="head_top">
        <div class="main bar">
            <span id="LoginStatus"><a href="/login/Default/">登录</a> | <a href="/login/register/">注册</a></span>
            <span class="right"><a href="javascript:void(0);" onclick="AddFavorite();">加入收藏</a>&nbsp;&nbsp;&nbsp;<a href="/Ashx/Desktop.ashx" target="_blank">桌面图标</a></span>
        </div>
    </div>
    <div class="main center">
        <div class="logo">
            <a href="<%=WebSiteConfig.DomainName%>">
                <img src="/Aspx/blue/images/common_logo.png" title="<%=WebSiteConfig.SiteName%>" alt="<%=WebSiteConfig.SiteName%>" /></a>
        </div>
        <div class="search">
            <div class="searchinput">
                <span>
                    <input class="searchbtn" id="btnSearch" type="button" value="" onclick="search();" />
                    <input class="releasebtn" id="Button2" type="button" value="" onclick="location.href = '/info/category'" />
                </span>
                <span>
                    <input id="txtKeywords" maxlength="10" class="keywordInput" type="text" />
                </span>

            </div>
            <div>热门搜索:
            <%foreach(var hword in GetSearchHotWordList()){%>
                <a href="/search/?keywords=<%=hword%>"><%=hword%></a> 
            <%}%>
            </div>
        </div>
    </div>
    <div class="menu">
        <div class="main">
            <ul>
                <li id="HeadMenuList">
                    <a href="/" matchstatus="home">首 页</a>
                    <a href="/gangcai/" matchstatus="gangcai">冶金钢材</a>
                    <a href="/suliao/" matchstatus="suliao">橡胶塑料</a>
                    <a href="/pige/" matchstatus="pige">纺织皮革</a>
                    <a href="/baozhuang/" matchstatus="baozhuang">包 装</a>
                    <a href="/wujin/" matchstatus="wujin">五 金</a>
                    <a href="/jixie/" matchstatus="jixie">机械工业</a>
                </li>
            </ul>

        </div>

    </div>
</div>
<div class="split">&nbsp;</div>
<script type="text/javascript">if (typeof (loadLoginStatus) != null) { loadLoginStatus(); }
    UrlStatus.changeDomSelectStatus("HeadMenuList", 1);
</script>

    <!--body-->
    <div class="body main">
        <div class="split">&nbsp;</div>
        <div class="usercenter">
            <div class="left"><div class="menu">
    <h3 class="title">会员中心</h3>
    <ul>
        <li><a href="InfoManage">我的发布</a></li>
        <li><a href="CollectManage">我的收藏</a></li>
        <!--<li><a href="ShopInfo">商家信息</a></li>-->
        <li><a href="MessageInbox">我的消息</a></li>
    </ul>
    <div class="split">&nbsp;</div>
    <ul>
        <li><a href="ModifyUserData">资料修改</a></li>
        <li><a href="UserSecuritySet">安全设置</a></li>
        <li><a href="/login/default?cmd=logout">退出登录</a></li>
    </ul>
</div>
</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-->
        <div class="split">&nbsp;</div>
    <div class="foot main">
        <div class="menu">
            <ul>
                <li><a href="/about/home" target="_blank" rel="nofollow">关于我们</a></li>
                <li>|</li>
                <li><a href="/about/message" target="_blank" rel="nofollow">建议意见</a></li>
                <li>|</li>
                <li><a href="/about/Contact" target="_blank" rel="nofollow">联系我们</a></li>
                <li>|</li>
                <li><a href="/about/Privacy" target="_blank" rel="nofollow">免责声明</a></li>
            </ul>
        </div>
        <div><%=WebSiteConfig.RecordNo%><%=WebSiteConfig.Copyright%></div>
        <div><%=WebSiteConfig.StatisticalCode%></div>
    </div>
<!--隐藏内容-->
<div id="winpop" style="display:none;">
    <div class="rightwindow">
        <div class="title">公告<span class="close" onclick="win.slideWindow()">X</span></div>
        <div class="content">
            @msg
        </div>
    </div>
</div>
    <script type="text/javascript">
        function submitData() {
            User.modifyUserData(form.getJson(),function(result){
                if (result.status == "success") {
                    Alert("保存成功");
                }
                else {
                    Alert("保存失败，请检查");
                }
            });
        }
    </script>



</body>
</html>