<%@ page language="C#" autoeventwireup="true" inherits="users.user_UserEdit, LebiMall" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title><%=model_t.Title %></title>
    <meta name="description" content=<%=model_t.Description %> />
    <meta name="keywords" content=<%=model_t.Keywords %> />
    <meta name="generator" content="LBMall 3.0.0" />
    <link href="css/main.css" rel="stylesheet" type="text/css" />
    <link href="../images/css/css3.css" rel="stylesheet" type="text/css" />
    <link href="../images/css/css2.css" rel="stylesheet" type="text/css" />
    <link href="../images/css/css.css" rel="stylesheet" type="text/css" />
    <!--[if lte IE 6]><style type="text/css" media="screen">/* <![CDATA[ */ @import url(../images/css/ie6.css); /* ]]> */</style><![endif]-->
    <!--[if gte IE 7]><STYLE type=text/css media=screen>@import url(../images/css/ie7.css);</STYLE><![endif]-->
    <script type="text/javascript" src="../images/js/shopjs.js"></script>
    <script>
        function changeStatus(_value){
            if(_value == "学生"){
                document.getElementById("tr_Status").style.visibility = "visible";
                document.getElementById("tr_Status").style.position = "relative";
                document.getElementById("td_Status").innerHTML = "学 校：";
            }else if(_value == "上班族"){
                document.getElementById("tr_Status").style.visibility = "visible";
                document.getElementById("tr_Status").style.position = "relative";
                document.getElementById("td_Status").innerHTML = "单 位：";
            }else{
                document.getElementById("tr_Status").style.visibility = "hidden";
                document.getElementById("tr_Status").style.position = "absolute";
                document.getElementById("tr_Status").style.top = "1px";
                document.getElementById("tr_Status").style.left = "1px";
            }
        }
        function search2(){
            var texts2=document.getElementById("ser2").value;
            var select_v2=document.getElementById("Select2").value;
            window.location="../list.aspx?tid="+select_v2+"&titlec="+escape(texts2);
        }
    </script>

</head>
<body onload="changeStatus('学生');" class="bcss">
    <form id="Form1" runat="server">
        <div id="top-menu02">
            <div id="top-menu">
                <div class="right">

                    <script type="text/javascript">indexhead();</script>

                </div>
            </div>
        </div>
        <div id="top">
            <div id="logo">
                <a href="http://<%=Request.Url.Host %><%=model_t.WebPath %>/">
                    <img src="../Upload/WebAdminImages/<%=model_t.Logoimg %>" border="0" /></a></div>
        </div>
        <div id="sp-menu">
            <ul>
                <li><a href="http://<%=Request.Url.Host %><%=model_t.WebPath %>/">首页</a></li>
            <%for (int i = 0; i < ds_tab.Tables[0].Rows.Count; i++){ %>
            <li><%if (model_t.Tab == "1"){ %>
                <a href="../<%= ds_tab.Tables[0].Rows[i]["tdirname"]%>/" target="_blank"><%= ds_tab.Tables[0].Rows[i]["tname"]%></a>
                <%}else{%>
                <a href="../TopTab.aspx?type=<%= ds_tab.Tables[0].Rows[i]["tdirname"]%>" target="_blank"><%= ds_tab.Tables[0].Rows[i]["tname"]%></a>
                <%} %></li>
            <%} %>
            <li><a href="http://<%=Request.Url.Host %><%=model_t.WebPath %>/News/" target="_blank">资讯</a></li>
            </ul>
            <p>
                <span><a href="../ShopCoupon.aspx">优惠券</a></span></p>
        </div>
        <div id="contenter2">
            <div id="contenter">

                <script type="text/javascript">
                    shopLeft();
                </script>

                <div id="right">
                    <div class="contenter">
                        <div class="nav-tabs">
                            <ul class="tabs">
                                <li><a href="Default.aspx">基本信息</a> </li>
                            </ul>
                            <ul class="tabs">
                                <li class="selected"><a href="UserEdit.aspx">编辑信息</a> </li>
                            </ul>
                            <ul class="tabs">
                                <li><a href="ModfiyHead.aspx">修改头像</a> </li>
                            </ul>
                            <ul class="tabs">
                                <li><a href="ModifyPassword.aspx">修改密码</a> </li>
                            </ul>
                        </div>
                        <div>
                            <table cellpadding="0" cellspacing="0" style="margin: 2px;">
                                <tr>
                                    <td height="30">
                                        <div class="red">基本资料</div>  
                                    </td>
                                    <td>
                                        <span class="title_r" id="msg_sub"></span>
                                        <script type="text/javascript">
                                            var i = 2;
                                            var f="<%=returnValue %>";
                                            if(f=="true"){
                                                document.getElementById("msg_sub").innerHTML="操作成功！";
                                                document.getElementById("msg_sub").style.visibility="visible";
                                                setInterval("fun()", 1000);
                                            }
                                            if(f=="false"){
                                                document.getElementById("msg_sub").innerHTML="操作失败！";
                                                document.getElementById("msg_sub").style.visibility="visible";
                                            }
                                            function fun() {
                                                if (i == 1) {
                                                    window.location.href="Default.aspx";
                                                }
                                                i--;
                                            }
                                        </script>
                                     </td>
                                </tr>
                                <tr>
                                    <td class="dis_td">
                                        真实姓名：
                                    </td>
                                    <td class="dis_td2">
                                        <input id="txtUsername" size="12" class="input" runat="server">
                                    </td>
                                </tr>
                                <tr>
                                    <td class="dis_td">
                                        性 别：
                                    </td>
                                    <td class="dis_td2">
                                        <input type="radio" id="txtUsersex_male" runat="server" checked />男
                                        <input type="radio" id="txtUsersex_female" runat="server" />女
                                    </td>
                                </tr>
                                <tr>
                                    <td class="dis_td" style="height: 25px">
                                        生 日：
                                    </td>
                                    <td class="dis_td2" style="height: 25px">
                                        <input id="txtUserBirthday" size="12" class="input" runat="server">
                                    </td>
                                </tr>
                                <tr>
                                    <td class="dis_td">
                                        身 份：
                                    </td>
                                    <td class="dis_td2">
                                        <select id="txtUserStatus" runat="server" onchange="changeStatus(this.value);">
                                            <option>学生</option>
                                            <option>上班族</option>
                                            <option>其他</option>
                                        </select>
                                    </td>
                                </tr>
                                <tr id="tr_Status">
                                    <td class="dis_td" id="td_Status">
                                        学 校：
                                    </td>
                                    <td class="dis_td2">
                                        <input id="txtUserStatus2" class="input" runat="server">
                                    </td>
                                </tr>
                                <tr>
                                    <td height="30" colspan="2">
                                        <strong>联系方式</strong>(选填)
                                    </td>
                                </tr>
                                <tr>
                                    <td class="dis_td">
                                        电子邮箱：
                                    </td>
                                    <td class="dis_td2">
                                        <input id="txtUserEmail" class="input" runat="server" readonly="readonly">
                                    </td>
                                </tr>
                                <tr>
                                    <td class="dis_td" style="height: 25px">
                                        手 机：
                                    </td>
                                    <td class="dis_td2" style="height: 25px">
                                        <input id="txtUserCellphone" class="input" runat="server">
                                    </td>
                                </tr>
                                <tr>
                                    <td class="dis_td" style="height: 25px">
                                        固定电话：
                                    </td>
                                    <td class="dis_td2" style="height: 25px">
                                        <input id="txtUsertel" class="input" runat="server">
                                    </td>
                                </tr>
                                <tr>
                                    <td class="dis_td">
                                        QQ：
                                    </td>
                                    <td class="dis_td2">
                                        <input id="txtUserOtherStyle" class="input" runat="server">
                                    </td>
                                </tr>
                                <tr>
                                    <td height="30" colspan="2" style="padding-left: 16px; font-size: 13px; background: #E3EEF8;">
                                        <strong>补充信息</strong>(选填)
                                    </td>
                                </tr>
                                <tr>
                                    <td class="dis_td">
                                        <span id="Span1">籍 贯：</span>
                                    </td>
                                    <td class="dis_td2">
                                        <select id="hw_1" runat="server" name="hw_1" onchange="hw_select()">
                                        </select>
                                        <select id="hw_2" runat="server" name="hw_2" onchange="hw_select()">
                                        </select>
                                        <input type="hidden" id="hidd_diqu" runat="server" />
                                    </td>
                                </tr>

                                <script type="text/javascript" src="../images/js/area1.js"></script>

                                <tr>
                                    <td class="dis_td">
                                        <span id="Span2">所 在 地：</span>
                                    </td>
                                    <td class="dis_td2">
                                        <select id="hw_3" runat="server" name="hw_3" onchange="hw_select2()">
                                        </select>
                                        <select id="hw_4" runat="server" name="hw_4" onchange="hw_select2()">
                                        </select>
                                        <input type="hidden" id="hidd_diqu2" runat="server" />
                                    </td>
                                </tr>

                                <script type="text/javascript" src="../images/js/area2.js"></script>

                                <tr>
                                    <td class="dis_td">
                                        所在小区：
                                    </td>
                                    <td class="dis_td2">
                                        <input id="txtUserAddress" class="input" size="30" runat="server">
                                    </td>
                                </tr>
                                <tr>
                                    <td class="dis_td" valign="top">
                                        个人介绍：
                                    </td>
                                    <td class="dis_td2">
                                        <textarea id="txtIntroduce" class="textarea" cols="30" rows="3" runat="server"></textarea>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2" height="60" style="padding-left: 16px;">
                                        <input class="dis_btn" type="submit" runat="server" value="确 认 编 辑" id="Button1"
                                            onmouseover="this.className='dis_btnf';" onmouseout="this.className='dis_btn';"
                                            onserverclick="Button1_ServerClick">&nbsp;&nbsp;
                                        <input class="dis_btn2" type="reset" value="重 填" onmouseover="this.className='dis_btn2f';"
                                            onmouseout="this.className='dis_btn2';" id="Reset1" language="javascript" onclick="reset();return false;">
                                    </td>
                                </tr>
                                <tr>
                                    <td height="30" colspan="2">
                                        <strong>密保修改</strong>(选填)
                                    </td>
                                </tr>
                                <tr>
                                    <td class="dis_td">
                                        <span id="Span3">问题1：</span>
                                    </td>
                                    <td class="dis_td2">
                                        <select id="hw_5" runat="server">
                                            <option>您父亲的名字是?</option>
                                            <option>您母亲的名字是?</option>
                                            <option>您配偶的名字是?</option>
                                            <option>您的出生地是?</option>
                                            <option>您高中班主任的名字是?</option>
                                            <option>您初中班主任的名字是?</option>
                                            <option>您小学班主任的名字是?</option>
                                            <option>您的小学校名是?</option>
                                            <option>您的学号（或工号）是?</option>
                                            <option>您父亲的生日是?</option>
                                            <option>您母亲的生日是?</option>
                                            <option>您配偶的生日是?</option>
                                        </select>
                                        <input type="hidden" id="hid_wenti1" runat="server" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="dis_td">
                                        答案1：
                                    </td>
                                    <td class="dis_td2">
                                        <input id="answer1" class="input" size="30" runat="server">
                                    </td>
                                </tr>
                                <tr>
                                    <td class="dis_td">
                                        <span id="Span4">问题2：</span>
                                    </td>
                                    <td class="dis_td2">
                                        <select id="hw_6" runat="server">
                                            <option>您父亲的名字是?</option>
                                            <option>您母亲的名字是?</option>
                                            <option>您配偶的名字是?</option>
                                            <option>您的出生地是?</option>
                                            <option>您高中班主任的名字是?</option>
                                            <option>您初中班主任的名字是?</option>
                                            <option>您小学班主任的名字是?</option>
                                            <option>您的小学校名是?</option>
                                            <option>您的学号（或工号）是?</option>
                                            <option>您父亲的生日是?</option>
                                            <option>您母亲的生日是?</option>
                                            <option>您配偶的生日是?</option>
                                        </select>
                                        <input type="hidden" id="hid_wenti2" runat="server" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="dis_td">
                                        答案1：
                                    </td>
                                    <td class="dis_td2">
                                        <input id="answer2" class="input" size="30" runat="server">
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </div>
                </div>
                <div class="both">
                </div>
                <div class="both">
                </div>

                 <div id="footer">
                <div id="copyright">
                    <div class="search">
                        <div class="search-left">
                            <div class="search-left-title">
                                搜索：</div>
                            <div class="search-left-form">
                                <input type="text" runat="server" id="ser2" size="30" /></div>
                            <div class="search-left-list">
                                <select id="Select2" runat="server">
                                </select>
                            </div>
                            <div class="search-left-button">
                                <img src="../images/search-buttom.gif" width="60" height="20" onclick="search2()" /></div>
                        </div>
                        <div class="search-right">
                            <div runat=server id="div_s2"></div>
                        </div>
                    </div>
                </div>
            </div>

               <div class="copyright" runat="server" id="copr"></div>

                <script>
                    document.getElementsByName("hw_1")[0].value = "<%=this.hw1 %>";
                    hw_select();
                    document.getElementsByName("hw_2")[0].value = "<%=this.hw2 %>";
                    document.getElementsByName("hw_3")[0].value = "<%=this.hw3 %>";
                    hw_select2();
                    document.getElementsByName("hw_4")[0].value = "<%=this.hw4 %>";
                    document.getElementById("hidd_diqu").value = "<%=this.hw1 %>,<%=this.hw2 %>";
                    document.getElementById("hidd_diqu2").value = "<%=this.hw3 %>,<%=this.hw4 %>";
                    
                </script>

            </div>
        </div>
    </form>
</body>
</html>
