<?php /* Smarty version 2.6.19, created on 2008-08-28 15:21:17
         compiled from printwindow.tpl */ ?>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title></title>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>

<script>     
  function   printview()     
  {     
  document.all.WebBrowser1.ExecWB(7,1) ;
  window.close();  
  }     
  function   prints()     
  {     
document.all.WebBrowser1.Execwb(6,1)
  window.close();  
  }     


 </script>     
 <object   ID='WebBrowser1'   WIDTH=0   HEIGHT=0   CLASSID='CLSID:8856F961-340A-11D0-A96B-00C04FD705A2'></object>
 

<body topmargin="0" leftmargin="0" bottommargin="0" onLoad="<?php if ($this->_tpl_vars['pv'] == 1): ?>prints();<?php elseif ($this->_tpl_vars['pv'] == 2): ?> printview();<?php endif; ?> ">

<?php unset($this->_sections['id']);
$this->_sections['id']['name'] = 'id';
$this->_sections['id']['loop'] = is_array($_loop=$this->_tpl_vars['info']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['id']['show'] = true;
$this->_sections['id']['max'] = $this->_sections['id']['loop'];
$this->_sections['id']['step'] = 1;
$this->_sections['id']['start'] = $this->_sections['id']['step'] > 0 ? 0 : $this->_sections['id']['loop']-1;
if ($this->_sections['id']['show']) {
    $this->_sections['id']['total'] = $this->_sections['id']['loop'];
    if ($this->_sections['id']['total'] == 0)
        $this->_sections['id']['show'] = false;
} else
    $this->_sections['id']['total'] = 0;
if ($this->_sections['id']['show']):

            for ($this->_sections['id']['index'] = $this->_sections['id']['start'], $this->_sections['id']['iteration'] = 1;
                 $this->_sections['id']['iteration'] <= $this->_sections['id']['total'];
                 $this->_sections['id']['index'] += $this->_sections['id']['step'], $this->_sections['id']['iteration']++):
$this->_sections['id']['rownum'] = $this->_sections['id']['iteration'];
$this->_sections['id']['index_prev'] = $this->_sections['id']['index'] - $this->_sections['id']['step'];
$this->_sections['id']['index_next'] = $this->_sections['id']['index'] + $this->_sections['id']['step'];
$this->_sections['id']['first']      = ($this->_sections['id']['iteration'] == 1);
$this->_sections['id']['last']       = ($this->_sections['id']['iteration'] == $this->_sections['id']['total']);
?>
<table width="630" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#999999">
		    <tr>
              <td bgcolor="#FFFFFF"><table width="630" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <td height="25" colspan="2"><table width="250" height="20" border="0" align="left" cellpadding="0" cellspacing="0">
                    <tr>
                      <td width="15" bgcolor="#FFFFFF"><div align="center"></div></td>
                      <td width="235" bgcolor="#CCCCCC"><div align="center">吉林省明日科技有限公司-编程词典订单</div></td>
                    </tr>
                  </table></td>
                  <td height="25">&nbsp;</td>
                  <td height="25"><?php echo $this->_tpl_vars['info'][$this->_sections['id']['index']]['createtime']; ?>
</td>
                </tr>
				<tr>
                  <td height="1" colspan="4" valign="top"><hr size="1" color="#CCCCCC" width="600"></td>
                  </tr>
                <tr>
                  <td width="125" height="18"><div align="right">订单号：</div></td>
                  <td height="18" colspan="3">&nbsp;<?php echo $this->_tpl_vars['info'][$this->_sections['id']['index']]['ddnumber']; ?>
</td>
                </tr>
                <tr>
                  <td height="18"><div align="right">收货人：</div></td>
                  <td width="222" height="18">&nbsp;<?php echo $this->_tpl_vars['info'][$this->_sections['id']['index']]['recuser']; ?>
</td>
                  <td width="125" height="18"><div align="right">邮编：</div></td>
                  <td width="208" height="18">&nbsp;<?php echo $this->_tpl_vars['info'][$this->_sections['id']['index']]['yb']; ?>
</td>
                </tr>
                <tr>
                  <td height="18"><div align="right">移动电话：</div></td>
                  <td height="18">&nbsp;<?php echo $this->_tpl_vars['info'][$this->_sections['id']['index']]['mtel']; ?>
</td>
                  <td height="18"><div align="right">固定电话：</div></td>
                  <td height="18">&nbsp;<?php echo $this->_tpl_vars['info'][$this->_sections['id']['index']]['gtel']; ?>
</td>
                </tr>
                <tr>
                  <td height="18"><div align="right">联系地址：</div></td>
                  <td height="18" colspan="3">&nbsp;<?php echo $this->_tpl_vars['info'][$this->_sections['id']['index']]['address']; ?>
</td>
                  </tr>
                <tr>
                  <td height="20" colspan="4"><br><table width="550" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
                    <tr>
                      <td height="18" bgcolor="#CCCCCC"><div align="center">商品名称</div></td>
                      <td bgcolor="#CCCCCC"><div align="center">单价（元）</div></td>
                      <td bgcolor="#CCCCCC"><div align="center">数量</div></td>
                      <td bgcolor="#CCCCCC"><div align="center">小计（元）</div></td>
                    </tr>
<?php if ($this->_tpl_vars['isShow'] == 'F'): ?>
			
			
			<tr>
              <td height="22" colspan="4" bgcolor="#FFFFFF"><div align="center">对不起，您的购物车中暂无商品信息！</div></td>
            </tr>
			
<?php else: ?>
<?php unset($this->_sections['data']);
$this->_sections['data']['name'] = 'data';
$this->_sections['data']['loop'] = is_array($_loop=$this->_tpl_vars['myrow']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['data']['show'] = true;
$this->_sections['data']['max'] = $this->_sections['data']['loop'];
$this->_sections['data']['step'] = 1;
$this->_sections['data']['start'] = $this->_sections['data']['step'] > 0 ? 0 : $this->_sections['data']['loop']-1;
if ($this->_sections['data']['show']) {
    $this->_sections['data']['total'] = $this->_sections['data']['loop'];
    if ($this->_sections['data']['total'] == 0)
        $this->_sections['data']['show'] = false;
} else
    $this->_sections['data']['total'] = 0;
if ($this->_sections['data']['show']):

            for ($this->_sections['data']['index'] = $this->_sections['data']['start'], $this->_sections['data']['iteration'] = 1;
                 $this->_sections['data']['iteration'] <= $this->_sections['data']['total'];
                 $this->_sections['data']['index'] += $this->_sections['data']['step'], $this->_sections['data']['iteration']++):
$this->_sections['data']['rownum'] = $this->_sections['data']['iteration'];
$this->_sections['data']['index_prev'] = $this->_sections['data']['index'] - $this->_sections['data']['step'];
$this->_sections['data']['index_next'] = $this->_sections['data']['index'] + $this->_sections['data']['step'];
$this->_sections['data']['first']      = ($this->_sections['data']['iteration'] == 1);
$this->_sections['data']['last']       = ($this->_sections['data']['iteration'] == $this->_sections['data']['total']);
?>
					 <tr>
                      <td height="18" bgcolor="#FFFFFF">&nbsp;<?php echo $this->_tpl_vars['myrow'][$this->_sections['data']['index']]['tb_commodity_name']; ?>
</td>
                      <td height="18" bgcolor="#FFFFFF"><div align="center"><?php echo $this->_tpl_vars['myrow'][$this->_sections['data']['index']]['tb_commodity_price']; ?>
</div></td>
                      <td height="18" bgcolor="#FFFFFF"><div align="center"><?php echo $this->_tpl_vars['myrow'][$this->_sections['data']['index']]['7']; ?>
</div></td>
                      <td height="18" bgcolor="#FFFFFF"><div align="center"><?php echo $this->_tpl_vars['myrow'][$this->_sections['data']['index']]['8']; ?>
</div></td>
                    </tr>
<?php endfor; endif; ?>					
<?php endif; ?>     					
                  </table>
				  
				    <table width="550" height="50" border="0" align="center" cellpadding="0" cellspacing="0">
                      <tr>
                        <td height="25">&nbsp;</td>
                        <td width="60" height="25"><div align="center">商品总计：</div></td>
                        <td width="112">&nbsp;<?php echo $this->_tpl_vars['totalprice']; ?>
</td>
                      </tr>
                    
                      <tr>
                        <td height="25">&nbsp;</td>
                        <td height="25"><div align="right">邮费：</div></td>
                        <td height="25">&nbsp;<?php echo $this->_tpl_vars['info'][$this->_sections['id']['index']]['yprice']; ?>
&nbsp;元</td>
                      </tr>
					  <tr>
                        <td width="378" height="1"></td>
                        <td height="1" colspan="2" bgcolor="#CCCCCC"></td>
                      </tr>
					  <tr>
                        <td height="25" colspan="2"><div align="right"><strong>你需要支付的金额总计为：</strong></div></td>
                        <td width="112">&nbsp;<?php echo $this->_tpl_vars['info'][$this->_sections['id']['index']]['totalprice']; ?>
&nbsp;元</td>
                      </tr>
                    </table>
				    </td>
                </tr>
				
                <tr>
                  <td height="1" colspan="4" valign="top"><hr size="1" color="#CCCCCC" width="600"></td>
                 </tr>
				 <tr>
                  <td height="2" colspan="4" valign="top"></td>
                 </tr>
              </table></td>
		    </tr>
          </table>
<?php endfor; endif; ?>
</body>
</html>
