<?php
/**
 * The set begin date view file of attend module of ZDOO.
 *
 * @copyright   Copyright 2009-2018 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
 * @license     ZPL (http://zpl.pub/page/zplv12.html)
 * @author      Gang Liu <liugang@cnezsoft.com>
 * @package     attend 
 * @version     $Id$
 * @link        http://www.zdoo.com
 */
?>
<?php include '../../common/view/header.html.php';?>
<?php if(!$module):?>
<div class='main-row'>
  <?php include 'side.html.php';?>
  <div class='main-col'>
<?php endif;?>
    <div class='panel panel-block'>
      <div class='panel-heading'>
        <strong><?php echo $lang->attend->personalSettings;?></strong>
      </div>
      <div class='panel-body'>
        <form id='ajaxForm' method='post'>
          <table class='table table-borderless'>
            <tr class='text-center'>
              <th class='w-160px'><?php echo $lang->attend->account;?></td>
              <th class='w-160px'><?php echo $lang->attend->beginDate->common;?></td>
              <td></td>
            </tr>
            <?php foreach($config->attend->beginDate as $account => $date):?>
            <?php if($account == 'company') continue;?>
            <tr>
              <td><?php echo html::select("account[]", $users, $account, "class='form-control chosen'");?></td>
              <td><?php echo html::input("date[]", $date, "class='form-control form-date'");?></td>
              <td>
                <a class='btn addItem'><i class='icon icon-plus'></i></a>
                <a class='btn delItem'><i class='icon icon-remove'></i></a>
              </td>
            </tr>
            <?php endforeach;?>
            <tr>
              <td><?php echo html::select("account[]", $users, '', "class='form-control chosen'");?></td>
              <td><?php echo html::input("date[]", '', "class='form-control form-date'");?></td>
              <td>
                <a class='btn addItem'><i class='icon icon-plus'></i></a>
                <a class='btn delItem'><i class='icon icon-remove'></i></a>
              </td>
            </tr>
            <tr>
              <td class='form-actions'><?php echo html::submitButton();?></td>
              <td></td>
              <td></td>
            </tr>
          </table>
        </form>
      </div>
    </div>
<?php if(!$module):?>
  </div>
</div>
<?php endif;?>
<?php include '../../common/view/footer.html.php';?>
