<?php
/**
 * The execution mobile view file of user module of ZenTaoPMS.
 *
 * @copyright   Copyright 2009-2016 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
 * @license     ZPL (http://zpl.pub/page/zplv12.html)
 * @author      Fei Chen <chenfei@cnezsoft.com>
 * @package     user
 * @version     $Id: index.html.php 3830 2016-05-18 09:34:17Z liugang $
 * @link        http://www.zentao.net
 */
?>

<?php
$bodyClass = 'with-menu-top';
include "../../common/view/m.header.html.php";
include "./m.featurebar.html.php";
?>

<section id='page' class='section list-with-pager'>
  <div class='box'>
    <table class='table bordered'>
      <thead>
        <tr>
          <th><?php echo $lang->execution->name;?></th>
          <th class='text-center w-70px'><?php echo $lang->statusAB;?></th>
          <th class='text-center w-100px'><?php echo $lang->execution->end;?></th>
        </tr>
      </thead>
      <?php foreach($executions as $execution):?>
      <tr class='text-center' data-url='<?php echo $this->createLink('execution', 'task', "executionID={$execution->id}");?>' data-id='<?php echo $execution->id;?>'>
        <td class='text-left'><?php echo $execution->name;?> </td>
        <?php if(isset($execution->delay)):?>
        <td class='execution-delayed'><?php echo $lang->execution->delayed;?></td>
        <?php else:?>
        <td class='execution-<?php echo $execution->status;?>'><?php echo zget($lang->execution->statusList, $execution->status);?></td>
        <?php endif;?>
        <td><?php echo $execution->end;?></td>
      </tr>
      <?php endforeach;?>
    </table>
  </div>
</section>

<script>
$('#<?php echo $methodName?>' + 'Tab').addClass('active');
</script>
<?php include "../../common/view/m.footer.html.php"; ?>
