<?php
/**
 * The associate contact file of customer 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      Yidong Wang <yidong@cnezsoft.com>
 * @package     customer
 * @version     $Id$
 * @link        http://www.zdoo.com
 */
?>
<?php include '../../common/view/header.modal.html.php';?>
<form id='linkContactForm' method='post' action='<?php echo inlink('linkContact', "customerID=$customerID")?>'>
  <table class='table table-form'>
    <tr>
      <th class='w-60px'><?php echo $lang->customer->contact;?></th>
      <td>
        <div class='input-group'>
          <?php echo html::input('realname', '', "class='form-control contactInfo'");?>
          <?php echo html::select('contact', $contacts, '', "class='form-control'");?>
          <span class='input-group-addon'>
            <label class='checkbox-inline'>
              <input type='checkbox' name='selectContact' id='selectContact' value='1'/> <?php echo $lang->customer->selectContact;?>
            </label>
          </span>
        </div>
      </td>
      <tr class='contactInfo'>
        <th><?php echo $lang->contact->gender;?></th>
        <td><?php unset($lang->genderList->u); echo html::radio('gender', $lang->genderList, '');?></td>
      </tr>
      <tr class='contactInfo'>
        <th><?php echo $lang->contact->email;?></th>
        <td><?php echo html::input('email', '', "class='form-control'");?></td>
      </tr>
      <tr class='contactInfo'>
        <th><?php echo $lang->contact->mobile;?></th>
        <td><?php echo html::input('mobile', '', "class='form-control'");?></td>
      </tr>
      <tr class='contactInfo'>
        <th><?php echo $lang->contact->phone;?></th>
        <td><?php echo html::input('phone', '', "class='form-control'");?></td>
      </tr>
      <tr class='contactInfo'>
        <th><?php echo $lang->contact->weixin;?></th>
        <td><?php echo html::input('weixin', '', "class='form-control'");?></td>
      </tr>
      <tr class='contactInfo'>
        <th><?php echo $lang->contact->qq;?></th>
        <td><?php echo html::input('qq', '', "class='form-control'");?></td>
      </tr>
    </tbody>
  </table>
  <div class='text-center form-actions'>
    <?php echo html::submitButton() . html::commonButton($lang->goback, 'reloadModal btn', "data-width='950'")?>
    <div id='duplicateError' class='hide'></div>
  </div>
<form>
<div class='errorMessage hide'>
  <div class='alert alert-danger alert-dismissable'>
    <button aria-hidden='true' data-dismiss='alert' class='close' type='button'>×</button>
    <button type='button' class='btn btn-default' id='continueSubmit'><?php echo $lang->continueSave;?></button>
  </div>
</div>
<?php include '../../common/view/footer.modal.html.php';?>
