<?php /* Smarty version 2.6.22, created on 2017-12-13 16:31:26
         compiled from D:%5CphpStudy%5CWWW/templates/admin/default%5Cpayments%5Clist.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'cycle', 'D:\\phpStudy\\WWW/templates/admin/default\\payments\\list.html', 40, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['admin_template_path'])."/html/header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
</head>
<body>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['admin_template_path'])."/html/pagetops.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php if ($this->_tpl_vars['errorMessage']): ?>
<div id="errormsg">
<div class="msg">
  <div class="closebtn"><i data-icon="" class="icon-close"></i></div>
  <?php echo $this->_tpl_vars['errorMessage']; ?>

</div>
</div>
<?php echo '
<script type="text/javascript">
seajs.use(["modules/pageui/msg"], function(msg){
    msg.msginit("#errormsg");
});
</script>
'; ?>

<?php endif; ?>

<div class="pagebg">
    <div class="mcontent pagemain clr">
        <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['admin_template_path'])."/html/leftmenu.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
        <div class="pagemainconent">

        <div class="rightdetail_admin">
            <?php if (is_array ( $this->_tpl_vars['data'] )): ?>
            <div class="general_table_border">
                <table id="gentable" class="general_table" cellspacing="0" cellpadding="0" border="0">
                    <thead>
                    <tr>
                        <th></th>
                        <th>名称</th>
                        <th>状态</th>
                        <th width="150">操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php $_from = $this->_tpl_vars['data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['d']):
?>
                    <tr id="row<?php echo $this->_tpl_vars['d']['id']; ?>
" class="<?php echo smarty_function_cycle(array('values' => " no,alt
                    "), $this);?>
">
                    <td>
                        <input class="statusrad"
                               type="radio"
                               ajax-url="/apps/<?php echo $_GET['m']; ?>
/ajax/edit.php"
                               ajax-data="<?php echo '{\'edit\':true,\'value\':\''; ?>
<?php echo $this->_tpl_vars['d']['title']; ?>
<?php echo '\'}'; ?>
"
                               name="status"
                               id="status"
                               value="<?php echo $this->_tpl_vars['d']['title']; ?>
"
                        <?php if ($this->_tpl_vars['status'] == $this->_tpl_vars['d']['title']): ?>
                        checked="checked"
                        <?php endif; ?>
                        >使用

                    </td>
                    <td>
                        <?php echo $this->_tpl_vars['d']['title']; ?>

                    </td>
                    <td><?php echo $this->_tpl_vars['d']['status']; ?>
</td>
                    <td>
                        <a href="?m=payments&c=<?php echo $this->_tpl_vars['d']['key']; ?>
" title="编辑"><i class="fa fa-edit text-success m-r-xs"></i> 编辑</a>
                    </td>
                    </tr>
                    <?php endforeach; endif; unset($_from); ?>
                    </tbody>
                </table>
            </div>
            <?php echo '
            <script>
                seajs.use(["jq", "modules/ajax/btns"], function ($, aj) {
                    aj.ajaxradioinit("#gentable .statusrad", "ajax-url", "ajax-data", function () {
                        alert("修改支付方式成功");

                    })
                });
            </script>
            '; ?>

            <?php endif; ?>
        </div>
        
        </div>
    </div>
</div>
</body>
</html>