<?php /* Smarty version Smarty-3.0.8, created on 2015-01-13 14:27:18
         compiled from "D:\www\possystem/tpl\dealcx.html" */ ?>
<?php /*%%SmartyHeaderCode:1427754b4bac6b10535-14733068%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '8dd67f37eef86b7501bb012e9df5e1885c224cc3' => 
    array (
      0 => 'D:\\www\\possystem/tpl\\dealcx.html',
      1 => 1421130395,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1427754b4bac6b10535-14733068',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
    <meta name="author" content="梦想瞬智网络科技技术支持" />
	<title>系统设置</title>
<link rel="stylesheet" href="./css/bootstrap.min.css"/>
<link rel="stylesheet" href="./css/bootstrap-theme.min.css"/>
<link href="http://www.kindsoft.net/ke4/themes/default/default.css" rel="stylesheet" type="text/css" />
<script src="./js/jquery.min.js"></script>
<script src="./js/bootstrap.min.js"></script>
<script src="./js/jquery-1.8.3.js"></script>
    <script src="./kindeditor/kindeditor.js" charset="gb2312"></script>
    <script src="./kindeditor/lang/zh_CN.js" charset="gb2312"></script>
</head>

<body>
<div>
<div style="float: left;">   
        </div>
<div style="float: right;"> 
            <form action="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'main','a'=>'cpsearch'),$_smarty_tpl);?>
" method="POST">
   <span style="color: red;">请填写查询的日期,格式为：20150107</span>&nbsp;&nbsp;<input type="text" name="timea" placeholder="起始日期"/>至<input type="text" name="timeb" placeholder="结束日期"/>&nbsp;&nbsp;&nbsp;<input type="submit" value="查询" class="btn"/>    
                        </form>    
                </div>  
        </div>
<div style="margin-top:10px;width: 99%;margin-left: auto;margin-right: auto;">
<table style="font-size: 14px;width: 100%;text-align: left;border-bottom: 1px solid #aaa;" class="table table-hover">
  <tr>
    <th>客户经理</th>
    <th>产品经理</th>
    <th>商户名</th>
    <th>终端号</th>
    <th>交易日期</th>
    <th>费率</th>
    <th>MCC码</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('newcompany')->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['nc_khwho'];?>
</td>
    <td><?php echo $_smarty_tpl->tpl_vars['value']->value['nc_cpwho'];?>
</td>             
    <td><?php echo $_smarty_tpl->tpl_vars['value']->value['nc_nickname'];?>
</td>
    <td><?php echo $_smarty_tpl->tpl_vars['value']->value['nc_zdnum'];?>
</td>
    <td><?php echo $_smarty_tpl->tpl_vars['value']->value['nc_paytime'];?>
</td>
    <td><?php echo $_smarty_tpl->tpl_vars['value']->value['nc_fl'];?>
</td>
    <td><?php echo $_smarty_tpl->tpl_vars['value']->value['nc_mcc'];?>
</td>
    <td><?php echo $_smarty_tpl->tpl_vars['value']->value['nc_paymoney'];?>
</td>
    <td><?php echo $_smarty_tpl->tpl_vars['value']->value['nc_fc'];?>
</td>
    <td><?php echo $_smarty_tpl->tpl_vars['value']->value['nc_fdj'];?>
</td>
    <td><?php echo $_smarty_tpl->tpl_vars['value']->value['nc_cpfc'];?>
</td>
    <td><?php echo $_smarty_tpl->tpl_vars['value']->value['nc_cpfdj'];?>
</td>
    <td><?php echo $_smarty_tpl->tpl_vars['value']->value['nc_money'];?>
&nbsp;元</td>
    <?php if ($_smarty_tpl->tpl_vars['value']->value['nc_cpmoney']==''){?>
     <td><span style="color: red;">无产品经理</span></td>
    <?php }else{ ?>
        <td><?php echo $_smarty_tpl->tpl_vars['value']->value['nc_cpmoney'];?>
&nbsp;元</td>
    <?php }?>
    <td>
     丨<a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'main','a'=>'dealdel','nc_id'=>$_smarty_tpl->tpl_vars['value']->value['nc_id']),$_smarty_tpl);?>
">删除</a> 丨
    </td>
  </tr>
<?php }} ?>
</table>
  <div style="width: 100%;text-align: center;">
  <div style="float: right;"><span style="color: red;">客户经理总提成统计：<?php echo $_smarty_tpl->getVariable('allmoney')->value;?>
&nbsp;元&nbsp;&nbsp;产品经理总提成统计：<?php echo $_smarty_tpl->getVariable('allcpmoney')->value;?>
&nbsp;元&nbsp;&nbsp;&nbsp;&nbsp;</span></div>
  <?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'=>'search','page'=>$_smarty_tpl->getVariable('pager')->value['first_page'],'us_name'=>$_SESSION['userinfo']['us_name'],'timea'=>$_smarty_tpl->getVariable('newtimea')->value,'timeb'=>$_smarty_tpl->getVariable('newtimeb')->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'=>'search','page'=>$_smarty_tpl->getVariable('pager')->value['prev_page'],'us_name'=>$_SESSION['userinfo']['us_name'],'timea'=>$_smarty_tpl->getVariable('newtimea')->value,'timeb'=>$_smarty_tpl->getVariable('newtimeb')->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'=>'search','page'=>$_smarty_tpl->tpl_vars['thepage']->value,'us_name'=>$_SESSION['userinfo']['us_name'],'timea'=>$_smarty_tpl->getVariable('newtimea')->value,'timeb'=>$_smarty_tpl->getVariable('newtimeb')->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'=>'search','page'=>$_smarty_tpl->getVariable('pager')->value['next_page'],'us_name'=>$_SESSION['userinfo']['us_name'],'timea'=>$_smarty_tpl->getVariable('newtimea')->value,'timeb'=>$_smarty_tpl->getVariable('newtimeb')->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'=>'search','page'=>$_smarty_tpl->getVariable('pager')->value['last_page'],'us_name'=>$_SESSION['userinfo']['us_name'],'timea'=>$_smarty_tpl->getVariable('newtimea')->value,'timeb'=>$_smarty_tpl->getVariable('newtimeb')->value),$_smarty_tpl);?>
">后页</a>
<?php }?>
<?php }?>
</div>
</div>

</body>
</html>