<%@ LANGUAGE=VBScript CodePage=65001%>
<% response.charset="utf-8" %>
<% session.codepage=65001 %>
<!-- #include file="../inc/AntiAttack.asp" -->
<!-- #include file="../inc/conn.asp" -->
<!-- #include file="../inc/web_config.asp" -->
<!-- #include file="../inc/html_clear.asp" -->
<%

id=cint(request.querystring("id"))

set rs=server.createobject("adodb.recordset")
sql="select * from article where  id="&id
rs.open(sql),cn,1,1
if not rs.eof and not rs.bof then
ProductName=rs("title")
%>
<div class="view products">

<article class="remark"><font face="宋体"><p class="">

<form id="form1" name="form1" method="post" action="/inc/order_mobile.asp?act=add&id=<%=id%>">
      
  <table id="commentform" width="600" border="0" align="center" cellpadding="0" cellspacing="0">
    <tbody><tr>
      <td>订购产品</td>
      <td><span class="OrderName"><%=ProductName%></span></td>
    </tr>
    <tr>
      <td>订购数量</td>
      <td><input name="ordercount" type="text" id="ordercount" size="10" maxlength="10" value="1"><span class="FontRed">*</span></td>
    </tr>    
    <tr>
      <td>联系人</td>
      <td><input name="name" type="text" id="name" size="30" maxlength="30"><span class="FontRed">*</span></td>
    </tr>
    <tr>
      <td>联系地址</td>
      <td><input name="address" type="text" id="address" size="30" maxlength="30"><span class="FontRed">*</span></td>
    </tr>
    <tr>
      <td>联系电话</td>
      <td><input name="tel" type="text" id="tel" size="30" maxlength="30"><span class="FontRed">*</span></td>
    </tr>    
    <tr>
      <td>电子邮件</td>
      <td><input name="email" type="text" id="email" size="30" maxlength="80"></td>
    </tr>
    <tr>
      <td>QQ</td>
      <td><input name="qq" type="text" id="qq" size="30" maxlength="30"></td>
    </tr>	
    <tr>
      <td>备注</td>
      <td>
        <textarea name="content" cols="60" rows="5" value=""></textarea>
           </td>    </tr>
    <tr>
      <td>验证码</td>
      <td><input name="verycode" maxlength="5" size="10"> <span class="FontRed">*</span><img src="/inc/getcode.asp" width="55" onclick="this.src=this.src+'?'" alt="图片看不清？点击重新得到验证码" style="cursor:hand;"></td>
    </tr>	
    <tr>
      <td>&nbsp;</td>
      <td><input class="Cbutton" type="submit" value=" 立即订购 " onclick="javascript:return order_check()"></td>
    </tr>
  </tbody></table>
</form>
</p></font></article>
<script>
function order_check() {
if ( document.form1.ordercount.value == '' ) {
window.alert('请输入订购数量^_^');
document.form1.ordercount.focus();
return false;}

if(document.form1.ordercount.value.search(/^([0-9]*)([.]?)([0-9]*)$/)   ==   -1)   
      {   
  window.alert("订购数量只能是数字^_^");   
document.form1.ordercount.focus();
return false;}


if ( document.form1.name.value == '' ) {
window.alert('请输入联系人^_^');
document.form1.name.focus();
return false;}

if ( document.form1.address.value == '' ) {
window.alert('请输入联系地址^_^');
document.form1.address.focus();
return false;}

if ( document.form1.tel.value == '' ) {
window.alert('请输入联系电话^_^');
document.form1.tel.focus();
return false;}

if ( document.form1.email.value.length> 0 &&!document.form1.email.value.indexOf('@')==-1|document.form1.email.value.indexOf('.')==-1 ) {
window.alert('请设置正确的Email地址，如:webmaster@Huigusoft.com');
document.form1.email.focus();
return false;}

if(document.form1.qq.value.search(/^([0-9]*)([.]?)([0-9]*)$/)   ==   -1)   
      {   
  window.alert("QQ只能是数字^_^");   
document.form1.qq.focus();
return false;}


if ( document.form1.verycode.value == '' ) {
window.alert('请输入验证码^_^');
document.form1.verycode.focus();
return false;}

return true;}
</script>

<prevnext class="pagePrevNext controlgroup">

</prevnext>

<script>
      swipeView();
    </script>
</div>


<%
else
response.write "暂时无数据"
end if %>
<!--
Powered By Huigusoft ASP v3.8 
-->




