<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="zh-cn">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>在线订购-<?php echo (C("seo_title")); ?></title>
    <meta name="keywords" content="<?php echo (C("seo_keywords")); ?>" />
    <meta name="description" content="<?php echo (C("seo_description")); ?>" />
    <meta name="applicable-device"content="pc,mobile">
	<link href="__PUBLIC__/css/bootstrap.css" rel="stylesheet">
	<link href="../Public/css/bxslider.css" rel="stylesheet">
	<link href="../Public/css/style.css" rel="stylesheet">
	<script src="__PUBLIC__/js/jquery.min.js"></script>
	<script src="../Public/js/bxslider.min.js"></script>
	<script src="../Public/js/common.js"></script>
	<script src="__PUBLIC__/js/bootstrap.js"></script>
	<!--[if lt IE 9]>
	  <script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
	  <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
	<![endif]-->
    <SCRIPT language=javaScript>
    function CheckJob()
    {
        if (document.myform.product.value.length==""){
            alert ("产品名称不能为空！");
            document.myform.product.focus();
            return false;
        }
        if (document.myform.name.value.length==""){
            alert ("联系人不能为空！");
            document.myform.name.focus();
            return false;
        }
        if (document.myform.tel.value.length==""){
            alert ("电话不能为空！");
            document.myform.tel.focus();
            return false;
        }
     }
    </SCRIPT>
  </head>
  <body>
  
 <header>

    <div class="top_menu">
      <div class="container">

        <div class="col-xs-12 col-sm-9 col-md-9">
          <span class="top_name">欢迎光临~<?php echo (C("web_name")); ?></span>
        </div>

        <div id="topsearch" class="col-xs-12 col-sm-3 col-md-3">
            <form id="searchform" method="get" action="<?php echo U('Search/index');?>">
                <div class="input-group search_group">
                    <input type="text" name="name" class="form-control input-sm" placeholder="产品搜索">
                       <span class="input-group-btn">
                          <span id="submit_search" onclick="searchform.submit();" title="产品搜索" class="glyphicon glyphicon-search btn-lg" aria-hidden="true"></span>
                      </span>
                </div>
            </form>
        </div>

      </div>
    </div>

    <div class="container">
      <div class="row">
        <div class="col-xs-12 col-sm-9 col-md-9">
            <a href="<?php echo (C("web_url")); ?>"><img src="__ROOT__/Uploads/<?php echo (C("web_logo")); ?>" class="logo" alt="<?php echo (C("web_name")); ?>"/></a>
        </div>
 
        <div class="col-xs-12 col-sm-3 col-md-3 tel_box">
          <div class="top_tel"><img src="../Public/images/tel.jpg" alt="服务热线"></div>
          <div class="top_number">
            <span>全国客服热线：</span>
            <p><?php echo (C("web_tel")); ?></p>
          </div>
        </div>

      </div>
    </div>
  
<?php echo W('Nav');?>

</header>

 <div class="page_bg" style="background: url(__ROOT__/Uploads/<?php echo W('Flash',array('type'=>3,'id'=>8));?>) center top no-repeat;"></div>
   
    <!-- main -->
    <div class="container">    
        <div class="row">

            <!-- right -->
            <div class="col-xs-12 col-sm-8 col-md-9" style="float:right">
                <div class="list_box">
                  <h2 class="left_h2">在线订购</h2>

                    <div class="feedback">
                   <form id="myform" name="myform" class="form-horizontal" method="post" action="__ROOT__/?m=Inquiry&a=check" onSubmit="return CheckJob()">

                      <div class="form-group">
                        <label for="products"class="col-sm-3 control-label">产品名称：</label>
                        <div class="col-sm-6">
                          <input type="text" name="product" value="<?php echo ($ordername); ?>" class="form-control" id="products" placeholder="必填">
                        </div>
                      </div>

                      <div class="form-group">
                        <label for="number" class="col-sm-3 control-label">订购数量：</label>
                        <div class="col-sm-6">
                          <input type="number" name="num" class="form-control" id="number">
                        </div>
                      </div>

                      <div class="form-group">
                        <label for="username" class="col-sm-3 control-label">联系人：</label>
                        <div class="col-sm-6">
                          <input type="text" name="name" class="form-control" id="username" placeholder="必填">
                        </div>
                      </div>

                      <div class="form-group">
                        <label for="company" class="col-sm-3 control-label">公司名称：</label>
                        <div class="col-sm-6">
                          <input type="text" name="company" class="form-control" id="company">
                        </div>
                      </div>

                      <div class="form-group">
                        <label for="add" class="col-sm-3 control-label">联系地址：</label>
                        <div class="col-sm-6">
                          <input type="text" name="add" class="form-control" id="add">
                        </div>
                      </div> 

                      <div class="form-group">
                        <label for="tel" class="col-sm-3 control-label">联系电话：</label>
                        <div class="col-sm-6">
                          <input type="text" name="tel" class="form-control" id="tel" placeholder="必填">
                        </div>
                      </div>

                      <div class="form-group">
                        <label for="fax" class="col-sm-3 control-label">传 真：</label>
                        <div class="col-sm-6">
                          <input type="text" name="fax" class="form-control" id="fax">
                        </div>
                      </div>

                      <div class="form-group">
                        <label for="inputEmail" class="col-sm-3 control-label">电子邮箱：</label>
                        <div class="col-sm-6">
                          <input type="email" name="email" class="form-control" id="inputEmail">
                        </div>
                      </div>
            
                      <div class="form-group">
                        <label for="contents" class="col-sm-3 control-label">详细内容：</label>
                        <div class="col-sm-6">
                          <textarea name="contents" class="form-control" rows="3"></textarea>
                        </div>
                      </div>
                      
                      <div class="form-group">
                        <label for="code" class="col-xs-12 col-sm-3 control-label">验证码：</label>
                        <div class="col-xs-7 col-sm-2"><input type="text" name="code" class="form-control" id="code" placeholder="验证码"></div>
                        <div class="col-xs-2 col-sm-1"><img class="codeimg" src="<?php echo U('Common/verify');?>" onclick='this.src=this.src+"?"+Math.random()'/></div>
                      </div>

                      <div class="form-group">
                        <div class="col-sm-offset-3 col-sm-10">
                          <button type="submit" name="button" value="提交订单" class="btn btn-danger page-btn">提交订单</button>&nbsp;
                          <button type="reset" name="reset" class="btn btn-default grey-btn">重新填写</button>
                        </div>
                      </div>
                      
                    </form>
                    </div>
                         
                </div>
      </div>

            <!-- left -->
            <div class="col-xs-12 col-sm-4 col-md-3">
                <div class="left_nav" id="categories">
                  <h2 class="left_h2">导航栏目</h2>
                  <?php echo W('Left',array('id'=>1,'type'=>'product'));?>
                </div>

                <div class="left_news">
                  <h2 class="left_h2">新闻中心</h2>
                  <?php echo W('List',array('table'=>'New','bid'=>2,'id'=>2));?>
                </div>
               
		<div class="index_contact">
		<h2 class="left_h2">联系我们</h2>
		    <p style="padding-top:8px;">联系人：<?php echo (C("web_contacts")); ?></p>
		    <p>手 机：<?php echo (C("web_phone")); ?></p>
		    <p>邮 箱：<?php echo (C("web_email")); ?></p>
		    <p>公 司：<?php echo (C("web_name")); ?></p>
		    <p>地 址：<?php echo (C("web_add")); ?></p>
		</div>
            </div>

    </div>
  </div>

<nav class="navbar navbar-default navbar-fixed-bottom footer_nav">
    <div class="foot_nav btn-group dropup">
        <a class="dropdown-toggle"  data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" href="#">
            <span class="glyphicon glyphicon-share btn-lg" aria-hidden="true"></span>
            分享</a>  
            <div class="dropdown-menu webshare">
            <?php echo (C("web_share")); ?>
            </div>
    </div>
    <div class="foot_nav"><a href="tel:<?php echo (C("web_phone")); ?>"><span class="glyphicon glyphicon-phone btn-lg" aria-hidden="true"></span>手机</a></div>
    <div class="foot_nav"  aria-hidden="true"  data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"><span class="glyphicon glyphicon-th-list btn-lg"></span>分类</div>
    <div class="foot_nav"><a id="gototop" href="#"><span class="glyphicon glyphicon-circle-arrow-up btn-lg" aria-hidden="true"></span>顶部</a></div>
</nav>

<footer>
    <div class="copyright">
        <p><?php echo (C("web_copyright")); ?>&nbsp;<?php echo (C("web_icp")); ?> <a href="__ROOT__/sitemap.html" target="_blank">网站地图</a></p>
        <p class="copyright_p">地址：<?php echo (C("web_add")); ?> &nbsp;电话：<?php echo (C("web_tel")); ?> &nbsp;传真：<?php echo (C("web_fax")); ?>&nbsp;<?php echo (C("web_count")); ?></p>
    </div>
    <?php if(C("is_translate")!= 0): ?><div id="translate">
<div id='MicrosoftTranslatorWidget' class='Dark' style='color:white;background-color:#555555'></div><script type='text/javascript'>setTimeout(function(){{var s=document.createElement('script');s.type='text/javascript';s.charset='UTF-8';s.src=((location && location.href && location.href.indexOf('https') == 0)?'https://ssl.microsofttranslator.com':'http://www.microsofttranslator.com')+'/ajax/v3/WidgetV3.ashx?siteData=ueOIGRSKkd965FeEGM5JtQ**&ctf=False&ui=true&settings=Manual&from=';var p=document.getElementsByTagName('head')[0]||document.documentElement;p.insertBefore(s,p.firstChild); }},0);</script>
</div><?php endif; ?> 
</footer>

<?php echo W('Online');?>

  </body>
</html>