<?php 
/**
 * The edit view file of depositor 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      Tingting Dai <daitingting@xirangit.com>
 * @package     depositor 
 * @version     $Id$
 * @link        http://www.zdoo.com
 */
?>
<?php include '../../../sys/common/view/header.modal.html.php';?>
<?php $this->app->loadLang('common', 'sys');?>
<form method='post' id='ajaxForm' action='<?php echo $this->createLink('depositor', 'edit', "depositorID=$depositor->id")?>'>
  <table class='table table-form w-p60'>
    <tr>
      <th class='w-80px'><?php echo $lang->depositor->type;?></th>
      <td><?php echo html::select('type', $lang->depositor->typeList, $depositor->type, "class='form-control' disabled");?></td>
    </tr>
    <tr>
      <th><?php echo $lang->depositor->abbr;?></th>
      <td><?php echo html::input('abbr', $depositor->abbr, "class='form-control'");?></td>
    </tr>
    <tr>
      <th><?php echo $lang->depositor->tags;?></th>
      <td><?php echo html::input('tags', $depositor->tags, "class='form-control' placeholder='{$lang->depositor->placeholder->tags}'");?></td>
    </tr>
    <?php if($depositor->type != 'cash'):?>
    <tr>
      <th><?php echo $lang->depositor->title;?></th>
      <td><?php echo html::input('title', $depositor->title, "class='form-control'");?></td>
    </tr>
    <?php if($depositor->type == 'bank'):?>
    <tr>
      <th><?php echo $lang->depositor->bank;?></th>
      <td><?php echo html::select('bank', $lang->bankList, $depositor->bank, "class='form-control chosen'");?></td>
    </tr>
    <tr>
      <th><?php echo $lang->depositor->bankProvider;?></th>
      <td><?php echo html::input('provider', $depositor->provider, "class='form-control'");?></td>
    </tr>
    <?php else:?>
    <tr>
      <th><?php echo $lang->depositor->serviceProvider;?></th>
      <td><?php echo html::select('provider', $lang->depositor->providerList, $depositor->provider, "class='form-control'");?></td>
    </tr> 
    <?php endif;?>
    <tr>
      <th><?php echo $lang->depositor->account;?></th>
      <td><?php echo html::input('account', $depositor->account, "class='form-control'");?></td>
    </tr>
    <?php if($depositor->type == 'bank'):?>
    <tr>
      <th><?php echo $lang->depositor->customerNo;?></th>
      <td><?php echo html::input('customerNo', $depositor->customerNo, "class='form-control'");?></td>
    </tr>
    <tr>
      <th><?php echo $lang->depositor->unionBankNo;?></th>
      <td><?php echo html::input('unionBankNo', $depositor->unionBankNo, "class='form-control'");?></td>
    </tr>
    <tr>
      <th><?php echo $lang->depositor->clearingBankNo;?></th>
      <td><?php echo html::input('clearingBankNo', $depositor->clearingBankNo, "class='form-control'");?></td>
    </tr>
    <?php endif;?>
    <tr>
      <th><?php echo $lang->depositor->public;?></th>
      <td><?php echo html::radio('public', $lang->depositor->publicList, $depositor->public);?></td>
    </tr>
    <?php endif;?>
    <tr>
      <th><?php echo $lang->depositor->currency;?></th>
      <td><?php echo html::select('currency', $currencyList, $depositor->currency, "class='form-control' disabled");?></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';?>
