📄 edit_messagesort.aspx
字号:
<%@ Page language="c#" Codebehind="Edit_MessageSort.aspx.cs" AutoEventWireup="false" Inherits="OI.Messagemanage.Edit_MessageSort" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>Edit_MessageSort</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
<script>
function check()
{
reg =/^(\s| )*$/;
if ( reg.test(Form1.TextBoxInfotypeName.value)){alert('类别名称不能为空');Form1.TextBoxInfotypeName.focus(); return false;}
if (!strlen(Form1.TextBoxInfotypeName,30,'类别名称不能超过30个字符'))return false;
if ( reg.test(Form1.TextBoxDescription.value)){alert('描述不能为空');Form1.TextBoxDescription.focus(); return false;}
if (!strlen(Form1.TextBoxDescription,100,'描述不能超过100个字符'))return false;
}
function strlen(obj_element,max_len,alert_words)
{
li_lenb = 0 ;
li_len = obj_element.value.length ;
for (i=0;i<li_len;i++)
{
cCheck = obj_element.value.charAt(i) ;
if(cCheck > '~')
li_lenb = li_lenb + 2 ;
else
li_lenb = li_lenb + 1;
}
if(li_lenb-max_len>0)
{
obj_element.focus();
obj_element.select();
alert(alert_words);
return false;
}
return true;
}
</script>
<LINK href="../test.css" type="text/css" rel="stylesheet">
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<TABLE class="tableframe" id="Table2" cellSpacing="1" cellPadding="1" width="100%" border="1">
<TR>
<TD class="titlebar" bgColor="#fbe3b5"><IMG src="../images/mingpianguanli.gif">
<asp:Label id="Labeltitle" runat="server"></asp:Label></TD>
</TR>
</TABLE>
<TABLE id="Table1" cellSpacing="1" cellPadding="1" width="100%" border="1" class="tableframe">
<TR>
<TD width="15%" align="center" bgcolor="floralwhite"><FONT face="宋体">类别名称:</FONT></TD>
<TD bgcolor="floralwhite"><asp:textbox id="TextBoxInfotypeName" runat="server" MaxLength="15" Width="140px" CssClass="input"></asp:textbox><asp:label id="LabelInfotypeName" runat="server" Width="61px"></asp:label>
<asp:RequiredFieldValidator id="RequiredFieldValidator1" runat="server" ErrorMessage="类别名称不能为空" ControlToValidate="TextBoxInfotypeName"></asp:RequiredFieldValidator></TD>
</TR>
<TR>
<TD width="15%" align="center">是否启用:</TD>
<TD style="HEIGHT: 21px"><asp:dropdownlist id="DropDownListIsPublic" runat="server">
<asp:ListItem Value="1">启用</asp:ListItem>
<asp:ListItem Value="0">禁用</asp:ListItem>
</asp:dropdownlist><asp:label id="LabelIsPublic" runat="server" Width="61px"></asp:label></TD>
</TR>
<TR>
<TD width="15%" align="center" bgcolor="floralwhite">描述:</TD>
<TD style="HEIGHT: 260px" bgcolor="floralwhite">
<P><asp:textbox id="TextBoxDescription" runat="server" Width="280px" TextMode="MultiLine" Height="152px"></asp:textbox></P>
<P><FONT face="宋体"><asp:label id="LabelDescription" runat="server"></asp:label>
<asp:RequiredFieldValidator id="RequiredFieldValidator2" runat="server" ErrorMessage="描述不能为空" ControlToValidate="TextBoxDescription"></asp:RequiredFieldValidator></FONT></P>
</TD>
</TR>
<TR>
<TD colSpan="2" align="center"><FONT face="宋体">
<asp:ImageButton id="ImageButton1" runat="server" ImageUrl="../images/qd.gif"></asp:ImageButton>
<asp:ImageButton id="ImageButton2" runat="server" ImageUrl="../images/back1.gif" Visible="False"></asp:ImageButton></FONT></TD>
</TR>
</TABLE>
</form>
</body>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -