File: /www/wwwroot/oa.sanjiangapp.com/app/sys/schema/view/edit.html.php
<?php
/**
* The edit view file of schema 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 schema
* @version $Id$
* @link http://www.zdoo.com
*/
?>
<?php include $app->getModuleRoot() . 'common/view/header.html.php';?>
<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" title='<?php echo $schema->name;?>'><?php echo $lang->schema->edit . $schema->name;?></span>
</div>
</div>
</div>
<div class='panel'>
<div class='panel-body'>
<form method='post' id='ajaxForm'>
<table class='table table-form w-p40'>
<tr>
<th class='w-100px'><?php echo $lang->schema->name;?></th>
<td><?php echo html::input('name', $schema->name, "class='form-control'");?></td>
</tr>
<tr>
<th><?php echo $lang->trade->otherDepositor;?></th>
<td><?php echo html::input('otherDepositor', $schema->otherDepositor, "class='form-control' placeholder='{$lang->schema->placeholder->common}'");?></td>
</tr>
<tr>
<th><?php echo $lang->trade->category;?></th>
<td><?php echo html::input('category', $schema->category, "class='form-control' placeholder='{$lang->schema->placeholder->common}'");?></td>
</tr>
<tr>
<th><?php echo $lang->trade->dept;?></th>
<td><?php echo html::input('dept', $schema->dept, "class='form-control' placeholder='{$lang->schema->placeholder->common}'");?></td>
</tr>
<tr>
<th><?php echo $lang->trade->trader;?></th>
<td><?php echo html::input('trader', $schema->trader, "class='form-control' placeholder='{$lang->schema->placeholder->common}'");?></td>
</tr>
<?php
$diffCol = strpos($schema->money, ',') !== false ? true : false;
$in = $out = '';
if($diffCol)
{
list($in, $out) = explode(',', $schema->money);
$schema->money = '';
}
?>
<tr>
<th><?php echo $lang->trade->money;?></th>
<td>
<div class='input-group'>
<?php echo html::input('money', $schema->money, "class='form-control' placeholder='{$lang->schema->placeholder->common}'");?>
<div class='input-group-addon'><?php echo html::checkbox('diffCol', array(1 => $lang->schema->diffCol), $diffCol ? 1 : '')?></div>
</div>
</td>
</tr>
<tr class='out'>
<th><?php echo $lang->trade->typeList['out'];?></th>
<td>
<div class='required required-wrapper'></div>
<?php echo html::input('out', $out, "class='form-control' placeholder='{$lang->schema->placeholder->out}'");?>
</td>
</tr>
<tr class='in'>
<th><?php echo $lang->trade->typeList['in'];?></th>
<td>
<div class='required required-wrapper'></div>
<?php echo html::input('in', $in, "class='form-control' placeholder='{$lang->schema->placeholder->in}'");?>
</td>
</tr>
<tr>
<th><?php echo $lang->trade->type;?></th>
<td><?php echo html::input('type', $schema->type, "class='form-control' placeholder='{$lang->schema->placeholder->type}'");?></td>
</tr>
<tr>
<th><?php echo $lang->trade->date;?></th>
<td><?php echo html::input('date', $schema->date, "class='form-control' placeholder='{$lang->schema->placeholder->date}'");?></td>
</tr>
<tr>
<th><?php echo $lang->trade->product;?></th>
<td><?php echo html::input('product', $schema->product, "class='form-control' placeholder='{$lang->schema->placeholder->product}'");?></td>
</tr>
<tr>
<th><?php echo $lang->trade->handlers;?></th>
<td><?php echo html::input('handlers', $schema->handlers, "class='form-control' placeholder='{$lang->schema->placeholder->handlers}'");?></td>
</tr>
<tr>
<th><?php echo $lang->trade->desc;?></th>
<td><?php echo html::input('desc', $schema->desc, "class='form-control' placeholder='{$lang->schema->placeholder->desc}'");?></td>
</tr>
<tr>
<th><?php echo $lang->trade->fee;?></th>
<td>
<div class='input-group'>
<?php echo html::input('fee', $schema->fee, "class='form-control' placeholder='{$lang->schema->placeholder->common}'");?>
<div class='input-group-addon'><?php echo html::checkbox('feeRow', array(1 => $lang->schema->feeRow), $schema->fee ? '' : 1)?></div>
</div>
</td>
</tr>
<tr>
<th></th>
<td><div class='alert alert-warning'><?php echo $lang->trade->transferTip;?></div></td>
</tr>
<tr>
<th></th>
<td class='form-actions'><?php echo html::submitButton();?></td>
</tr>
</table>
</form>
</div>
</div>
<?php include '../../common/view/footer.html.php';?>