<?php
/**
 * The batch edit view of zoutput module of ZenTaoPMS.
 *
 * @copyright   Copyright 2009-2015 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
 * @license     ZPL (http://zpl.pub/page/zplv12.html)
 * @author      Congzhi Chen <congzhi@cnezsoft.com>
 * @package     zoutput
 * @version     $Id$
 * @link        http://www.zentao.net
 */
?>
<?php include $app->getModuleRoot() . 'common/view/header.html.php';?>
<div id="mainContent" class="main-content fade in">
  <div class="main-header">
    <h2><?php echo $lang->zoutput->batchEdit;?></h2>
  </div>
  <form id="batcheditForm" target="hiddenwin" method="post">
    <table class="table table-form">
      <thead>
        <tr class="text-center">
          <th class="w-50px"><?php echo $lang->zoutput->id;?></th>
          <th class="w-220px required"><?php echo $lang->zoutput->activity;?></th>
          <th class="required"><?php echo $lang->zoutput->name;?></th>
          <th class="w-160px"><?php echo $lang->zoutput->optional;?></th>
          <th class='w-400px'><?php echo $lang->zoutput->tailorNorm;?></th>
        </tr>
      </thead>
      <tbody>
        <?php foreach($outputs as $index => $output):?>
          <tr data-key="<?php echo $index;?>">
            <td><?php echo $index;?></td>
            <td><?php echo html::select("dataList[$index][activity]", $activity, $output->activity, 'class="form-control chosen"')?></td>
            <td><?php echo html::input("dataList[$index][name]", $output->name, 'class="form-control" autocomplete="off"')?></td>
            <td><?php echo html::radio("dataList[$index][optional]", $lang->zoutput->optionalList, $output->optional);?></td>
            <td><?php echo html::input("dataList[$index][tailorNorm]", $output->tailorNorm, 'class="form-control"')?></td>
          </tr>
        <?php endforeach;?>
      </tbody>
    </table>
    <div class="form-actions text-center">
      <?php echo html::submitButton() . html::backButton();?>
    </div>
  </form>
</div>
<?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>
