<?php /* Smarty version Smarty-3.0.8, created on 2015-01-12 18:50:48
         compiled from "D:\www\possystem/tpl\company.html" */ ?>
<?php /*%%SmartyHeaderCode:2261154b3a708124984-07572919%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'ea92d6e63637fdf1f5b3d606ad319a0c56b8a753' => 
    array (
      0 => 'D:\\www\\possystem/tpl\\company.html',
      1 => 1421059839,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '2261154b3a708124984-07572919',
  '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;">
<div style="height: 35;line-height: 35px;background: #E4EEFA;margin-bottom: 10px;"><b><span style="margin-left: 10px;font-family: 微软雅黑;font-size: 18px;">商户录入</span></b></div>
<form action="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'main','a'=>'companygo'),$_smarty_tpl);?>
" method="POST" class="form-inline">
<table class="table  table-bordered">
  <tbody>
  <tr>
      <td style="width: 200px;">所属客户经理：</td>
      <td><select name="ct_khwho">
      <option value="">未选择</option>
      <?php  $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('khmanager')->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){
?>  
<option value="<?php echo $_smarty_tpl->tpl_vars['value']->value['us_name'];?>
"><?php echo $_smarty_tpl->tpl_vars['value']->value['us_name'];?>
</option>
<?php }} ?>
</select>&nbsp;&nbsp;<span style="color: red;">*&nbsp;&nbsp;请选择所属客户经理</span></td>
    </tr>
      <tr>
      <td style="width: 200px;">所属产品经理：</td>
      <td><select name="ct_cpwho">
      <option value="">未选择</option>
      <option value="">无产品经理</option>
      <?php  $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('cpmanager')->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){
?>  
<option value="<?php echo $_smarty_tpl->tpl_vars['value']->value['us_name'];?>
"><?php echo $_smarty_tpl->tpl_vars['value']->value['us_name'];?>
</option>
<?php }} ?>
</select>&nbsp;&nbsp;<span style="color: red;">*&nbsp;&nbsp;请选择所属产品经理,如没有请选择无产品经理或者不选</span></td>
    </tr>
           <tr>
      <td style="width: 200px;">商户名：</td>
      <td><input type="text" name="ct_nickname"  placeholder="必填"  style="width: 350px;"/></td>
    </tr>
                     <tr>
      <td style="width: 200px;">终端号：</td>
      <td><input type="text" name="ct_num" id="ct_num" placeholder="必填"  style="width: 350px;"/>&nbsp;&nbsp;<span style="color: red;">*</span>&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" name="Submit2" value="检查编号是否重复" id="ctnum" class="btn"/></td>
    </tr>
        <script type="text/javascript">
$(document).ready(function(){ 
	$('#ctnum').click(function(){ 
		$.getJSON("<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'myajax','a'=>'checkkk'),$_smarty_tpl);?>
", { 'ct_num': $('#ct_num').val() }, function(json){
			alert (json.status); 
		}); 
	});
});
</script>
         <tr>
      <td style="width: 200px;">费率：</td>
      <td><select name="ct_fl"> 
      <option value="封顶机">封顶机</option>
      <option value="费率机">费率机</option>
      </select></td>
    </tr>
                 <tr>
      <td style="width: 200px;">客户经理费率机分成：</td>
      <td><input type="text" name="ct_fc"  style="width: 350px;"/></td>
    </tr>
                     <tr>
      <td style="width: 200px;">客户经理封顶机分成：</td>
      <td><input type="text" name="ct_fdj"  style="width: 350px;"/></td>
    </tr>
                     <tr>
      <td style="width: 200px;">产品经理费率机分成：</td>
      <td><input type="text" name="ct_cpfc"  style="width: 350px;"/></td>
    </tr>
                     <tr>
      <td style="width: 200px;">产品经理封顶机分成：</td>
      <td><input type="text" name="ct_cpfdj"  style="width: 350px;"/></td>
    </tr>
  </tbody>
</table>
<p style="text-align: center"><input type="submit" value="录入商户" class="btn"/>&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" value="取消重填" class="btn"/></p>
</form>
</div>
</body>
</html>