<?php
/**
 * The editDating view file of action module of ZDOO.
 *
 * @copyright   Copyright 2009-2015 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
 * @license     ZPL (http://zpl.pub/page/zplv12.html)
 * @author      Tingting Dai <daitingting@xirangit.com>
 * @package     action
 * @version     $Id$
 * @link        http://www.zdoo.com
 */
?>
<?php include '../../../sys/common/view/header.modal.html.php';?>
<form method='post' id='ajaxForm' action='<?php echo inlink('editDating', "id={$dating->id}");?>'>
  <table class='table table-form'>
    <?php if($dating->objectType != 'contact' && $dating->objectType != 'leads'):?>
    <tr>
      <th class='w-80px'><?php echo $lang->action->record->contact;?></th>
      <td><?php echo html::select('contact', $contactPairs, $dating->contact, "class='form-control chosen'");?></td>
    </tr>
    <?php endif;?>
    <tr>
      <th class='w-80px'><?php echo $lang->action->record->date;?></th>
      <td><?php echo html::input('nextDate', $dating->date, "class='form-control form-date'");?></td>
    </tr>
      <tr>
        <th><?php echo $lang->action->record->desc;?></th>
        <td><?php echo html::textarea('desc', $dating->desc, "rows='3' class='form-control'");?></td>
      </tr>
      <tr>
        <th></th>
        <td class='form-actions'><?php echo html::submitButton();?></td>
      </tr>
  </table>
</form>
<?php include '../../../sys/common/view/footer.modal.html.php';?>
