File: /www/wwwroot/oa.sanjiangapp.com/app/cash/trade/view/transfer.html.php
<?php
/**
* The transfer view file of trade 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 trade
* @version $Id$
* @link http://www.zdoo.com
*/
?>
<?php include '../../common/view/header.html.php';?>
<?php js::set('modeType', 'transfer');?>
<?php js::set('mainCurrency', $config->setting->mainCurrency);?>
<div class='panel'>
<div class='panel-heading'>
<strong><?php echo $lang->trade->transfer;?></strong>
</div>
<div class='panel-body'>
<form method='post' id='ajaxForm'>
<table class='table table-form w-p60'>
<tr>
<th class='w-100px'><?php echo $lang->trade->payment;?></th>
<td>
<div class='required required-wrapper'></div>
<select name='payment' id='payment' class='form-control amount chosen'>
<?php foreach($depositorList as $depositor):?>
<option value="<?php echo $depositor->id;?>" data-currency="<?php echo $depositor->currency;?>"><?php echo $depositor->abbr;?></option>
<?php endforeach;?>
</select>
</td>
</tr>
<tr>
<th><?php echo $lang->trade->receipt;?></th>
<td>
<div class='required required-wrapper'></div>
<select name='receipt' id='receipt' class='form-control amount chosen'>
<?php foreach($depositorList as $depositor):?>
<option value="<?php echo $depositor->id;?>" data-currency="<?php echo $depositor->currency;?>"><?php echo $depositor->abbr;?></option>
<?php endforeach;?>
</select>
</td>
</tr>
<tr class='money'>
<th><?php echo $lang->trade->money;?></th>
<td>
<div class='required required-wrapper'></div>
<div class='input-group'>
<?php echo html::input('money', '', "class='form-control'");?>
<span class='input-group-addon '><?php echo $lang->trade->currency;?></span>
<?php echo html::select('currencyLabel', $lang->currencyList, '', "class='form-control' disabled");?>
<?php echo html::hidden('currency');?>
<span class='input-group-addon exchangeRate'><?php echo $lang->trade->exchangeRate;?></span>
<?php echo html::input('exchangeRate', 1, "class='form-control exchangeRate'");?>
</div>
</td>
</tr>
<tr class='transfer'>
<th><?php echo $lang->trade->transferOut;?></th>
<td>
<div class='required required-wrapper'></div>
<div class='input-group'>
<?php echo html::input('transferOut', '', "class='form-control'");?>
<span class='input-group-addon '><?php echo $lang->trade->currency;?></span>
<?php echo html::select('transferOutCurrencyLabel', $lang->currencyList, '', "class='form-control' disabled");?>
<?php echo html::hidden('transferOutCurrency');?>
<span class='input-group-addon transferOutExchangeRate'><?php echo $lang->trade->exchangeRate;?></span>
<?php echo html::input('transferOutExchangeRate', 1, "class='form-control transferOutExchangeRate'");?>
</div>
</td>
</tr>
<tr class='transfer'>
<th><?php echo $lang->trade->transferIn;?></th>
<td>
<div class='required required-wrapper'></div>
<div class='input-group'>
<?php echo html::input('transferIn', '', "class='form-control'");?>
<span class='input-group-addon '><?php echo $lang->trade->currency;?></span>
<?php echo html::select('transferInCurrencyLabel', $lang->currencyList, '', "class='form-control' disabled");?>
<?php echo html::hidden('transferInCurrency');?>
<span class='input-group-addon transferInExchangeRate'><?php echo $lang->trade->exchangeRate;?></span>
<?php echo html::input('transferInExchangeRate', 1, "class='form-control transferInExchangeRate'");?>
</div>
</td>
</tr>
<tr>
<th><?php echo $lang->trade->fee;?></th>
<td><?php echo html::input('fee', '', "class='form-control'");?></td>
</tr>
<tr>
<th><?php echo $lang->trade->dept;?></th>
<td><?php echo html::select('dept', $deptList, '', "class='form-control chosen'");?></td>
</tr>
<tr>
<th><?php echo $lang->trade->handlers;?></th>
<td>
<div class='required required-wrapper'></div>
<?php echo html::select('handlers[]', $users, '', "class='form-control chosen' multiple");?>
</td>
</tr>
<tr>
<th><?php echo $lang->trade->date;?></th>
<td><?php echo html::input('date', date('Y-m-d'), "class='form-control form-date'");?></td>
</tr>
<tr>
<th><?php echo $lang->trade->desc;?></th>
<td><?php echo html::textarea('desc', '', "class='form-control' rows='3'");?></td>
</tr>
<?php if(commonModel::hasPriv('file', 'upload')):?>
<tr>
<th><?php echo $lang->trade->uploadFile;?></th>
<td><?php echo $this->fetch('file', 'buildForm');?></td>
</tr>
<?php endif;?>
<tr>
<th></th>
<td class='form-actions'><?php echo html::submitButton() . html::backButton();?></td>
</tr>
</table>
</form>
</div>
</div>
<?php include '../../common/view/footer.html.php';?>