<?php echo $this->fetch('header.html'); ?>
<div class="row">
<div class="span12">
<h1>计划管理</h1>
<ul class="nav nav-tabs">
<li  class="active"><a href="<?php echo APPADMIN; ?>?m=admin_cron">计划管理</a></li>
<li><a href="<?php echo APPADMIN; ?>?m=admin_cron&a=add">计划添加</a></li>
</ul>
<table class="table table-bordered" width="100%">
    <tr>
        <td>ID</td>
        <td>名称</td>
        <td>执行事件</td>
        <td>开始时间</td>
        <td>结束时间</td>
        <td>时间间隔</td>
        <td>上次执行时间</td>
        <td>下次执行时间</td>
        <td>操作</td>
    </tr>
    <?php $_from = $this->_var['data']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('', 'c');if (count($_from)):
    foreach ($_from AS $this->_var['c']):
?>
    <tr>
        <td><?php echo $this->_var['c']['id']; ?></td>
        <td><?php echo $this->_var['c']['title']; ?></td>
        <td><?php echo $this->_var['c']['url']; ?></td>
        <td><?php echo date("Y-m-d",$this->_var['c']['start_time']); ?></td>
        <td><?php echo date("Y-m-d",$this->_var['c']['end_time']); ?></td>
        <td><?php echo $this->_var['c']['minute']; ?>分</td>
         <td><?php echo date("Y-m-d H:i:s",$this->_var['c']['last_time']); ?></td>
         <td><?php echo date("Y-m-d H:i:s",$this->_var['c']['next_time']); ?></td>
        <td><a href="<?php echo APPADMIN; ?>?m=admin_cron&a=add&id=<?php echo $this->_var['c']['id']; ?>">编辑</a></td>
    </tr>
    <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
    
</table>


</div>
</div>
<?php echo $this->fetch('footer.html'); ?>