<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%> <% dim action dim U_Name,U_PSW,U_Company,U_Phone,U_Fax,U_Email,U_ID,U_PSW2,password,RealName dim sql action=request.QueryString("action") if action="reg" then call UserAdd() action="regok" end if sub UserAdd() U_Name=trim(replace(request.Form("U_Name"),"'","")) U_PSW=trim(replace(request.Form("U_PSW"),"'","")) U_PSW2=trim(replace(request.Form("U_PSW2"),"'","")) U_Company=trim(replace(request.Form("U_Company"),"'","")) U_Phone=trim(replace(request.Form("U_Phone"),"'","")) U_Fax=trim(replace(request.Form("U_Fax"),"'","")) U_Email=trim(replace(request.Form("U_Email"),"'","")) U_Address=trim(replace(request.Form("U_Address"),"'","")) U_Mobel=trim(replace(request.Form("U_Mobel"),"'","")) RealName=trim(replace(request.Form("RealName"),"'","")) if U_Name="" then closeconn() response.Write("") response.end() end if if U_PSW="" then closeconn() response.Write("") response.end() end if if U_PSW<>U_PSW2 then closeconn() response.Write("") response.end() end if if U_Company="" then closeconn() response.Write("") response.end() end if if U_Phone="" then closeconn() response.Write("") response.end() end if sql="select * from P_User where U_Name='"&U_Name&"'" set rs=conn.execute(sql) if not rs.eof then rs.close closeconn() response.Write("") response.end() end if rs.close password=MD5(U_PSW) sql="select * from [P_User]" set rs=server.CreateObject("adodb.recordset") rs.open sql,conn,2,3 rs.addnew rs("U_Name")=U_Name rs("U_PSW")=password rs("U_Company")=U_Company rs("U_Phone")=U_Phone rs("U_Fax")=U_Fax rs("U_Email")=U_Email rs("U_Pass")=1 rs("U_Address")=U_Address rs("U_Mobel")=U_Mobel rs("U_RealName")=RealName rs.update rs.close response.Write("") end sub %> Yuyao Shunlong Optronics Technology Co.,Ltd

Product CategoryProduct Category

<% dim pcnum sql="select count(*) from P_class where child>0" set rs=conn.execute(sql) pcnum=rs(0) rs.close %>
    <% dim l_num,child dim rs_pl,rs_pl2,rs_pl3 dim sql_pl,sql_p dim P_ID2,c_id2 P_ID2=request.QueryString("P_ID") if P_ID2="" then P_ID2=0 sql_pl="select C_ID from P_product where P_ID="&P_ID2 set rs_pl=conn.execute(sql_pl) if rs_pl.eof then c_id2=request.QueryString("c_id") else c_id2=rs_pl(0) end if rs_pl.close if c_id2="" then c_id2=0 dim PathID_List set rs_pl=conn.execute("select parentPath from P_class where classId="&c_id2) if not rs_pl.eof then PathID_List=rs_pl(0)&","&c_id2 else PathID_List=c_id2 end if rs_pl.close l_num=0 sql_pl="select classId,class,child from P_class where depth=0 order by orderId" set rs_pl=conn.execute(sql_pl) do while not rs_pl.eof child=rs_pl("child") if cint(child)>0 then l_num=l_num+1 %>
  • <%if cint(child)>0 then%><%=cutstr(rs_pl(1),28)%>
      "> <%sql_pl="select classId,class,parentId,child from P_class where parentId="&rs_pl(0)&" order by orderId" set rs_pl2=conn.execute(sql_pl) do while not rs_pl2.eof %>
    • <%=cutstr(rs_pl2(1),26)%>
    • <% rs_pl2.movenext loop rs_pl2.close %>
    <%else%> <%=cutstr(rs_pl(1),26)%> <%end if%>
  •  
  • <% rs_pl.movenext loop rs_pl.close set rs_pl=nothing set rs_p=nothing %>
ShunLong Optronics Technology Co.,Ltd.
<% call info() sub info() %>
Items with "*" must be filled in.
Username:
*
Password:
*
Password confirmation:
*
Name:
Company:
*
Address:
Tel:
*
Mobile:
Fax:
E-mail:
*
    
<% end sub %>