📄 color.asp
字号:
<!--#include file="../title.asp"-->
<%
dim sql,sql2
dim i
sql="select * from fabric_color order by id"
rs.open sql,conn,1,1
if err.Number<>0 then
err.clear %>
<HTML>
<HEAD>
<TITLE>数据库操作失败</TITLE>
<LINK rel="stylesheet" type="text/css" href="../css/css.css">
</HEAD><BODY bgColor=#468ea3>
<CENTER> 数 据 库 操 作 失 败 !</CENTER></BODY>
<% else %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>颜色管理</title>
<link rel="stylesheet" type="text/css" href="../css/css.css">
</head>
<script language="javascript">
<!--
function test(form) {
if ((form.options.value == "rename" && form.reTitle.value == "") || (form.options.value == "new" && form.newTitle.value == ""))
{alert("您没有填写具体颜色,请填写");return false;}
if (form.options.value == "del")
{return confirm("将同时删除该种类中的所有内容!是否继续?");}
return true;
}
//-->
</script>
<body bgcolor="#468ea3">
<form method="POST" action="color_turn1.asp" align="center" language="javascript" onSubmit="return test(this);">
<table border="0" cellpadding="0" cellspacing="1" width="95%" align="center">
<tr>
<td align="center" height="22" bgcolor="#a5d0dc"><b>Color Manger(颜色管理)</b></td>
</tr>
<tr>
<td align="center" bgcolor="#a5d0dc">
<p>Color(<span lang="zh-cn">颜色</span>):
<select name="subject" size="1"
style="font-size: 9pt">
<%
Do while not rs.eof
%>
<option value="<%=rs("id")%>"><%=rs("en_name")%>,<%=rs("cn_name")%></option>
<%
rs.MoveNext
Loop
%>
</select>
</td>
</tr>
<tr align="center">
<td bgcolor="#cce6ed"> </td>
</tr>
<tr align="center">
<td bgcolor="#a5d0dc">
<p>NewColor(<span lang="zh-cn">新颜色</span>):
<input type="text" name="reTitle" size="20" class=smallinput value="English">
<input type="text" name="reTitle1" size="20" class=smallinput value="中文"><input type="submit" value="Change(改名)" name="B1" class=buttonface onClick="form.options.value='rename'">
</td>
</tr>
<tr align="center">
<td bgcolor="#cce6ed"> </td>
</tr>
<tr align="center">
<td bgcolor="#a5d0dc">
<p>NewColot(<span lang="zh-cn">新颜色</span>):
<input type="text" name="newTitle" size="20" class=smallinput value="English">
<input type="text" name="newTitle" size="20" class=smallinput value="中文"><input type="submit" value="AddNew(新增)" name="B3" class=buttonface onClick="form.options.value='new'"></td>
</tr>
</table>
<input type="hidden" name="options" value>
</form>
</body>
</html>
<%
rs.close
conn.close
set conn=nothing
end if
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -