<?php /* Smarty version Smarty-3.0.8, created on 2014-05-18 20:20:30
         compiled from "D:\www\cangku/tpl\shoplist.html" */ ?>
<?php /*%%SmartyHeaderCode:179815378a58ea05d93-95869902%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'ef26115c390409965c08990ab9801dd08581028d' => 
    array (
      0 => 'D:\\www\\cangku/tpl\\shoplist.html',
      1 => 1400415466,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '179815378a58ea05d93-95869902',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<!DOCTYPE HTML>
<html>
<head>
	<meta http-equiv="content-type" content="text/html" />
    <link rel="stylesheet" href="dist/css/bootstrap.css"/>
    <link href="dist/css/bootstrap-responsive.css" rel="stylesheet"/>
     <script src="dist/js/jquery.min.js"></script>
     <script src="dist/js/bootstrap.min.js"></script>
     		<link rel="stylesheet" href="dist/js/default.css" />
		<script src="dist/js/kindeditor.js"></script>
        <title>仓库管理系统后台-产品列表</title>
</head>
<body>
<div style="width: 98%;margin: auto;margin-top: 5px;">
<table class="table table-bordered">
       <tr>
        <th style="width: 150px;">产品名</th>
        <th style="width: 150px;">产品编号</th>
        <th style="width: 150px;">产品分类</th>
        <th style="width: 150px;">产品单价(元)</th>
        <th style="width: 150px;">产品图片</th>
        <th style="width: 150px;">成品总数量</th>
        <th style="width: 150px;">成品单价(元)</th>
                <th style="width: 200px;">成品备注</th>
        <th style="width: 150px;">次品总数量</th>
        <th style="width: 150px;">次品单价(元)</th>
                <th style="width: 200px;">次品备注</th>
        <th style="width: 150px;">发布时间</th>
        <th style="width: 150px;">更新时间</th>


        <th style="width: 150px;">操作</th>
        </tr>
        <?php  $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('b')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value){
?>
                <tr>
                <td><?php echo $_smarty_tpl->tpl_vars['value']->value['shopname'];?>
</td>
                <td><?php echo $_smarty_tpl->tpl_vars['value']->value['num'];?>
</td>
                <td><?php echo $_smarty_tpl->tpl_vars['value']->value['type'];?>
</td>
                <td><?php echo $_smarty_tpl->tpl_vars['value']->value['pay'];?>
</td>
                <td><a href="<?php echo $_smarty_tpl->tpl_vars['value']->value['images'];?>
" target="_blank">查看图片</a></td>
                <td><?php echo $_smarty_tpl->tpl_vars['value']->value['goodnum'];?>
</td>
                <td><?php echo $_smarty_tpl->tpl_vars['value']->value['gdpay'];?>
</td>
                   <td><?php echo $_smarty_tpl->tpl_vars['value']->value['bz'];?>
</td>
                <td><?php echo $_smarty_tpl->tpl_vars['value']->value['badnum'];?>
</td>
                <td><?php echo $_smarty_tpl->tpl_vars['value']->value['bdpay'];?>
</td>
                <td><?php echo $_smarty_tpl->tpl_vars['value']->value['bza'];?>
</td>
                <td><?php echo $_smarty_tpl->tpl_vars['value']->value['fbtime'];?>
</td>
                <td><?php echo $_smarty_tpl->tpl_vars['value']->value['gxtime'];?>
</td>   
                <td><a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'main','a'=>'shopdel','id'=>$_smarty_tpl->tpl_vars['value']->value['id']),$_smarty_tpl);?>
">刪除</a></td>
                </tr>
                <?php }} ?>
</table>
    <div style="width: 100%;text-align: center;">
  <?php if ($_smarty_tpl->getVariable('pager')->value){?>
共有内容<?php echo $_smarty_tpl->getVariable('pager')->value['total_count'];?>
条，共有<?php echo $_smarty_tpl->getVariable('pager')->value['total_page'];?>
页（每页<?php echo $_smarty_tpl->getVariable('pager')->value['page_size'];?>
条内容）：
<!--在当前页不是第一页的时候，显示前页和上一页-->
<?php if ($_smarty_tpl->getVariable('pager')->value['current_page']!=$_smarty_tpl->getVariable('pager')->value['first_page']){?>
<a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'main','a'=>'shoplist','page'=>$_smarty_tpl->getVariable('pager')->value['first_page'],'name'=>$_smarty_tpl->getVariable('fenye')->value),$_smarty_tpl);?>
">前页</a> | 
<a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'main','a'=>'shoplist','page'=>$_smarty_tpl->getVariable('pager')->value['prev_page'],'name'=>$_smarty_tpl->getVariable('fenye')->value),$_smarty_tpl);?>
">上一页</a> | 
<?php }?>
<!--开始循环页码，同时如果循环到当前页则不显示链接-->
<?php  $_smarty_tpl->tpl_vars['thepage'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('pager')->value['all_pages']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['thepage']->key => $_smarty_tpl->tpl_vars['thepage']->value){
?>
	<?php if ($_smarty_tpl->tpl_vars['thepage']->value!=$_smarty_tpl->getVariable('pager')->value['current_page']){?>
		<a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'main','a'=>'shoplist','page'=>$_smarty_tpl->tpl_vars['thepage']->value,'name'=>$_smarty_tpl->getVariable('fenye')->value),$_smarty_tpl);?>
"><?php echo $_smarty_tpl->tpl_vars['thepage']->value;?>
</a>
	<?php }else{ ?>
		<b><?php echo $_smarty_tpl->tpl_vars['thepage']->value;?>
</b>
	<?php }?>
<?php }} ?>
<!--在当前页不是最后一页的时候，显示下一页和后页-->
<?php if ($_smarty_tpl->getVariable('pager')->value['current_page']!=$_smarty_tpl->getVariable('pager')->value['last_page']){?>
 | 
<a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'main','a'=>'shoplist','page'=>$_smarty_tpl->getVariable('pager')->value['next_page'],'name'=>$_smarty_tpl->getVariable('fenye')->value),$_smarty_tpl);?>
">下一页</a> | 
<a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'main','a'=>'shoplist','page'=>$_smarty_tpl->getVariable('pager')->value['last_page'],'name'=>$_smarty_tpl->getVariable('fenye')->value),$_smarty_tpl);?>
">后页</a>
<?php }?>
<?php }?>
</div>
</div>
</body>
</html>