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

📄 productadd.asp

📁 官方最新的南方数据v12生成静态商业版。全站生成静态。
💻 ASP
字号:
<%@language=vbscript codepage=936 %>
<!--#include file="conn.asp"-->
<!--#include file="admin.asp"-->
<!--#include file="Inc/Function.asp"-->
<!--#include file="inc/admin_code_product.asp"-->
<%
dim rs
dim sql
dim count
set rs=server.createobject("adodb.recordset")
sql = "select * from 0791idc_SmallClass order by SmallClassID asc"
rs.open sql,conn,1,1
%>
<script language = "JavaScript">
var onecount;
subcat = new Array();
        <%
        count = 0
        do while not rs.eof 
        %>
subcat[<%=count%>] = new Array("<%= trim(rs("SmallClassName"))%>","<%= trim(rs("BigClassName"))%>","<%= trim(rs("SmallClassName"))%>");
        <%
        count = count + 1
        rs.movenext
        loop
        rs.close
        %>
onecount=<%=count%>;

function changelocation(locationid)
    {
    document.myform.SmallClassName.length = 1; 
    var locationid=locationid;
    var i;
    for (i=0;i < onecount; i++)
        {
            if (subcat[i][1] == locationid)
            { 
                document.myform.SmallClassName.options[document.myform.SmallClassName.length] = new Option(subcat[i][0], subcat[i][2]);
            }        
        }
    }    


function CheckForm()
{

  if (document.myform.Title.value=="")
  {
    alert("产品名称不能为空!");
	document.myform.Title.focus();
	return false;
  }
  if (document.myform.Product_Id.value=="")
  {
    alert("产品编号不能为空!");
	document.myform.Key.focus();
	return false;
  } 

}

</script>
<!-- #include file="Inc/Head.asp" -->

<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr> 
    <td width="862" align="center" valign="top"> <b><br>
      </b>
<form method="POST" name="myform" action="ProductSave.asp?action=add" onSubmit="return CheckForm();" target="_self">
        <table width="650" border="0" align="center" cellpadding="0" cellspacing="0" class="border">
          <tr align="center"> 
            <td class="tdbg"> <table width="100%" border="0" cellpadding="2" cellspacing="1" class="table_southidc">
                <tr> 
                  <td class="back_southidc" height="26" colspan="3" align="right" bgcolor="#A4B6D7"><div align="center"><b>添 
                      加 产 品</b> </div></td>
                </tr>
                <tr> 
                  <td width="159" height="22" align="right" bgcolor="#A4B6D7">所属类别:</td>
                  <td colspan="2" bgcolor="#ECF5FF"> <strong> 
                    <select name='ClassID'>
                      <%call Admin_ShowClass_Option(3,ClassID)%>
                    </select>
                    <%
			ranNum=int(9*rnd)+10
			iddata=month(now)&day(now)&hour(now)&minute(now)&second(now)&ranNum
			%>
                   
                    </strong></td>
                </tr>
                <tr> 
                  <td width="159" height="22" align="right" bgcolor="#A4B6D7">产品编号:</td>
                  <td colspan="2" bgcolor="#ECF5FF"> <strong> 
                    <input name="Product_Id" type="text"
           id="Product_Id" value="<%=iddata%>" size="16" maxlength="16">
                    <font color="#FF0000">*产品编号不可以相同,如你不能确定会重复,请勿改动他!</font></strong></td>
                </tr>
                <tr> 
                  <td width="159" height="21" align="right" bgcolor="#A4B6D7">产品名称:</td>
                  <td colspan="2" bgcolor="#ECF5FF"> <strong> 
                    <input name="Title" type="text"
           id="Title" size="50" maxlength="80">
                    <font color="#FF0000">*</font></strong></td>
                </tr>
                <tr> 
                  <td height="22" align="right" bgcolor="#A4B6D7">规格:</td>
                  <td colspan="2" bgcolor="#ECF5FF"><input name="Spec" type="text"
           id="Title" size="20" maxlength="80"></td>
                </tr>
                <tr> 
                  <td height="22" align="right" bgcolor="#A4B6D7">单位:</td>
                  <td colspan="2" bgcolor="#ECF5FF"><input name="Unit" type="text"
           id="spec" size="20" maxlength="80"></td>
                </tr>
                <tr> 
                  <td height="22" align="right" bgcolor="#A4B6D7">备注:</td>
                  <td colspan="2" bgcolor="#ECF5FF"><input name="Memo" type="text"
           id="unit" size="50" maxlength="80"></td>
                </tr>
                <tr> 
                  <td bgcolor="#A4B6D7"> <div align="right">产品说明:</div></td>
                  <td colspan="2" bgcolor="#ECF5FF"> <input type="hidden" name="content" value=""> 
                    <IFRAME ID="eWebEditor1" SRC="../Southidceditor/ewebeditor.htm?id=content&style=southidc" FRAMEBORDER="0" SCROLLING="no" WIDTH="550" HEIGHT="450"></IFRAME> 
                  </td>
                </tr>
                <tr> 
                  <td align="right" bgcolor="#A4B6D7">产品图片: </td>
                  <td width="214" height="21" bgcolor="#ECF5FF"> <input name="DefaultPicUrl" type="text" id="DefaultPicUrl" size="30" maxlength="50"> 
                  </td>
                  <td width="231" bgcolor="#ECF5FF"><iframe style="top:2px" ID="UploadFiles" src="../upload_Photo.asp?PhotoUrlID=6" frameborder=0 scrolling=no width="300" height="25"></iframe> 
                  </td>
                </tr>
                <tr> 
                  <td width="159" height="22" align="right" bgcolor="#A4B6D7">已通过审核:</td>
                  <td colspan="2" bgcolor="#ECF5FF"> <input name="Passed" type="checkbox" id="Passed" value="yes" checked>
                    是<font color="#0000FF">(如果选中的话将直接发布)</font></td>
                </tr>
                <tr> 
                  <td height="22" align="right" bgcolor="#A4B6D7">首页显示:</td>
                  <td colspan="2" bgcolor="#ECF5FF"><input name="FirstPage" type="checkbox" id="FirstPage" value="yes" checked>
                    是<font color="#0000FF">(如选中将在首页<font color="#FF0000">产品列表</font>中显示)</font></td>
                </tr>
                <tr> 
                  <td height="22" align="right" bgcolor="#A4B6D7">首页新品显示:</td>
                  <td colspan="2" bgcolor="#ECF5FF"><input name="Newproduct" type="checkbox" id="Newproduct" value="yes" checked>
                    是<font color="#0000FF">(如选中将在首页<font color="#FF0000">新品展示</font>中显示)</font></td>
                </tr>
                <tr>
                  <td height="22" align="right" bgcolor="#A4B6D7">推荐产品:</td>
                  <td colspan="2" bgcolor="#ECF5FF"><input name="Elite" type="checkbox" id="Elite" value="yes" checked>
                    是<font color="#0000FF">(如选中将在首页<font color="#FF0000">推荐产品</font>中显示)</font></td>
                </tr>
                <tr> 
                  <td height="22" align="right" bgcolor="#A4B6D7">录入时间:</td>
                  <td colspan="2" bgcolor="#ECF5FF"><input name="UpdateTime" type="text" id="UpdateTime" value="<%=now()%>" maxlength="50">
                    当前时间为:<%=date()%> 注意不要改变格式。</td>
                </tr>
                <tr bgcolor="#ECF5FF"> 
                  <td height="25" colspan="3" align="right"> 
                    <div align="center"> 
                      <input name="Add" type="submit"  id="Add" value=" 添 加 ">

                    </div></td>
                </tr>
              </table></td>
          </tr>
        </table>
        <div align="center">
          <p>&nbsp;  </p>
        </div>
      </form></td>
  </tr>
</table>
<!-- #include file="Inc/Foot.asp" -->

⌨️ 快捷键说明

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