users_edit.aspx

来自「小区警务管理系统」· ASPX 代码 · 共 125 行

ASPX
125
字号
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="users_edit.aspx.cs" Inherits="web.SubDocument.users_edit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>users_edit</title>
    <link type="text/css" href="../css/Main.css" rel="Stylesheet" />

    <script src="../js/admin.js" type="text/jscript"></script>

    <script type="text/javascript">
        function checkme(){
            if(document.getElementById("TextBox2").value==""){
                alert("请输入登录账号!");
                document.getElementById("TextBox2").focus();
                return false;
            }
            if(window.document.getElementById("DropDownList1").value=="-1"){
				window.alert("请您选择性别!");
				window.document.getElementById("DropDownList1").focus();
				return false;
			}
			if(document.getElementById("TextBox5").value==""){
                alert("请输入密码!");
                document.getElementById("TextBox5").focus();
                return false;
            }
            if(document.getElementById("TextBox5").value!=document.getElementById("TextBox7").value){
                alert("两次密码不一致!");
                return false;
                document.getElementById("TextBox5").focus();
            }
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div id="title">
        <div style="background-image: url(../images/user16.gif);">
            用户修改</div>
    </div>
    <div style="text-align: right; line-height: 200%; background-color: #F7F7F7; margin-bottom: 5px;">
        <asp:Button ID="save" CssClass="btn_mouseout" onmouseover="this.className='btn_mouseover'"
            onmouseout="this.className='btn_mouseout'" runat="server" Text="保 存" OnClick="save_Click" />
        <asp:Button ID="back" CssClass="btn_mouseout" onmouseover="this.className='btn_mouseover'"
            onmouseout="this.className='btn_mouseout'" runat="server" Text="返 回" OnClick="back_Click" />
    </div>
    <div style="text-align: center;">
        <table border="1" cellpadding="0" cellspacing="0" width="90%">
            <tr>
                <td style="background-color: #98BAE8; text-align: left; height: 30px;">
                    姓名:
                </td>
                <td style="width: 40%; text-align: left; height: 30px;">
                    <asp:TextBox ID="TextBox1" CssClass="txt_lostfocus" Width="200px" runat="server"></asp:TextBox>
                </td>
                <td style="background-color: #98BAE8; width: 100px; text-align: left; height: 30px;">
                    登录账号:
                </td>
                <td style="width: 40%; text-align: left; height: 30px;">
                    <asp:TextBox ID="TextBox2" ReadOnly="true" CssClass="txt_lostfocus" Width="200px" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td style="background-color: #98BAE8; text-align: left; height: 30px;">
                    性别:
                </td>
                <td style="width: 40%; text-align: left; height: 30px;">
                    <asp:DropDownList ID="DropDownList1" runat="server">
                    </asp:DropDownList>
                </td>
                <td style="background-color: #98BAE8; width: 100px; text-align: left; height: 30px;">
                    固定电话:
                </td>
                <td style="width: 40%; text-align: left; height: 30px;">
                    <asp:TextBox ID="TextBox3" CssClass="txt_lostfocus" Width="200px" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td style="background-color: #98BAE8; text-align: left; height: 30px;">
                    E-MAIL:
                </td>
                <td style="width: 40%; text-align: left; height: 30px;">
                    <asp:TextBox ID="TextBox4" CssClass="txt_lostfocus" Width="200px" runat="server"></asp:TextBox>
                </td>
                <td style="background-color: #98BAE8; width: 100px; text-align: left; height: 30px;">
                    默认密码:
                </td>
                <td style="width: 40%; text-align: left; height: 30px;">
                    <asp:TextBox ID="TextBox5" CssClass="txt_lostfocus" Width="200px" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td style="background-color: #98BAE8; text-align: left; height: 30px;">
                    移动电话:
                </td>
                <td style="width: 40%; text-align: left; height: 30px;">
                    <asp:TextBox ID="TextBox6" CssClass="txt_lostfocus" Width="200px" runat="server"></asp:TextBox>
                </td>
                <td style="background-color: #98BAE8; width: 100px; text-align: left; height: 30px;">
                    确认密码:
                </td>
                <td style="width: 40%; text-align: left; height: 30px;">
                    <asp:TextBox ID="TextBox7" CssClass="txt_lostfocus" Width="200px" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td style="background-color: #98BAE8; text-align: left; height: 30px;">
                    备注:
                </td>
                <td style="width: 40%; text-align: left; height: 30px;">
                    <asp:TextBox ID="TextBox8" CssClass="txt_lostfocus" Width="200px" runat="server"></asp:TextBox>
                </td>
                <td style="background-color: #98BAE8; width: 100px; text-align: left; height: 30px;">
                </td>
                <td style="width: 40%; text-align: left; height: 30px;">
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?