⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 add_pro.asp

📁 漂亮的企业网站管理系统 v2.6 修正了联系我们不能显示
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="checkadmin.asp" -->
<!--#include file="open.asp" -->

<%
dim title(8)
title(1)="添加新闻"
title(2)="添加公告"
title(3)="添加产品"
title(4)="添加案例"
title(5)="添加客户"
title(6)="企业简介"
title(7)="联系方式"
title(8)="人才招聘"
tid=Request("tid")
if tid="news" then
	subject=title(1)
	elseif tid="gg" then
	subject=title(2)
	elseif tid="product" then
	subject=title(3)
	elseif tid="add" then
	subject=title(7) 
	elseif tid="job" then
	subject=title(8)
	elseif tid="call" then
	subject=title(6)
	elseif tid="project" then
	subject=title(4)
	else
	subject=title(5)
end if
%>
<script language="javascript">
//去掉空格
function Trim(str){
if(str.charAt(0) == " "){
str = str.slice(1);
str = Trim(str); 
}
return str;
}
//判断是否是空
function isEmpty(pObj,errMsg){
var obj = eval(pObj);
if( obj == null || Trim(obj.value) == ""){
if (errMsg == null || errMsg =="")
{
alert("输入为空!");
}
  else
{
alert(errMsg);
}

obj.focus();
return false;
}
return true;
}  
</script>

<script language="javascript">
function checked(theform){
if (!isEmpty(theform.title,'请输入数据')) return false;
}
</script>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<style type="text/css">
<!--
.text {
	font-size: 12px;
	line-height: 22px;
	color: #333333;
	text-decoration: none;
	cursor: help;
}
A.a01 {
   font-size: 12px;	color: #333333;text-decoration: none;}
A.a01:hover { font-size: 12px;
	color: #CC9900;
	text-decoration: underline;}

A {
	font-size: 12px;
	line-height: 22px;
	color: #333333;
	text-decoration: none;
}
A:hover {
	font-size: 12px;
	line-height: 22px;
	color: #FF6600;
	text-decoration: underline;
}
.form {
	font-size: 12px;
	color: #333333;
	text-decoration: none;
	border-top-width: 1px;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-left-width: 1px;
	border-top-style: solid;
	border-right-style: solid;
	border-bottom-style: solid;
	border-left-style: solid;
	border-top-color: #666666;
	border-right-color: #efefef;
	border-bottom-color: #efefef;
	border-left-color: #666666;
}
.button {
	font-size: 12px;
	color: #FFFFFF;
	text-decoration: none;
	background-color: #FF9933;
	border: 1px solid #c6c6c6;
}
.form2 {
	font-size: 12px;
	color: #333333;
	text-decoration: none;
	background-color: #f7f7f7;
	border-top: 1px solid #CCCCCC;
	border-right: 1px solid #666666;
	border-bottom: 1px solid #666666;
	border-left: 1px solid #CCCCCC;
}
.text2 {
	font-size: 12px;
	color: #4D5743;
	text-decoration: none;
	line-height: 22px;
}
-->
</style>
<link href="image/myweb.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.STYLE1 {color: #FF0000}
-->
</style>
</head>

<body style="margin:0">
<form action="add_product.asp" method="post" enctype="multipart/form-data" name="form1" id="form1"  onSubmit="return checked(this);">
  <table width="100%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="ececec" class="text">
    <tr bgcolor="f7f7f7"> 
      <td height="24" colspan="2" align="center"><%=subject%></td>
    </tr>
    <tr bgcolor="f7f7f7"> 
      <td width="22%" height="24" align="right">标题:</td>
      <td width="78%" height="24"><input name="title" type="text" id="title" width="500">
      &nbsp;<span class="STYLE1">*</span></td>
    </tr>
    <tr bgcolor="f7f7f7">
      <td align="right">图片:</td>
      <td><input name="img" type="file" class="web_ipt" id="img"></td>
    </tr>
    <tr bgcolor="f7f7f7">   
      <td align="right">内容:</td>
      <td> 
		<textarea name="content" style="display:none"></textarea>
<IFRAME ID="eWebEditor1" SRC="/eWebeditor/ewebeditor.asp?id=content&style=s_coolblue" FRAMEBORDER="0" SCROLLING="no" WIDTH="550" HEIGHT="350"></IFRAME>
		
		
		
        <input name="pro_name" type="hidden" id="pro_name" value="<%=tid%>">
        <input name="temp" type="hidden" id="temp" value="temp"></td>
    </tr>
    <tr bgcolor="f7f7f7"> 
      <td align="right"> </td>
      <td height="40">   
        <input name="Submit" type="submit" value="提交">
          
        <input name="Submit2" type="reset" value="重置"></td>
    </tr>
  </table>
</form>
</body>
</html><!--#include file="close.asp" -->

⌨️ 快捷键说明

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