<?php /* Smarty version 2.6.19, created on 2008-07-29 11:21:01
         compiled from index.tpl */ ?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>购物车模块</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style></head>

<body>
<table width="1003" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><div align="center"><img src="images/sy_2.jpg" width="1003" height="75"></div></td>
  </tr>
</table>
<table width="1003" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td align="center"><img src="images/sy_4.jpg" width="825" height="140"></td>
  </tr>
</table>
<table width="1003" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="89">&nbsp;</td>
    <td width="825"><table width="825" border="1" align="center" cellpadding="1" cellspacing="1" bordercolor="#FFFFFF" bgcolor="#D0D0D0">
<tr>
<td align="center" bgcolor="#FFFFFF"><img src="images/sy_8.jpg" width="781" height="25">
  <table width="740" height="81" align="center">
  <tr>
    <td width="740" height="3" colspan="4" bgcolor="#FFFFFF"></td>
    <?php $number=0; ?>
    <?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']);
?>  
    <?php if(($number % 4) == 0){  ?></tr>
  <tr> <?php 
    } ?>
    <td colspan="4" bgcolor="#FFFFFF"><table width="185" height="180" border="1" align="center" cellpadding="1" cellspacing="1" bordercolor="#FFFFFF" bgcolor="#3E5D96">
      <tr>
        <td height="120" colspan="2" align="center" bgcolor="#FFFFFF"><img src="head_picture.php?recid=<?php echo $this->_tpl_vars['myrow'][$this->_sections['data']['index']]['tb_commodity_id']; ?>
" width="120" height="135" border="3" style=" border-color:#CCCCCC; margin-top:5px; margin-left:5px; margin-bottom:5px; margin-right:5px;" alt="&lt;{$myrow[data].tb_commodity_explain}&gt;"></td>
      </tr>
      <tr>
        <td width="60" height="20" bgcolor="#FFFFFF">商品名：</td>
        <td width="125" bgcolor="#FFFFFF"><?php echo $this->_tpl_vars['myrow'][$this->_sections['data']['index']]['tb_commodity_name']; ?>
</td>
      </tr>
      <tr>
        <td height="20" bgcolor="#FFFFFF">价格：</td>
        <td bgcolor="#FFFFFF"><?php echo $this->_tpl_vars['myrow'][$this->_sections['data']['index']]['tb_commodity_price']; ?>
</td>
      </tr>
      <tr>
        <td height="20" bgcolor="#FFFFFF"><a href="buy_commodity.php?id=<?php echo $this->_tpl_vars['myrow'][$this->_sections['data']['index']]['tb_commodity_id']; ?>
">购买</a></td>
        <td bgcolor="#FFFFFF"><a href="shopping_car.php">查看购物车</a></td>
      </tr>
    </table></td>
    <?php if(($number %4)!= 0){ ?> 
    <?php 
    
    }
    $number++;
     ?>
    
    <?php endfor; endif; ?> </tr>
</table></td>
</tr>
</table></td>
    <td width="89">&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td><table width="825" height="25" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
            <tr>
              <td width="483"><div align="left">&nbsp;&nbsp;共有编程词典&nbsp;<?php echo $this->_tpl_vars['total1']; ?>
&nbsp;个&nbsp;每页显示&nbsp;<?php echo $this->_tpl_vars['pagesize1']; ?>
&nbsp;个&nbsp;第&nbsp;<?php echo $this->_tpl_vars['page1']; ?>
&nbsp;页/共&nbsp;<?php echo $this->_tpl_vars['pagecount1']; ?>
&nbsp;页</div></td>
              <td width="342" align="center"><div align="right">

<?php if ($this->_tpl_vars['page1'] == 1): ?>首页&nbsp;上一页<?php else: ?><a href="index.php?pages=1">首页</a>&nbsp;<a href="index.php?pages=<?php echo $this->_tpl_vars['page1']-1; ?>
" >上一页</a><?php endif; ?> &nbsp;<?php if ($this->_tpl_vars['page1'] == $this->_tpl_vars['pagecount1']): ?>下一页&nbsp;尾页<?php else: ?><a href="index.php?pages=<?php echo $this->_tpl_vars['page1']+1; ?>
">下一页</a>&nbsp;<a href="index.php?pages=<?php echo $this->_tpl_vars['pagecount1']; ?>
">尾页</a><?php endif; ?>

</div></td>            </tr>
</table></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="3"><img src="images/sy_21.jpg" width="1003" height="45"></td>
  </tr>
</table>
</body>
</html>
