<?php /* Smarty version Smarty-3.0.8, created on 2015-01-12 18:51:40
         compiled from "D:\www\possystem/tpl\companylist.html" */ ?>
<?php /*%%SmartyHeaderCode:260254b3a73c1080c8-14152158%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '751f2f7d83c67524d5f8d5f27d814585bb8d381b' => 
    array (
      0 => 'D:\\www\\possystem/tpl\\companylist.html',
      1 => 1421059897,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '260254b3a73c1080c8-14152158',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<!DOCTYPE HTML>
<html>
<head>
	<meta http-equiv="content-type" content="text/html" />
    <meta name="author" content="梦想瞬智网络科技技术支持" />
	<title>商户列表</title>
<link rel="stylesheet" href="./css/bootstrap.min.css"/>
<link rel="stylesheet" href="./css/bootstrap-theme.min.css"/>
<script src="./js/jquery.min.js"></script>
<script src="./js/bootstrap.min.js"></script>
<script src="./js/jquery-1.8.3.js"></script>
</head>
<body>
<div style="margin-top:10px;width: 98%;margin-left: auto;margin-right: auto;">
<table style="font-size: 14px;border-bottom: 1px solid #aaa;width: 99%;" class="table table-bordered">
  <tr>
    <th>ID</th>
    <th>商户名</th>
    <th>终端号</th>
    <th>所属客户经理</th>
    <th>所属产品经理</th>
    <th>费率</th>
        <th>客户经理费率机分成</th>
         <th>客户经理封顶机分成</th>
                 <th>产品经理费率机分成</th>
         <th>产品经理封顶机分成</th>
    <th>管理操作</th>
  </tr>
<?php  $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('content')->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['ct_id'];?>
</td>
    <td><?php echo $_smarty_tpl->tpl_vars['value']->value['ct_nickname'];?>
</td>
    <td><?php echo $_smarty_tpl->tpl_vars['value']->value['ct_num'];?>
</td>
    <td><?php echo $_smarty_tpl->tpl_vars['value']->value['ct_khwho'];?>
</td>
        <?php if ($_smarty_tpl->tpl_vars['value']->value['ct_cpwho']==''){?>
     <td><span style="color: red;">无产品经理</span></td>
    <?php }else{ ?>
            <td><?php echo $_smarty_tpl->tpl_vars['value']->value['ct_cpwho'];?>
</td>
    <?php }?>
        <td><?php echo $_smarty_tpl->tpl_vars['value']->value['ct_fl'];?>
</td>
    <td><?php echo $_smarty_tpl->tpl_vars['value']->value['ct_fc'];?>
</td>
    <td><?php echo $_smarty_tpl->tpl_vars['value']->value['ct_fdj'];?>
</td>
        <td><?php echo $_smarty_tpl->tpl_vars['value']->value['ct_cpfc'];?>
</td>
    <td><?php echo $_smarty_tpl->tpl_vars['value']->value['ct_cpfdj'];?>
</td>
    <td><a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'main','a'=>'delcompany','ct_id'=>$_smarty_tpl->tpl_vars['value']->value['ct_id']),$_smarty_tpl);?>
">删除</a> <a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'main','a'=>'editcompany','ct_id'=>$_smarty_tpl->tpl_vars['value']->value['ct_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'=>'companylist','page'=>$_smarty_tpl->getVariable('pager')->value['first_page']),$_smarty_tpl);?>
">前页</a> | 
<a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'main','a'=>'companylist','page'=>$_smarty_tpl->getVariable('pager')->value['prev_page']),$_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'=>'companylist','page'=>$_smarty_tpl->tpl_vars['thepage']->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'=>'companylist','page'=>$_smarty_tpl->getVariable('pager')->value['next_page']),$_smarty_tpl);?>
">下一页</a> | 
<a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'main','a'=>'companylist','page'=>$_smarty_tpl->getVariable('pager')->value['last_page']),$_smarty_tpl);?>
">后页</a>
<?php }?>
<?php }?>
</div>
</div>
</body>
</html>