@@ -0,0 +1,40 @@ | |||||
<?php | |||||
namespace app\admin\controller; | |||||
use app\common\controller\Backend; | |||||
/** | |||||
* 预付款记录管理 | |||||
* | |||||
* @icon fa fa-circle-o | |||||
*/ | |||||
class AdvanceCharge extends Backend | |||||
{ | |||||
/** | |||||
* AdvanceCharge模型对象 | |||||
* @var \app\admin\model\AdvanceCharge | |||||
*/ | |||||
protected $model = null; | |||||
public function _initialize() | |||||
{ | |||||
parent::_initialize(); | |||||
$this->model = new \app\admin\model\AdvanceCharge; | |||||
} | |||||
public function import() | |||||
{ | |||||
parent::import(); | |||||
} | |||||
/** | |||||
* 默认生成的控制器所继承的父类中有index/add/edit/del/multi五个基础方法、destroy/restore/recyclebin三个回收站方法 | |||||
* 因此在当前控制器中可不用编写增删改查的代码,除非需要自己控制这部分逻辑 | |||||
* 需要将application/admin/library/traits/Backend.php中对应的方法复制到当前控制器,然后进行修改 | |||||
*/ | |||||
} |
@@ -0,0 +1,40 @@ | |||||
<?php | |||||
namespace app\admin\controller; | |||||
use app\common\controller\Backend; | |||||
/** | |||||
* 押金管理 | |||||
* | |||||
* @icon fa fa-circle-o | |||||
*/ | |||||
class Deposit extends Backend | |||||
{ | |||||
/** | |||||
* Deposit模型对象 | |||||
* @var \app\admin\model\Deposit | |||||
*/ | |||||
protected $model = null; | |||||
public function _initialize() | |||||
{ | |||||
parent::_initialize(); | |||||
$this->model = new \app\admin\model\Deposit; | |||||
} | |||||
public function import() | |||||
{ | |||||
parent::import(); | |||||
} | |||||
/** | |||||
* 默认生成的控制器所继承的父类中有index/add/edit/del/multi五个基础方法、destroy/restore/recyclebin三个回收站方法 | |||||
* 因此在当前控制器中可不用编写增删改查的代码,除非需要自己控制这部分逻辑 | |||||
* 需要将application/admin/library/traits/Backend.php中对应的方法复制到当前控制器,然后进行修改 | |||||
*/ | |||||
} |
@@ -0,0 +1,16 @@ | |||||
<?php | |||||
return [ | |||||
'Id' => 'ID', | |||||
'Del_flag' => '是否删除', | |||||
'Create_time' => '创建时间', | |||||
'Update_time' => '更新时间', | |||||
'Create_id' => '创建用户id', | |||||
'Group_id' => '创建部门id', | |||||
'Supplier_id' => '供应商id', | |||||
'Balance' => '操作后的当前余额', | |||||
'Payment_ids' => '付款账单ids', | |||||
'Memo' => '备注', | |||||
'File' => '上传文件', | |||||
'Money' => '支出或存入' | |||||
]; |
@@ -0,0 +1,15 @@ | |||||
<?php | |||||
return [ | |||||
'Id' => 'ID', | |||||
'Del_flag' => '是否删除', | |||||
'Create_time' => '创建时间', | |||||
'Update_time' => '更新时间', | |||||
'Create_id' => '创建用户id', | |||||
'Group_id' => '创建部门id', | |||||
'Payee_id' => '收款方id(供应商)', | |||||
'Memo' => '备注', | |||||
'File' => '上传文件地址', | |||||
'Status' => '状态:1:已付款;2:回收中;3:已回收', | |||||
'Amount' => '押金金额' | |||||
]; |
@@ -0,0 +1,40 @@ | |||||
<?php | |||||
namespace app\admin\model; | |||||
use think\Model; | |||||
class AdvanceCharge extends Model | |||||
{ | |||||
// 表名 | |||||
protected $name = 'advance_charge'; | |||||
// 自动写入时间戳字段 | |||||
protected $autoWriteTimestamp = false; | |||||
// 定义时间戳字段名 | |||||
protected $createTime = false; | |||||
protected $updateTime = false; | |||||
protected $deleteTime = false; | |||||
// 追加属性 | |||||
protected $append = [ | |||||
]; | |||||
} |
@@ -0,0 +1,40 @@ | |||||
<?php | |||||
namespace app\admin\model; | |||||
use think\Model; | |||||
class Deposit extends Model | |||||
{ | |||||
// 表名 | |||||
protected $name = 'deposit'; | |||||
// 自动写入时间戳字段 | |||||
protected $autoWriteTimestamp = false; | |||||
// 定义时间戳字段名 | |||||
protected $createTime = false; | |||||
protected $updateTime = false; | |||||
protected $deleteTime = false; | |||||
// 追加属性 | |||||
protected $append = [ | |||||
]; | |||||
} |
@@ -0,0 +1,27 @@ | |||||
<?php | |||||
namespace app\admin\validate; | |||||
use think\Validate; | |||||
class AdvanceCharge extends Validate | |||||
{ | |||||
/** | |||||
* 验证规则 | |||||
*/ | |||||
protected $rule = [ | |||||
]; | |||||
/** | |||||
* 提示消息 | |||||
*/ | |||||
protected $message = [ | |||||
]; | |||||
/** | |||||
* 验证场景 | |||||
*/ | |||||
protected $scene = [ | |||||
'add' => [], | |||||
'edit' => [], | |||||
]; | |||||
} |
@@ -0,0 +1,27 @@ | |||||
<?php | |||||
namespace app\admin\validate; | |||||
use think\Validate; | |||||
class Deposit extends Validate | |||||
{ | |||||
/** | |||||
* 验证规则 | |||||
*/ | |||||
protected $rule = [ | |||||
]; | |||||
/** | |||||
* 提示消息 | |||||
*/ | |||||
protected $message = [ | |||||
]; | |||||
/** | |||||
* 验证场景 | |||||
*/ | |||||
protected $scene = [ | |||||
'add' => [], | |||||
'edit' => [], | |||||
]; | |||||
} |
@@ -0,0 +1,84 @@ | |||||
<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action=""> | |||||
<div class="form-group"> | |||||
<label class="control-label col-xs-12 col-sm-2">{:__('Del_flag')}:</label> | |||||
<div class="col-xs-12 col-sm-8"> | |||||
<input id="c-del_flag" data-rule="required" class="form-control" name="row[del_flag]" type="number" value="0"> | |||||
</div> | |||||
</div> | |||||
<div class="form-group"> | |||||
<label class="control-label col-xs-12 col-sm-2">{:__('Create_time')}:</label> | |||||
<div class="col-xs-12 col-sm-8"> | |||||
<input id="c-create_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[create_time]" type="text" value="{:date('Y-m-d H:i:s')}"> | |||||
</div> | |||||
</div> | |||||
<div class="form-group"> | |||||
<label class="control-label col-xs-12 col-sm-2">{:__('Update_time')}:</label> | |||||
<div class="col-xs-12 col-sm-8"> | |||||
<input id="c-update_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[update_time]" type="text" value="{:date('Y-m-d H:i:s')}"> | |||||
</div> | |||||
</div> | |||||
<div class="form-group"> | |||||
<label class="control-label col-xs-12 col-sm-2">{:__('Create_id')}:</label> | |||||
<div class="col-xs-12 col-sm-8"> | |||||
<input id="c-create_id" data-rule="required" data-source="create/index" class="form-control selectpage" name="row[create_id]" type="text" value=""> | |||||
</div> | |||||
</div> | |||||
<div class="form-group"> | |||||
<label class="control-label col-xs-12 col-sm-2">{:__('Group_id')}:</label> | |||||
<div class="col-xs-12 col-sm-8"> | |||||
<input id="c-group_id" data-rule="required" data-source="group/index" class="form-control selectpage" name="row[group_id]" type="text" value=""> | |||||
</div> | |||||
</div> | |||||
<div class="form-group"> | |||||
<label class="control-label col-xs-12 col-sm-2">{:__('Supplier_id')}:</label> | |||||
<div class="col-xs-12 col-sm-8"> | |||||
<input id="c-supplier_id" data-rule="required" data-source="supplier/index" class="form-control selectpage" name="row[supplier_id]" type="text" value=""> | |||||
</div> | |||||
</div> | |||||
<div class="form-group"> | |||||
<label class="control-label col-xs-12 col-sm-2">{:__('Balance')}:</label> | |||||
<div class="col-xs-12 col-sm-8"> | |||||
<input id="c-balance" data-rule="required" class="form-control" step="0.01" name="row[balance]" type="number" value="0.00"> | |||||
</div> | |||||
</div> | |||||
<div class="form-group"> | |||||
<label class="control-label col-xs-12 col-sm-2">{:__('Payment_ids')}:</label> | |||||
<div class="col-xs-12 col-sm-8"> | |||||
<input id="c-payment_ids" data-rule="required" data-source="payment/index" data-multiple="true" class="form-control selectpage" name="row[payment_ids]" type="text" value=""> | |||||
</div> | |||||
</div> | |||||
<div class="form-group"> | |||||
<label class="control-label col-xs-12 col-sm-2">{:__('Memo')}:</label> | |||||
<div class="col-xs-12 col-sm-8"> | |||||
<input id="c-memo" data-rule="required" class="form-control" name="row[memo]" type="text" value=""> | |||||
</div> | |||||
</div> | |||||
<div class="form-group"> | |||||
<label class="control-label col-xs-12 col-sm-2">{:__('File')}:</label> | |||||
<div class="col-xs-12 col-sm-8"> | |||||
<div class="input-group"> | |||||
<input id="c-file" data-rule="required" class="form-control" size="50" name="row[file]" type="text" value=""> | |||||
<div class="input-group-addon no-border no-padding"> | |||||
<span><button type="button" id="faupload-file" class="btn btn-danger faupload" data-input-id="c-file" data-multiple="false" data-preview-id="p-file"><i class="fa fa-upload"></i> {:__('Upload')}</button></span> | |||||
<span><button type="button" id="fachoose-file" class="btn btn-primary fachoose" data-input-id="c-file" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span> | |||||
</div> | |||||
<span class="msg-box n-right" for="c-file"></span> | |||||
</div> | |||||
<ul class="row list-inline faupload-preview" id="p-file"></ul> | |||||
</div> | |||||
</div> | |||||
<div class="form-group"> | |||||
<label class="control-label col-xs-12 col-sm-2">{:__('Money')}:</label> | |||||
<div class="col-xs-12 col-sm-8"> | |||||
<input id="c-money" data-rule="required" class="form-control" step="0.01" name="row[money]" type="number" value="0.00"> | |||||
</div> | |||||
</div> | |||||
<div class="form-group layer-footer"> | |||||
<label class="control-label col-xs-12 col-sm-2"></label> | |||||
<div class="col-xs-12 col-sm-8"> | |||||
<button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button> | |||||
<button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button> | |||||
</div> | |||||
</div> | |||||
</form> |
@@ -0,0 +1,84 @@ | |||||
<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action=""> | |||||
<div class="form-group"> | |||||
<label class="control-label col-xs-12 col-sm-2">{:__('Del_flag')}:</label> | |||||
<div class="col-xs-12 col-sm-8"> | |||||
<input id="c-del_flag" data-rule="required" class="form-control" name="row[del_flag]" type="number" value="{$row.del_flag|htmlentities}"> | |||||
</div> | |||||
</div> | |||||
<div class="form-group"> | |||||
<label class="control-label col-xs-12 col-sm-2">{:__('Create_time')}:</label> | |||||
<div class="col-xs-12 col-sm-8"> | |||||
<input id="c-create_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[create_time]" type="text" value="{:$row.create_time?datetime($row.create_time):''}"> | |||||
</div> | |||||
</div> | |||||
<div class="form-group"> | |||||
<label class="control-label col-xs-12 col-sm-2">{:__('Update_time')}:</label> | |||||
<div class="col-xs-12 col-sm-8"> | |||||
<input id="c-update_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[update_time]" type="text" value="{:$row.update_time?datetime($row.update_time):''}"> | |||||
</div> | |||||
</div> | |||||
<div class="form-group"> | |||||
<label class="control-label col-xs-12 col-sm-2">{:__('Create_id')}:</label> | |||||
<div class="col-xs-12 col-sm-8"> | |||||
<input id="c-create_id" data-rule="required" data-source="create/index" class="form-control selectpage" name="row[create_id]" type="text" value="{$row.create_id|htmlentities}"> | |||||
</div> | |||||
</div> | |||||
<div class="form-group"> | |||||
<label class="control-label col-xs-12 col-sm-2">{:__('Group_id')}:</label> | |||||
<div class="col-xs-12 col-sm-8"> | |||||
<input id="c-group_id" data-rule="required" data-source="group/index" class="form-control selectpage" name="row[group_id]" type="text" value="{$row.group_id|htmlentities}"> | |||||
</div> | |||||
</div> | |||||
<div class="form-group"> | |||||
<label class="control-label col-xs-12 col-sm-2">{:__('Supplier_id')}:</label> | |||||
<div class="col-xs-12 col-sm-8"> | |||||
<input id="c-supplier_id" data-rule="required" data-source="supplier/index" class="form-control selectpage" name="row[supplier_id]" type="text" value="{$row.supplier_id|htmlentities}"> | |||||
</div> | |||||
</div> | |||||
<div class="form-group"> | |||||
<label class="control-label col-xs-12 col-sm-2">{:__('Balance')}:</label> | |||||
<div class="col-xs-12 col-sm-8"> | |||||
<input id="c-balance" data-rule="required" class="form-control" step="0.01" name="row[balance]" type="number" value="{$row.balance|htmlentities}"> | |||||
</div> | |||||
</div> | |||||
<div class="form-group"> | |||||
<label class="control-label col-xs-12 col-sm-2">{:__('Payment_ids')}:</label> | |||||
<div class="col-xs-12 col-sm-8"> | |||||
<input id="c-payment_ids" data-rule="required" data-source="payment/index" data-multiple="true" class="form-control selectpage" name="row[payment_ids]" type="text" value="{$row.payment_ids|htmlentities}"> | |||||
</div> | |||||
</div> | |||||
<div class="form-group"> | |||||
<label class="control-label col-xs-12 col-sm-2">{:__('Memo')}:</label> | |||||
<div class="col-xs-12 col-sm-8"> | |||||
<input id="c-memo" data-rule="required" class="form-control" name="row[memo]" type="text" value="{$row.memo|htmlentities}"> | |||||
</div> | |||||
</div> | |||||
<div class="form-group"> | |||||
<label class="control-label col-xs-12 col-sm-2">{:__('File')}:</label> | |||||
<div class="col-xs-12 col-sm-8"> | |||||
<div class="input-group"> | |||||
<input id="c-file" data-rule="required" class="form-control" size="50" name="row[file]" type="text" value="{$row.file|htmlentities}"> | |||||
<div class="input-group-addon no-border no-padding"> | |||||
<span><button type="button" id="faupload-file" class="btn btn-danger faupload" data-input-id="c-file" data-multiple="false" data-preview-id="p-file"><i class="fa fa-upload"></i> {:__('Upload')}</button></span> | |||||
<span><button type="button" id="fachoose-file" class="btn btn-primary fachoose" data-input-id="c-file" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span> | |||||
</div> | |||||
<span class="msg-box n-right" for="c-file"></span> | |||||
</div> | |||||
<ul class="row list-inline faupload-preview" id="p-file"></ul> | |||||
</div> | |||||
</div> | |||||
<div class="form-group"> | |||||
<label class="control-label col-xs-12 col-sm-2">{:__('Money')}:</label> | |||||
<div class="col-xs-12 col-sm-8"> | |||||
<input id="c-money" data-rule="required" class="form-control" step="0.01" name="row[money]" type="number" value="{$row.money|htmlentities}"> | |||||
</div> | |||||
</div> | |||||
<div class="form-group layer-footer"> | |||||
<label class="control-label col-xs-12 col-sm-2"></label> | |||||
<div class="col-xs-12 col-sm-8"> | |||||
<button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button> | |||||
<button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button> | |||||
</div> | |||||
</div> | |||||
</form> |
@@ -0,0 +1,35 @@ | |||||
<div class="panel panel-default panel-intro"> | |||||
{:build_heading()} | |||||
<div class="panel-body"> | |||||
<div id="myTabContent" class="tab-content"> | |||||
<div class="tab-pane fade active in" id="one"> | |||||
<div class="widget-body no-padding"> | |||||
<div id="toolbar" class="toolbar"> | |||||
<a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a> | |||||
<a href="javascript:;" class="btn btn-success btn-add {:$auth->check('advance_charge/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a> | |||||
<a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('advance_charge/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a> | |||||
<a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('advance_charge/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a> | |||||
<a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('advance_charge/import')?'':'hide'}" title="{:__('Import')}" id="btn-import-file" data-url="ajax/upload" data-mimetype="csv,xls,xlsx" data-multiple="false"><i class="fa fa-upload"></i> {:__('Import')}</a> | |||||
<div class="dropdown btn-group {:$auth->check('advance_charge/multi')?'':'hide'}"> | |||||
<a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a> | |||||
<ul class="dropdown-menu text-left" role="menu"> | |||||
<li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=normal"><i class="fa fa-eye"></i> {:__('Set to normal')}</a></li> | |||||
<li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=hidden"><i class="fa fa-eye-slash"></i> {:__('Set to hidden')}</a></li> | |||||
</ul> | |||||
</div> | |||||
</div> | |||||
<table id="table" class="table table-striped table-bordered table-hover table-nowrap" | |||||
data-operate-edit="{:$auth->check('advance_charge/edit')}" | |||||
data-operate-del="{:$auth->check('advance_charge/del')}" | |||||
width="100%"> | |||||
</table> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
</div> |
@@ -0,0 +1,78 @@ | |||||
<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action=""> | |||||
<div class="form-group"> | |||||
<label class="control-label col-xs-12 col-sm-2">{:__('Del_flag')}:</label> | |||||
<div class="col-xs-12 col-sm-8"> | |||||
<input id="c-del_flag" data-rule="required" class="form-control" name="row[del_flag]" type="number" value="0"> | |||||
</div> | |||||
</div> | |||||
<div class="form-group"> | |||||
<label class="control-label col-xs-12 col-sm-2">{:__('Create_time')}:</label> | |||||
<div class="col-xs-12 col-sm-8"> | |||||
<input id="c-create_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[create_time]" type="text" value="{:date('Y-m-d H:i:s')}"> | |||||
</div> | |||||
</div> | |||||
<div class="form-group"> | |||||
<label class="control-label col-xs-12 col-sm-2">{:__('Update_time')}:</label> | |||||
<div class="col-xs-12 col-sm-8"> | |||||
<input id="c-update_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[update_time]" type="text" value="{:date('Y-m-d H:i:s')}"> | |||||
</div> | |||||
</div> | |||||
<div class="form-group"> | |||||
<label class="control-label col-xs-12 col-sm-2">{:__('Create_id')}:</label> | |||||
<div class="col-xs-12 col-sm-8"> | |||||
<input id="c-create_id" data-rule="required" data-source="create/index" class="form-control selectpage" name="row[create_id]" type="text" value=""> | |||||
</div> | |||||
</div> | |||||
<div class="form-group"> | |||||
<label class="control-label col-xs-12 col-sm-2">{:__('Group_id')}:</label> | |||||
<div class="col-xs-12 col-sm-8"> | |||||
<input id="c-group_id" data-rule="required" data-source="group/index" class="form-control selectpage" name="row[group_id]" type="text" value=""> | |||||
</div> | |||||
</div> | |||||
<div class="form-group"> | |||||
<label class="control-label col-xs-12 col-sm-2">{:__('Payee_id')}:</label> | |||||
<div class="col-xs-12 col-sm-8"> | |||||
<input id="c-payee_id" data-rule="required" data-source="payee/index" class="form-control selectpage" name="row[payee_id]" type="text" value=""> | |||||
</div> | |||||
</div> | |||||
<div class="form-group"> | |||||
<label class="control-label col-xs-12 col-sm-2">{:__('Memo')}:</label> | |||||
<div class="col-xs-12 col-sm-8"> | |||||
<input id="c-memo" data-rule="required" class="form-control" name="row[memo]" type="text" value=""> | |||||
</div> | |||||
</div> | |||||
<div class="form-group"> | |||||
<label class="control-label col-xs-12 col-sm-2">{:__('File')}:</label> | |||||
<div class="col-xs-12 col-sm-8"> | |||||
<div class="input-group"> | |||||
<input id="c-file" class="form-control" size="50" name="row[file]" type="text"> | |||||
<div class="input-group-addon no-border no-padding"> | |||||
<span><button type="button" id="faupload-file" class="btn btn-danger faupload" data-input-id="c-file" data-multiple="false" data-preview-id="p-file"><i class="fa fa-upload"></i> {:__('Upload')}</button></span> | |||||
<span><button type="button" id="fachoose-file" class="btn btn-primary fachoose" data-input-id="c-file" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span> | |||||
</div> | |||||
<span class="msg-box n-right" for="c-file"></span> | |||||
</div> | |||||
<ul class="row list-inline faupload-preview" id="p-file"></ul> | |||||
</div> | |||||
</div> | |||||
<div class="form-group"> | |||||
<label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label> | |||||
<div class="col-xs-12 col-sm-8"> | |||||
<input id="c-status" data-rule="required" class="form-control" name="row[status]" type="number"> | |||||
</div> | |||||
</div> | |||||
<div class="form-group"> | |||||
<label class="control-label col-xs-12 col-sm-2">{:__('Amount')}:</label> | |||||
<div class="col-xs-12 col-sm-8"> | |||||
<input id="c-amount" data-rule="required" class="form-control" step="0.01" name="row[amount]" type="number" value="0.00"> | |||||
</div> | |||||
</div> | |||||
<div class="form-group layer-footer"> | |||||
<label class="control-label col-xs-12 col-sm-2"></label> | |||||
<div class="col-xs-12 col-sm-8"> | |||||
<button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button> | |||||
<button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button> | |||||
</div> | |||||
</div> | |||||
</form> |
@@ -0,0 +1,78 @@ | |||||
<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action=""> | |||||
<div class="form-group"> | |||||
<label class="control-label col-xs-12 col-sm-2">{:__('Del_flag')}:</label> | |||||
<div class="col-xs-12 col-sm-8"> | |||||
<input id="c-del_flag" data-rule="required" class="form-control" name="row[del_flag]" type="number" value="{$row.del_flag|htmlentities}"> | |||||
</div> | |||||
</div> | |||||
<div class="form-group"> | |||||
<label class="control-label col-xs-12 col-sm-2">{:__('Create_time')}:</label> | |||||
<div class="col-xs-12 col-sm-8"> | |||||
<input id="c-create_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[create_time]" type="text" value="{:$row.create_time?datetime($row.create_time):''}"> | |||||
</div> | |||||
</div> | |||||
<div class="form-group"> | |||||
<label class="control-label col-xs-12 col-sm-2">{:__('Update_time')}:</label> | |||||
<div class="col-xs-12 col-sm-8"> | |||||
<input id="c-update_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[update_time]" type="text" value="{:$row.update_time?datetime($row.update_time):''}"> | |||||
</div> | |||||
</div> | |||||
<div class="form-group"> | |||||
<label class="control-label col-xs-12 col-sm-2">{:__('Create_id')}:</label> | |||||
<div class="col-xs-12 col-sm-8"> | |||||
<input id="c-create_id" data-rule="required" data-source="create/index" class="form-control selectpage" name="row[create_id]" type="text" value="{$row.create_id|htmlentities}"> | |||||
</div> | |||||
</div> | |||||
<div class="form-group"> | |||||
<label class="control-label col-xs-12 col-sm-2">{:__('Group_id')}:</label> | |||||
<div class="col-xs-12 col-sm-8"> | |||||
<input id="c-group_id" data-rule="required" data-source="group/index" class="form-control selectpage" name="row[group_id]" type="text" value="{$row.group_id|htmlentities}"> | |||||
</div> | |||||
</div> | |||||
<div class="form-group"> | |||||
<label class="control-label col-xs-12 col-sm-2">{:__('Payee_id')}:</label> | |||||
<div class="col-xs-12 col-sm-8"> | |||||
<input id="c-payee_id" data-rule="required" data-source="payee/index" class="form-control selectpage" name="row[payee_id]" type="text" value="{$row.payee_id|htmlentities}"> | |||||
</div> | |||||
</div> | |||||
<div class="form-group"> | |||||
<label class="control-label col-xs-12 col-sm-2">{:__('Memo')}:</label> | |||||
<div class="col-xs-12 col-sm-8"> | |||||
<input id="c-memo" data-rule="required" class="form-control" name="row[memo]" type="text" value="{$row.memo|htmlentities}"> | |||||
</div> | |||||
</div> | |||||
<div class="form-group"> | |||||
<label class="control-label col-xs-12 col-sm-2">{:__('File')}:</label> | |||||
<div class="col-xs-12 col-sm-8"> | |||||
<div class="input-group"> | |||||
<input id="c-file" class="form-control" size="50" name="row[file]" type="text" value="{$row.file|htmlentities}"> | |||||
<div class="input-group-addon no-border no-padding"> | |||||
<span><button type="button" id="faupload-file" class="btn btn-danger faupload" data-input-id="c-file" data-multiple="false" data-preview-id="p-file"><i class="fa fa-upload"></i> {:__('Upload')}</button></span> | |||||
<span><button type="button" id="fachoose-file" class="btn btn-primary fachoose" data-input-id="c-file" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span> | |||||
</div> | |||||
<span class="msg-box n-right" for="c-file"></span> | |||||
</div> | |||||
<ul class="row list-inline faupload-preview" id="p-file"></ul> | |||||
</div> | |||||
</div> | |||||
<div class="form-group"> | |||||
<label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label> | |||||
<div class="col-xs-12 col-sm-8"> | |||||
<input id="c-status" data-rule="required" class="form-control" name="row[status]" type="number" value="{$row.status|htmlentities}"> | |||||
</div> | |||||
</div> | |||||
<div class="form-group"> | |||||
<label class="control-label col-xs-12 col-sm-2">{:__('Amount')}:</label> | |||||
<div class="col-xs-12 col-sm-8"> | |||||
<input id="c-amount" data-rule="required" class="form-control" step="0.01" name="row[amount]" type="number" value="{$row.amount|htmlentities}"> | |||||
</div> | |||||
</div> | |||||
<div class="form-group layer-footer"> | |||||
<label class="control-label col-xs-12 col-sm-2"></label> | |||||
<div class="col-xs-12 col-sm-8"> | |||||
<button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button> | |||||
<button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button> | |||||
</div> | |||||
</div> | |||||
</form> |
@@ -0,0 +1,35 @@ | |||||
<div class="panel panel-default panel-intro"> | |||||
{:build_heading()} | |||||
<div class="panel-body"> | |||||
<div id="myTabContent" class="tab-content"> | |||||
<div class="tab-pane fade active in" id="one"> | |||||
<div class="widget-body no-padding"> | |||||
<div id="toolbar" class="toolbar"> | |||||
<a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a> | |||||
<a href="javascript:;" class="btn btn-success btn-add {:$auth->check('deposit/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a> | |||||
<a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('deposit/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a> | |||||
<a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('deposit/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a> | |||||
<a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('deposit/import')?'':'hide'}" title="{:__('Import')}" id="btn-import-file" data-url="ajax/upload" data-mimetype="csv,xls,xlsx" data-multiple="false"><i class="fa fa-upload"></i> {:__('Import')}</a> | |||||
<div class="dropdown btn-group {:$auth->check('deposit/multi')?'':'hide'}"> | |||||
<a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a> | |||||
<ul class="dropdown-menu text-left" role="menu"> | |||||
<li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=normal"><i class="fa fa-eye"></i> {:__('Set to normal')}</a></li> | |||||
<li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=hidden"><i class="fa fa-eye-slash"></i> {:__('Set to hidden')}</a></li> | |||||
</ul> | |||||
</div> | |||||
</div> | |||||
<table id="table" class="table table-striped table-bordered table-hover table-nowrap" | |||||
data-operate-edit="{:$auth->check('deposit/edit')}" | |||||
data-operate-del="{:$auth->check('deposit/del')}" | |||||
width="100%"> | |||||
</table> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
</div> |