<!--#include virtual="/incs/config.asp"-->
<!--#include virtual="/incs/top.asp"-->
<% chk_log()%>
<%
chk_newpwr 4,20,2
conn.open constr
ptid=saferequest("ptid")
if not chk_int(ptid) then
ptid=1 
end if
%>
<table cellspacing=2 cellpadding=0 width="100%" border=0>
  <tbody> 
  <tr> 
    <td  colspan=2 valign="middle"> 
      <table class=line cellspacing=0 cellpadding=0 width="100%" 
                  border=0 align="center">
        <tbody> 
        <tr> 
          <td valign=bottom width="25%" height=20><font color="#000000" class=ddropshadow><b><span class=enbold><strong>自定义产品库</strong></span></b></font></td>
          <td valign=bottom noWrap align=right 
                        width="75%"><a href="pdt_lst.asp" class=commonface>产品列表</a> 
            <font color="#000000">|</font> <a href="javascript:showurl('pdt_add.asp');" class=commonface>产品增加</a> 
          </td>
        </tr>
        <tr> 
          <td align=middle width="100%" colspan=2 height=5></td>
        </tr>
        <tr> 
          <td align=middle width="100%" colspan=2 height=2  class=menuline></td>
        </tr>
        </tbody> 
      </table>
      <br>
    </td>
  </tr>
  <tr> 
    <td  colspan=2 valign="top" height="28" align="center"> 
      <table cellspacing=0 cellpadding=0  border=0 bordercolordark="#FFFFFF" height="24" align="center" width=95%>
        <tbody> 
        <tr align=center > 
          <td height="22"  align=center> <b>请选择大类：</b> 
            <%
						  query="select * from pdttpe where pt_tag like '%ot%'  order by pt_odr"
						  rs.open query,conn,1,1
						  if rs.recordcount>0 and ptid=0 then
						  ptid=rs("pt_id")
						  end if
						  while not rs.eof  %>
            <a class=commonface style="text-decoration:underline;" href="pdt_diy.asp?ptid=<%=cint(right(rs("pt_tag"),1))%>"> 
            <%if cint(ptid)=cint(right(rs("pt_tag"),1)) then
			pt_tag=trim(rs("pt_tag"))
						  response.write "<font color=#ff0000>"&trim(rs("pt_nme"))&"</font>"
						  else
						  response.write trim(rs("pt_nme"))
						  end if %>
            </a> 
            <%
						  rs.movenext
						  if not rs.eof then
						  response.write " | "
						  end if
						  wend
						 
						  rs.close
						  %>
          </td>
        </tr>
        </tbody> 
      </table>
      <form action=pdt_mng.asp method=post name=pdtmng>
        <table border=0 cellpadding=0 
                        cellspacing=0 width="100%" bordercolordark="#FFFFFF" align="center" class=datalist>
          <tbody> 
          <tr> 
            <th width="6%" class=datalistheader height=20 > 序号 </th>
            <th width="20%" class=datalistheader > 字段名称</th>
            <th width="10%" class=datalistheader > 系统限制</th>
            <th width="8%" class=datalistheader > 项类型</th>
            <th width="22%" class=datalistheader > 表单长度限制</th>
            <th class=datalistheader > 填写说明</th>
          </tr>
          <%
		query="select * from othcfg where o_tpe="&ptid
		rs.open query,conn,1,1
		for i=0 to 8 %>
          <tr > 
            <td  align=center  class=datalistgridb ><%=i%></td>
            <td  align=center  class=datalistgridb > 
              <input type="text" value="<%=trim(rs("o_o"&i))%>" size="18" name="o_o<%=i%>">
            </td>
            <td  align=center  class=datalistgridb > 
              <%
		  if i=0 then
		  response.write "0-50字符"
		  elseif i>=6 then
		  response.write "0-500字符"
		  else
		  response.write "0-100字符"
		  end if
		  %>
            </td>
            <td  align=center  class=datalistgridb > 
              <select name="o_o<%=i%>t">
                <option value="1" <%if  rs("o_o"&i&"t")="1" then
				response.write " selected "
				end if %>>单行框</option>
                <option value="2" <%if  rs("o_o"&i&"t")="2" then
				response.write " selected "
				end if %>>密码框</option>
                <option value="3" <%if  rs("o_o"&i&"t")="3" then
				response.write " selected "
				end if %>>多行框</option>
              </select>
            </td>
            <td  align=center  class=datalistgridb > 
              <input type="text" value="<%=trim(rs("o_o"&i&"s"))%>"  size="6" name="o_o<%=i%>s">
              - 
              <input type="text" value="<%=trim(rs("o_o"&i&"l"))%>" size="6" name="o_o<%=i%>l">
              字符</td>
            <td  class=datalistgridb > 
              <div align="left"> 
                <input type="text"value="<%=trim(rs("o_o"&i&"inf"))%>" name="o_o<%=i%>inf" size="35">
              </div>
            </td>
          </tr>
          <% next 
		rs.close
		%>
          </tbody> 
        </table>
        <br>
        <input type="submit" name="submit" value="修 改" class=btxx>
        <input type="hidden" name="module" value="pdt_diy_edt">
        <input type="hidden" name="o_tpe" value="<%=ptid%>">
        <input type="reset" name="sdfdf" value="重 置" class=btxx>
      </form>
      <table width="95%" border="0" cellspacing="0" cellpadding="0" align="center">
        <tr> 
          <td height=8>注：<br>
            <br>
            1、本系统允许您自定义五类产品的销售，系统支持这五类产品的手工提交订单，然后操作员需要手工处理订单。<br>
            2、对于每类产品，系统配备了基本身份信息表单，另外每类产品最多可以自定义六个100字符以内的字段以及三个500字符以内的字段。<br>
            3、系统允许您为自定义的字段命名，并定义填写说明。填写说明不得超过50汉字。如果字段名为空则表示不启用该字段。/<br>
            4、第一个字段必须要有，作为区分各产品实例的唯一标志。默认为&quot;管理名称&quot;。<br>
            <font color="#FF0000">5、本操作请慎重进行，避免影响已启用的自定义产品</font>。<br>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  </tbody> 
</table>
<!--#include virtual="/incs/bottom.asp"-->
