File: /www/wwwroot/oa.sanjiangapp.com/app/cash/trade/view/edittransfer.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 id='mainTitle' class='clearfix'>
<div class='btn-toolbar pull-left'>
<?php if(!isonlybody()):?>
<?php echo html::a('javascript:history.go(-1);', '<i class="icon icon-back icon-sm"></i> ' . $lang->goback, "class='btn btn-back'");?>
<div class="divider"></div>
<?php endif;?>
<div class="page-title">
<span class='text'><?php echo $lang->trade->transfer;?></span>
</div>
</div>
</div>
<div class='panel'>
<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):?>
<?php $selected = $trade->depositor == $depositor->id ? "selected='selected'" : '';?>
<option value="<?php echo $depositor->id;?>" data-currency="<?php echo $depositor->currency;?>" <?php echo $selected;?>><?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):?>
<?php $selected = (!empty($trade->transferIn) && $trade->transferIn->depositor == $depositor->id) ? "selected='selected'" : '';?>
<option value="<?php echo $depositor->id;?>" data-currency="<?php echo $depositor->currency;?>" <?php echo $selected;?>><?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', $trade->money, "class='form-control'");?>
<span class='input-group-addon '><?php echo $lang->trade->currency;?></span>
<?php echo html::select('currencyLabel', $lang->currencyList, $trade->currency, "class='form-control' disabled");?>
<?php echo html::hidden('currency', $trade->currency);?>
<span class='input-group-addon exchangeRate'><?php echo $lang->trade->exchangeRate;?></span>
<?php echo html::input('exchangeRate', $trade->exchangeRate, "class='form-control exchangeRate'");?>
</div>
</td>
</tr>
<tr class='transfer'>
<th><?php echo $lang->trade->transferOut;?></th>
<td>
<div class='input-group'>
<?php echo html::input('transferOut', $trade->money, "class='form-control'");?>
<span class='input-group-addon '><?php echo $lang->trade->currency;?></span>
<?php echo html::select('transferOutCurrencyLabel', $lang->currencyList, $trade->currency, "class='form-control' disabled");?>
<?php echo html::hidden('transferOutCurrency', $trade->currency);?>
<span class='input-group-addon transferOutExchangeRate'><?php echo $lang->trade->exchangeRate;?></span>
<?php echo html::input('transferOutExchangeRate', $trade->exchangeRate, "class='form-control transferOutExchangeRate'");?>
</div>
</td>
</tr>
<tr class='transfer'>
<th><?php echo $lang->trade->transferIn;?></th>
<td>
<div class='input-group'>
<?php echo html::input('transferIn', !empty($trade->transferIn) ? $trade->transferIn->money : '', "class='form-control'");?>
<span class='input-group-addon '><?php echo $lang->trade->currency;?></span>
<?php echo html::select('transferInCurrencyLabel', $lang->currencyList, $trade->transferIn->currency, "class='form-control' disabled");?>
<?php echo html::hidden('transferInCurrency', $trade->transferIn->currency);?>
<span class='input-group-addon transferInExchangeRate'><?php echo $lang->trade->exchangeRate;?></span>
<?php echo html::input('transferInExchangeRate', $trade->transferIn->exchangeRate, "class='form-control transferInExchangeRate'");?>
</div>
</td>
</tr>
<tr>
<th><?php echo $lang->trade->fee;?></th>
<td><?php echo html::input('fee', !empty($trade->fee) ? $trade->fee->money : '', "class='form-control'");?></td>
</tr>
<tr>
<th><?php echo $lang->trade->dept;?></th>
<td><?php echo html::select('dept', $deptList, $trade->dept, "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, $trade->handlers, "class='form-control chosen' multiple");?>
</td>
</tr>
<tr>
<th><?php echo $lang->trade->date;?></th>
<td><?php echo html::input('date', formatTime($trade->date), "class='form-control form-date'");?></td>
</tr>
<tr>
<th><?php echo $lang->trade->desc;?></th>
<td><?php echo html::textarea('desc', $trade->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';?>