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

📄 enproductmanageadd.asp

📁 这个也是一个功能强大的企业整站的ASP源代码
💻 ASP
字号:
<!--#include file="CheckAdminLogined.asp"-->
<!--#include file="../include/connstr.asp"-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="Images/AdminCss.css" rel="stylesheet" type="text/css">
<script language="JavaScript">
function check_data(){
 document.form1.Content.value = frames.message.document.body.innerHTML;
 if(document.form1.viewhtml.checked == true){
   alert("对不起,请取消“查看HTML源代码”后再添加!")
   document.form1.viewhtml.focus()
   return false
 }
 
 if(document.form1.T_Title.value==""){
   alert("产品内容为必填项,请填写!")
   document.form1.T_Title.focus();
   return(false)
 }


 
 if(document.form1.Content.value==""){
   alert("产品介绍为必填项,请填写")
   document.form1.viewhtml.focus()
   return(false)
 }

 if(document.form1.T_AddTime.value==""){
   alert("添加时间为必填项,请填写")
   document.form1.T_AddTime.focus()
   return(false)
 }

}
</script>
</head>

<body leftmargin="0" topmargin="0" onLoad="javascript:frames.message.document.body.innerHTML = document.form1.Content.value;">
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td height="8" colspan="2"></td>
  </tr>
  <tr> 
    <td width="76" height="20" rowspan="2"><img src="Images/TopBt.gif" width="67" height="36"></td>
    <td width="897" height="10"></td>
  </tr>
  <tr>
    <td>我的位置:后台管理系统._产品管理._发布产品</td>
  </tr>
  <tr> 
    <td height="4" colspan="2"></td>
  </tr>
  <tr> 
    <td colspan="2"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="E7E7E7">
        <tr> 
          <td height="20"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td width="159" height="20" align="center" background="images/title1.gif" class="fontwintitle"><strong>发布产品</strong> 
                </td>
                <td align="right" background="images/title2.gif">&nbsp;</td>
                <td width="10"><img src="images/title3.gif" width="10" height="20"></td>
              </tr>
            </table></td>
        </tr>
        <tr valign="top"> 
          <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td width="6" background="images/midder1.gif"><img src="images/midder1.gif" width="6" height="3"></td>
                <td height="100%" align="center" valign="top"><br>
                  <table width="98%" border="0" cellpadding="0" cellspacing="1" bgcolor="#000000">
                    <form action="enProductManageAddSave.asp" method="post" enctype="multipart/form-data" name="form1" onsubmit="return check_data()">
                      <tr bgcolor="#FFFFFF"> 
                        <td width="16%" height="22" align="right" bgcolor="ECF2D6">* 
                          产品名称:</td>
                        <td width="84%">&nbsp; <input name="T_Title" type="text" id="T_Title" size="50"> 
                        </td>
                      </tr>
                      <tr bgcolor="#FFFFFF"> 
                        <td height="22" align="right" bgcolor="ECF2D6">* 所属类别:</td>
                        <td>&nbsp; <select name="S_CateID" id="S_CateID">
                            <%set rs_CateID=conn.execute("select * from tenProductCate order by AddTime desc")
							do while not rs_CateID.eof
							  if cstr(request("S_CateID"))=cstr(rs_CateID("ID")) then
							    response.write "<option value='"&rs_CateID("ID")&"' selected>"&rs_CateID("Title")&"</option>"
							  else
							    response.write "<option value='"&rs_CateID("ID")&"'>"&rs_CateID("Title")&"</option>"
							  end if
							  rs_CateID.movenext
							loop
							rs_CateID.close
							set rs_CateID=nothing
						  %>
                          </select> </td>
                      </tr>
                      <tr bgcolor="#FFFFFF"> 
                        <td height="22" align="right" bgcolor="ECF2D6">* 产品图片:</td>
                        <td>&nbsp; <input name="T_ProductPic" type="file" id="T_ProductPic" size="50"></td>
                      </tr>
                      <tr bgcolor="#FFFFFF"> 
                        <td height="22" align="right" bgcolor="ECF2D6">下载资料:</td>
                        <td>&nbsp; <input name="T_OtherFile" type="file" id="T_OtherFile" size="50"> 
                        </td>
                      </tr>
                      <tr bgcolor="#FFFFFF"> 
                        <td height="22" align="right" bgcolor="ECF2D6">* 产品介绍:</td>
                        <td align="center"> <table width="97%" border="0" cellpadding="0" cellspacing="0">
                            <tr> 
                              <td colspan="2" height="3"></td>
                            </tr>
                            <tr> 
                              <td> <%UploadFilePathTemp="/UploadFile/ProductFile"%> <!--#include file="ArticleEditor/ArticleEdit.asp"--> <script language="javascript">
                                   document.write ('<iframe src="ArticleEditor/Textbox.asp?cur_action=add" id="message" width="100%" height="350"></iframe>')
                                   frames.message.document.designMode = "On";
                                </script> <input type="hidden" name="Content" value=""> 
                                <input name="UploadFile" type="hidden" id="UploadFile"> 
                              </td>
                            </tr>
                            <tr> 
                              <td colspan="2" height="3"></td>
                            </tr>
                          </table></td>
                      </tr>
                      <tr bgcolor="#FFFFFF">
                        <td height="22" align="right" bgcolor="ECF2D6">产品单价:</td>
                        <td>&nbsp; <input name="T_Price" type="text" id="T_Price" value="---" size="15">
                          元(如:1250.00)</td>
                      </tr>
                      <tr bgcolor="#FFFFFF"> 
                        <td height="22" align="right" bgcolor="ECF2D6">产品性质:</td>
                        <td>&nbsp; <input name="R_IsHot" type="radio" value="0" checked>
                          普通 
                          <input type="radio" name="R_IsHot" value="1">
                          推荐 
                          <input type="radio" name="R_IsHot" value="2">
                          库存</td>
                      </tr>
                      <tr bgcolor="#FFFFFF"> 
                        <td height="22" align="right" bgcolor="ECF2D6">* 添加时间:</td>
                        <td>&nbsp; <input name="T_AddTime" type="text" id="T_AddTime" value="<%=now()%>"></td>
                      </tr>
                      <tr bgcolor="#FFFFFF"> 
                        <td height="22" align="right" bgcolor="ECF2D6">状态:</td>
                        <td bgcolor="#FFFFFF">&nbsp; <input name="R_StateFlag" type="radio" value="0" checked>
                          显示 
                          <input type="radio" name="R_StateFlag" value="1">
                          隐藏 </td>
                      </tr>
                      <tr bgcolor="#FFFFFF"> 
                        <td height="40" colspan="2" align="center" bgcolor="#FFFFFF"><input name="cur_action" type="hidden" id="cur_action" value="addsave"> 
                          <input type="submit" name="Submit" value="确定发布"> <input type="reset" name="Submit2" value="重新填写"></td>
                      </tr>
                    </form>
                  </table>
				  <br> 
                  <br> </td>
                <td width="2" background="images/midder2.gif"><img src="images/midder2.gif" width="2" height="3"></td>
              </tr>
              <tr> 
                <td valign="top"><img src="images/bottom1.gif" width="6" height="14"></td>
                <td height="14" valign="top" background="images/bottom2.gif"><img src="images/bottom2.gif" width="2" height="14"></td>
                <td valign="top"><img src="images/bottom3.gif" width="2" height="14"></td>
              </tr>
            </table></td>
        </tr>
      </table></td>
  </tr>
</table>
</body>
</html>
<script src="ArticleEditor/Edit.js" type="text/javascript"></script>

⌨️ 快捷键说明

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