<!--#include file="Inc/EnSysProduct.asp" -->
<!--#include file="inc/Skin_css.asp"-->
<%
public ProductList
if request("order")="Renew quantity" then
   Session("ProductList")=""
end if
ProductList = Session("ProductList")
Sub PutToShopBag(Prodid, ProductList)
   If Len(ProductList) = 0 Then
      ProductList = "'" & Trim(Prodid) & "'"
   ElseIf InStr( ProductList, Prodid ) <= 0 Then
      ProductList = ProductList&", '"&Trim(Prodid)&"'"
   End If   
End Sub
%>
<%
Productlj_Id = Trim(Request("Productlj_Id"))
if instr(Productlj_Id,",")>0 then		
		idArr=Split(Productlj_Id, ",")
		for i = 0 to ubound(idArr)
			PutToShopBag idArr(I), ProductList
		next
else
		   PutToShopBag Productlj_Id, ProductList
end if
%>

<%
Session("ProductList") = ProductList

'ÅÐ¶Ï¹ºÎï³µÊÇ·ñÎª¿Õ
if len(productlist)>2 then 
  sql="select * from Product where Productlj_Id in ("&ProductList&") order by     Productlj_Id"
  Set rs_price = conn.Execute(sql)
else 
  response.redirect "Enerror.asp?error=001"
  response.end
end if
%> 


<html>
<head>
<!--#include file="Enhead.asp" -->

<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="Author" content="heweiqun">
<meta name="Contact" content="hdz2008@163.com">
<meta name="Copyright" content="www.southidc.net">

<style type="text/css">
<!--
td {
	font-size: 12px;
	font-family: "Arial", "Helvetica", "sans-serif";
}
-->
</style>
<script language="JavaScript">
function CheckUserForm()
{
	if (document.payment.Subject.value.length == 0) {
		alert("title can't be blank.");
		document.payment.Subject.focus();
		return false;
	}	
	if (document.payment.Notes.value.length == 0) {
		alert("Notes can't be blank.");
		document.payment.Notes.focus();
		return false;
	}
	if (document.payment.Receiver.value.length == 0) {
		alert("Receiver can't be blank.");
		document.payment.Receiver.focus();
		return false;
	}
    if (document.payment.CompanyName.value.length == 0) {
		alert("CompanyName can't be blank.");
		document.payment.CompanyName.focus();
		return false;
	}   	
	if (document.payment.Email.value.length == 0) {
		alert("Email can't be blank.");
		document.payment.Email.focus();
		return false;
	}
	if (document.payment.Email.value.length > 0 && !document.payment.Email.value.match( /^.+@.+$/ ) ) {
	    alert("EMAIL input has mistake.");
	    document.payment.Email.focus();
		return false;
	}	
	if (document.payment.Phone.value.length == 0) {
		alert("Phone can't be blank.");
		document.payment.Phone.focus();
		return false;
	}  
	return true;
}
</script>

</head>

<table width="850" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td height="5" valign="top" bgcolor="#FFFFFF"></td>
  </tr>
  <tr> 
  
    <td height="72" valign="top" bgcolor="#FFFFFF"><table width="843" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr> 
          <td class="tdbg_left"  width="190" valign="top" > 
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td height="34" class="title_left">&nbsp;&nbsp;&nbsp;<img src="Images/smallbook.jpg" width="10" height="10">&nbsp;&nbsp;User 
                  login</td>
              </tr>
              <tr> 
                <td height="5"></td>
              </tr>
              <tr> 
                <td height="10"><table width="92%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr> 
                      <td> 
                        <% call ShowUserLogin() %>
                      </td>
                    </tr>
                  </table></td>
              </tr>
              <tr> 
                <td height="5"></td>
              </tr>
            </table>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td height="34" class="title_left">&nbsp;&nbsp;&nbsp;<img src="Images/smallbook.jpg" width="10" height="10">&nbsp;&nbsp;&nbsp;Prouduct 
                  list</td>
              </tr>
              <tr> 
                <td height="5"></td>
              </tr>
              <tr> 
                <td height="10"><table width="92%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr> 
                      <td> 
                        <% call ShowSmallClass_Tree() %>
                      </td>
                    </tr>
                  </table></td>
              </tr>
              <tr> 
                <td height="5"></td>
              </tr>
            </table> 
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td height="34" class="title_left">&nbsp;&nbsp;&nbsp;<img src="Images/smallbook.jpg" width="10" height="10">&nbsp;&nbsp;&nbsp;Prouduct 
                  search</td>
              </tr>
              <tr> 
                <td height="5"></td>
              </tr>
              <tr> 
                <td height="10"><table width="92%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr> 
                      <td> 
                        <% call ShowSearch(1) %>
                      </td>
                    </tr>
                  </table></td>
              </tr>
              <tr> 
                <td height="5"></td>
              </tr>
            </table></td>
          <td width="6"></td>
		  		  
          <td  valign="top"><table Class=border width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      
                      <td class="title_right" height="32">&nbsp;&nbsp;&nbsp;<img src="Images/smallbook.jpg" width="10" height="10">&nbsp;Online 
                        Inquire </td>
                    </tr>                    
                  </table>
				  
				  
                  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr> 
                      <td> 
                        <%If Session("UserName")<>"" Then%>
                  
                        <TABLE width="100%" align="center" cellPadding=0 cellSpacing=0>
                          <TBODY>
                            <TR vAlign=top > 
                              <TD  width="100%"><div align="center"> 
                                  <center>
                                  </center>
                                </div>                                
                          Member:<%=Session("UserName")%>£º¡¡¡¡
                          </TD>
                            </TR>
                            <TR vAlign=top > 
                              <TD  width="100%"> &nbsp;&nbsp;</TD>
                            </TR>
                          </TBODY>
                        </TABLE>
                        <%end if%>
                      </td>
                    </tr>
                  </table> 
			
		<form action="EnPayment.asp" method="POST" name="check">
              <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#000000">
                <tr bgcolor="#FFFFFF"> 
      <td colspan="2" height="25">&nbsp;&nbsp;<font color=B0266D><%=session("UserName")%> </font><font color=B0266D>Goods detailed 
                          list that you order as follows</font><br>
        <font color=B0266D>&nbsp; </font> </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
                        <td width="18%" height="25" align="center">Cancel</td>
                        <td width="82%" height="25" align="center">Prouduct name</td>
    </tr>
<%
 While Not rs_price.EOF   
%>
    <tr bgcolor="#FFFFFF"> 
      <td width="18%" height="20"><div align="center"> 
          <input type="CheckBox" name="Productlj_Id" value="<%=rs_price("Productlj_Id")%>" Checked>
        </div></td>
                  <td width="82%" bgcolor="#FFFFFF"><div align="center"><font color="B0266D"><%=rs_price("EnTitle")%></font></div></td>
    </tr>
    <%
rs_price.MoveNext
Wend
rs_price.close
set rs_price=nothing
%>
    <tr bgcolor="#FFFFFF"> 
      <td height="25" align="right"><div align="center">
                            <input type="submit" name="order" value="Renew quantity">
        </div></td>
      <td height="25" align="right"><div align="center"> </div></td>
    </tr>
  </table>
</form>
    <%
sql="select * from [User] where UserName='"&session("UserName")&"'"
set rs_price=server.createobject("adodb.recordset")
rs_price.open sql,conn,1,1
Sex=rs_price("Sex")
Phone=rs_price("Phone")
Email=rs_price("Email")
CompanyName=rs_price("CompanyName")
Receiver=rs_price("Receiver")
Add=rs_price("Add")
Fax=rs_price("Fax")
rs_price.close
set rs_price=nothing
%>	
<form name="payment" action="EnOrderpreview.asp" method="POST"  onSubmit="return CheckUserForm();">
              <table border="0" cellspacing="1" cellpadding="3" align="center" width="100%" bgcolor="#000000">
                <tr> 
                  <td width="96" height="23" bgcolor="#FFFFFF"> 
                    <div align="right">TO<strong>:</strong></div></td>
                  <td width="439" bgcolor="#FFFFFF"><%=CompanyName%>&nbsp;</td>
    </tr>
    <tr> 
                  <td height="21" bgcolor="#FFFFFF"> 
                    <div align="right"><font color="#FF0000">*</font> Title:</div></td>
      <td height="21" bgcolor="#FFFFFF"> <input name="Subject" type="text"  size="50" maxlength="100" value=""></td>
    </tr>
    <tr> 
                  <td height="21" bgcolor="#FFFFFF">
<div align="right"><font color="#FF0000">*</font> Remark:<br>
                            (20-4000 character)</div></td>
      <td height="21" bgcolor="#FFFFFF"><textarea name="Notes" cols="60" rows="10"></textarea></td>
    </tr>
                <tr bgcolor="#FFFFFF"> 
                  <td height="21" colspan="2"> 
                    <div align="center"></div></td>
    </tr>
  </table>

              <table border="0" cellspacing="1" cellpadding="3" align="center" width="100%" bgcolor="#000000">
                <tr bgcolor="#FFFFFF"> 
                  <td width="18%" rowspan="2" bgcolor="#FFFFFF"> 
                    <div align="right"><font color="#FF0000">*</font> Contact 
                            name<strong>:</strong></div></td>
                  <td width="16%"> <div align="right"> 
                      <input name="Sex" type="radio" value="1" <% if Sex="1" then response.Write("checked") end if%>>
                            Mr.</div></td>
                  <td width="66%" colspan="2" rowspan="2"> <input name="Receiver" type="text" class="form" id="name" size="30" value=<%=Receiver%>> 
                    <b></b></td>
                </tr>
                <tr bgcolor="#FFFFFF"> 
                  <td> <div align="right"> 
                      <input type="radio" name="Sex" value="0" <% if Sex="0" then response.Write("checked") end if%>>
                            Ms.</div></td>
                </tr>
                <tr bgcolor="#FFFFFF"> 
                  <td height="30" bgcolor="#FFFFFF"> 
                    <div align="right"><font color="#FF0000">*</font>Conpany name<strong>:</strong></div></td>
                  <td height="30" colspan="3" bgcolor="#FFFFFF">
<input type="text" name="CompanyName" size="40" value=<%=CompanyName%>>
                          (4-100 character) </td>
                </tr>
                <tr bgcolor="#FFFFFF">
                  <td height="30" bgcolor="#FFFFFF">
<div align="right">Add:</div></td>
                  <td height="30" colspan="3"><input type="text" name="Add"  size="50" value=<%=Add%>></td>
                </tr>
                <tr bgcolor="#FFFFFF"> 
                  <td height="30" bgcolor="#FFFFFF"> 
                    <div align="right"><font color="#FF0000">*</font> 
                      E-mail<strong>:</strong></div></td>
                  <td height="30" colspan="3"><input type="text" name="Email"  size="30" value=<%=Email%>> 
                    <b></b></td>
                </tr>
                <tr bgcolor="#FFFFFF"> 
                  <td height="30" bgcolor="#FFFFFF"> 
                    <div align="right"><font color="#FF0000">*</font> Conpany Tel<strong>:</strong></div></td>
                  <td colspan="3"> <input type="text" name="Phone" class="form" size="20" value=<%=Phone%>>
                    (Format:86-010-81991660)</td>
                </tr>
                <tr bgcolor="#FFFFFF"> 
                  <td height="30" bgcolor="#FFFFFF"> 
                    <div align="right">Fax<strong>:</strong></div></td>
                  <td colspan="3"><input type="text" name="Fax" size="20" value=<%=Fax%>>
                    (Format:86-010-81991660)</td>
                </tr>
                <tr bgcolor="#FFFFFF"> 
                  <td height="32" colspan="4" align="center"> 
                    <input type="submit" name="nextstep" value="Subst">
                          &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <input type="button" value="Continue  inquire" language=javascript onClick="javascript:window.close()" name="button"> 
                          &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
                          <input name="reset" type="reset" id="reset" value="Reset"> 
                        </td>
                </tr>
              </table>           
      </form></td>
  </tr>
</table>
			
		  </td>			
			
        </tr>
      </table></td>
  </tr>
</table>
<!-- #include file="Inc/EnFoot.asp" -->
</BODY></HTML>
