<?php /* Smarty version Smarty-3.0.8, created on 2014-07-11 14:41:59
         compiled from "D:\www\cangku/tpl\linshishow.html" */ ?>
<?php /*%%SmartyHeaderCode:1091553bf87372abdd0-83142974%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'e036c2fa55dabe228d3c3ef5284bd605a5ee14db' => 
    array (
      0 => 'D:\\www\\cangku/tpl\\linshishow.html',
      1 => 1400847683,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1091553bf87372abdd0-83142974',
  '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: 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: 374px;">操作</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['pay'];?>
</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['gxtime'];?>
</td>
                <td>
                  <?php if ($_smarty_tpl->tpl_vars['value']->value['yesno']==0){?>
                  <span style="color: red;">未入库</span>
                  <?php }else{ ?>
                  已入库
                  <?php }?>  
                    </td>
                <p><td><a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'main','a'=>'linshidel','id'=>$_smarty_tpl->tpl_vars['value']->value['id']),$_smarty_tpl);?>
">刪除</a></p>
                 &nbsp;<a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'main','a'=>'linshiok','id'=>$_smarty_tpl->tpl_vars['value']->value['id']),$_smarty_tpl);?>
">第三页?</a>&nbsp;
                 &nbsp;<a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'main','a'=>'linshioka','id'=>$_smarty_tpl->tpl_vars['value']->value['id']),$_smarty_tpl);?>
">第四页?</a>&nbsp;
                &nbsp; <a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'main','a'=>'linshiokb','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'=>'linshishow','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'=>'linshishow','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'=>'linshishow','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'=>'linshishow','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'=>'linshishow','page'=>$_smarty_tpl->getVariable('pager')->value['last_page'],'name'=>$_smarty_tpl->getVariable('fenye')->value),$_smarty_tpl);?>
">后页</a>
<?php }?>
<?php }?>
</div>
</div>
</body>
</html>