@@ -0,0 +1,40 @@ | |||
<?php | |||
namespace app\admin\controller; | |||
use app\common\controller\Backend; | |||
/** | |||
* 配置-酒店详情 | |||
* | |||
* @icon fa fa-circle-o | |||
*/ | |||
class CfHotelInfo extends Backend | |||
{ | |||
/** | |||
* CfHotelInfo模型对象 | |||
* @var \app\admin\model\CfHotelInfo | |||
*/ | |||
protected $model = null; | |||
public function _initialize() | |||
{ | |||
parent::_initialize(); | |||
$this->model = new \app\admin\model\CfHotelInfo; | |||
} | |||
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 CfItem extends Backend | |||
{ | |||
/** | |||
* CfItem模型对象 | |||
* @var \app\admin\model\CfItem | |||
*/ | |||
protected $model = null; | |||
public function _initialize() | |||
{ | |||
parent::_initialize(); | |||
$this->model = new \app\admin\model\CfItem; | |||
} | |||
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 CfRoomInfo extends Backend | |||
{ | |||
/** | |||
* CfRoomInfo模型对象 | |||
* @var \app\admin\model\CfRoomInfo | |||
*/ | |||
protected $model = null; | |||
public function _initialize() | |||
{ | |||
parent::_initialize(); | |||
$this->model = new \app\admin\model\CfRoomInfo; | |||
} | |||
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 CfRoomPlan extends Backend | |||
{ | |||
/** | |||
* CfRoomPlan模型对象 | |||
* @var \app\admin\model\CfRoomPlan | |||
*/ | |||
protected $model = null; | |||
public function _initialize() | |||
{ | |||
parent::_initialize(); | |||
$this->model = new \app\admin\model\CfRoomPlan; | |||
} | |||
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 CfSuplierInfo extends Backend | |||
{ | |||
/** | |||
* CfSuplierInfo模型对象 | |||
* @var \app\admin\model\CfSuplierInfo | |||
*/ | |||
protected $model = null; | |||
public function _initialize() | |||
{ | |||
parent::_initialize(); | |||
$this->model = new \app\admin\model\CfSuplierInfo; | |||
} | |||
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 OrderHotel extends Backend | |||
{ | |||
/** | |||
* OrderHotel模型对象 | |||
* @var \app\admin\model\OrderHotel | |||
*/ | |||
protected $model = null; | |||
public function _initialize() | |||
{ | |||
parent::_initialize(); | |||
$this->model = new \app\admin\model\OrderHotel; | |||
} | |||
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 OrderItem extends Backend | |||
{ | |||
/** | |||
* OrderItem模型对象 | |||
* @var \app\admin\model\OrderItem | |||
*/ | |||
protected $model = null; | |||
public function _initialize() | |||
{ | |||
parent::_initialize(); | |||
$this->model = new \app\admin\model\OrderItem; | |||
} | |||
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 OrderMain extends Backend | |||
{ | |||
/** | |||
* OrderMain模型对象 | |||
* @var \app\admin\model\OrderMain | |||
*/ | |||
protected $model = null; | |||
public function _initialize() | |||
{ | |||
parent::_initialize(); | |||
$this->model = new \app\admin\model\OrderMain; | |||
} | |||
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 PaymentOrder extends Backend | |||
{ | |||
/** | |||
* PaymentOrder模型对象 | |||
* @var \app\admin\model\PaymentOrder | |||
*/ | |||
protected $model = null; | |||
public function _initialize() | |||
{ | |||
parent::_initialize(); | |||
$this->model = new \app\admin\model\PaymentOrder; | |||
} | |||
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 Purchase extends Backend | |||
{ | |||
/** | |||
* Purchase模型对象 | |||
* @var \app\admin\model\Purchase | |||
*/ | |||
protected $model = null; | |||
public function _initialize() | |||
{ | |||
parent::_initialize(); | |||
$this->model = new \app\admin\model\Purchase; | |||
} | |||
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 PurchasePrice extends Backend | |||
{ | |||
/** | |||
* PurchasePrice模型对象 | |||
* @var \app\admin\model\PurchasePrice | |||
*/ | |||
protected $model = null; | |||
public function _initialize() | |||
{ | |||
parent::_initialize(); | |||
$this->model = new \app\admin\model\PurchasePrice; | |||
} | |||
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 ReceiptOrder extends Backend | |||
{ | |||
/** | |||
* ReceiptOrder模型对象 | |||
* @var \app\admin\model\ReceiptOrder | |||
*/ | |||
protected $model = null; | |||
public function _initialize() | |||
{ | |||
parent::_initialize(); | |||
$this->model = new \app\admin\model\ReceiptOrder; | |||
} | |||
public function import() | |||
{ | |||
parent::import(); | |||
} | |||
/** | |||
* 默认生成的控制器所继承的父类中有index/add/edit/del/multi五个基础方法、destroy/restore/recyclebin三个回收站方法 | |||
* 因此在当前控制器中可不用编写增删改查的代码,除非需要自己控制这部分逻辑 | |||
* 需要将application/admin/library/traits/Backend.php中对应的方法复制到当前控制器,然后进行修改 | |||
*/ | |||
} |
@@ -0,0 +1,17 @@ | |||
<?php | |||
return [ | |||
'Id' => '酒店ID', | |||
'Hotel_name' => '酒店名称', | |||
'Hotel_phone' => '酒店电话', | |||
'Country_id' => '国家ID', | |||
'Country_name' => '国家名称', | |||
'Province_id' => '省份ID', | |||
'Province_name' => '省份名称', | |||
'City_id' => '城市ID', | |||
'City_name' => '城市名称', | |||
'Detail_address' => '详细地址', | |||
'Del_flag' => '是否删除', | |||
'Create_time' => '创建时间', | |||
'Update_time' => '更新时间' | |||
]; |
@@ -0,0 +1,20 @@ | |||
<?php | |||
return [ | |||
'Id' => '附加项目ID', | |||
'Item_type' => '附件项目类型', | |||
'Item_name' => '附件项目名称', | |||
'Item_unit' => '计价单位 件、份、匝、张等', | |||
'Item_memo' => '附件项目说明', | |||
'Item_log' => '日志', | |||
'Country_id' => '国家ID', | |||
'Country_name' => '国家名称', | |||
'Province_id' => '省份ID', | |||
'Province_name' => '省份名称', | |||
'City_id' => '城市ID', | |||
'City_name' => '城市名称', | |||
'Detail_address' => '详细地址', | |||
'Del_flag' => '是否删除', | |||
'Create_time' => '创建时间', | |||
'Update_time' => '更新时间' | |||
]; |
@@ -0,0 +1,12 @@ | |||
<?php | |||
return [ | |||
'Id' => '房型ID', | |||
'Hotel_id' => '酒店ID', | |||
'Room_name' => '房型名称', | |||
'Room_memo' => '房型说明', | |||
'Room_log' => '日志', | |||
'Del_flag' => '是否删除', | |||
'Create_time' => '创建时间', | |||
'Update_time' => '更新时间' | |||
]; |
@@ -0,0 +1,19 @@ | |||
<?php | |||
return [ | |||
'Id' => '价格方案ID', | |||
'Hotel_id' => '酒店ID', | |||
'Room_id' => '房型ID', | |||
'Plan_name' => '价格方案名称', | |||
'Breakfast_num' => '早餐数量', | |||
'Book_end_day' => '提前几天预定', | |||
'Book_end_hour' => '提前多少天的几点前预定', | |||
'Continuity_type' => '连续入住类型 0无限制 1连住几晚 2连住几晚及以上 3连住几晚及其倍数', | |||
'Coutinuity_day' => '连续入住天数', | |||
'Plan_memo' => '方案说明', | |||
'Plan_log' => '日志', | |||
'Charge_person' => '负责人', | |||
'Del_flag' => '是否删除', | |||
'Create_time' => '创建时间', | |||
'Update_time' => '更新时间' | |||
]; |
@@ -0,0 +1,10 @@ | |||
<?php | |||
return [ | |||
'Id' => '主键ID', | |||
'Supplier_name' => '供应商名称', | |||
'Memo' => '介绍', | |||
'Del_flag' => '是否删除', | |||
'Create_time' => '创建时间-下单时间', | |||
'Update_time' => '更新时间' | |||
]; |
@@ -0,0 +1,31 @@ | |||
<?php | |||
return [ | |||
'Id' => '主键ID', | |||
'Order_id' => '订单ID', | |||
'Hotel_id' => '酒店ID', | |||
'Hotel_name' => '酒店名称', | |||
'Hotel_phone' => '酒店电话', | |||
'Country_name' => '国家名称', | |||
'Province_name' => '省份名称', | |||
'City_name' => '城市名称', | |||
'Detail_address' => '详细地址', | |||
'Room_id' => '房型ID', | |||
'Room_name' => '房型名称', | |||
'Room_memo' => '房型说明', | |||
'Plan_id' => '方案ID', | |||
'Plan_name' => '方案名称', | |||
'Plan_memo' => '方案说明', | |||
'Check_in_date' => '入住时间', | |||
'Check_out_date' => '离店时间', | |||
'Prod_num' => '产品数量', | |||
'Total_price' => '总金额 ', | |||
'Total_cose' => '总成本价格', | |||
'Profit' => '利润', | |||
'Log' => '日志', | |||
'Del_flag' => '是否删除', | |||
'Create_time' => '创建时间-下单时间', | |||
'Update_time' => '更新时间', | |||
'Confirm_status' => '资源单状态 1、未发单/ 2已发单、3已确认、4已取消', | |||
'Confirm_no' => '确认单号' | |||
]; |
@@ -0,0 +1,26 @@ | |||
<?php | |||
return [ | |||
'Id' => '主键ID', | |||
'Order_id' => '订单ID', | |||
'Item_id' => '附加项目ID', | |||
'Item_type' => '附加项目类型', | |||
'Item_name' => '附加项目名称', | |||
'Item_memo' => '附加项目说明', | |||
'Item_unit' => '计价单位 件、份、匝、张等', | |||
'Use_date' => '使用日期', | |||
'Prod_num' => '产品数量', | |||
'Total_price' => '总金额', | |||
'Total_cose' => '总成本价格', | |||
'Profit' => '利润', | |||
'Log' => '日志', | |||
'Country_name' => '国家名称', | |||
'Province_name' => '省份名称', | |||
'City_name' => '城市名称', | |||
'Detail_address' => '详细地址', | |||
'Del_flag' => '是否删除', | |||
'Create_time' => '创建时间-下单时间', | |||
'Update_time' => '更新时间', | |||
'Confirm_status' => '资源单状态 1、未发单/ 2已发单、3已确认、4已取消', | |||
'Confirm_no' => '确认单号' | |||
]; |
@@ -0,0 +1,23 @@ | |||
<?php | |||
return [ | |||
'Id' => '订单ID', | |||
'Create_user_id' => '下单人', | |||
'Group_id' => '部门ID', | |||
'Commissioner' => '专员', | |||
'Channel_id' => '渠道', | |||
'Channel_order_no' => '渠道订单号', | |||
'User_name' => '用户名', | |||
'User_phone' => '用户手机号', | |||
'Total_amount' => '总金额', | |||
'Cost_amount' => '成本价', | |||
'Profit_amount' => '利润', | |||
'Order_status' => '订单状态0待处理 1已确认 2部分取消 10已完成 11已取消', | |||
'Order_memo' => '订单备注', | |||
'Log' => '日志', | |||
'Cancel_time' => '订单取消时间', | |||
'Success_time' => '订单完成时间', | |||
'Del_flag' => '是否删除', | |||
'Create_time' => '创建时间-下单时间', | |||
'Update_time' => '更新时间' | |||
]; |
@@ -0,0 +1,12 @@ | |||
<?php | |||
return [ | |||
'Id' => 'ID', | |||
'Del_flag' => '是否删除', | |||
'Create_time' => '创建时间', | |||
'Update_time' => '更新时间', | |||
'Name' => '付款账单名称', | |||
'Status' => '付款状态 0:未付款 1:已付款', | |||
'Order_ids' => '订单主表订单ID', | |||
'Money' => '金额' | |||
]; |
@@ -0,0 +1,27 @@ | |||
<?php | |||
return [ | |||
'Id' => 'ID', | |||
'Del_flag' => '是否删除', | |||
'Create_time' => '创建时间', | |||
'Update_time' => '更新时间', | |||
'Order_id' => '关联订单号', | |||
'Prod_type' => '订单类型 hotel 酒店 item附加项目', | |||
'Order_detail_id' => '订单详情表ID order_hotel、order_item', | |||
'Group_id' => '部门ID', | |||
'Pro_name' => '酒店名称/附加项目类型', | |||
'Item_name' => '房型/附加项目名称', | |||
'Item_unit' => '价格方案/计价单位', | |||
'Check_in_date' => '入住日期/使用日期', | |||
'Check_out_date' => '离店日期', | |||
'Count' => '数量', | |||
'Total_price' => '总价', | |||
'Supplier_name' => '供应商名称', | |||
'Total_cost' => '总成本', | |||
'Profit' => '利润', | |||
'Receipt_status' => '收款状态 0:未收款 1:已收款', | |||
'Receipt_id' => '收款单id', | |||
'Pay_status' => '付款单状态 0:未付款 1:已付款', | |||
'Payment_id' => '付款单id', | |||
'Purchase_user_id' => '采购负责人' | |||
]; |
@@ -0,0 +1,16 @@ | |||
<?php | |||
return [ | |||
'Id' => '主键ID', | |||
'Order_id' => '关联订单号', | |||
'Prod_type' => '订单类型 hotel 酒店 item附加项目', | |||
'Order_detail_id' => '订单详情表ID order_hotel、order_item', | |||
'Purchase_id' => '采购单表ID ', | |||
'Run_date' => '日期', | |||
'Count' => '数量', | |||
'Price' => '售卖单价', | |||
'Cost' => '成本单价', | |||
'Del_flag' => '是否删除', | |||
'Create_time' => '创建时间', | |||
'Update_time' => '更新时间' | |||
]; |
@@ -0,0 +1,12 @@ | |||
<?php | |||
return [ | |||
'Id' => '主键ID', | |||
'Del_flag' => '是否删除', | |||
'Create_time' => '创建时间', | |||
'Update_time' => '更新时间', | |||
'Name' => '收款账单名称', | |||
'Status' => '收款状态 0:未收款 1:已收款', | |||
'Order_ids' => '关联的订单', | |||
'Money' => '金额' | |||
]; |
@@ -0,0 +1,40 @@ | |||
<?php | |||
namespace app\admin\model; | |||
use think\Model; | |||
class CfHotelInfo extends Model | |||
{ | |||
// 表名 | |||
protected $name = 'cf_hotel_info'; | |||
// 自动写入时间戳字段 | |||
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 CfItem extends Model | |||
{ | |||
// 表名 | |||
protected $name = 'cf_item'; | |||
// 自动写入时间戳字段 | |||
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 CfRoomInfo extends Model | |||
{ | |||
// 表名 | |||
protected $name = 'cf_room_info'; | |||
// 自动写入时间戳字段 | |||
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 CfRoomPlan extends Model | |||
{ | |||
// 表名 | |||
protected $name = 'cf_room_plan'; | |||
// 自动写入时间戳字段 | |||
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 CfSuplierInfo extends Model | |||
{ | |||
// 表名 | |||
protected $name = 'cf_suplier_info'; | |||
// 自动写入时间戳字段 | |||
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 OrderHotel extends Model | |||
{ | |||
// 表名 | |||
protected $name = 'order_hotel'; | |||
// 自动写入时间戳字段 | |||
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 OrderItem extends Model | |||
{ | |||
// 表名 | |||
protected $name = 'order_item'; | |||
// 自动写入时间戳字段 | |||
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 OrderMain extends Model | |||
{ | |||
// 表名 | |||
protected $name = 'order_main'; | |||
// 自动写入时间戳字段 | |||
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 PaymentOrder extends Model | |||
{ | |||
// 表名 | |||
protected $name = 'payment_order'; | |||
// 自动写入时间戳字段 | |||
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 Purchase extends Model | |||
{ | |||
// 表名 | |||
protected $name = 'purchase'; | |||
// 自动写入时间戳字段 | |||
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 PurchasePrice extends Model | |||
{ | |||
// 表名 | |||
protected $name = 'purchase_price'; | |||
// 自动写入时间戳字段 | |||
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 ReceiptOrder extends Model | |||
{ | |||
// 表名 | |||
protected $name = 'receipt_order'; | |||
// 自动写入时间戳字段 | |||
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 CfHotelInfo extends Validate | |||
{ | |||
/** | |||
* 验证规则 | |||
*/ | |||
protected $rule = [ | |||
]; | |||
/** | |||
* 提示消息 | |||
*/ | |||
protected $message = [ | |||
]; | |||
/** | |||
* 验证场景 | |||
*/ | |||
protected $scene = [ | |||
'add' => [], | |||
'edit' => [], | |||
]; | |||
} |
@@ -0,0 +1,27 @@ | |||
<?php | |||
namespace app\admin\validate; | |||
use think\Validate; | |||
class CfItem extends Validate | |||
{ | |||
/** | |||
* 验证规则 | |||
*/ | |||
protected $rule = [ | |||
]; | |||
/** | |||
* 提示消息 | |||
*/ | |||
protected $message = [ | |||
]; | |||
/** | |||
* 验证场景 | |||
*/ | |||
protected $scene = [ | |||
'add' => [], | |||
'edit' => [], | |||
]; | |||
} |
@@ -0,0 +1,27 @@ | |||
<?php | |||
namespace app\admin\validate; | |||
use think\Validate; | |||
class CfRoomInfo extends Validate | |||
{ | |||
/** | |||
* 验证规则 | |||
*/ | |||
protected $rule = [ | |||
]; | |||
/** | |||
* 提示消息 | |||
*/ | |||
protected $message = [ | |||
]; | |||
/** | |||
* 验证场景 | |||
*/ | |||
protected $scene = [ | |||
'add' => [], | |||
'edit' => [], | |||
]; | |||
} |
@@ -0,0 +1,27 @@ | |||
<?php | |||
namespace app\admin\validate; | |||
use think\Validate; | |||
class CfRoomPlan extends Validate | |||
{ | |||
/** | |||
* 验证规则 | |||
*/ | |||
protected $rule = [ | |||
]; | |||
/** | |||
* 提示消息 | |||
*/ | |||
protected $message = [ | |||
]; | |||
/** | |||
* 验证场景 | |||
*/ | |||
protected $scene = [ | |||
'add' => [], | |||
'edit' => [], | |||
]; | |||
} |
@@ -0,0 +1,27 @@ | |||
<?php | |||
namespace app\admin\validate; | |||
use think\Validate; | |||
class CfSuplierInfo extends Validate | |||
{ | |||
/** | |||
* 验证规则 | |||
*/ | |||
protected $rule = [ | |||
]; | |||
/** | |||
* 提示消息 | |||
*/ | |||
protected $message = [ | |||
]; | |||
/** | |||
* 验证场景 | |||
*/ | |||
protected $scene = [ | |||
'add' => [], | |||
'edit' => [], | |||
]; | |||
} |
@@ -0,0 +1,27 @@ | |||
<?php | |||
namespace app\admin\validate; | |||
use think\Validate; | |||
class OrderHotel extends Validate | |||
{ | |||
/** | |||
* 验证规则 | |||
*/ | |||
protected $rule = [ | |||
]; | |||
/** | |||
* 提示消息 | |||
*/ | |||
protected $message = [ | |||
]; | |||
/** | |||
* 验证场景 | |||
*/ | |||
protected $scene = [ | |||
'add' => [], | |||
'edit' => [], | |||
]; | |||
} |
@@ -0,0 +1,27 @@ | |||
<?php | |||
namespace app\admin\validate; | |||
use think\Validate; | |||
class OrderItem extends Validate | |||
{ | |||
/** | |||
* 验证规则 | |||
*/ | |||
protected $rule = [ | |||
]; | |||
/** | |||
* 提示消息 | |||
*/ | |||
protected $message = [ | |||
]; | |||
/** | |||
* 验证场景 | |||
*/ | |||
protected $scene = [ | |||
'add' => [], | |||
'edit' => [], | |||
]; | |||
} |
@@ -0,0 +1,27 @@ | |||
<?php | |||
namespace app\admin\validate; | |||
use think\Validate; | |||
class OrderMain extends Validate | |||
{ | |||
/** | |||
* 验证规则 | |||
*/ | |||
protected $rule = [ | |||
]; | |||
/** | |||
* 提示消息 | |||
*/ | |||
protected $message = [ | |||
]; | |||
/** | |||
* 验证场景 | |||
*/ | |||
protected $scene = [ | |||
'add' => [], | |||
'edit' => [], | |||
]; | |||
} |
@@ -0,0 +1,27 @@ | |||
<?php | |||
namespace app\admin\validate; | |||
use think\Validate; | |||
class PaymentOrder extends Validate | |||
{ | |||
/** | |||
* 验证规则 | |||
*/ | |||
protected $rule = [ | |||
]; | |||
/** | |||
* 提示消息 | |||
*/ | |||
protected $message = [ | |||
]; | |||
/** | |||
* 验证场景 | |||
*/ | |||
protected $scene = [ | |||
'add' => [], | |||
'edit' => [], | |||
]; | |||
} |
@@ -0,0 +1,27 @@ | |||
<?php | |||
namespace app\admin\validate; | |||
use think\Validate; | |||
class Purchase extends Validate | |||
{ | |||
/** | |||
* 验证规则 | |||
*/ | |||
protected $rule = [ | |||
]; | |||
/** | |||
* 提示消息 | |||
*/ | |||
protected $message = [ | |||
]; | |||
/** | |||
* 验证场景 | |||
*/ | |||
protected $scene = [ | |||
'add' => [], | |||
'edit' => [], | |||
]; | |||
} |
@@ -0,0 +1,27 @@ | |||
<?php | |||
namespace app\admin\validate; | |||
use think\Validate; | |||
class PurchasePrice extends Validate | |||
{ | |||
/** | |||
* 验证规则 | |||
*/ | |||
protected $rule = [ | |||
]; | |||
/** | |||
* 提示消息 | |||
*/ | |||
protected $message = [ | |||
]; | |||
/** | |||
* 验证场景 | |||
*/ | |||
protected $scene = [ | |||
'add' => [], | |||
'edit' => [], | |||
]; | |||
} |
@@ -0,0 +1,27 @@ | |||
<?php | |||
namespace app\admin\validate; | |||
use think\Validate; | |||
class ReceiptOrder extends Validate | |||
{ | |||
/** | |||
* 验证规则 | |||
*/ | |||
protected $rule = [ | |||
]; | |||
/** | |||
* 提示消息 | |||
*/ | |||
protected $message = [ | |||
]; | |||
/** | |||
* 验证场景 | |||
*/ | |||
protected $scene = [ | |||
'add' => [], | |||
'edit' => [], | |||
]; | |||
} |
@@ -0,0 +1,82 @@ | |||
<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">{:__('Hotel_name')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-hotel_name" data-rule="required" class="form-control" name="row[hotel_name]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Hotel_phone')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-hotel_phone" data-rule="required" class="form-control" name="row[hotel_phone]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Country_id')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-country_id" data-rule="required" data-source="country/index" class="form-control selectpage" name="row[country_id]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Country_name')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-country_name" data-rule="required" class="form-control" name="row[country_name]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Province_id')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-province_id" data-rule="required" data-source="province/index" class="form-control selectpage" name="row[province_id]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Province_name')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-province_name" data-rule="required" class="form-control" name="row[province_name]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('City_id')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-city_id" data-rule="required" data-source="city/index" class="form-control selectpage" name="row[city_id]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('City_name')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-city_name" data-rule="required" class="form-control" name="row[city_name]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Detail_address')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-detail_address" data-rule="required" class="form-control" name="row[detail_address]" type="text" value=""> | |||
</div> | |||
</div> | |||
<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 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,82 @@ | |||
<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">{:__('Hotel_name')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-hotel_name" data-rule="required" class="form-control" name="row[hotel_name]" type="text" value="{$row.hotel_name|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Hotel_phone')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-hotel_phone" data-rule="required" class="form-control" name="row[hotel_phone]" type="text" value="{$row.hotel_phone|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Country_id')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-country_id" data-rule="required" data-source="country/index" class="form-control selectpage" name="row[country_id]" type="text" value="{$row.country_id|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Country_name')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-country_name" data-rule="required" class="form-control" name="row[country_name]" type="text" value="{$row.country_name|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Province_id')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-province_id" data-rule="required" data-source="province/index" class="form-control selectpage" name="row[province_id]" type="text" value="{$row.province_id|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Province_name')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-province_name" data-rule="required" class="form-control" name="row[province_name]" type="text" value="{$row.province_name|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('City_id')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-city_id" data-rule="required" data-source="city/index" class="form-control selectpage" name="row[city_id]" type="text" value="{$row.city_id|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('City_name')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-city_name" data-rule="required" class="form-control" name="row[city_name]" type="text" value="{$row.city_name|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Detail_address')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-detail_address" data-rule="required" class="form-control" name="row[detail_address]" type="text" value="{$row.detail_address|htmlentities}"> | |||
</div> | |||
</div> | |||
<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 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('cf_hotel_info/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('cf_hotel_info/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('cf_hotel_info/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a> | |||
<a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('cf_hotel_info/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('cf_hotel_info/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('cf_hotel_info/edit')}" | |||
data-operate-del="{:$auth->check('cf_hotel_info/del')}" | |||
width="100%"> | |||
</table> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> |
@@ -0,0 +1,100 @@ | |||
<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">{:__('Item_type')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-item_type" data-rule="required" class="form-control" name="row[item_type]" type="number" value="0"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Item_name')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-item_name" data-rule="required" class="form-control" name="row[item_name]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Item_unit')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-item_unit" data-rule="required" class="form-control" name="row[item_unit]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Item_memo')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-item_memo" data-rule="required" class="form-control" name="row[item_memo]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Item_log')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-item_log" data-rule="required" class="form-control" name="row[item_log]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Country_id')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-country_id" data-rule="required" data-source="country/index" class="form-control selectpage" name="row[country_id]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Country_name')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-country_name" data-rule="required" class="form-control" name="row[country_name]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Province_id')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-province_id" data-rule="required" data-source="province/index" class="form-control selectpage" name="row[province_id]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Province_name')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-province_name" data-rule="required" class="form-control" name="row[province_name]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('City_id')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-city_id" data-rule="required" data-source="city/index" class="form-control selectpage" name="row[city_id]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('City_name')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-city_name" data-rule="required" class="form-control" name="row[city_name]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Detail_address')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-detail_address" data-rule="required" class="form-control" name="row[detail_address]" type="text" value=""> | |||
</div> | |||
</div> | |||
<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 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,100 @@ | |||
<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">{:__('Item_type')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-item_type" data-rule="required" class="form-control" name="row[item_type]" type="number" value="{$row.item_type|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Item_name')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-item_name" data-rule="required" class="form-control" name="row[item_name]" type="text" value="{$row.item_name|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Item_unit')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-item_unit" data-rule="required" class="form-control" name="row[item_unit]" type="text" value="{$row.item_unit|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Item_memo')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-item_memo" data-rule="required" class="form-control" name="row[item_memo]" type="text" value="{$row.item_memo|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Item_log')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-item_log" data-rule="required" class="form-control" name="row[item_log]" type="text" value="{$row.item_log|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Country_id')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-country_id" data-rule="required" data-source="country/index" class="form-control selectpage" name="row[country_id]" type="text" value="{$row.country_id|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Country_name')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-country_name" data-rule="required" class="form-control" name="row[country_name]" type="text" value="{$row.country_name|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Province_id')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-province_id" data-rule="required" data-source="province/index" class="form-control selectpage" name="row[province_id]" type="text" value="{$row.province_id|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Province_name')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-province_name" data-rule="required" class="form-control" name="row[province_name]" type="text" value="{$row.province_name|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('City_id')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-city_id" data-rule="required" data-source="city/index" class="form-control selectpage" name="row[city_id]" type="text" value="{$row.city_id|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('City_name')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-city_name" data-rule="required" class="form-control" name="row[city_name]" type="text" value="{$row.city_name|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Detail_address')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-detail_address" data-rule="required" class="form-control" name="row[detail_address]" type="text" value="{$row.detail_address|htmlentities}"> | |||
</div> | |||
</div> | |||
<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 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('cf_item/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('cf_item/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('cf_item/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a> | |||
<a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('cf_item/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('cf_item/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('cf_item/edit')}" | |||
data-operate-del="{:$auth->check('cf_item/del')}" | |||
width="100%"> | |||
</table> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> |
@@ -0,0 +1,52 @@ | |||
<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">{:__('Hotel_id')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-hotel_id" data-rule="required" data-source="hotel/index" class="form-control selectpage" name="row[hotel_id]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Room_name')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-room_name" data-rule="required" class="form-control" name="row[room_name]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Room_memo')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-room_memo" data-rule="required" class="form-control" name="row[room_memo]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Room_log')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-room_log" data-rule="required" class="form-control" name="row[room_log]" type="text" value=""> | |||
</div> | |||
</div> | |||
<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 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,52 @@ | |||
<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">{:__('Hotel_id')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-hotel_id" data-rule="required" data-source="hotel/index" class="form-control selectpage" name="row[hotel_id]" type="text" value="{$row.hotel_id|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Room_name')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-room_name" data-rule="required" class="form-control" name="row[room_name]" type="text" value="{$row.room_name|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Room_memo')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-room_memo" data-rule="required" class="form-control" name="row[room_memo]" type="text" value="{$row.room_memo|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Room_log')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-room_log" data-rule="required" class="form-control" name="row[room_log]" type="text" value="{$row.room_log|htmlentities}"> | |||
</div> | |||
</div> | |||
<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 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('cf_room_info/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('cf_room_info/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('cf_room_info/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a> | |||
<a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('cf_room_info/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('cf_room_info/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('cf_room_info/edit')}" | |||
data-operate-del="{:$auth->check('cf_room_info/del')}" | |||
width="100%"> | |||
</table> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> |
@@ -0,0 +1,94 @@ | |||
<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">{:__('Hotel_id')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-hotel_id" data-rule="required" data-source="hotel/index" class="form-control selectpage" name="row[hotel_id]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Room_id')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-room_id" data-rule="required" data-source="room/index" class="form-control selectpage" name="row[room_id]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Plan_name')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-plan_name" data-rule="required" class="form-control" name="row[plan_name]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Breakfast_num')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-breakfast_num" data-rule="required" class="form-control" name="row[breakfast_num]" type="number" value="0"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Book_end_day')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-book_end_day" data-rule="required" class="form-control" name="row[book_end_day]" type="number" value="0"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Book_end_hour')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-book_end_hour" data-rule="required" class="form-control" name="row[book_end_hour]" type="number"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Continuity_type')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-continuity_type" data-rule="required" class="form-control" name="row[continuity_type]" type="number" value="0"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Coutinuity_day')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-coutinuity_day" data-rule="required" class="form-control" name="row[coutinuity_day]" type="number"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Plan_memo')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-plan_memo" data-rule="required" class="form-control" name="row[plan_memo]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Plan_log')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-plan_log" data-rule="required" class="form-control" name="row[plan_log]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Charge_person')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-charge_person" data-rule="required" class="form-control" name="row[charge_person]" type="text" value=""> | |||
</div> | |||
</div> | |||
<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 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,94 @@ | |||
<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">{:__('Hotel_id')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-hotel_id" data-rule="required" data-source="hotel/index" class="form-control selectpage" name="row[hotel_id]" type="text" value="{$row.hotel_id|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Room_id')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-room_id" data-rule="required" data-source="room/index" class="form-control selectpage" name="row[room_id]" type="text" value="{$row.room_id|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Plan_name')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-plan_name" data-rule="required" class="form-control" name="row[plan_name]" type="text" value="{$row.plan_name|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Breakfast_num')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-breakfast_num" data-rule="required" class="form-control" name="row[breakfast_num]" type="number" value="{$row.breakfast_num|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Book_end_day')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-book_end_day" data-rule="required" class="form-control" name="row[book_end_day]" type="number" value="{$row.book_end_day|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Book_end_hour')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-book_end_hour" data-rule="required" class="form-control" name="row[book_end_hour]" type="number" value="{$row.book_end_hour|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Continuity_type')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-continuity_type" data-rule="required" class="form-control" name="row[continuity_type]" type="number" value="{$row.continuity_type|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Coutinuity_day')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-coutinuity_day" data-rule="required" class="form-control" name="row[coutinuity_day]" type="number" value="{$row.coutinuity_day|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Plan_memo')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-plan_memo" data-rule="required" class="form-control" name="row[plan_memo]" type="text" value="{$row.plan_memo|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Plan_log')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-plan_log" data-rule="required" class="form-control" name="row[plan_log]" type="text" value="{$row.plan_log|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Charge_person')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-charge_person" data-rule="required" class="form-control" name="row[charge_person]" type="text" value="{$row.charge_person|htmlentities}"> | |||
</div> | |||
</div> | |||
<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 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('cf_room_plan/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('cf_room_plan/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('cf_room_plan/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a> | |||
<a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('cf_room_plan/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('cf_room_plan/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('cf_room_plan/edit')}" | |||
data-operate-del="{:$auth->check('cf_room_plan/del')}" | |||
width="100%"> | |||
</table> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> |
@@ -0,0 +1,40 @@ | |||
<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">{:__('Supplier_name')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-supplier_name" data-rule="required" class="form-control" name="row[supplier_name]" 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">{:__('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 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,40 @@ | |||
<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">{:__('Supplier_name')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-supplier_name" data-rule="required" class="form-control" name="row[supplier_name]" type="text" value="{$row.supplier_name|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">{:__('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 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('cf_suplier_info/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('cf_suplier_info/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('cf_suplier_info/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a> | |||
<a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('cf_suplier_info/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('cf_suplier_info/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('cf_suplier_info/edit')}" | |||
data-operate-del="{:$auth->check('cf_suplier_info/del')}" | |||
width="100%"> | |||
</table> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> |
@@ -0,0 +1,166 @@ | |||
<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">{:__('Order_id')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-order_id" data-rule="required" data-source="order/index" class="form-control selectpage" name="row[order_id]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Hotel_id')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-hotel_id" data-rule="required" data-source="hotel/index" class="form-control selectpage" name="row[hotel_id]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Hotel_name')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-hotel_name" data-rule="required" class="form-control" name="row[hotel_name]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Hotel_phone')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-hotel_phone" data-rule="required" class="form-control" name="row[hotel_phone]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Country_name')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-country_name" data-rule="required" class="form-control" name="row[country_name]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Province_name')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-province_name" data-rule="required" class="form-control" name="row[province_name]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('City_name')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-city_name" data-rule="required" class="form-control" name="row[city_name]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Detail_address')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-detail_address" data-rule="required" class="form-control" name="row[detail_address]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Room_id')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-room_id" data-rule="required" data-source="room/index" class="form-control selectpage" name="row[room_id]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Room_name')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-room_name" data-rule="required" class="form-control" name="row[room_name]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Room_memo')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-room_memo" data-rule="required" class="form-control" name="row[room_memo]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Plan_id')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-plan_id" data-rule="required" data-source="plan/index" class="form-control selectpage" name="row[plan_id]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Plan_name')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-plan_name" data-rule="required" class="form-control" name="row[plan_name]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Plan_memo')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-plan_memo" data-rule="required" class="form-control" name="row[plan_memo]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Check_in_date')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-check_in_date" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[check_in_date]" type="text" value="{:date('Y-m-d')}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Check_out_date')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-check_out_date" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[check_out_date]" type="text" value="{:date('Y-m-d')}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Prod_num')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-prod_num" data-rule="required" class="form-control" name="row[prod_num]" type="number" value="0"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Total_price')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-total_price" data-rule="required" class="form-control" step="0.01" name="row[total_price]" type="number"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Total_cose')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-total_cose" data-rule="required" class="form-control" step="0.01" name="row[total_cose]" type="number" value="0.00"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Profit')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-profit" data-rule="required" class="form-control" step="0.01" name="row[profit]" type="number" value="0.00"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Log')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-log" data-rule="required" class="form-control" name="row[log]" type="text" value=""> | |||
</div> | |||
</div> | |||
<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">{:__('Confirm_status')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-confirm_status" data-rule="required" class="form-control" name="row[confirm_status]" type="number" value="1"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Confirm_no')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-confirm_no" data-rule="required" class="form-control" name="row[confirm_no]" type="text" value=""> | |||
</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,166 @@ | |||
<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">{:__('Order_id')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-order_id" data-rule="required" data-source="order/index" class="form-control selectpage" name="row[order_id]" type="text" value="{$row.order_id|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Hotel_id')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-hotel_id" data-rule="required" data-source="hotel/index" class="form-control selectpage" name="row[hotel_id]" type="text" value="{$row.hotel_id|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Hotel_name')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-hotel_name" data-rule="required" class="form-control" name="row[hotel_name]" type="text" value="{$row.hotel_name|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Hotel_phone')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-hotel_phone" data-rule="required" class="form-control" name="row[hotel_phone]" type="text" value="{$row.hotel_phone|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Country_name')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-country_name" data-rule="required" class="form-control" name="row[country_name]" type="text" value="{$row.country_name|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Province_name')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-province_name" data-rule="required" class="form-control" name="row[province_name]" type="text" value="{$row.province_name|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('City_name')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-city_name" data-rule="required" class="form-control" name="row[city_name]" type="text" value="{$row.city_name|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Detail_address')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-detail_address" data-rule="required" class="form-control" name="row[detail_address]" type="text" value="{$row.detail_address|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Room_id')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-room_id" data-rule="required" data-source="room/index" class="form-control selectpage" name="row[room_id]" type="text" value="{$row.room_id|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Room_name')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-room_name" data-rule="required" class="form-control" name="row[room_name]" type="text" value="{$row.room_name|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Room_memo')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-room_memo" data-rule="required" class="form-control" name="row[room_memo]" type="text" value="{$row.room_memo|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Plan_id')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-plan_id" data-rule="required" data-source="plan/index" class="form-control selectpage" name="row[plan_id]" type="text" value="{$row.plan_id|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Plan_name')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-plan_name" data-rule="required" class="form-control" name="row[plan_name]" type="text" value="{$row.plan_name|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Plan_memo')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-plan_memo" data-rule="required" class="form-control" name="row[plan_memo]" type="text" value="{$row.plan_memo|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Check_in_date')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-check_in_date" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[check_in_date]" type="text" value="{$row.check_in_date}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Check_out_date')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-check_out_date" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[check_out_date]" type="text" value="{$row.check_out_date}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Prod_num')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-prod_num" data-rule="required" class="form-control" name="row[prod_num]" type="number" value="{$row.prod_num|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Total_price')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-total_price" data-rule="required" class="form-control" step="0.01" name="row[total_price]" type="number" value="{$row.total_price|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Total_cose')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-total_cose" data-rule="required" class="form-control" step="0.01" name="row[total_cose]" type="number" value="{$row.total_cose|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Profit')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-profit" data-rule="required" class="form-control" step="0.01" name="row[profit]" type="number" value="{$row.profit|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Log')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-log" data-rule="required" class="form-control" name="row[log]" type="text" value="{$row.log|htmlentities}"> | |||
</div> | |||
</div> | |||
<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">{:__('Confirm_status')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-confirm_status" data-rule="required" class="form-control" name="row[confirm_status]" type="number" value="{$row.confirm_status|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Confirm_no')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-confirm_no" data-rule="required" class="form-control" name="row[confirm_no]" type="text" value="{$row.confirm_no|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('order_hotel/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('order_hotel/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('order_hotel/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a> | |||
<a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('order_hotel/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('order_hotel/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('order_hotel/edit')}" | |||
data-operate-del="{:$auth->check('order_hotel/del')}" | |||
width="100%"> | |||
</table> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> |
@@ -0,0 +1,136 @@ | |||
<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">{:__('Order_id')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-order_id" data-rule="required" data-source="order/index" class="form-control selectpage" name="row[order_id]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Item_id')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-item_id" data-rule="required" data-source="item/index" class="form-control selectpage" name="row[item_id]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Item_type')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-item_type" data-rule="required" class="form-control" name="row[item_type]" type="number" value="0"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Item_name')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-item_name" data-rule="required" class="form-control" name="row[item_name]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Item_memo')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-item_memo" data-rule="required" class="form-control" name="row[item_memo]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Item_unit')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-item_unit" data-rule="required" class="form-control" name="row[item_unit]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Use_date')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-use_date" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[use_date]" type="text" value="{:date('Y-m-d')}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Prod_num')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-prod_num" data-rule="required" class="form-control" name="row[prod_num]" type="number" value="0"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Total_price')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-total_price" data-rule="required" class="form-control" name="row[total_price]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Total_cose')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-total_cose" data-rule="required" class="form-control" step="0.01" name="row[total_cose]" type="number" value="0.00"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Profit')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-profit" data-rule="required" class="form-control" step="0.01" name="row[profit]" type="number" value="0.00"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Log')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-log" data-rule="required" class="form-control" name="row[log]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Country_name')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-country_name" data-rule="required" class="form-control" name="row[country_name]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Province_name')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-province_name" data-rule="required" class="form-control" name="row[province_name]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('City_name')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-city_name" data-rule="required" class="form-control" name="row[city_name]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Detail_address')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-detail_address" data-rule="required" class="form-control" name="row[detail_address]" type="text" value=""> | |||
</div> | |||
</div> | |||
<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">{:__('Confirm_status')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-confirm_status" data-rule="required" class="form-control" name="row[confirm_status]" type="number" value="1"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Confirm_no')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-confirm_no" data-rule="required" class="form-control" name="row[confirm_no]" type="text" value=""> | |||
</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,136 @@ | |||
<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">{:__('Order_id')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-order_id" data-rule="required" data-source="order/index" class="form-control selectpage" name="row[order_id]" type="text" value="{$row.order_id|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Item_id')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-item_id" data-rule="required" data-source="item/index" class="form-control selectpage" name="row[item_id]" type="text" value="{$row.item_id|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Item_type')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-item_type" data-rule="required" class="form-control" name="row[item_type]" type="number" value="{$row.item_type|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Item_name')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-item_name" data-rule="required" class="form-control" name="row[item_name]" type="text" value="{$row.item_name|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Item_memo')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-item_memo" data-rule="required" class="form-control" name="row[item_memo]" type="text" value="{$row.item_memo|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Item_unit')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-item_unit" data-rule="required" class="form-control" name="row[item_unit]" type="text" value="{$row.item_unit|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Use_date')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-use_date" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[use_date]" type="text" value="{$row.use_date}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Prod_num')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-prod_num" data-rule="required" class="form-control" name="row[prod_num]" type="number" value="{$row.prod_num|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Total_price')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-total_price" data-rule="required" class="form-control" name="row[total_price]" type="text" value="{$row.total_price|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Total_cose')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-total_cose" data-rule="required" class="form-control" step="0.01" name="row[total_cose]" type="number" value="{$row.total_cose|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Profit')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-profit" data-rule="required" class="form-control" step="0.01" name="row[profit]" type="number" value="{$row.profit|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Log')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-log" data-rule="required" class="form-control" name="row[log]" type="text" value="{$row.log|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Country_name')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-country_name" data-rule="required" class="form-control" name="row[country_name]" type="text" value="{$row.country_name|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Province_name')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-province_name" data-rule="required" class="form-control" name="row[province_name]" type="text" value="{$row.province_name|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('City_name')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-city_name" data-rule="required" class="form-control" name="row[city_name]" type="text" value="{$row.city_name|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Detail_address')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-detail_address" data-rule="required" class="form-control" name="row[detail_address]" type="text" value="{$row.detail_address|htmlentities}"> | |||
</div> | |||
</div> | |||
<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">{:__('Confirm_status')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-confirm_status" data-rule="required" class="form-control" name="row[confirm_status]" type="number" value="{$row.confirm_status|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Confirm_no')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-confirm_no" data-rule="required" class="form-control" name="row[confirm_no]" type="text" value="{$row.confirm_no|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('order_item/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('order_item/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('order_item/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a> | |||
<a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('order_item/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('order_item/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('order_item/edit')}" | |||
data-operate-del="{:$auth->check('order_item/del')}" | |||
width="100%"> | |||
</table> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> |
@@ -0,0 +1,118 @@ | |||
<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">{:__('Create_user_id')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-create_user_id" data-rule="required" data-source="create/user/index" class="form-control selectpage" name="row[create_user_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">{:__('Commissioner')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-commissioner" data-rule="required" class="form-control" name="row[commissioner]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Channel_id')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-channel_id" data-rule="required" data-source="channel/index" class="form-control selectpage" name="row[channel_id]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Channel_order_no')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-channel_order_no" data-rule="required" class="form-control" name="row[channel_order_no]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('User_name')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-user_name" data-rule="required" class="form-control" name="row[user_name]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('User_phone')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-user_phone" data-rule="required" class="form-control" name="row[user_phone]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Total_amount')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-total_amount" data-rule="required" class="form-control" step="0.01" name="row[total_amount]" type="number" value="0.00"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Cost_amount')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-cost_amount" data-rule="required" class="form-control" step="0.01" name="row[cost_amount]" type="number" value="0.00"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Profit_amount')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-profit_amount" data-rule="required" class="form-control" step="0.01" name="row[profit_amount]" type="number" value="0.00"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Order_status')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-order_status" data-rule="required" class="form-control" name="row[order_status]" type="number" value="0"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Order_memo')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-order_memo" data-rule="required" class="form-control" name="row[order_memo]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Log')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-log" data-rule="required" class="form-control" name="row[log]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Cancel_time')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-cancel_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[cancel_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">{:__('Success_time')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-success_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[success_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">{:__('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 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,118 @@ | |||
<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">{:__('Create_user_id')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-create_user_id" data-rule="required" data-source="create/user/index" class="form-control selectpage" name="row[create_user_id]" type="text" value="{$row.create_user_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">{:__('Commissioner')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-commissioner" data-rule="required" class="form-control" name="row[commissioner]" type="text" value="{$row.commissioner|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Channel_id')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-channel_id" data-rule="required" data-source="channel/index" class="form-control selectpage" name="row[channel_id]" type="text" value="{$row.channel_id|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Channel_order_no')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-channel_order_no" data-rule="required" class="form-control" name="row[channel_order_no]" type="text" value="{$row.channel_order_no|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('User_name')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-user_name" data-rule="required" class="form-control" name="row[user_name]" type="text" value="{$row.user_name|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('User_phone')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-user_phone" data-rule="required" class="form-control" name="row[user_phone]" type="text" value="{$row.user_phone|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Total_amount')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-total_amount" data-rule="required" class="form-control" step="0.01" name="row[total_amount]" type="number" value="{$row.total_amount|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Cost_amount')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-cost_amount" data-rule="required" class="form-control" step="0.01" name="row[cost_amount]" type="number" value="{$row.cost_amount|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Profit_amount')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-profit_amount" data-rule="required" class="form-control" step="0.01" name="row[profit_amount]" type="number" value="{$row.profit_amount|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Order_status')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-order_status" data-rule="required" class="form-control" name="row[order_status]" type="number" value="{$row.order_status|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Order_memo')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-order_memo" data-rule="required" class="form-control" name="row[order_memo]" type="text" value="{$row.order_memo|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Log')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-log" data-rule="required" class="form-control" name="row[log]" type="text" value="{$row.log|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Cancel_time')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-cancel_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[cancel_time]" type="text" value="{:$row.cancel_time?datetime($row.cancel_time):''}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Success_time')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-success_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[success_time]" type="text" value="{:$row.success_time?datetime($row.success_time):''}"> | |||
</div> | |||
</div> | |||
<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 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('order_main/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('order_main/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('order_main/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a> | |||
<a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('order_main/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('order_main/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('order_main/edit')}" | |||
data-operate-del="{:$auth->check('order_main/del')}" | |||
width="100%"> | |||
</table> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> |
@@ -0,0 +1,52 @@ | |||
<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">{:__('Name')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value=""> | |||
</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="0"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Order_ids')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-order_ids" data-rule="required" data-source="order/index" data-multiple="true" class="form-control selectpage" name="row[order_ids]" type="text" value=""> | |||
</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"> | |||
</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,52 @@ | |||
<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">{:__('Name')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}"> | |||
</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">{:__('Order_ids')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-order_ids" data-rule="required" data-source="order/index" data-multiple="true" class="form-control selectpage" name="row[order_ids]" type="text" value="{$row.order_ids|htmlentities}"> | |||
</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('payment_order/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('payment_order/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('payment_order/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a> | |||
<a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('payment_order/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('payment_order/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('payment_order/edit')}" | |||
data-operate-del="{:$auth->check('payment_order/del')}" | |||
width="100%"> | |||
</table> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> |
@@ -0,0 +1,142 @@ | |||
<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">{:__('Order_id')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-order_id" data-rule="required" data-source="order/index" class="form-control selectpage" name="row[order_id]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Prod_type')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-prod_type" data-rule="required" class="form-control" name="row[prod_type]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Order_detail_id')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-order_detail_id" data-rule="required" data-source="order/detail/index" class="form-control selectpage" name="row[order_detail_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">{:__('Pro_name')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-pro_name" data-rule="required" class="form-control" name="row[pro_name]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Item_name')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-item_name" data-rule="required" class="form-control" name="row[item_name]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Item_unit')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-item_unit" data-rule="required" class="form-control" name="row[item_unit]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Check_in_date')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-check_in_date" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[check_in_date]" type="text" value="{:date('Y-m-d')}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Check_out_date')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-check_out_date" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[check_out_date]" type="text" value="{:date('Y-m-d')}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Count')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-count" data-rule="required" class="form-control" name="row[count]" type="number" value="1"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Total_price')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-total_price" data-rule="required" class="form-control" step="0.01" name="row[total_price]" type="number" value="0.00"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Supplier_name')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-supplier_name" data-rule="required" class="form-control" name="row[supplier_name]" type="text"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Total_cost')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-total_cost" data-rule="required" class="form-control" step="0.01" name="row[total_cost]" type="number" value="0.00"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Profit')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-profit" data-rule="required" class="form-control" step="0.01" name="row[profit]" type="number" value="0.00"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Receipt_status')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-receipt_status" data-rule="required" class="form-control" name="row[receipt_status]" type="number" value="0"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Receipt_id')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-receipt_id" data-rule="required" data-source="receipt/index" class="form-control selectpage" name="row[receipt_id]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Pay_status')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-pay_status" data-rule="required" class="form-control" name="row[pay_status]" type="number" value="0"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Payment_id')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-payment_id" data-rule="required" data-source="payment/index" class="form-control selectpage" name="row[payment_id]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Purchase_user_id')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-purchase_user_id" data-rule="required" data-source="purchase/user/index" class="form-control selectpage" name="row[purchase_user_id]" type="text" value=""> | |||
</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,142 @@ | |||
<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">{:__('Order_id')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-order_id" data-rule="required" data-source="order/index" class="form-control selectpage" name="row[order_id]" type="text" value="{$row.order_id|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Prod_type')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-prod_type" data-rule="required" class="form-control" name="row[prod_type]" type="text" value="{$row.prod_type|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Order_detail_id')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-order_detail_id" data-rule="required" data-source="order/detail/index" class="form-control selectpage" name="row[order_detail_id]" type="text" value="{$row.order_detail_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">{:__('Pro_name')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-pro_name" data-rule="required" class="form-control" name="row[pro_name]" type="text" value="{$row.pro_name|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Item_name')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-item_name" data-rule="required" class="form-control" name="row[item_name]" type="text" value="{$row.item_name|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Item_unit')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-item_unit" data-rule="required" class="form-control" name="row[item_unit]" type="text" value="{$row.item_unit|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Check_in_date')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-check_in_date" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[check_in_date]" type="text" value="{$row.check_in_date}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Check_out_date')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-check_out_date" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[check_out_date]" type="text" value="{$row.check_out_date}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Count')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-count" data-rule="required" class="form-control" name="row[count]" type="number" value="{$row.count|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Total_price')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-total_price" data-rule="required" class="form-control" step="0.01" name="row[total_price]" type="number" value="{$row.total_price|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Supplier_name')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-supplier_name" data-rule="required" class="form-control" name="row[supplier_name]" type="text" value="{$row.supplier_name|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Total_cost')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-total_cost" data-rule="required" class="form-control" step="0.01" name="row[total_cost]" type="number" value="{$row.total_cost|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Profit')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-profit" data-rule="required" class="form-control" step="0.01" name="row[profit]" type="number" value="{$row.profit|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Receipt_status')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-receipt_status" data-rule="required" class="form-control" name="row[receipt_status]" type="number" value="{$row.receipt_status|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Receipt_id')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-receipt_id" data-rule="required" data-source="receipt/index" class="form-control selectpage" name="row[receipt_id]" type="text" value="{$row.receipt_id|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Pay_status')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-pay_status" data-rule="required" class="form-control" name="row[pay_status]" type="number" value="{$row.pay_status|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Payment_id')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-payment_id" data-rule="required" data-source="payment/index" class="form-control selectpage" name="row[payment_id]" type="text" value="{$row.payment_id|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Purchase_user_id')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-purchase_user_id" data-rule="required" data-source="purchase/user/index" class="form-control selectpage" name="row[purchase_user_id]" type="text" value="{$row.purchase_user_id|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('purchase/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('purchase/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('purchase/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a> | |||
<a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('purchase/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('purchase/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('purchase/edit')}" | |||
data-operate-del="{:$auth->check('purchase/del')}" | |||
width="100%"> | |||
</table> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> |
@@ -0,0 +1,76 @@ | |||
<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">{:__('Order_id')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-order_id" data-rule="required" data-source="order/index" class="form-control selectpage" name="row[order_id]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Prod_type')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-prod_type" data-rule="required" class="form-control" name="row[prod_type]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Order_detail_id')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-order_detail_id" data-rule="required" data-source="order/detail/index" class="form-control selectpage" name="row[order_detail_id]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Purchase_id')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-purchase_id" data-rule="required" data-source="purchase/index" class="form-control selectpage" name="row[purchase_id]" type="text" value=""> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Run_date')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-run_date" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[run_date]" type="text" value="{:date('Y-m-d')}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Count')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-count" data-rule="required" class="form-control" name="row[count]" type="number" value="1"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-price" data-rule="required" class="form-control" step="0.01" name="row[price]" type="number" value="0.00"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Cost')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-cost" data-rule="required" class="form-control" step="0.01" name="row[cost]" type="number" value="0.00"> | |||
</div> | |||
</div> | |||
<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 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,76 @@ | |||
<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">{:__('Order_id')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-order_id" data-rule="required" data-source="order/index" class="form-control selectpage" name="row[order_id]" type="text" value="{$row.order_id|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Prod_type')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-prod_type" data-rule="required" class="form-control" name="row[prod_type]" type="text" value="{$row.prod_type|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Order_detail_id')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-order_detail_id" data-rule="required" data-source="order/detail/index" class="form-control selectpage" name="row[order_detail_id]" type="text" value="{$row.order_detail_id|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Purchase_id')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-purchase_id" data-rule="required" data-source="purchase/index" class="form-control selectpage" name="row[purchase_id]" type="text" value="{$row.purchase_id|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Run_date')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-run_date" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[run_date]" type="text" value="{$row.run_date}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Count')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-count" data-rule="required" class="form-control" name="row[count]" type="number" value="{$row.count|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-price" data-rule="required" class="form-control" step="0.01" name="row[price]" type="number" value="{$row.price|htmlentities}"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Cost')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-cost" data-rule="required" class="form-control" step="0.01" name="row[cost]" type="number" value="{$row.cost|htmlentities}"> | |||
</div> | |||
</div> | |||
<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 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('purchase_price/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('purchase_price/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('purchase_price/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a> | |||
<a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('purchase_price/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('purchase_price/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('purchase_price/edit')}" | |||
data-operate-del="{:$auth->check('purchase_price/del')}" | |||
width="100%"> | |||
</table> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> |
@@ -0,0 +1,52 @@ | |||
<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">{:__('Name')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value=""> | |||
</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="0"> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label class="control-label col-xs-12 col-sm-2">{:__('Order_ids')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-order_ids" data-rule="required" data-source="order/index" data-multiple="true" class="form-control selectpage" name="row[order_ids]" type="text" value=""> | |||
</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"> | |||
</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,52 @@ | |||
<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">{:__('Name')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}"> | |||
</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">{:__('Order_ids')}:</label> | |||
<div class="col-xs-12 col-sm-8"> | |||
<input id="c-order_ids" data-rule="required" data-source="order/index" data-multiple="true" class="form-control selectpage" name="row[order_ids]" type="text" value="{$row.order_ids|htmlentities}"> | |||
</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('receipt_order/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('receipt_order/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('receipt_order/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a> | |||
<a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('receipt_order/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('receipt_order/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('receipt_order/edit')}" | |||
data-operate-del="{:$auth->check('receipt_order/del')}" | |||
width="100%"> | |||
</table> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> |
@@ -0,0 +1,62 @@ | |||
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) { | |||
var Controller = { | |||
index: function () { | |||
// 初始化表格参数配置 | |||
Table.api.init({ | |||
extend: { | |||
index_url: 'cf_hotel_info/index' + location.search, | |||
add_url: 'cf_hotel_info/add', | |||
edit_url: 'cf_hotel_info/edit', | |||
del_url: 'cf_hotel_info/del', | |||
multi_url: 'cf_hotel_info/multi', | |||
import_url: 'cf_hotel_info/import', | |||
table: 'cf_hotel_info', | |||
} | |||
}); | |||
var table = $("#table"); | |||
// 初始化表格 | |||
table.bootstrapTable({ | |||
url: $.fn.bootstrapTable.defaults.extend.index_url, | |||
pk: 'id', | |||
sortName: 'id', | |||
columns: [ | |||
[ | |||
{checkbox: true}, | |||
{field: 'id', title: __('Id')}, | |||
{field: 'hotel_name', title: __('Hotel_name'), operate: 'LIKE'}, | |||
{field: 'hotel_phone', title: __('Hotel_phone'), operate: 'LIKE'}, | |||
{field: 'country_id', title: __('Country_id')}, | |||
{field: 'country_name', title: __('Country_name'), operate: 'LIKE'}, | |||
{field: 'province_id', title: __('Province_id')}, | |||
{field: 'province_name', title: __('Province_name'), operate: 'LIKE'}, | |||
{field: 'city_id', title: __('City_id')}, | |||
{field: 'city_name', title: __('City_name'), operate: 'LIKE'}, | |||
{field: 'detail_address', title: __('Detail_address'), operate: 'LIKE'}, | |||
{field: 'del_flag', title: __('Del_flag'), formatter: Table.api.formatter.flag}, | |||
{field: 'create_time', title: __('Create_time'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime}, | |||
{field: 'update_time', title: __('Update_time'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime}, | |||
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate} | |||
] | |||
] | |||
}); | |||
// 为表格绑定事件 | |||
Table.api.bindevent(table); | |||
}, | |||
add: function () { | |||
Controller.api.bindevent(); | |||
}, | |||
edit: function () { | |||
Controller.api.bindevent(); | |||
}, | |||
api: { | |||
bindevent: function () { | |||
Form.api.bindevent($("form[role=form]")); | |||
} | |||
} | |||
}; | |||
return Controller; | |||
}); |
@@ -0,0 +1,65 @@ | |||
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) { | |||
var Controller = { | |||
index: function () { | |||
// 初始化表格参数配置 | |||
Table.api.init({ | |||
extend: { | |||
index_url: 'cf_item/index' + location.search, | |||
add_url: 'cf_item/add', | |||
edit_url: 'cf_item/edit', | |||
del_url: 'cf_item/del', | |||
multi_url: 'cf_item/multi', | |||
import_url: 'cf_item/import', | |||
table: 'cf_item', | |||
} | |||
}); | |||
var table = $("#table"); | |||
// 初始化表格 | |||
table.bootstrapTable({ | |||
url: $.fn.bootstrapTable.defaults.extend.index_url, | |||
pk: 'id', | |||
sortName: 'id', | |||
columns: [ | |||
[ | |||
{checkbox: true}, | |||
{field: 'id', title: __('Id')}, | |||
{field: 'item_type', title: __('Item_type')}, | |||
{field: 'item_name', title: __('Item_name'), operate: 'LIKE'}, | |||
{field: 'item_unit', title: __('Item_unit'), operate: 'LIKE'}, | |||
{field: 'item_memo', title: __('Item_memo'), operate: 'LIKE'}, | |||
{field: 'item_log', title: __('Item_log'), operate: 'LIKE'}, | |||
{field: 'country_id', title: __('Country_id')}, | |||
{field: 'country_name', title: __('Country_name'), operate: 'LIKE'}, | |||
{field: 'province_id', title: __('Province_id')}, | |||
{field: 'province_name', title: __('Province_name'), operate: 'LIKE'}, | |||
{field: 'city_id', title: __('City_id')}, | |||
{field: 'city_name', title: __('City_name'), operate: 'LIKE'}, | |||
{field: 'detail_address', title: __('Detail_address'), operate: 'LIKE'}, | |||
{field: 'del_flag', title: __('Del_flag'), formatter: Table.api.formatter.flag}, | |||
{field: 'create_time', title: __('Create_time'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime}, | |||
{field: 'update_time', title: __('Update_time'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime}, | |||
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate} | |||
] | |||
] | |||
}); | |||
// 为表格绑定事件 | |||
Table.api.bindevent(table); | |||
}, | |||
add: function () { | |||
Controller.api.bindevent(); | |||
}, | |||
edit: function () { | |||
Controller.api.bindevent(); | |||
}, | |||
api: { | |||
bindevent: function () { | |||
Form.api.bindevent($("form[role=form]")); | |||
} | |||
} | |||
}; | |||
return Controller; | |||
}); |
@@ -0,0 +1,57 @@ | |||
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) { | |||
var Controller = { | |||
index: function () { | |||
// 初始化表格参数配置 | |||
Table.api.init({ | |||
extend: { | |||
index_url: 'cf_room_info/index' + location.search, | |||
add_url: 'cf_room_info/add', | |||
edit_url: 'cf_room_info/edit', | |||
del_url: 'cf_room_info/del', | |||
multi_url: 'cf_room_info/multi', | |||
import_url: 'cf_room_info/import', | |||
table: 'cf_room_info', | |||
} | |||
}); | |||
var table = $("#table"); | |||
// 初始化表格 | |||
table.bootstrapTable({ | |||
url: $.fn.bootstrapTable.defaults.extend.index_url, | |||
pk: 'id', | |||
sortName: 'id', | |||
columns: [ | |||
[ | |||
{checkbox: true}, | |||
{field: 'id', title: __('Id')}, | |||
{field: 'hotel_id', title: __('Hotel_id')}, | |||
{field: 'room_name', title: __('Room_name'), operate: 'LIKE'}, | |||
{field: 'room_memo', title: __('Room_memo'), operate: 'LIKE'}, | |||
{field: 'room_log', title: __('Room_log'), operate: 'LIKE'}, | |||
{field: 'del_flag', title: __('Del_flag'), formatter: Table.api.formatter.flag}, | |||
{field: 'create_time', title: __('Create_time'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime}, | |||
{field: 'update_time', title: __('Update_time'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime}, | |||
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate} | |||
] | |||
] | |||
}); | |||
// 为表格绑定事件 | |||
Table.api.bindevent(table); | |||
}, | |||
add: function () { | |||
Controller.api.bindevent(); | |||
}, | |||
edit: function () { | |||
Controller.api.bindevent(); | |||
}, | |||
api: { | |||
bindevent: function () { | |||
Form.api.bindevent($("form[role=form]")); | |||
} | |||
} | |||
}; | |||
return Controller; | |||
}); |
@@ -0,0 +1,64 @@ | |||
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) { | |||
var Controller = { | |||
index: function () { | |||
// 初始化表格参数配置 | |||
Table.api.init({ | |||
extend: { | |||
index_url: 'cf_room_plan/index' + location.search, | |||
add_url: 'cf_room_plan/add', | |||
edit_url: 'cf_room_plan/edit', | |||
del_url: 'cf_room_plan/del', | |||
multi_url: 'cf_room_plan/multi', | |||
import_url: 'cf_room_plan/import', | |||
table: 'cf_room_plan', | |||
} | |||
}); | |||
var table = $("#table"); | |||
// 初始化表格 | |||
table.bootstrapTable({ | |||
url: $.fn.bootstrapTable.defaults.extend.index_url, | |||
pk: 'id', | |||
sortName: 'id', | |||
columns: [ | |||
[ | |||
{checkbox: true}, | |||
{field: 'id', title: __('Id')}, | |||
{field: 'hotel_id', title: __('Hotel_id')}, | |||
{field: 'room_id', title: __('Room_id')}, | |||
{field: 'plan_name', title: __('Plan_name'), operate: 'LIKE'}, | |||
{field: 'breakfast_num', title: __('Breakfast_num')}, | |||
{field: 'book_end_day', title: __('Book_end_day')}, | |||
{field: 'book_end_hour', title: __('Book_end_hour')}, | |||
{field: 'continuity_type', title: __('Continuity_type')}, | |||
{field: 'coutinuity_day', title: __('Coutinuity_day')}, | |||
{field: 'plan_memo', title: __('Plan_memo'), operate: 'LIKE'}, | |||
{field: 'plan_log', title: __('Plan_log'), operate: 'LIKE'}, | |||
{field: 'charge_person', title: __('Charge_person'), operate: 'LIKE'}, | |||
{field: 'del_flag', title: __('Del_flag'), formatter: Table.api.formatter.flag}, | |||
{field: 'create_time', title: __('Create_time'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime}, | |||
{field: 'update_time', title: __('Update_time'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime}, | |||
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate} | |||
] | |||
] | |||
}); | |||
// 为表格绑定事件 | |||
Table.api.bindevent(table); | |||
}, | |||
add: function () { | |||
Controller.api.bindevent(); | |||
}, | |||
edit: function () { | |||
Controller.api.bindevent(); | |||
}, | |||
api: { | |||
bindevent: function () { | |||
Form.api.bindevent($("form[role=form]")); | |||
} | |||
} | |||
}; | |||
return Controller; | |||
}); |
@@ -0,0 +1,55 @@ | |||
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) { | |||
var Controller = { | |||
index: function () { | |||
// 初始化表格参数配置 | |||
Table.api.init({ | |||
extend: { | |||
index_url: 'cf_suplier_info/index' + location.search, | |||
add_url: 'cf_suplier_info/add', | |||
edit_url: 'cf_suplier_info/edit', | |||
del_url: 'cf_suplier_info/del', | |||
multi_url: 'cf_suplier_info/multi', | |||
import_url: 'cf_suplier_info/import', | |||
table: 'cf_suplier_info', | |||
} | |||
}); | |||
var table = $("#table"); | |||
// 初始化表格 | |||
table.bootstrapTable({ | |||
url: $.fn.bootstrapTable.defaults.extend.index_url, | |||
pk: 'id', | |||
sortName: 'id', | |||
columns: [ | |||
[ | |||
{checkbox: true}, | |||
{field: 'id', title: __('Id')}, | |||
{field: 'supplier_name', title: __('Supplier_name'), operate: 'LIKE'}, | |||
{field: 'memo', title: __('Memo'), operate: 'LIKE'}, | |||
{field: 'del_flag', title: __('Del_flag'), formatter: Table.api.formatter.flag}, | |||
{field: 'create_time', title: __('Create_time'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime}, | |||
{field: 'update_time', title: __('Update_time'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime}, | |||
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate} | |||
] | |||
] | |||
}); | |||
// 为表格绑定事件 | |||
Table.api.bindevent(table); | |||
}, | |||
add: function () { | |||
Controller.api.bindevent(); | |||
}, | |||
edit: function () { | |||
Controller.api.bindevent(); | |||
}, | |||
api: { | |||
bindevent: function () { | |||
Form.api.bindevent($("form[role=form]")); | |||
} | |||
} | |||
}; | |||
return Controller; | |||
}); |
@@ -0,0 +1,76 @@ | |||
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) { | |||
var Controller = { | |||
index: function () { | |||
// 初始化表格参数配置 | |||
Table.api.init({ | |||
extend: { | |||
index_url: 'order_hotel/index' + location.search, | |||
add_url: 'order_hotel/add', | |||
edit_url: 'order_hotel/edit', | |||
del_url: 'order_hotel/del', | |||
multi_url: 'order_hotel/multi', | |||
import_url: 'order_hotel/import', | |||
table: 'order_hotel', | |||
} | |||
}); | |||
var table = $("#table"); | |||
// 初始化表格 | |||
table.bootstrapTable({ | |||
url: $.fn.bootstrapTable.defaults.extend.index_url, | |||
pk: 'id', | |||
sortName: 'id', | |||
columns: [ | |||
[ | |||
{checkbox: true}, | |||
{field: 'id', title: __('Id')}, | |||
{field: 'order_id', title: __('Order_id')}, | |||
{field: 'hotel_id', title: __('Hotel_id')}, | |||
{field: 'hotel_name', title: __('Hotel_name'), operate: 'LIKE'}, | |||
{field: 'hotel_phone', title: __('Hotel_phone'), operate: 'LIKE'}, | |||
{field: 'country_name', title: __('Country_name'), operate: 'LIKE'}, | |||
{field: 'province_name', title: __('Province_name'), operate: 'LIKE'}, | |||
{field: 'city_name', title: __('City_name'), operate: 'LIKE'}, | |||
{field: 'detail_address', title: __('Detail_address'), operate: 'LIKE'}, | |||
{field: 'room_id', title: __('Room_id')}, | |||
{field: 'room_name', title: __('Room_name'), operate: 'LIKE'}, | |||
{field: 'room_memo', title: __('Room_memo'), operate: 'LIKE'}, | |||
{field: 'plan_id', title: __('Plan_id')}, | |||
{field: 'plan_name', title: __('Plan_name'), operate: 'LIKE'}, | |||
{field: 'plan_memo', title: __('Plan_memo'), operate: 'LIKE'}, | |||
{field: 'check_in_date', title: __('Check_in_date'), operate:'RANGE', addclass:'datetimerange', autocomplete:false}, | |||
{field: 'check_out_date', title: __('Check_out_date'), operate:'RANGE', addclass:'datetimerange', autocomplete:false}, | |||
{field: 'prod_num', title: __('Prod_num')}, | |||
{field: 'total_price', title: __('Total_price'), operate:'BETWEEN'}, | |||
{field: 'total_cose', title: __('Total_cose'), operate:'BETWEEN'}, | |||
{field: 'profit', title: __('Profit'), operate:'BETWEEN'}, | |||
{field: 'log', title: __('Log'), operate: 'LIKE'}, | |||
{field: 'del_flag', title: __('Del_flag'), formatter: Table.api.formatter.flag}, | |||
{field: 'create_time', title: __('Create_time'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime}, | |||
{field: 'update_time', title: __('Update_time'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime}, | |||
{field: 'confirm_status', title: __('Confirm_status')}, | |||
{field: 'confirm_no', title: __('Confirm_no'), operate: 'LIKE'}, | |||
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate} | |||
] | |||
] | |||
}); | |||
// 为表格绑定事件 | |||
Table.api.bindevent(table); | |||
}, | |||
add: function () { | |||
Controller.api.bindevent(); | |||
}, | |||
edit: function () { | |||
Controller.api.bindevent(); | |||
}, | |||
api: { | |||
bindevent: function () { | |||
Form.api.bindevent($("form[role=form]")); | |||
} | |||
} | |||
}; | |||
return Controller; | |||
}); |
@@ -0,0 +1,71 @@ | |||
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) { | |||
var Controller = { | |||
index: function () { | |||
// 初始化表格参数配置 | |||
Table.api.init({ | |||
extend: { | |||
index_url: 'order_item/index' + location.search, | |||
add_url: 'order_item/add', | |||
edit_url: 'order_item/edit', | |||
del_url: 'order_item/del', | |||
multi_url: 'order_item/multi', | |||
import_url: 'order_item/import', | |||
table: 'order_item', | |||
} | |||
}); | |||
var table = $("#table"); | |||
// 初始化表格 | |||
table.bootstrapTable({ | |||
url: $.fn.bootstrapTable.defaults.extend.index_url, | |||
pk: 'id', | |||
sortName: 'id', | |||
columns: [ | |||
[ | |||
{checkbox: true}, | |||
{field: 'id', title: __('Id')}, | |||
{field: 'order_id', title: __('Order_id')}, | |||
{field: 'item_id', title: __('Item_id')}, | |||
{field: 'item_type', title: __('Item_type')}, | |||
{field: 'item_name', title: __('Item_name'), operate: 'LIKE'}, | |||
{field: 'item_memo', title: __('Item_memo'), operate: 'LIKE'}, | |||
{field: 'item_unit', title: __('Item_unit'), operate: 'LIKE'}, | |||
{field: 'use_date', title: __('Use_date'), operate:'RANGE', addclass:'datetimerange', autocomplete:false}, | |||
{field: 'prod_num', title: __('Prod_num')}, | |||
{field: 'total_price', title: __('Total_price'), operate: 'LIKE'}, | |||
{field: 'total_cose', title: __('Total_cose'), operate:'BETWEEN'}, | |||
{field: 'profit', title: __('Profit'), operate:'BETWEEN'}, | |||
{field: 'log', title: __('Log'), operate: 'LIKE'}, | |||
{field: 'country_name', title: __('Country_name'), operate: 'LIKE'}, | |||
{field: 'province_name', title: __('Province_name'), operate: 'LIKE'}, | |||
{field: 'city_name', title: __('City_name'), operate: 'LIKE'}, | |||
{field: 'detail_address', title: __('Detail_address'), operate: 'LIKE'}, | |||
{field: 'del_flag', title: __('Del_flag'), formatter: Table.api.formatter.flag}, | |||
{field: 'create_time', title: __('Create_time'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime}, | |||
{field: 'update_time', title: __('Update_time'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime}, | |||
{field: 'confirm_status', title: __('Confirm_status')}, | |||
{field: 'confirm_no', title: __('Confirm_no'), operate: 'LIKE'}, | |||
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate} | |||
] | |||
] | |||
}); | |||
// 为表格绑定事件 | |||
Table.api.bindevent(table); | |||
}, | |||
add: function () { | |||
Controller.api.bindevent(); | |||
}, | |||
edit: function () { | |||
Controller.api.bindevent(); | |||
}, | |||
api: { | |||
bindevent: function () { | |||
Form.api.bindevent($("form[role=form]")); | |||
} | |||
} | |||
}; | |||
return Controller; | |||
}); |
@@ -0,0 +1,68 @@ | |||
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) { | |||
var Controller = { | |||
index: function () { | |||
// 初始化表格参数配置 | |||
Table.api.init({ | |||
extend: { | |||
index_url: 'order_main/index' + location.search, | |||
add_url: 'order_main/add', | |||
edit_url: 'order_main/edit', | |||
del_url: 'order_main/del', | |||
multi_url: 'order_main/multi', | |||
import_url: 'order_main/import', | |||
table: 'order_main', | |||
} | |||
}); | |||
var table = $("#table"); | |||
// 初始化表格 | |||
table.bootstrapTable({ | |||
url: $.fn.bootstrapTable.defaults.extend.index_url, | |||
pk: 'id', | |||
sortName: 'id', | |||
columns: [ | |||
[ | |||
{checkbox: true}, | |||
{field: 'id', title: __('Id')}, | |||
{field: 'create_user_id', title: __('Create_user_id')}, | |||
{field: 'group_id', title: __('Group_id')}, | |||
{field: 'commissioner', title: __('Commissioner'), operate: 'LIKE'}, | |||
{field: 'channel_id', title: __('Channel_id'), operate: 'LIKE'}, | |||
{field: 'channel_order_no', title: __('Channel_order_no'), operate: 'LIKE'}, | |||
{field: 'user_name', title: __('User_name'), operate: 'LIKE'}, | |||
{field: 'user_phone', title: __('User_phone'), operate: 'LIKE'}, | |||
{field: 'total_amount', title: __('Total_amount'), operate:'BETWEEN'}, | |||
{field: 'cost_amount', title: __('Cost_amount'), operate:'BETWEEN'}, | |||
{field: 'profit_amount', title: __('Profit_amount'), operate:'BETWEEN'}, | |||
{field: 'order_status', title: __('Order_status')}, | |||
{field: 'order_memo', title: __('Order_memo'), operate: 'LIKE'}, | |||
{field: 'log', title: __('Log'), operate: 'LIKE'}, | |||
{field: 'cancel_time', title: __('Cancel_time'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime}, | |||
{field: 'success_time', title: __('Success_time'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime}, | |||
{field: 'del_flag', title: __('Del_flag'), formatter: Table.api.formatter.flag}, | |||
{field: 'create_time', title: __('Create_time'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime}, | |||
{field: 'update_time', title: __('Update_time'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime}, | |||
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate} | |||
] | |||
] | |||
}); | |||
// 为表格绑定事件 | |||
Table.api.bindevent(table); | |||
}, | |||
add: function () { | |||
Controller.api.bindevent(); | |||
}, | |||
edit: function () { | |||
Controller.api.bindevent(); | |||
}, | |||
api: { | |||
bindevent: function () { | |||
Form.api.bindevent($("form[role=form]")); | |||
} | |||
} | |||
}; | |||
return Controller; | |||
}); |
@@ -0,0 +1,57 @@ | |||
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) { | |||
var Controller = { | |||
index: function () { | |||
// 初始化表格参数配置 | |||
Table.api.init({ | |||
extend: { | |||
index_url: 'payment_order/index' + location.search, | |||
add_url: 'payment_order/add', | |||
edit_url: 'payment_order/edit', | |||
del_url: 'payment_order/del', | |||
multi_url: 'payment_order/multi', | |||
import_url: 'payment_order/import', | |||
table: 'payment_order', | |||
} | |||
}); | |||
var table = $("#table"); | |||
// 初始化表格 | |||
table.bootstrapTable({ | |||
url: $.fn.bootstrapTable.defaults.extend.index_url, | |||
pk: 'id', | |||
sortName: 'id', | |||
columns: [ | |||
[ | |||
{checkbox: true}, | |||
{field: 'id', title: __('Id')}, | |||
{field: 'del_flag', title: __('Del_flag'), formatter: Table.api.formatter.flag}, | |||
{field: 'create_time', title: __('Create_time'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime}, | |||
{field: 'update_time', title: __('Update_time'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime}, | |||
{field: 'name', title: __('Name'), operate: 'LIKE'}, | |||
{field: 'status', title: __('Status')}, | |||
{field: 'order_ids', title: __('Order_ids'), operate: 'LIKE'}, | |||
{field: 'money', title: __('Money'), operate:'BETWEEN'}, | |||
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate} | |||
] | |||
] | |||
}); | |||
// 为表格绑定事件 | |||
Table.api.bindevent(table); | |||
}, | |||
add: function () { | |||
Controller.api.bindevent(); | |||
}, | |||
edit: function () { | |||
Controller.api.bindevent(); | |||
}, | |||
api: { | |||
bindevent: function () { | |||
Form.api.bindevent($("form[role=form]")); | |||
} | |||
} | |||
}; | |||
return Controller; | |||
}); |
@@ -0,0 +1,72 @@ | |||
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) { | |||
var Controller = { | |||
index: function () { | |||
// 初始化表格参数配置 | |||
Table.api.init({ | |||
extend: { | |||
index_url: 'purchase/index' + location.search, | |||
add_url: 'purchase/add', | |||
edit_url: 'purchase/edit', | |||
del_url: 'purchase/del', | |||
multi_url: 'purchase/multi', | |||
import_url: 'purchase/import', | |||
table: 'purchase', | |||
} | |||
}); | |||
var table = $("#table"); | |||
// 初始化表格 | |||
table.bootstrapTable({ | |||
url: $.fn.bootstrapTable.defaults.extend.index_url, | |||
pk: 'id', | |||
sortName: 'id', | |||
columns: [ | |||
[ | |||
{checkbox: true}, | |||
{field: 'id', title: __('Id')}, | |||
{field: 'del_flag', title: __('Del_flag'), formatter: Table.api.formatter.flag}, | |||
{field: 'create_time', title: __('Create_time'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime}, | |||
{field: 'update_time', title: __('Update_time'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime}, | |||
{field: 'order_id', title: __('Order_id')}, | |||
{field: 'prod_type', title: __('Prod_type'), operate: 'LIKE'}, | |||
{field: 'order_detail_id', title: __('Order_detail_id')}, | |||
{field: 'group_id', title: __('Group_id')}, | |||
{field: 'pro_name', title: __('Pro_name'), operate: 'LIKE'}, | |||
{field: 'item_name', title: __('Item_name'), operate: 'LIKE'}, | |||
{field: 'item_unit', title: __('Item_unit'), operate: 'LIKE'}, | |||
{field: 'check_in_date', title: __('Check_in_date'), operate:'RANGE', addclass:'datetimerange', autocomplete:false}, | |||
{field: 'check_out_date', title: __('Check_out_date'), operate:'RANGE', addclass:'datetimerange', autocomplete:false}, | |||
{field: 'count', title: __('Count')}, | |||
{field: 'total_price', title: __('Total_price'), operate:'BETWEEN'}, | |||
{field: 'supplier_name', title: __('Supplier_name'), operate: 'LIKE'}, | |||
{field: 'total_cost', title: __('Total_cost'), operate:'BETWEEN'}, | |||
{field: 'profit', title: __('Profit'), operate:'BETWEEN'}, | |||
{field: 'receipt_status', title: __('Receipt_status')}, | |||
{field: 'receipt_id', title: __('Receipt_id')}, | |||
{field: 'pay_status', title: __('Pay_status')}, | |||
{field: 'payment_id', title: __('Payment_id')}, | |||
{field: 'purchase_user_id', title: __('Purchase_user_id')}, | |||
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate} | |||
] | |||
] | |||
}); | |||
// 为表格绑定事件 | |||
Table.api.bindevent(table); | |||
}, | |||
add: function () { | |||
Controller.api.bindevent(); | |||
}, | |||
edit: function () { | |||
Controller.api.bindevent(); | |||
}, | |||
api: { | |||
bindevent: function () { | |||
Form.api.bindevent($("form[role=form]")); | |||
} | |||
} | |||
}; | |||
return Controller; | |||
}); |
@@ -0,0 +1,61 @@ | |||
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) { | |||
var Controller = { | |||
index: function () { | |||
// 初始化表格参数配置 | |||
Table.api.init({ | |||
extend: { | |||
index_url: 'purchase_price/index' + location.search, | |||
add_url: 'purchase_price/add', | |||
edit_url: 'purchase_price/edit', | |||
del_url: 'purchase_price/del', | |||
multi_url: 'purchase_price/multi', | |||
import_url: 'purchase_price/import', | |||
table: 'purchase_price', | |||
} | |||
}); | |||
var table = $("#table"); | |||
// 初始化表格 | |||
table.bootstrapTable({ | |||
url: $.fn.bootstrapTable.defaults.extend.index_url, | |||
pk: 'id', | |||
sortName: 'id', | |||
columns: [ | |||
[ | |||
{checkbox: true}, | |||
{field: 'id', title: __('Id')}, | |||
{field: 'order_id', title: __('Order_id')}, | |||
{field: 'prod_type', title: __('Prod_type'), operate: 'LIKE'}, | |||
{field: 'order_detail_id', title: __('Order_detail_id')}, | |||
{field: 'purchase_id', title: __('Purchase_id')}, | |||
{field: 'run_date', title: __('Run_date'), operate:'RANGE', addclass:'datetimerange', autocomplete:false}, | |||
{field: 'count', title: __('Count')}, | |||
{field: 'price', title: __('Price'), operate:'BETWEEN'}, | |||
{field: 'cost', title: __('Cost'), operate:'BETWEEN'}, | |||
{field: 'del_flag', title: __('Del_flag'), formatter: Table.api.formatter.flag}, | |||
{field: 'create_time', title: __('Create_time'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime}, | |||
{field: 'update_time', title: __('Update_time'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime}, | |||
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate} | |||
] | |||
] | |||
}); | |||
// 为表格绑定事件 | |||
Table.api.bindevent(table); | |||
}, | |||
add: function () { | |||
Controller.api.bindevent(); | |||
}, | |||
edit: function () { | |||
Controller.api.bindevent(); | |||
}, | |||
api: { | |||
bindevent: function () { | |||
Form.api.bindevent($("form[role=form]")); | |||
} | |||
} | |||
}; | |||
return Controller; | |||
}); |
@@ -0,0 +1,57 @@ | |||
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) { | |||
var Controller = { | |||
index: function () { | |||
// 初始化表格参数配置 | |||
Table.api.init({ | |||
extend: { | |||
index_url: 'receipt_order/index' + location.search, | |||
add_url: 'receipt_order/add', | |||
edit_url: 'receipt_order/edit', | |||
del_url: 'receipt_order/del', | |||
multi_url: 'receipt_order/multi', | |||
import_url: 'receipt_order/import', | |||
table: 'receipt_order', | |||
} | |||
}); | |||
var table = $("#table"); | |||
// 初始化表格 | |||
table.bootstrapTable({ | |||
url: $.fn.bootstrapTable.defaults.extend.index_url, | |||
pk: 'id', | |||
sortName: 'id', | |||
columns: [ | |||
[ | |||
{checkbox: true}, | |||
{field: 'id', title: __('Id')}, | |||
{field: 'del_flag', title: __('Del_flag'), formatter: Table.api.formatter.flag}, | |||
{field: 'create_time', title: __('Create_time'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime}, | |||
{field: 'update_time', title: __('Update_time'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime}, | |||
{field: 'name', title: __('Name'), operate: 'LIKE'}, | |||
{field: 'status', title: __('Status')}, | |||
{field: 'order_ids', title: __('Order_ids'), operate: 'LIKE'}, | |||
{field: 'money', title: __('Money'), operate:'BETWEEN'}, | |||
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate} | |||
] | |||
] | |||
}); | |||
// 为表格绑定事件 | |||
Table.api.bindevent(table); | |||
}, | |||
add: function () { | |||
Controller.api.bindevent(); | |||
}, | |||
edit: function () { | |||
Controller.api.bindevent(); | |||
}, | |||
api: { | |||
bindevent: function () { | |||
Form.api.bindevent($("form[role=form]")); | |||
} | |||
} | |||
}; | |||
return Controller; | |||
}); |