小图片+大图片 商品分类
|
|
@ -60,18 +60,19 @@ class GoodsCategoryController extends CommonController
|
|||
}
|
||||
|
||||
// 获取数据
|
||||
$field = array('id', 'pid', 'icon', 'name', 'sort', 'is_enable');
|
||||
$field = array('id', 'pid', 'icon', 'name', 'sort', 'is_enable', 'bg_color', 'big_images');
|
||||
$data = M('GoodsCategory')->field($field)->where(array('pid'=>intval(I('id', 0))))->select();
|
||||
if(!empty($data))
|
||||
{
|
||||
$image_host = C('IMAGE_HOST');
|
||||
foreach($data as &$v)
|
||||
{
|
||||
$v['is_son'] = $this->IsExistSon($v['id']);
|
||||
$v['ajax_url'] = U('Admin/GoodsCategory/GetNodeSon', array('id'=>$v['id']));
|
||||
$v['delete_url'] = U('Admin/GoodsCategory/Delete');
|
||||
$v['icon_url'] = empty($v['icon']) ? '' : $image_host.$v['icon'];
|
||||
$v['json'] = json_encode($v);
|
||||
$v['is_son'] = $this->IsExistSon($v['id']);
|
||||
$v['ajax_url'] = U('Admin/GoodsCategory/GetNodeSon', array('id'=>$v['id']));
|
||||
$v['delete_url'] = U('Admin/GoodsCategory/Delete');
|
||||
$v['icon_url'] = empty($v['icon']) ? '' : $image_host.$v['icon'];
|
||||
$v['big_images_url'] = empty($v['big_images']) ? '' : $image_host.$v['big_images'];
|
||||
$v['json'] = json_encode($v);
|
||||
}
|
||||
}
|
||||
$msg = empty($data) ? L('common_not_data_tips') : L('common_operation_success');
|
||||
|
|
@ -111,7 +112,7 @@ class GoodsCategoryController extends CommonController
|
|||
$this->error(L('common_unauthorized_access'));
|
||||
}
|
||||
|
||||
// 图片
|
||||
// icon
|
||||
if(!empty($_FILES['file_icon']))
|
||||
{
|
||||
// 文件上传校验
|
||||
|
|
@ -137,6 +138,32 @@ class GoodsCategoryController extends CommonController
|
|||
}
|
||||
}
|
||||
|
||||
// 大图片
|
||||
if(!empty($_FILES['file_big_images']))
|
||||
{
|
||||
// 文件上传校验
|
||||
$error = FileUploadError('file_big_images');
|
||||
if($error !== true)
|
||||
{
|
||||
$this->ajaxReturn($error, -1);
|
||||
}
|
||||
|
||||
// 文件类型
|
||||
list($type, $suffix) = explode('/', $_FILES['file_big_images']['type']);
|
||||
$path = 'Public'.DS.'Upload'.DS.'category'.DS.date('Y').DS.date('m').DS;
|
||||
if(!is_dir($path))
|
||||
{
|
||||
mkdir(ROOT_PATH.$path, 0777, true);
|
||||
}
|
||||
$filename = date('YmdHis').GetNumberCode(6).'.'.$suffix;
|
||||
$file_big_images = $path.$filename;
|
||||
|
||||
if(move_uploaded_file($_FILES['file_big_images']['tmp_name'], ROOT_PATH.$file_big_images))
|
||||
{
|
||||
$_POST['big_images'] = DS.$file_big_images;
|
||||
}
|
||||
}
|
||||
|
||||
// id为空则表示是新增
|
||||
$m = D('GoodsCategory');
|
||||
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ return array(
|
|||
'goods_category_add_name' => '分类添加',
|
||||
'goods_category_edit_name' => '分类编辑',
|
||||
|
||||
'goods_category_big_images_text' => '大图片',
|
||||
'goods_category_bg_color' => '背景色',
|
||||
);
|
||||
?>
|
||||
|
|
@ -23,11 +23,11 @@
|
|||
<label class="block">{{:L('common_icon_text')}}</label>
|
||||
<button type="button" class="am-btn am-btn-default am-btn-sm am-radius">
|
||||
<i class="am-icon-cloud-upload"></i> {{:L('common_select_images_text')}}</button>
|
||||
<input type="text" name="icon" class="am-radius js-choice-one original-images-url original-images-url-delete" data-choice-one-to=".images-file-event" <notempty name="data"> value="{{$data.images_url}}"</notempty>" data-validation-message="{{:L('common_select_images_tips')}}" readonly="readonly" />
|
||||
<i class="am-icon-trash-o am-icon-sm original-images-url-delete" data-input-tag=".original-images-url"></i>
|
||||
<input type="file" name="file_icon" multiple data-validation-message="{{:L('common_select_images_tips')}}" accept="image/gif,image/jpeg,image/jpg,image/png" class="js-choice-one images-file-event" data-choice-one-to=".original-images-url" data-tips-tag="#form-images_url-tips" data-image-tag="#form-img-images_url" />
|
||||
<div id="form-images_url-tips" class="m-t-5"></div>
|
||||
<img src="<if condition="!empty($data['images_url'])">{{$image_host}}{{$data.images_url}}<else />{{$image_host}}/Public/Admin/Default/Images/default-images.png</if>" id="form-img-images_url" class="block m-t-5 am-img-thumbnail am-radius" width="50" height="50" data-default="<if condition="!empty($data['images_url'])">{{$image_host}}{{$data.images_url}}<else />{{$image_host}}/Public/Admin/Default/Images/default-images.png</if>" />
|
||||
<input type="text" name="icon" class="am-radius js-choice-one original-images-url original-icon-images-url" data-choice-one-to='input[name="file_icon"]' <notempty name="data"> value="{{$data.images_url}}"</notempty>" data-validation-message="{{:L('common_select_images_tips')}}" readonly="readonly" />
|
||||
<i class="am-icon-trash-o am-icon-sm original-images-url-delete" data-input-tag="input.original-icon-images-url" data-image-tag="#form-img-icon" data-tips-tag="#form-icon-tips" data-file-tag="input.file_icon-tag"></i>
|
||||
<input type="file" name="file_icon" multiple data-validation-message="{{:L('common_select_images_tips')}}" accept="image/gif,image/jpeg,image/jpg,image/png" class="js-choice-one images-file-event file_icon-tag" data-choice-one-to=".original-icon-images-url" data-tips-tag="#form-icon-tips" data-image-tag="#form-img-icon" />
|
||||
<div id="form-icon-tips" class="m-t-5"></div>
|
||||
<img src="<if condition="!empty($data['images_url'])">{{$image_host}}{{$data.images_url}}<else />{{$image_host}}/Public/Admin/Default/Images/default-images.png</if>" id="form-img-icon" class="block m-t-5 am-img-thumbnail am-radius" width="50" height="50" data-default="<if condition="!empty($data['images_url'])">{{$image_host}}{{$data.images_url}}<else />{{$image_host}}/Public/Admin/Default/Images/default-images.png</if>" />
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<label>{{:L('common_name_text')}}</label>
|
||||
|
|
@ -50,7 +50,7 @@
|
|||
<!-- save win end -->
|
||||
|
||||
<!-- list start -->
|
||||
<div id="tree" class="m-t-15">
|
||||
<div id="tree" class="m-t-15" data-additional='[{"field":"file_icon", "value":"", "type":"file", "tag":"input.file_icon-tag"}, {"field":"icon", "value":"", "type":"input"}, {"field":"icon_url", "value":"{{$image_host}}/Public/Admin/Default/Images/default-images.png", "type":"attr", "tag":"#form-img-icon", "style":"src"}, {"value":"", "type":"html", "tag":"#form-icon-tips"}]'>
|
||||
<div class="m-t-30 t-c">
|
||||
<img src="__PUBLIC__/Common/Images/loading.gif" />
|
||||
<p>{{:L('common_form_loading_tips')}}</p>
|
||||
|
|
|
|||
|
|
@ -23,11 +23,21 @@
|
|||
<label class="block">{{:L('common_icon_text')}}</label>
|
||||
<button type="button" class="am-btn am-btn-default am-btn-sm am-radius">
|
||||
<i class="am-icon-cloud-upload"></i> {{:L('common_select_images_text')}}</button>
|
||||
<input type="text" name="icon" class="am-radius js-choice-one original-images-url original-images-url-delete" data-choice-one-to=".images-file-event" <notempty name="data"> value="{{$data.images_url}}"</notempty>" data-validation-message="{{:L('common_select_images_tips')}}" readonly="readonly" />
|
||||
<i class="am-icon-trash-o am-icon-sm original-images-url-delete" data-input-tag=".original-images-url"></i>
|
||||
<input type="file" name="file_icon" multiple data-validation-message="{{:L('common_select_images_tips')}}" accept="image/gif,image/jpeg,image/jpg,image/png" class="js-choice-one images-file-event" data-choice-one-to=".original-images-url" data-tips-tag="#form-images_url-tips" data-image-tag="#form-img-images_url" />
|
||||
<div id="form-images_url-tips" class="m-t-5"></div>
|
||||
<img src="<if condition="!empty($data['images_url'])">{{$image_host}}{{$data.images_url}}<else />{{$image_host}}/Public/Admin/Default/Images/default-images.png</if>" id="form-img-images_url" class="block m-t-5 am-img-thumbnail am-radius" width="50" height="50" data-default="<if condition="!empty($data['images_url'])">{{$image_host}}{{$data.images_url}}<else />{{$image_host}}/Public/Admin/Default/Images/default-images.png</if>" />
|
||||
<input type="text" name="icon" class="am-radius js-choice-one original-images-url original-icon-images-url" data-choice-one-to='input[name="file_icon"]' <notempty name="data"> value="{{$data.images_url}}"</notempty>" data-validation-message="{{:L('common_select_images_tips')}}" readonly="readonly" />
|
||||
<i class="am-icon-trash-o am-icon-sm original-images-url-delete" data-input-tag="input.original-icon-images-url" data-image-tag="#form-img-icon" data-tips-tag="#form-icon-tips" data-file-tag="input.file_icon-tag"></i>
|
||||
<input type="file" name="file_icon" multiple data-validation-message="{{:L('common_select_images_tips')}}" accept="image/gif,image/jpeg,image/jpg,image/png" class="js-choice-one images-file-event file_icon-tag" data-choice-one-to=".original-icon-images-url" data-tips-tag="#form-icon-tips" data-image-tag="#form-img-icon" />
|
||||
<div id="form-icon-tips" class="m-t-5"></div>
|
||||
<img src="<if condition="!empty($data['images_url'])">{{$image_host}}{{$data.images_url}}<else />{{$image_host}}/Public/Admin/Default/Images/default-images.png</if>" id="form-img-icon" class="block m-t-5 am-img-thumbnail am-radius" width="50" height="50" data-default="<if condition="!empty($data['images_url'])">{{$image_host}}{{$data.images_url}}<else />{{$image_host}}/Public/Admin/Default/Images/default-images.png</if>" />
|
||||
</div>
|
||||
<div class="am-form-group am-form-file">
|
||||
<label class="block">{{:L('goods_category_big_images_text')}}</label>
|
||||
<button type="button" class="am-btn am-btn-default am-btn-sm am-radius">
|
||||
<i class="am-icon-cloud-upload"></i> {{:L('common_select_images_text')}}</button>
|
||||
<input type="text" name="big_images" class="am-radius js-choice-one original-images-url original-big-images-url" data-choice-one-to='input[name="file_big_images"]' <notempty name="data"> value="{{$data.big_images}}"</notempty>" data-validation-message="{{:L('common_select_images_tips')}}" readonly="readonly" />
|
||||
<i class="am-icon-trash-o am-icon-sm original-images-url-delete" data-input-tag=".original-big-images-url" data-image-tag="#form-img-big_images" data-tips-tag="#form-big_images-tips" data-file-tag="input.file_big_images-tag"></i>
|
||||
<input type="file" name="file_big_images" multiple data-validation-message="{{:L('common_select_images_tips')}}" accept="image/gif,image/jpeg,image/jpg,image/png" class="js-choice-one images-file-event file_big_images-tag" data-choice-one-to=".original-big-images-url" data-tips-tag="#form-big_images-tips" data-image-tag="#form-img-big_images" />
|
||||
<div id="form-big_images-tips" class="m-t-5"></div>
|
||||
<img src="<if condition="!empty($data['big_images'])">{{$image_host}}{{$data.big_images}}<else />{{$image_host}}/Public/Admin/Default/Images/default-images.png</if>" id="form-img-big_images" class="block m-t-5 am-img-thumbnail am-radius" width="50" height="50" data-default="<if condition="!empty($data['big_images'])">{{$image_host}}{{$data.big_images}}<else />{{$image_host}}/Public/Admin/Default/Images/default-images.png</if>" />
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<label>{{:L('goods_category_bg_color')}}</label>
|
||||
|
|
@ -58,7 +68,7 @@
|
|||
<!-- save win end -->
|
||||
|
||||
<!-- list start -->
|
||||
<div id="tree" class="m-t-15" data-rank="3">
|
||||
<div id="tree" class="m-t-15" data-rank="3" data-additional='[{"field":"bg_color", "value":"", "type":"input"}, {"field":"bg_color", "value":"", "type":"css", "tag":"button.colorpicker-submit", "style":"background-color"}, {"field":"file_icon", "value":"", "type":"file", "tag":"input.file_icon-tag"}, {"field":"icon", "value":"", "type":"input"}, {"field":"icon_url", "value":"{{$image_host}}/Public/Admin/Default/Images/default-images.png", "type":"attr", "tag":"#form-img-icon", "style":"src"}, {"value":"", "type":"html", "tag":"#form-icon-tips"}, {"field":"file_big_images", "value":"", "type":"file", "tag":"input.file_big_images-tag"}, {"field":"big_images", "value":"", "type":"input"}, {"field":"big_images_url", "value":"{{$image_host}}/Public/Admin/Default/Images/default-images.png", "type":"attr", "tag":"#form-img-big_images", "style":"src"}, {"value":"", "type":"html", "tag":"#form-big_images-tips"}]'>
|
||||
<div class="m-t-30 t-c">
|
||||
<img src="__PUBLIC__/Common/Images/loading.gif" />
|
||||
<p>{{:L('common_form_loading_tips')}}</p>
|
||||
|
|
@ -67,7 +77,7 @@
|
|||
<!-- list end -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- right content end -->
|
||||
<!-- right content end -->
|
||||
|
||||
<!-- footer start -->
|
||||
<include file="Public/Footer" />
|
||||
|
|
|
|||
|
|
@ -1,133 +0,0 @@
|
|||
<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="<?php echo C('DEFAULT_CHARSET');?>" />
|
||||
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1, maximum-scale=1">
|
||||
<title><?php echo L('common_site_title');?></title>
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Common/Lib/assets/css/amazeui.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Common/Lib/amazeui-switch/amazeui.switch.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Common/Lib/amazeui-chosen/amazeui.chosen.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Common/Css/Common.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Admin/<?php echo ($default_theme); ?>/Css/Common.css" />
|
||||
<?php if(!empty($module_css)): ?><link rel="stylesheet" type="text/css" href="/project/shop/service/Public/<?php echo ($module_css); ?>" /><?php endif; ?>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!-- right content start -->
|
||||
<div class="content-right">
|
||||
<div class="content">
|
||||
<!-- form start -->
|
||||
<form class="am-form form-validation view-save" action="<?php echo U('Admin/Config/Save');?>" method="POST" request-type="ajax-url" request-value="<?php echo U('Admin/Config/Index');?>">
|
||||
<div class="am-form-group">
|
||||
<label><?php echo ($data["admin_excel_charset"]["name"]); ?><span class="fs-12 fw-100 cr-999">(<?php echo ($data["admin_excel_charset"]["describe"]); ?>)</span></label>
|
||||
<select name="<?php echo ($data["admin_excel_charset"]["only_tag"]); ?>" class="am-radius chosen-select c-p" data-validation-message="<?php echo ($data["admin_excel_charset"]["error_tips"]); ?>" required>
|
||||
<?php if(is_array($common_excel_charset_list)): foreach($common_excel_charset_list as $key=>$v): ?><option value="<?php echo ($v["id"]); ?>" <?php if(isset($data['admin_excel_charset']['value']) and $data['admin_excel_charset']['value'] == $v['id']): ?>selected<?php endif; ?>><?php echo ($v["name"]); ?></option><?php endforeach; endif; ?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<label><?php echo ($data["admin_page_number"]["name"]); ?><span class="fs-12 fw-100 cr-999">(<?php echo ($data["admin_page_number"]["describe"]); ?>)</span></label>
|
||||
<input type="number" name="<?php echo ($data["admin_page_number"]["only_tag"]); ?>" placeholder="<?php echo ($data["admin_page_number"]["name"]); ?>" pattern="<?php echo L('common_regex_page_number');?>" data-validation-message="<?php echo ($data["admin_page_number"]["error_tips"]); ?>" class="am-radius" <?php if(isset($data)): ?>value="<?php echo ($data["admin_page_number"]["value"]); ?>"<?php endif; ?> required />
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<label class="block"><?php echo ($data["common_is_deduction_inventory"]["name"]); ?></label>
|
||||
<input name="<?php echo ($data["common_is_deduction_inventory"]["only_tag"]); ?>" value="1" type="checkbox" data-off-text="<?php echo L('common_operation_off_is_text');?>" data-on-text="<?php echo L('common_operation_on_is_text');?>" data-size="xs" data-on-color="success" data-off-color="default" data-handle-width="50" data-am-switch <?php if(!empty($data) and $data['common_is_deduction_inventory']['value'] == 1): ?>checked="true"<?php endif; ?> />
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<label><?php echo ($data["common_deduction_inventory_rules"]["name"]); ?><span class="fs-12 fw-100 cr-999">(<?php echo ($data["common_deduction_inventory_rules"]["describe"]); ?>)</span></label>
|
||||
<select name="<?php echo ($data["common_deduction_inventory_rules"]["only_tag"]); ?>" class="am-radius chosen-select c-p" data-validation-message="<?php echo ($data["common_deduction_inventory_rules"]["error_tips"]); ?>" required>
|
||||
<?php if(is_array($common_deduction_inventory_rules_list)): foreach($common_deduction_inventory_rules_list as $key=>$v): ?><option value="<?php echo ($v["id"]); ?>" <?php if(isset($data['common_deduction_inventory_rules']['value']) and $data['common_deduction_inventory_rules']['value'] == $v['id']): ?>selected<?php endif; ?>><?php echo ($v["name"]); ?></option><?php endforeach; endif; ?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<label><?php echo ($data["common_share_giving_integral_frequency"]["name"]); ?><span class="fs-12 fw-100 cr-999">(<?php echo ($data["common_share_giving_integral_frequency"]["describe"]); ?>)</span></label>
|
||||
<input type="number" name="<?php echo ($data["common_share_giving_integral_frequency"]["only_tag"]); ?>" placeholder="<?php echo ($data["common_share_giving_integral_frequency"]["name"]); ?>" data-validation-message="<?php echo ($data["common_share_giving_integral_frequency"]["error_tips"]); ?>" class="am-radius" <?php if(isset($data)): ?>value="<?php echo ($data["common_share_giving_integral_frequency"]["value"]); ?>"<?php endif; ?> />
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<label><?php echo ($data["common_share_giving_integral"]["name"]); ?><span class="fs-12 fw-100 cr-999">(<?php echo ($data["common_share_giving_integral"]["describe"]); ?>)</span></label>
|
||||
<input type="number" name="<?php echo ($data["common_share_giving_integral"]["only_tag"]); ?>" placeholder="<?php echo ($data["common_share_giving_integral"]["name"]); ?>" data-validation-message="<?php echo ($data["common_share_giving_integral"]["error_tips"]); ?>" class="am-radius" <?php if(isset($data)): ?>value="<?php echo ($data["common_share_giving_integral"]["value"]); ?>"<?php endif; ?> />
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<label><?php echo ($data["common_share_view_desc"]["name"]); ?></label>
|
||||
<textarea rows="3" name="<?php echo ($data["common_share_view_desc"]["only_tag"]); ?>" class="am-radius" placeholder="<?php echo ($data["common_share_view_desc"]["name"]); ?>" data-validation-message="<?php echo ($data["common_share_view_desc"]["error_tips"]); ?>"><?php if(isset($data)): echo ($data["common_share_view_desc"]["value"]); endif; ?></textarea>
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<label><?php echo ($data["common_user_center_notice"]["name"]); ?><span class="fs-12 fw-100 cr-999">(<?php echo ($data["common_user_center_notice"]["describe"]); ?>)</span></label>
|
||||
<textarea rows="3" name="<?php echo ($data["common_user_center_notice"]["only_tag"]); ?>" class="am-radius" placeholder="<?php echo ($data["common_user_center_notice"]["name"]); ?>" data-validation-message="<?php echo ($data["common_user_center_notice"]["error_tips"]); ?>"><?php if(isset($data)): echo ($data["common_user_center_notice"]["value"]); endif; ?></textarea>
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<label><?php echo ($data["common_baidu_map_ak"]["name"]); ?><span class="fs-12 fw-100 cr-999">(<?php echo ($data["common_baidu_map_ak"]["describe"]); ?>)</span></label>
|
||||
<input type="text" name="<?php echo ($data["common_baidu_map_ak"]["only_tag"]); ?>" placeholder="<?php echo ($data["common_baidu_map_ak"]["describe"]); ?>" data-validation-message="<?php echo ($data["common_baidu_map_ak"]["error_tips"]); ?>" class="am-radius" <?php if(isset($data)): ?>value="<?php echo ($data["common_baidu_map_ak"]["value"]); ?>"<?php endif; ?> />
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<label><?php echo ($data["common_customer_service_tel"]["name"]); ?></label>
|
||||
<input type="text" name="<?php echo ($data["common_customer_service_tel"]["only_tag"]); ?>" placeholder="<?php echo ($data["common_customer_service_tel"]["describe"]); ?>" data-validation-message="<?php echo ($data["common_customer_service_tel"]["error_tips"]); ?>" class="am-radius" <?php if(isset($data)): ?>value="<?php echo ($data["common_customer_service_tel"]["value"]); ?>"<?php endif; ?> />
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<button type="submit" class="am-btn am-btn-primary am-radius btn-loading-example am-btn-sm w100" data-am-loading="{loadingText:'<?php echo L('common_form_loading_tips');?>'}"><?php echo L('common_operation_save');?></button>
|
||||
</div>
|
||||
</form>
|
||||
<!-- form end -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- right content end -->
|
||||
|
||||
<!-- footer start -->
|
||||
<!-- commom html start -->
|
||||
<!-- delete html start -->
|
||||
<div class="am-modal am-modal-confirm" tabindex="-1" id="common-confirm-delete">
|
||||
<div class="am-modal-dialog am-radius">
|
||||
<div class="am-modal-bd"><?php echo L('common_delete_tips');?></div>
|
||||
<div class="am-modal-footer">
|
||||
<span class="am-modal-btn" data-am-modal-cancel><?php echo L('common_operation_cancel');?></span>
|
||||
<span class="am-modal-btn" data-am-modal-confirm><?php echo L('common_operation_confirm');?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- delete html end -->
|
||||
|
||||
<!-- delete html start -->
|
||||
<div class="am-modal am-modal-confirm" tabindex="-1" id="common-confirm-cancel">
|
||||
<div class="am-modal-dialog am-radius">
|
||||
<div class="am-modal-bd"><?php echo L('common_cancel_tips');?></div>
|
||||
<div class="am-modal-footer">
|
||||
<span class="am-modal-btn" data-am-modal-cancel><?php echo L('common_operation_cancel');?></span>
|
||||
<span class="am-modal-btn" data-am-modal-confirm><?php echo L('common_operation_confirm');?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- delete html end -->
|
||||
<!-- commom html end -->
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<!-- 类库 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/jquery/jquery-2.1.0.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/assets/js/amazeui.min.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/echarts/echarts.min.js"></script>
|
||||
|
||||
<!-- ueditor 编辑器 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/ueditor/ueditor.config.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/ueditor/ueditor.all.min.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/ueditor/lang/zh-cn/zh-cn.js"></script>
|
||||
|
||||
<!-- 颜色选择器 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/colorpicker/jquery.colorpicker.js"></script>
|
||||
|
||||
<!-- 元素拖拽排序插件 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/dragsort/jquery.dragsort-0.5.2.min.js"></script>
|
||||
|
||||
<!-- amazeui插件 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/amazeui-switch/amazeui.switch.min.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/amazeui-chosen/amazeui.chosen.min.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/amazeui-dialog/amazeui.dialog.min.js"></script>
|
||||
|
||||
<!-- 日期组件 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/My97DatePicker/WdatePicker.js"></script>
|
||||
|
||||
<!-- 项目公共 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Js/Common.js"></script>
|
||||
|
||||
<!-- 控制器 -->
|
||||
<?php if(!empty($module_js)): ?><script type="text/javascript" src="/project/shop/service/Public/<?php echo ($module_js); ?>"></script><?php endif; ?>
|
||||
<!-- footer end -->
|
||||
|
|
@ -1,148 +0,0 @@
|
|||
<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="<?php echo C('DEFAULT_CHARSET');?>" />
|
||||
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1, maximum-scale=1">
|
||||
<title><?php echo L('common_site_title');?></title>
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Common/Lib/assets/css/amazeui.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Common/Lib/amazeui-switch/amazeui.switch.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Common/Lib/amazeui-chosen/amazeui.chosen.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Common/Css/Common.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Admin/<?php echo ($default_theme); ?>/Css/Common.css" />
|
||||
<?php if(!empty($module_css)): ?><link rel="stylesheet" type="text/css" href="/project/shop/service/Public/<?php echo ($module_css); ?>" /><?php endif; ?>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!-- right content start -->
|
||||
<div class="content-right">
|
||||
<div class="content">
|
||||
<!-- operation start -->
|
||||
<div class="am-g">
|
||||
<button class="am-btn am-btn-secondary am-radius am-btn-xs am-icon-plus tree-submit-add" data-am-modal="{target: '#data-save-win'}"> <?php echo L('common_operation_add');?></button>
|
||||
</div>
|
||||
<!-- operation end -->
|
||||
|
||||
<!-- save win start -->
|
||||
<div class="am-popup am-radius" id="data-save-win">
|
||||
<div class="am-popup-inner">
|
||||
<div class="am-popup-hd">
|
||||
<h4 class="am-popup-title" data-add-title="<?php echo L('express_add_name');?>" data-edit-title="<?php echo L('express_edit_name');?>"><?php echo L('express_add_name');?></h4>
|
||||
<span data-am-modal-close class="am-close">×</span>
|
||||
</div>
|
||||
<div class="am-popup-bd">
|
||||
<!-- form start -->
|
||||
<form class="am-form form-validation admin-save" action="<?php echo U('Admin/Express/Save');?>" method="POST" request-type="ajax-reload" request-value="">
|
||||
<div class="am-form-group am-form-file">
|
||||
<label class="block"><?php echo L('common_icon_text');?></label>
|
||||
<button type="button" class="am-btn am-btn-default am-btn-sm am-radius">
|
||||
<i class="am-icon-cloud-upload"></i> <?php echo L('common_select_images_text');?></button>
|
||||
<input type="text" name="icon" class="am-radius js-choice-one original-images-url original-images-url-delete" data-choice-one-to=".images-file-event" <?php if(!empty($data)): ?>value="<?php echo ($data["images_url"]); ?>"<?php endif; ?>" data-validation-message="<?php echo L('common_select_images_tips');?>" readonly="readonly" />
|
||||
<i class="am-icon-trash-o am-icon-sm original-images-url-delete" data-input-tag=".original-images-url"></i>
|
||||
<input type="file" name="file_icon" multiple data-validation-message="<?php echo L('common_select_images_tips');?>" accept="image/gif,image/jpeg,image/jpg,image/png" class="js-choice-one images-file-event" data-choice-one-to=".original-images-url" data-tips-tag="#form-images_url-tips" data-image-tag="#form-img-images_url" />
|
||||
<div id="form-images_url-tips" class="m-t-5"></div>
|
||||
<img src="<?php if(!empty($data['images_url'])): echo ($image_host); echo ($data["images_url"]); else: echo ($image_host); ?>/Public/Admin/Default/Images/default-images.png<?php endif; ?>" id="form-img-images_url" class="block m-t-5 am-img-thumbnail am-radius" width="50" height="50" data-default="<?php if(!empty($data['images_url'])): echo ($image_host); echo ($data["images_url"]); else: echo ($image_host); ?>/Public/Admin/Default/Images/default-images.png<?php endif; ?>" />
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<label><?php echo L('common_name_text');?></label>
|
||||
<input type="text" placeholder="<?php echo L('common_name_text');?>" name="name" minlength="2" maxlength="16" data-validation-message="<?php echo L('common_name_format');?>" class="am-radius" required />
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<label><?php echo L('common_view_sort_title');?></label>
|
||||
<input type="number" placeholder="<?php echo L('common_view_sort_title');?>" name="sort" min="0" max="255" data-validation-message="<?php echo L('common_sort_error');?>" class="am-radius" value="0" required />
|
||||
</div>
|
||||
<!-- 是否启用 开始 -->
|
||||
<div class="am-form-group">
|
||||
<label><?php echo L('common_view_enable_title');?></label>
|
||||
<div>
|
||||
<?php if(is_array($common_is_enable_list)): foreach($common_is_enable_list as $key=>$v): ?><label class="am-radio-inline m-r-10">
|
||||
<input type="radio" name="is_enable" value="<?php echo ($v["id"]); ?>" <?php if(isset($data['is_enable']) and $data['is_enable'] == $v['id']): ?>checked="checked"<?php else: if(!isset($data['is_enable']) and isset($v['checked']) and $v['checked'] == true): ?>checked="checked"<?php endif; endif; ?> data-am-ucheck /> <?php echo ($v["name"]); ?>
|
||||
</label><?php endforeach; endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 是否启用 结束 -->
|
||||
<div class="am-form-group">
|
||||
<input type="hidden" name="id" />
|
||||
<button type="submit" class="am-btn am-btn-primary am-radius btn-loading-example am-btn-sm w100" data-am-loading="{loadingText:'<?php echo L('common_form_loading_tips');?>'}"><?php echo L('common_operation_save');?></button>
|
||||
</div>
|
||||
</form>
|
||||
<!-- form end -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- save win end -->
|
||||
|
||||
<!-- list start -->
|
||||
<div id="tree" class="m-t-15">
|
||||
<div class="m-t-30 t-c">
|
||||
<img src="/project/shop/service/Public/Common/Images/loading.gif" />
|
||||
<p><?php echo L('common_form_loading_tips');?></p>
|
||||
</div>
|
||||
</div>
|
||||
<!-- list end -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- right content end -->
|
||||
|
||||
<!-- footer start -->
|
||||
<!-- commom html start -->
|
||||
<!-- delete html start -->
|
||||
<div class="am-modal am-modal-confirm" tabindex="-1" id="common-confirm-delete">
|
||||
<div class="am-modal-dialog am-radius">
|
||||
<div class="am-modal-bd"><?php echo L('common_delete_tips');?></div>
|
||||
<div class="am-modal-footer">
|
||||
<span class="am-modal-btn" data-am-modal-cancel><?php echo L('common_operation_cancel');?></span>
|
||||
<span class="am-modal-btn" data-am-modal-confirm><?php echo L('common_operation_confirm');?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- delete html end -->
|
||||
|
||||
<!-- delete html start -->
|
||||
<div class="am-modal am-modal-confirm" tabindex="-1" id="common-confirm-cancel">
|
||||
<div class="am-modal-dialog am-radius">
|
||||
<div class="am-modal-bd"><?php echo L('common_cancel_tips');?></div>
|
||||
<div class="am-modal-footer">
|
||||
<span class="am-modal-btn" data-am-modal-cancel><?php echo L('common_operation_cancel');?></span>
|
||||
<span class="am-modal-btn" data-am-modal-confirm><?php echo L('common_operation_confirm');?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- delete html end -->
|
||||
<!-- commom html end -->
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<!-- 类库 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/jquery/jquery-2.1.0.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/assets/js/amazeui.min.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/echarts/echarts.min.js"></script>
|
||||
|
||||
<!-- ueditor 编辑器 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/ueditor/ueditor.config.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/ueditor/ueditor.all.min.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/ueditor/lang/zh-cn/zh-cn.js"></script>
|
||||
|
||||
<!-- 颜色选择器 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/colorpicker/jquery.colorpicker.js"></script>
|
||||
|
||||
<!-- 元素拖拽排序插件 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/dragsort/jquery.dragsort-0.5.2.min.js"></script>
|
||||
|
||||
<!-- amazeui插件 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/amazeui-switch/amazeui.switch.min.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/amazeui-chosen/amazeui.chosen.min.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/amazeui-dialog/amazeui.dialog.min.js"></script>
|
||||
|
||||
<!-- 日期组件 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/My97DatePicker/WdatePicker.js"></script>
|
||||
|
||||
<!-- 项目公共 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Js/Common.js"></script>
|
||||
|
||||
<!-- 控制器 -->
|
||||
<?php if(!empty($module_js)): ?><script type="text/javascript" src="/project/shop/service/Public/<?php echo ($module_js); ?>"></script><?php endif; ?>
|
||||
<!-- footer end -->
|
||||
<script>
|
||||
Tree(0, "<?php echo U('Admin/Express/GetNodeSon');?>", 0);
|
||||
</script>
|
||||
|
|
@ -1,170 +0,0 @@
|
|||
<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="<?php echo C('DEFAULT_CHARSET');?>" />
|
||||
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1, maximum-scale=1">
|
||||
<title><?php echo L('common_site_title');?></title>
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Common/Lib/assets/css/amazeui.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Common/Lib/amazeui-switch/amazeui.switch.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Common/Lib/amazeui-chosen/amazeui.chosen.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Common/Css/Common.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Admin/<?php echo ($default_theme); ?>/Css/Common.css" />
|
||||
<?php if(!empty($module_css)): ?><link rel="stylesheet" type="text/css" href="/project/shop/service/Public/<?php echo ($module_css); ?>" /><?php endif; ?>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!-- right content start -->
|
||||
<div class="content-right">
|
||||
<div class="content">
|
||||
<!-- form start -->
|
||||
<form class="am-form view-list" action="<?php echo U('Admin/Slide/Index');?>" method="POST">
|
||||
<div class="am-g">
|
||||
<input type="text" class="am-radius form-keyword" placeholder="<?php echo L('slide_name_text');?>" name="keyword" <?php if(isset($param['keyword'])): ?>value="<?php echo ($param["keyword"]); ?>"<?php endif; ?> />
|
||||
<button type="submit" class="am-btn am-btn-secondary am-btn-sm am-radius form-submit"><?php echo L('common_operation_query');?></button>
|
||||
<label class="fs-12 m-l-5 c-p fw-100 more-submit">
|
||||
<?php echo L('common_more_screening');?>
|
||||
<input type="checkbox" name="is_more" value="1" id="is_more" <?php if(isset($param['is_more']) and $param['is_more'] == 1): ?>checked<?php endif; ?> />
|
||||
<i class="am-icon-angle-down"></i>
|
||||
</label>
|
||||
|
||||
<div class="more-where <?php if(!isset($param['is_more']) or $param['is_more'] != 1): ?>none<?php endif; ?>">
|
||||
<select name="is_enable" class="am-radius c-p m-t-10 m-l-5 param-where">
|
||||
<option value="-1"><?php echo L('common_view_enable_title');?></option>
|
||||
<?php if(is_array($common_is_enable_list)): foreach($common_is_enable_list as $key=>$v): ?><option value="<?php echo ($v["id"]); ?>" <?php if(isset($param['is_enable']) and $param['is_enable'] == $v['id']): ?>selected<?php endif; ?>><?php echo ($v["name"]); ?></option><?php endforeach; endif; ?>
|
||||
</select>
|
||||
<select name="platform" class="am-radius c-p m-t-10 m-l-5 param-where">
|
||||
<option value=""><?php echo L('common_platform_text');?></option>
|
||||
<?php if(is_array($common_platform_type)): foreach($common_platform_type as $key=>$v): ?><option value="<?php echo ($v["value"]); ?>" <?php if(isset($param['platform']) and $param['platform'] == $v['value']): ?>selected<?php endif; ?>><?php echo ($v["name"]); ?></option><?php endforeach; endif; ?>
|
||||
</select>
|
||||
<select name="jump_url_type" class="am-radius c-p m-t-10 m-l-5 param-where">
|
||||
<option value="-1"><?php echo L('common_jump_url_type_text');?></option>
|
||||
<?php if(is_array($common_jump_url_type)): foreach($common_jump_url_type as $key=>$v): ?><option value="<?php echo ($v["value"]); ?>" <?php if(isset($param['jump_url_type']) and $param['jump_url_type'] == $v['value']): ?>selected<?php endif; ?>><?php echo ($v["name"]); ?></option><?php endforeach; endif; ?>
|
||||
</select>
|
||||
<div class="param-date param-where m-l-5">
|
||||
<input type="text" name="time_start" class="Wdate am-radius m-t-10" placeholder="<?php echo L('common_time_start_name');?>" onclick="WdatePicker({firstDayOfWeek:1,dateFmt:'yyyy-MM-dd HH:mm:ss'})" <?php if(isset($param['time_start'])): ?>value="<?php echo ($param["time_start"]); ?>"<?php endif; ?>/>
|
||||
<span>~</span>
|
||||
<input type="text" class="Wdate am-radius m-t-10" placeholder="<?php echo L('common_time_end_name');?>" name="time_end" onclick="WdatePicker({firstDayOfWeek:1,dateFmt:'yyyy-MM-dd HH:mm:ss'})" <?php if(isset($param['time_end'])): ?>value="<?php echo ($param["time_end"]); ?>"<?php endif; ?>/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<!-- form end -->
|
||||
|
||||
<!-- operation start -->
|
||||
<div class="am-g m-t-15">
|
||||
<a href="<?php echo U('Admin/Slide/SaveInfo');?>" class="am-btn am-btn-secondary am-radius am-btn-xs am-icon-plus"> <?php echo L('common_operation_add');?></a>
|
||||
</div>
|
||||
<!-- operation end -->
|
||||
|
||||
<!-- list start -->
|
||||
<table class="am-table am-table-striped am-table-hover am-text-middle m-t-10">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><?php echo L('slide_name_text');?></th>
|
||||
<th><?php echo L('common_platform_text');?></th>
|
||||
<th><?php echo L('slide_images_url_text');?></th>
|
||||
<th><?php echo L('common_jump_url_text');?></th>
|
||||
<th><?php echo L('common_view_enable_title');?></th>
|
||||
<th><?php echo L('common_create_time_name');?></th>
|
||||
<th><?php echo L('common_operation_name');?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if(!empty($list)): if(is_array($list)): foreach($list as $key=>$v): ?><tr id="data-list-<?php echo ($v["id"]); ?>" <?php if($v['is_enable'] == 0): ?>class="am-active"<?php endif; ?>>
|
||||
<td><?php echo ($v["name"]); ?></td>
|
||||
<td><?php echo ($v["platform_text"]); ?></td>
|
||||
<td>
|
||||
<?php if(!empty($v['images_url'])): ?><a href="<?php echo ($v['images_url']); ?>" target="_blank">
|
||||
<img src="<?php echo ($v['images_url']); ?>" class="am-img-thumbnail am-radius" width="100" height="60" />
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<span class="cr-ddd"><?php echo L('common_on_fill_in_images');?></span><?php endif; ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo ($v["jump_url"]); ?>
|
||||
<?php if(!empty($v['jump_url'])): ?><br /><span class="am-badge am-badge-warning am-radius"><?php echo ($v["jump_url_type_text"]); ?></span><?php endif; ?>
|
||||
</td>
|
||||
<td class="am-hide-sm-only">
|
||||
<a href="javascript:;" class="am-icon-btn am-icon-check submit-state <?php if($v['is_enable'] == 1): ?>am-success<?php else: ?>am-default<?php endif; ?>" data-url="<?php echo U('Admin/Slide/StateUpdate');?>" data-id="<?php echo ($v["id"]); ?>" data-state="<?php echo ($v['is_enable']); ?>"></a>
|
||||
</td>
|
||||
<td><?php echo ($v["add_time_text"]); ?></td>
|
||||
<td class="view-operation">
|
||||
<a href="<?php echo U('Admin/Slide/SaveInfo', array('id'=>$v['id']));?>">
|
||||
<button class="am-btn am-btn-default am-btn-xs am-radius am-icon-edit"> <?php echo L('common_operation_edit');?></button>
|
||||
</a>
|
||||
<?php if($v['is_enable'] == 0): ?><button class="am-btn am-btn-default am-btn-xs am-radius am-icon-trash-o submit-delete" data-url="<?php echo U('Admin/Slide/Delete');?>" data-id="<?php echo ($v["id"]); ?>"> <?php echo L('common_operation_delete');?></button><?php endif; ?>
|
||||
</td>
|
||||
</tr><?php endforeach; endif; ?>
|
||||
<?php else: ?>
|
||||
<tr><td colspan="20" class="table-no"><?php echo L('common_not_data_tips');?></td></tr><?php endif; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<!-- list end -->
|
||||
|
||||
<!-- page start -->
|
||||
<?php if(!empty($list)): echo ($page_html); endif; ?>
|
||||
<!-- page end -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- right content end -->
|
||||
|
||||
<!-- footer start -->
|
||||
<!-- commom html start -->
|
||||
<!-- delete html start -->
|
||||
<div class="am-modal am-modal-confirm" tabindex="-1" id="common-confirm-delete">
|
||||
<div class="am-modal-dialog am-radius">
|
||||
<div class="am-modal-bd"><?php echo L('common_delete_tips');?></div>
|
||||
<div class="am-modal-footer">
|
||||
<span class="am-modal-btn" data-am-modal-cancel><?php echo L('common_operation_cancel');?></span>
|
||||
<span class="am-modal-btn" data-am-modal-confirm><?php echo L('common_operation_confirm');?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- delete html end -->
|
||||
|
||||
<!-- delete html start -->
|
||||
<div class="am-modal am-modal-confirm" tabindex="-1" id="common-confirm-cancel">
|
||||
<div class="am-modal-dialog am-radius">
|
||||
<div class="am-modal-bd"><?php echo L('common_cancel_tips');?></div>
|
||||
<div class="am-modal-footer">
|
||||
<span class="am-modal-btn" data-am-modal-cancel><?php echo L('common_operation_cancel');?></span>
|
||||
<span class="am-modal-btn" data-am-modal-confirm><?php echo L('common_operation_confirm');?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- delete html end -->
|
||||
<!-- commom html end -->
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<!-- 类库 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/jquery/jquery-2.1.0.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/assets/js/amazeui.min.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/echarts/echarts.min.js"></script>
|
||||
|
||||
<!-- ueditor 编辑器 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/ueditor/ueditor.config.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/ueditor/ueditor.all.min.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/ueditor/lang/zh-cn/zh-cn.js"></script>
|
||||
|
||||
<!-- 颜色选择器 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/colorpicker/jquery.colorpicker.js"></script>
|
||||
|
||||
<!-- 元素拖拽排序插件 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/dragsort/jquery.dragsort-0.5.2.min.js"></script>
|
||||
|
||||
<!-- amazeui插件 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/amazeui-switch/amazeui.switch.min.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/amazeui-chosen/amazeui.chosen.min.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/amazeui-dialog/amazeui.dialog.min.js"></script>
|
||||
|
||||
<!-- 日期组件 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/My97DatePicker/WdatePicker.js"></script>
|
||||
|
||||
<!-- 项目公共 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Js/Common.js"></script>
|
||||
|
||||
<!-- 控制器 -->
|
||||
<?php if(!empty($module_js)): ?><script type="text/javascript" src="/project/shop/service/Public/<?php echo ($module_js); ?>"></script><?php endif; ?>
|
||||
<!-- footer end -->
|
||||
|
|
@ -1,166 +0,0 @@
|
|||
<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="<?php echo C('DEFAULT_CHARSET');?>" />
|
||||
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1, maximum-scale=1">
|
||||
<title><?php echo L('common_site_title');?></title>
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Common/Lib/assets/css/amazeui.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Common/Lib/amazeui-switch/amazeui.switch.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Common/Lib/amazeui-chosen/amazeui.chosen.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Common/Css/Common.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Admin/<?php echo ($default_theme); ?>/Css/Common.css" />
|
||||
<?php if(!empty($module_css)): ?><link rel="stylesheet" type="text/css" href="/project/shop/service/Public/<?php echo ($module_css); ?>" /><?php endif; ?>
|
||||
</head>
|
||||
<body>
|
||||
<!-- nav start -->
|
||||
<header class="am-topbar am-topbar-inverse admin-header">
|
||||
<div class="am-topbar-brand">
|
||||
<a href="<?php echo U('Admin/Index/Index');?>">
|
||||
<h2><?php echo L('common_site_name');?><span class="admin-site-vice-name m-l-5"><?php echo L('common_site_vice_name');?></span></h2>
|
||||
</a>
|
||||
</div>
|
||||
<button class="am-topbar-btn am-topbar-toggle am-btn am-btn-sm am-btn-success am-show-sm-only am-radius header-nav-submit" data-am-collapse="{target: '#topbar-collapse'}">
|
||||
<span class="am-sr-only"><?php echo L('nav_switch_text');?></span>
|
||||
<i class="am-icon-bars"></i>
|
||||
</button>
|
||||
<div class="am-collapse am-topbar-collapse" id="topbar-collapse">
|
||||
<ul class="am-nav am-nav-pills am-topbar-nav am-topbar-right admin-header-list tpl-header-list">
|
||||
<!-- <li class="am-dropdown">
|
||||
<a href="<?php echo __MY_URL__;?>" target="_blank" class="tpl-header-list-link">
|
||||
<i class="am-icon-home"></i>
|
||||
<span><?php echo L('common_toview_home_text');?></span>
|
||||
</a>
|
||||
</li> -->
|
||||
|
||||
<?php if(!IsMobile()): ?><li class="am-dropdown am-hide-sm-only">
|
||||
<a href="javascript:;" id="admin-fullscreen" class="tpl-header-list-link">
|
||||
<i class="am-icon-arrows-alt"></i>
|
||||
<span class="admin-fulltext" fulltext-open="<?php echo L('nav_fulltext_open');?>" fulltext-exit="<?php echo L('nav_fulltext_exit');?>"><?php echo L('nav_fulltext_open');?></span>
|
||||
</a>
|
||||
</li><?php endif; ?>
|
||||
<li class="am-dropdown common-nav-top" data-am-dropdown data-am-dropdown-toggle>
|
||||
<a class="am-dropdown-toggle tpl-header-list-link" href="javascript:;">
|
||||
<i class="am-icon-user"></i>
|
||||
<span class="tpl-header-list-user-nick"><?php echo ($admin["username"]); ?></span>
|
||||
<span class="tpl-header-list-user-ico">
|
||||
</span>
|
||||
</a>
|
||||
<ul class="am-dropdown-content">
|
||||
<li>
|
||||
<a href="javascript:;" data-type="nav" data-url="<?php echo U('Admin/Admin/SaveInfo', array('id'=>$admin['id']));?>">
|
||||
<i class="am-icon-cog"></i>
|
||||
<?php echo L('common_set_up_the_text');?>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="<?php echo U('Admin/Admin/Logout');?>">
|
||||
<i class="am-icon-power-off"></i>
|
||||
<?php echo L('common_logout_text');?>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</header>
|
||||
<!-- nav end -->
|
||||
|
||||
<!-- content start -->
|
||||
<div class="admin">
|
||||
<!-- left menu start -->
|
||||
<div class="admin-sidebar am-offcanvas am-padding-0" id="admin-offcanvas">
|
||||
<div class="am-offcanvas-bar admin-offcanvas-bar">
|
||||
<ul class="am-list admin-sidebar-list common-left-menu">
|
||||
<li>
|
||||
<a href="javascript:;" data-type="menu" data-url="<?php echo U('Admin/Index/Init');?>" class="common-left-menu-active"><span class="am-icon-home"></span> <?php echo L('common_home_text');?></a>
|
||||
</li>
|
||||
<?php if(is_array($left_menu)): foreach($left_menu as $key=>$v): if(empty($v['item'])): ?><li>
|
||||
<a href="javascript:;" data-type="menu" data-url="<?php echo U('Admin/'.$v['control'].'/'.$v['action']);?>"><?php if(!empty($v['icon'])): ?><span class="<?php echo ($v["icon"]); ?>"></span><?php endif; ?> <?php echo ($v["name"]); ?></a>
|
||||
</li>
|
||||
<?php else: ?>
|
||||
<li class="admin-parent">
|
||||
<a data-type="menu" class="am-cf" data-am-collapse="{target: '#power-menu-<?php echo ($v["id"]); ?>'}">
|
||||
<?php if(!empty($v['icon'])): ?><span class="<?php echo ($v["icon"]); ?>"></span><?php endif; ?> <?php echo ($v["name"]); ?>
|
||||
<i class="am-icon-angle-down am-fr am-margin-right left-menu-more-ico-rotate"></i>
|
||||
</a>
|
||||
<ul class="am-list am-collapse admin-sidebar-sub" id="power-menu-<?php echo ($v["id"]); ?>">
|
||||
<?php if(is_array($v["item"])): foreach($v["item"] as $key=>$vs): ?><li>
|
||||
<a href="javascript:;" data-type="menu" data-url="<?php echo U('Admin/'.$vs['control'].'/'.$vs['action']);?>"><?php if(!empty($vs['icon'])): ?><span class="<?php echo ($vs["icon"]); ?>"></span><?php endif; ?> <?php echo ($vs["name"]); ?></a>
|
||||
</li><?php endforeach; endif; ?>
|
||||
</ul>
|
||||
</li><?php endif; endforeach; endif; ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!-- left menu end -->
|
||||
|
||||
<!-- right content start -->
|
||||
<iframe id="ifcontent" src="<?php echo U('Admin/Index/Init');?>"></iframe>
|
||||
<!-- right content end -->
|
||||
</div>
|
||||
<!-- content end -->
|
||||
|
||||
<!-- navbar start -->
|
||||
<a href="javascript:;" class="am-icon-btn am-icon-th-list am-show-sm-only common-nav-bar" data-am-offcanvas="{target: '#admin-offcanvas'}"></a>
|
||||
<!-- navbar end -->
|
||||
|
||||
<!-- footer start -->
|
||||
<!-- commom html start -->
|
||||
<!-- delete html start -->
|
||||
<div class="am-modal am-modal-confirm" tabindex="-1" id="common-confirm-delete">
|
||||
<div class="am-modal-dialog am-radius">
|
||||
<div class="am-modal-bd"><?php echo L('common_delete_tips');?></div>
|
||||
<div class="am-modal-footer">
|
||||
<span class="am-modal-btn" data-am-modal-cancel><?php echo L('common_operation_cancel');?></span>
|
||||
<span class="am-modal-btn" data-am-modal-confirm><?php echo L('common_operation_confirm');?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- delete html end -->
|
||||
|
||||
<!-- delete html start -->
|
||||
<div class="am-modal am-modal-confirm" tabindex="-1" id="common-confirm-cancel">
|
||||
<div class="am-modal-dialog am-radius">
|
||||
<div class="am-modal-bd"><?php echo L('common_cancel_tips');?></div>
|
||||
<div class="am-modal-footer">
|
||||
<span class="am-modal-btn" data-am-modal-cancel><?php echo L('common_operation_cancel');?></span>
|
||||
<span class="am-modal-btn" data-am-modal-confirm><?php echo L('common_operation_confirm');?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- delete html end -->
|
||||
<!-- commom html end -->
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<!-- 类库 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/jquery/jquery-2.1.0.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/assets/js/amazeui.min.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/echarts/echarts.min.js"></script>
|
||||
|
||||
<!-- ueditor 编辑器 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/ueditor/ueditor.config.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/ueditor/ueditor.all.min.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/ueditor/lang/zh-cn/zh-cn.js"></script>
|
||||
|
||||
<!-- 颜色选择器 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/colorpicker/jquery.colorpicker.js"></script>
|
||||
|
||||
<!-- 元素拖拽排序插件 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/dragsort/jquery.dragsort-0.5.2.min.js"></script>
|
||||
|
||||
<!-- amazeui插件 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/amazeui-switch/amazeui.switch.min.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/amazeui-chosen/amazeui.chosen.min.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/amazeui-dialog/amazeui.dialog.min.js"></script>
|
||||
|
||||
<!-- 日期组件 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/My97DatePicker/WdatePicker.js"></script>
|
||||
|
||||
<!-- 项目公共 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Js/Common.js"></script>
|
||||
|
||||
<!-- 控制器 -->
|
||||
<?php if(!empty($module_js)): ?><script type="text/javascript" src="/project/shop/service/Public/<?php echo ($module_js); ?>"></script><?php endif; ?>
|
||||
<!-- footer end -->
|
||||
|
|
@ -1,222 +0,0 @@
|
|||
<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="<?php echo C('DEFAULT_CHARSET');?>" />
|
||||
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1, maximum-scale=1">
|
||||
<title><?php echo L('common_site_title');?></title>
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Common/Lib/assets/css/amazeui.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Common/Lib/amazeui-switch/amazeui.switch.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Common/Lib/amazeui-chosen/amazeui.chosen.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Common/Css/Common.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Admin/<?php echo ($default_theme); ?>/Css/Common.css" />
|
||||
<?php if(!empty($module_css)): ?><link rel="stylesheet" type="text/css" href="/project/shop/service/Public/<?php echo ($module_css); ?>" /><?php endif; ?>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!-- right content start -->
|
||||
<div class="content-right">
|
||||
<div class="content">
|
||||
<!-- form start -->
|
||||
<form class="am-form view-list" action="<?php echo U('Admin/Goods/Index');?>" method="POST">
|
||||
<div class="am-g">
|
||||
<input type="text" class="am-radius form-keyword" placeholder="<?php echo L('goods_so_keyword_tips');?>" name="keyword" <?php if(isset($param['keyword'])): ?>value="<?php echo ($param["keyword"]); ?>"<?php endif; ?> />
|
||||
<button type="submit" class="am-btn am-btn-secondary am-btn-sm am-radius form-submit"><?php echo L('common_operation_query');?></button>
|
||||
<label class="fs-12 m-l-5 c-p fw-100 more-submit">
|
||||
<?php echo L('common_more_screening');?>
|
||||
<input type="checkbox" name="is_more" value="1" id="is_more" <?php if(isset($param['is_more']) and $param['is_more'] == 1): ?>checked<?php endif; ?> />
|
||||
<i class="am-icon-angle-down"></i>
|
||||
</label>
|
||||
|
||||
<div class="more-where <?php if(!isset($param['is_more']) or $param['is_more'] != 1): ?>none<?php endif; ?>">
|
||||
<select name="is_shelves" class="am-radius c-p m-t-10 m-l-5 param-where">
|
||||
<option value="-1"><?php echo L('goods_is_shelves_text');?></option>
|
||||
<?php if(is_array($common_goods_is_shelves_list)): foreach($common_goods_is_shelves_list as $key=>$v): ?><option value="<?php echo ($v["id"]); ?>" <?php if(isset($param['is_shelves']) and $param['is_shelves'] == $v['id']): ?>selected<?php endif; ?>><?php echo ($v["name"]); ?></option><?php endforeach; endif; ?>
|
||||
</select>
|
||||
<div class="param-date param-where m-l-5">
|
||||
<input type="text" name="time_start" class="Wdate am-radius m-t-10" placeholder="<?php echo L('common_time_start_name');?>" onclick="WdatePicker({firstDayOfWeek:1,dateFmt:'yyyy-MM-dd HH:mm:ss'})" <?php if(isset($param['time_start'])): ?>value="<?php echo ($param["time_start"]); ?>"<?php endif; ?>/>
|
||||
<span>~</span>
|
||||
<input type="text" class="Wdate am-radius m-t-10" placeholder="<?php echo L('common_time_end_name');?>" name="time_end" onclick="WdatePicker({firstDayOfWeek:1,dateFmt:'yyyy-MM-dd HH:mm:ss'})" <?php if(isset($param['time_end'])): ?>value="<?php echo ($param["time_end"]); ?>"<?php endif; ?>/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<!-- form end -->
|
||||
|
||||
<!-- operation start -->
|
||||
<div class="am-g m-t-15">
|
||||
<a href="<?php echo U('Admin/Goods/SaveInfo');?>" class="am-btn am-btn-secondary am-radius am-btn-xs am-icon-plus"> <?php echo L('common_operation_add');?></a>
|
||||
</div>
|
||||
<!-- operation end -->
|
||||
|
||||
<!-- list start -->
|
||||
<table class="am-table am-table-striped am-table-hover am-text-middle m-t-10">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><?php echo L('goods_title_text');?></th>
|
||||
<th><?php echo L('goods_price_text');?></th>
|
||||
<th><?php echo L('goods_is_shelves_text');?></th>
|
||||
<th class="am-hide-sm-only"><?php echo L('goods_inventory_text');?></th>
|
||||
<th class="am-hide-sm-only"><?php echo L('goods_model_text');?></th>
|
||||
<th class="am-hide-sm-only"><?php echo L('common_create_time_name');?></th>
|
||||
<th><?php echo L('common_more_name');?></th>
|
||||
<th><?php echo L('common_operation_name');?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if(!empty($list)): if(is_array($list)): foreach($list as $key=>$v): ?><tr id="data-list-<?php echo ($v["id"]); ?>" <?php if($v['is_shelves'] == 0): ?>class="am-active"<?php endif; ?>>
|
||||
<td>
|
||||
<a href="javascript:;" target="_blank" title="<?php echo ($v["title"]); ?>">
|
||||
<img src="<?php echo ($image_host); echo ($v['images']); ?>" class="am-img-thumbnail am-radius goods-images am-hide-sm-only" />
|
||||
</a>
|
||||
<a href="javascript:;" target="_blank" title="<?php echo ($v["title"]); ?>" <?php if(!empty($v['title_color'])): ?>style="color:<?php echo ($v["title_color"]); ?>;"<?php endif; ?> ><?php echo ($v["title"]); ?></a>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo ($v["price"]); ?>
|
||||
<?php if(!empty($v['original_price']) and $v['original_price'] > 0): ?><br /><span class="am-badge am-radius"><?php echo L('goods_original_price_icon');?> <?php echo ($v["original_price"]); ?></span><?php endif; ?>
|
||||
</td>
|
||||
<td>
|
||||
<a href="javascript:;" class="am-icon-btn am-icon-check submit-state <?php if($v['is_shelves'] == 1): ?>am-success<?php else: ?>am-default<?php endif; ?>" data-url="<?php echo U('Admin/Goods/StatusUpdate');?>" data-id="<?php echo ($v["id"]); ?>" data-state="<?php echo ($v['is_shelves']); ?>"></a>
|
||||
</td>
|
||||
<td class="am-hide-sm-only"><?php echo ($v["inventory"]); ?> <?php echo ($v["inventory_unit"]); ?></td>
|
||||
<td class="am-hide-sm-only"><?php echo ($v["model"]); ?></td>
|
||||
<td class="am-hide-sm-only"><?php echo ($v["add_time"]); ?></td>
|
||||
<td>
|
||||
<span class="am-icon-caret-down c-p" data-am-modal="{target: '#my-popup<?php echo ($v["id"]); ?>'}"> <?php echo L('common_see_more_name');?></span>
|
||||
<div class="am-popup am-radius" id="my-popup<?php echo ($v["id"]); ?>">
|
||||
<div class="am-popup-inner">
|
||||
<div class="am-popup-hd">
|
||||
<h4 class="am-popup-title"><?php echo L('common_detail_content');?></h4>
|
||||
<span data-am-modal-close
|
||||
class="am-close">×</span>
|
||||
</div>
|
||||
<div class="am-popup-bd">
|
||||
<dl class="dl-content">
|
||||
<dt><?php echo L('goods_title_text');?></dt>
|
||||
<dd><?php echo ($v["title"]); ?></dd>
|
||||
|
||||
<dt><?php echo L('goods_price_text');?></dt>
|
||||
<dd>
|
||||
<?php echo ($v["price"]); ?>
|
||||
<?php if(!empty($v['original_price']) and $v['original_price'] > 0): ?><br /><span class="am-badge am-radius"><?php echo L('goods_original_price_icon');?> <?php echo ($v["original_price"]); ?></span><?php endif; ?>
|
||||
</dd>
|
||||
|
||||
<dt><?php echo L('goods_is_shelves_text');?></dt>
|
||||
<dd><?php echo L('common_goods_is_shelves_list')[$v['is_shelves']]['name'];?></dd>
|
||||
|
||||
<dt><?php echo L('goods_inventory_text');?></dt>
|
||||
<dd><?php echo ($v["inventory"]); ?> <?php echo ($v["inventory_unit"]); ?></dd>
|
||||
|
||||
<dt><?php echo L('goods_buy_min_number_text');?></dt>
|
||||
<dd><?php echo ($v["buy_min_number"]); ?> <?php echo ($v["inventory_unit"]); ?></dd>
|
||||
|
||||
<dt><?php echo L('goods_buy_max_number_text');?></dt>
|
||||
<dd><?php if($v['buy_max_number'] == 0): ?><span class="cr-ddd"><?php echo L('common_unlimited_text');?></span><?php else: echo ($v["buy_max_number"]); ?> <?php echo ($v["inventory_unit"]); endif; ?></dd>
|
||||
|
||||
<dt><?php echo L('goods_model_text');?></dt>
|
||||
<dd><?php echo ($v["model"]); ?></dd>
|
||||
|
||||
<dt><?php echo L('goods_place_origin_text');?></dt>
|
||||
<dd><?php echo ($v["place_origin_text"]); ?></dd>
|
||||
|
||||
<dt><?php echo L('goods_category_id_text');?></dt>
|
||||
<dd><?php echo ($v["category_text"]); ?></dd>
|
||||
|
||||
<dt><?php echo L('goods_give_integral_text');?></dt>
|
||||
<dd><?php echo ($v["give_integral"]); ?></dd>
|
||||
|
||||
<dt><?php echo L('goods_is_deduction_inventory_text');?></dt>
|
||||
<dd><?php echo L('common_is_text_list')[$v['is_deduction_inventory']]['name'];?></dd>
|
||||
|
||||
<dt><?php echo L('common_view_access_count_text');?></dt>
|
||||
<dd><?php echo ($v["access_count"]); ?></dd>
|
||||
|
||||
<dt><?php echo L('common_create_time_name');?></dt>
|
||||
<dd><?php echo ($v["add_time"]); ?></dd>
|
||||
|
||||
<dt><?php echo L('common_upd_time_name');?></dt>
|
||||
<dd><?php echo ($v["upd_time"]); ?></dd>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="view-operation">
|
||||
<a href="<?php echo U('Admin/Goods/SaveInfo', array('id'=>$v['id']));?>">
|
||||
<button class="am-btn am-btn-default am-btn-xs am-radius am-icon-edit"></button>
|
||||
</a>
|
||||
<button class="am-btn am-btn-default am-btn-xs am-radius am-icon-trash-o submit-delete" data-url="<?php echo U('Admin/Goods/Delete');?>" data-id="<?php echo ($v["id"]); ?>"></button>
|
||||
</td>
|
||||
</tr><?php endforeach; endif; ?>
|
||||
<?php else: ?>
|
||||
<tr><td colspan="10" class="table-no"><?php echo L('common_not_data_tips');?></td></tr><?php endif; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<!-- list end -->
|
||||
|
||||
<!-- page start -->
|
||||
<?php if(!empty($list)): echo ($page_html); endif; ?>
|
||||
<!-- page end -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- right content end -->
|
||||
|
||||
<!-- footer start -->
|
||||
<!-- commom html start -->
|
||||
<!-- delete html start -->
|
||||
<div class="am-modal am-modal-confirm" tabindex="-1" id="common-confirm-delete">
|
||||
<div class="am-modal-dialog am-radius">
|
||||
<div class="am-modal-bd"><?php echo L('common_delete_tips');?></div>
|
||||
<div class="am-modal-footer">
|
||||
<span class="am-modal-btn" data-am-modal-cancel><?php echo L('common_operation_cancel');?></span>
|
||||
<span class="am-modal-btn" data-am-modal-confirm><?php echo L('common_operation_confirm');?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- delete html end -->
|
||||
|
||||
<!-- delete html start -->
|
||||
<div class="am-modal am-modal-confirm" tabindex="-1" id="common-confirm-cancel">
|
||||
<div class="am-modal-dialog am-radius">
|
||||
<div class="am-modal-bd"><?php echo L('common_cancel_tips');?></div>
|
||||
<div class="am-modal-footer">
|
||||
<span class="am-modal-btn" data-am-modal-cancel><?php echo L('common_operation_cancel');?></span>
|
||||
<span class="am-modal-btn" data-am-modal-confirm><?php echo L('common_operation_confirm');?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- delete html end -->
|
||||
<!-- commom html end -->
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<!-- 类库 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/jquery/jquery-2.1.0.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/assets/js/amazeui.min.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/echarts/echarts.min.js"></script>
|
||||
|
||||
<!-- ueditor 编辑器 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/ueditor/ueditor.config.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/ueditor/ueditor.all.min.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/ueditor/lang/zh-cn/zh-cn.js"></script>
|
||||
|
||||
<!-- 颜色选择器 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/colorpicker/jquery.colorpicker.js"></script>
|
||||
|
||||
<!-- 元素拖拽排序插件 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/dragsort/jquery.dragsort-0.5.2.min.js"></script>
|
||||
|
||||
<!-- amazeui插件 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/amazeui-switch/amazeui.switch.min.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/amazeui-chosen/amazeui.chosen.min.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/amazeui-dialog/amazeui.dialog.min.js"></script>
|
||||
|
||||
<!-- 日期组件 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/My97DatePicker/WdatePicker.js"></script>
|
||||
|
||||
<!-- 项目公共 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Js/Common.js"></script>
|
||||
|
||||
<!-- 控制器 -->
|
||||
<?php if(!empty($module_js)): ?><script type="text/javascript" src="/project/shop/service/Public/<?php echo ($module_js); ?>"></script><?php endif; ?>
|
||||
<!-- footer end -->
|
||||
|
|
@ -1,106 +0,0 @@
|
|||
<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="<?php echo C('DEFAULT_CHARSET');?>" />
|
||||
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1, maximum-scale=1">
|
||||
<title><?php echo L('common_site_title');?></title>
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Common/Lib/assets/css/amazeui.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Common/Lib/amazeui-switch/amazeui.switch.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Common/Lib/amazeui-chosen/amazeui.chosen.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Common/Css/Common.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Admin/<?php echo ($default_theme); ?>/Css/Common.css" />
|
||||
<?php if(!empty($module_css)): ?><link rel="stylesheet" type="text/css" href="/project/shop/service/Public/<?php echo ($module_css); ?>" /><?php endif; ?>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!-- content start -->
|
||||
<div class="account-pages">
|
||||
<div class="wrapper-page">
|
||||
<div class="text-center">
|
||||
<span class="logo fw-700"><?php echo L('common_site_name');?></span>
|
||||
</div>
|
||||
<div class="m-t-40 card-box">
|
||||
<div class="panel-body">
|
||||
<form class="am-form form-validation" action="<?php echo U('Admin/Admin/Login');?>" method="POST" request-type="ajax-url" request-value="<?php echo U('Admin/Index/Index');?>">
|
||||
<div class="am-g">
|
||||
<div class="am-form-group">
|
||||
<input type="text" placeholder="<?php echo L('login_username_text');?>" name="username" pattern="<?php echo L('common_regex_username');?>" data-validation-message="<?php echo L('login_username_format');?>" class="am-radius" required />
|
||||
</div>
|
||||
<div class="am-form-group form-horizontal m-t-20">
|
||||
<input type="password" placeholder="<?php echo L('login_login_pwd_text');?>" name="login_pwd" pattern="<?php echo L('common_regex_pwd');?>" data-validation-message="<?php echo L('login_login_pwd_format');?>" class="am-radius" required />
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<button type="submit" class="am-btn am-btn-primary am-radius btn-loading-example am-btn-sm w100" data-am-loading="{loadingText:'<?php echo L('common_login_loading_tips');?>'}"><?php echo L('login_button_text');?></button>
|
||||
</div>
|
||||
|
||||
<div class="am-form-group">
|
||||
<a href="javascript:;" class="text-muted" data-am-popover="{theme: 'danger sm', content: '<?php echo L('login_forgot_pwd_tips');?>', trigger: 'hover focus'}"><?php echo L('login_forgot_pwd_text');?></a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- content end -->
|
||||
|
||||
<!-- footer start -->
|
||||
<!-- commom html start -->
|
||||
<!-- delete html start -->
|
||||
<div class="am-modal am-modal-confirm" tabindex="-1" id="common-confirm-delete">
|
||||
<div class="am-modal-dialog am-radius">
|
||||
<div class="am-modal-bd"><?php echo L('common_delete_tips');?></div>
|
||||
<div class="am-modal-footer">
|
||||
<span class="am-modal-btn" data-am-modal-cancel><?php echo L('common_operation_cancel');?></span>
|
||||
<span class="am-modal-btn" data-am-modal-confirm><?php echo L('common_operation_confirm');?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- delete html end -->
|
||||
|
||||
<!-- delete html start -->
|
||||
<div class="am-modal am-modal-confirm" tabindex="-1" id="common-confirm-cancel">
|
||||
<div class="am-modal-dialog am-radius">
|
||||
<div class="am-modal-bd"><?php echo L('common_cancel_tips');?></div>
|
||||
<div class="am-modal-footer">
|
||||
<span class="am-modal-btn" data-am-modal-cancel><?php echo L('common_operation_cancel');?></span>
|
||||
<span class="am-modal-btn" data-am-modal-confirm><?php echo L('common_operation_confirm');?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- delete html end -->
|
||||
<!-- commom html end -->
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<!-- 类库 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/jquery/jquery-2.1.0.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/assets/js/amazeui.min.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/echarts/echarts.min.js"></script>
|
||||
|
||||
<!-- ueditor 编辑器 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/ueditor/ueditor.config.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/ueditor/ueditor.all.min.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/ueditor/lang/zh-cn/zh-cn.js"></script>
|
||||
|
||||
<!-- 颜色选择器 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/colorpicker/jquery.colorpicker.js"></script>
|
||||
|
||||
<!-- 元素拖拽排序插件 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/dragsort/jquery.dragsort-0.5.2.min.js"></script>
|
||||
|
||||
<!-- amazeui插件 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/amazeui-switch/amazeui.switch.min.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/amazeui-chosen/amazeui.chosen.min.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/amazeui-dialog/amazeui.dialog.min.js"></script>
|
||||
|
||||
<!-- 日期组件 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/My97DatePicker/WdatePicker.js"></script>
|
||||
|
||||
<!-- 项目公共 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Js/Common.js"></script>
|
||||
|
||||
<!-- 控制器 -->
|
||||
<?php if(!empty($module_js)): ?><script type="text/javascript" src="/project/shop/service/Public/<?php echo ($module_js); ?>"></script><?php endif; ?>
|
||||
<!-- footer end -->
|
||||
|
|
@ -1,102 +0,0 @@
|
|||
<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="<?php echo C('DEFAULT_CHARSET');?>" />
|
||||
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1, maximum-scale=1">
|
||||
<title><?php echo L('common_site_title');?></title>
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Common/Lib/assets/css/amazeui.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Common/Lib/amazeui-switch/amazeui.switch.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Common/Lib/amazeui-chosen/amazeui.chosen.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Common/Css/Common.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Admin/<?php echo ($default_theme); ?>/Css/Common.css" />
|
||||
<?php if(!empty($module_css)): ?><link rel="stylesheet" type="text/css" href="/project/shop/service/Public/<?php echo ($module_css); ?>" /><?php endif; ?>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!-- right content start -->
|
||||
<div class="content-right">
|
||||
<div class="content">
|
||||
<p class="fw-700 list-title"><?php echo L('os_view_title');?></p>
|
||||
<dl class="dl-content">
|
||||
<dt><?php echo L('ver_name');?></dt>
|
||||
<dd><?php echo ($data["ver"]); ?></dd>
|
||||
|
||||
<dt><?php echo L('os_ver_name');?></dt>
|
||||
<dd><?php echo ($data["os_ver"]); ?></dd>
|
||||
|
||||
<dt><?php echo L('php_ver_name');?></dt>
|
||||
<dd><?php echo ($data["php_ver"]); ?></dd>
|
||||
|
||||
<dt><?php echo L('mysql_ver_name');?></dt>
|
||||
<dd><?php echo ($data["mysql_ver"]); ?></dd>
|
||||
|
||||
<dt><?php echo L('server_ver_name');?></dt>
|
||||
<dd><?php echo ($data["server_ver"]); ?></dd>
|
||||
|
||||
<dt><?php echo L('host_name');?></dt>
|
||||
<dd><?php echo ($data["host"]); ?></dd>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
<!-- right content end -->
|
||||
|
||||
<!-- footer start -->
|
||||
<!-- commom html start -->
|
||||
<!-- delete html start -->
|
||||
<div class="am-modal am-modal-confirm" tabindex="-1" id="common-confirm-delete">
|
||||
<div class="am-modal-dialog am-radius">
|
||||
<div class="am-modal-bd"><?php echo L('common_delete_tips');?></div>
|
||||
<div class="am-modal-footer">
|
||||
<span class="am-modal-btn" data-am-modal-cancel><?php echo L('common_operation_cancel');?></span>
|
||||
<span class="am-modal-btn" data-am-modal-confirm><?php echo L('common_operation_confirm');?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- delete html end -->
|
||||
|
||||
<!-- delete html start -->
|
||||
<div class="am-modal am-modal-confirm" tabindex="-1" id="common-confirm-cancel">
|
||||
<div class="am-modal-dialog am-radius">
|
||||
<div class="am-modal-bd"><?php echo L('common_cancel_tips');?></div>
|
||||
<div class="am-modal-footer">
|
||||
<span class="am-modal-btn" data-am-modal-cancel><?php echo L('common_operation_cancel');?></span>
|
||||
<span class="am-modal-btn" data-am-modal-confirm><?php echo L('common_operation_confirm');?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- delete html end -->
|
||||
<!-- commom html end -->
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<!-- 类库 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/jquery/jquery-2.1.0.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/assets/js/amazeui.min.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/echarts/echarts.min.js"></script>
|
||||
|
||||
<!-- ueditor 编辑器 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/ueditor/ueditor.config.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/ueditor/ueditor.all.min.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/ueditor/lang/zh-cn/zh-cn.js"></script>
|
||||
|
||||
<!-- 颜色选择器 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/colorpicker/jquery.colorpicker.js"></script>
|
||||
|
||||
<!-- 元素拖拽排序插件 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/dragsort/jquery.dragsort-0.5.2.min.js"></script>
|
||||
|
||||
<!-- amazeui插件 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/amazeui-switch/amazeui.switch.min.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/amazeui-chosen/amazeui.chosen.min.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/amazeui-dialog/amazeui.dialog.min.js"></script>
|
||||
|
||||
<!-- 日期组件 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/My97DatePicker/WdatePicker.js"></script>
|
||||
|
||||
<!-- 项目公共 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Js/Common.js"></script>
|
||||
|
||||
<!-- 控制器 -->
|
||||
<?php if(!empty($module_js)): ?><script type="text/javascript" src="/project/shop/service/Public/<?php echo ($module_js); ?>"></script><?php endif; ?>
|
||||
<!-- footer end -->
|
||||
|
|
@ -1,228 +0,0 @@
|
|||
<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="<?php echo C('DEFAULT_CHARSET');?>" />
|
||||
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1, maximum-scale=1">
|
||||
<title><?php echo L('common_site_title');?></title>
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Common/Lib/assets/css/amazeui.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Common/Lib/amazeui-switch/amazeui.switch.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Common/Lib/amazeui-chosen/amazeui.chosen.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Common/Css/Common.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Admin/<?php echo ($default_theme); ?>/Css/Common.css" />
|
||||
<?php if(!empty($module_css)): ?><link rel="stylesheet" type="text/css" href="/project/shop/service/Public/<?php echo ($module_css); ?>" /><?php endif; ?>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!-- right content start -->
|
||||
<div class="content-right">
|
||||
<div class="content">
|
||||
<!-- form start -->
|
||||
<form class="am-form view-list" action="<?php echo U('Admin/SendOrder/Index');?>" method="POST">
|
||||
<div class="am-g">
|
||||
<input type="hidden" name="organization_id" <?php if(isset($param['organization_id'])): ?>value="<?php echo ($param["organization_id"]); ?>"<?php endif; ?> />
|
||||
<input type="text" class="am-radius form-keyword" placeholder="<?php echo L('sendorder_so_keyword_tips');?>" name="keyword" <?php if(isset($param['keyword'])): ?>value="<?php echo ($param["keyword"]); ?>"<?php endif; ?> />
|
||||
<button type="submit" class="am-btn am-btn-secondary am-btn-sm am-radius form-submit"><?php echo L('common_operation_query');?></button>
|
||||
<label class="fs-12 m-l-5 c-p fw-100 more-submit">
|
||||
<?php echo L('common_more_screening');?>
|
||||
<input type="checkbox" name="is_more" value="1" id="is_more" <?php if(isset($param['is_more']) and $param['is_more'] == 1): ?>checked<?php endif; ?> />
|
||||
<i class="am-icon-angle-down"></i>
|
||||
</label>
|
||||
|
||||
<div class="more-where <?php if(!isset($param['is_more']) or $param['is_more'] != 1): ?>none<?php endif; ?>">
|
||||
<select name="status" class="am-radius c-p m-t-10 m-l-5 param-where">
|
||||
<option value="-1"><?php echo L('sendorder_status_text');?></option>
|
||||
<?php if(is_array($common_sendorder_admin_status)): foreach($common_sendorder_admin_status as $key=>$v): ?><option value="<?php echo ($v["id"]); ?>" <?php if(isset($param['status']) and $param['status'] == $v['id']): ?>selected<?php endif; ?>><?php echo ($v["name"]); ?></option><?php endforeach; endif; ?>
|
||||
</select>
|
||||
<select name="express_id" class="am-radius c-p m-t-10 m-l-5 param-where">
|
||||
<option value="-1"><?php echo L('sendorder_express_name_text');?></option>
|
||||
<?php if(is_array($express_list)): foreach($express_list as $key=>$v): ?><option value="<?php echo ($v["id"]); ?>" <?php if(isset($param['express_id']) and $param['express_id'] == $v['id']): ?>selected<?php endif; ?>><?php echo ($v["name"]); ?></option><?php endforeach; endif; ?>
|
||||
</select>
|
||||
<select name="goods_id" class="am-radius c-p m-t-10 m-l-5 param-where">
|
||||
<option value="-1"><?php echo L('sendorder_goods_name_text');?></option>
|
||||
<?php if(is_array($goods_list)): foreach($goods_list as $key=>$v): ?><option value="<?php echo ($v["id"]); ?>" <?php if(isset($param['goods_id']) and $param['goods_id'] == $v['id']): ?>selected<?php endif; ?>><?php echo ($v["name"]); ?></option><?php endforeach; endif; ?>
|
||||
</select>
|
||||
<div class="param-date param-where m-l-5">
|
||||
<input type="text" name="time_start" class="Wdate am-radius m-t-10" placeholder="<?php echo L('common_time_start_name');?>" onclick="WdatePicker({firstDayOfWeek:1,dateFmt:'yyyy-MM-dd HH:mm:ss'})" <?php if(isset($param['time_start'])): ?>value="<?php echo ($param["time_start"]); ?>"<?php endif; ?>/>
|
||||
<span>~</span>
|
||||
<input type="text" class="Wdate am-radius m-t-10" placeholder="<?php echo L('common_time_end_name');?>" name="time_end" onclick="WdatePicker({firstDayOfWeek:1,dateFmt:'yyyy-MM-dd HH:mm:ss'})" <?php if(isset($param['time_end'])): ?>value="<?php echo ($param["time_end"]); ?>"<?php endif; ?>/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<!-- form end -->
|
||||
|
||||
<!-- list start -->
|
||||
<table class="am-table am-table-striped am-table-hover am-text-middle m-t-10 m-l-5">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="am-hide-sm-only"><?php echo L('sendorder_merchant_name_text');?></th>
|
||||
<th class="am-hide-sm-only"><?php echo L('sendorder_sender_text');?></th>
|
||||
<th><?php echo L('sendorder_receive_text');?></th>
|
||||
<th class="am-hide-sm-only"><?php echo L('sendorder_express_text');?></th>
|
||||
<th class="am-hide-sm-only"><?php echo L('sendorder_goods_name_text');?></th>
|
||||
<th><?php echo L('sendorder_status_text');?></th>
|
||||
<th><?php echo L('sendorder_price_text');?></th>
|
||||
<th><?php echo L('common_more_name');?></th>
|
||||
<th><?php echo L('common_operation_name');?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if(!empty($list)): if(is_array($list)): foreach($list as $key=>$v): ?><tr id="data-list-<?php echo ($v["id"]); ?>">
|
||||
<td class="am-hide-sm-only"><?php echo ($v["merchant_name"]); ?></td>
|
||||
<td class="am-hide-sm-only">
|
||||
<?php echo ($v["sender_name"]); ?><br />
|
||||
<?php echo ($v["sender_tel"]); ?><br />
|
||||
<?php echo ($v["sender_address"]); ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo ($v["receive_name"]); ?><br />
|
||||
<?php echo ($v["receive_tel"]); ?><br />
|
||||
<?php echo ($v["receive_address"]); ?>
|
||||
</td>
|
||||
<td class="am-hide-sm-only">
|
||||
<?php if(empty($v['express_name'])): ?><span class="cr-ddd"><?php echo L('common_on_fill_in_the_text');?></span>
|
||||
<?php else: ?>
|
||||
<?php echo ($v["express_name"]); ?><br /><?php echo ($v["express_number"]); endif; ?>
|
||||
</td>
|
||||
<td class="am-hide-sm-only"><?php echo ($v["goods_name"]); ?></td>
|
||||
<td><?php echo ($v["status_text"]); ?></td>
|
||||
<td>
|
||||
<?php if($v['price'] <= 0.00): ?><span class="cr-ddd"><?php echo L('common_on_fill_in_the_text');?></span><?php else: echo ($v["price"]); endif; ?>
|
||||
</td>
|
||||
<td>
|
||||
<span class="am-icon-caret-down c-p" data-am-modal="{target: '#my-popup<?php echo ($v["id"]); ?>'}"> <?php echo L('common_see_more_name');?></span>
|
||||
<div class="am-popup am-radius" id="my-popup<?php echo ($v["id"]); ?>">
|
||||
<div class="am-popup-inner">
|
||||
<div class="am-popup-hd">
|
||||
<h4 class="am-popup-title"><?php echo L('common_detail_content');?></h4>
|
||||
<span data-am-modal-close class="am-close">×</span>
|
||||
</div>
|
||||
<div class="am-popup-bd">
|
||||
<dl class="dl-content">
|
||||
<dt><?php echo L('sendorder_merchant_name_text');?></dt>
|
||||
<dd><?php if(empty($v['merchant_name'])): ?><span class="cr-ddd"><?php echo L('common_on_fill_in_the_text');?></span><?php else: echo ($v["merchant_name"]); endif; ?></dd>
|
||||
|
||||
<dt><?php echo L('sendorder_sender_text');?></dt>
|
||||
<dd><?php if(empty($v['sender_address'])): ?><span class="cr-ddd"><?php echo L('common_on_fill_in_the_text');?></span><?php else: echo ($v["sender_name"]); ?><br /><?php echo ($v["sender_tel"]); ?><br /><?php echo ($v["sender_address"]); endif; ?></dd>
|
||||
|
||||
<dt><?php echo L('sendorder_receive_text');?></dt>
|
||||
<dd><?php if(empty($v['receive_address'])): ?><span class="cr-ddd"><?php echo L('common_on_fill_in_the_text');?></span><?php else: echo ($v["receive_name"]); ?><br /><?php echo ($v["receive_tel"]); ?><br /><?php echo ($v["receive_address"]); endif; ?></dd>
|
||||
|
||||
<dt><?php echo L('sendorder_express_text');?></dt>
|
||||
<dd><?php if(empty($v['express_name'])): ?><span class="cr-ddd"><?php echo L('common_on_fill_in_the_text');?></span><?php else: echo ($v["express_name"]); ?><br /><?php echo ($v["express_number"]); endif; ?></dd>
|
||||
|
||||
<dt><?php echo L('sendorder_goods_name_text');?></dt>
|
||||
<dd><?php if(empty($v['goods_name'])): ?><span class="cr-ddd"><?php echo L('common_on_fill_in_the_text');?></span><?php else: echo ($v["goods_name"]); endif; ?></dd>
|
||||
|
||||
<dt><?php echo L('sendorder_user_note_text');?></dt>
|
||||
<dd><?php if(empty($v['user_note'])): ?><span class="cr-ddd"><?php echo L('common_on_fill_in_the_text');?></span><?php else: echo ($v["user_note"]); endif; ?></dd>
|
||||
|
||||
<dt><?php echo L('sendorder_price_text');?></dt>
|
||||
<dd><?php if(empty($v['price'])): ?><span class="cr-ddd"><?php echo L('common_on_fill_in_the_text');?></span><?php else: echo ($v["price"]); endif; ?></dd>
|
||||
|
||||
<dt><?php echo L('sendorder_status_text');?></dt>
|
||||
<dd><?php if(empty($v['status_text'])): ?><span class="cr-ddd"><?php echo L('common_not_set_text');?></span><?php else: echo ($v["status_text"]); endif; ?></dd>
|
||||
|
||||
<dt><?php echo L('sendorder_sender_time_text');?></dt>
|
||||
<dd><?php if(empty($v['sender_time'])): ?><span class="cr-ddd"><?php echo L('common_on_fill_in_the_text');?></span><?php else: echo ($v["sender_time"]); endif; ?></dd>
|
||||
|
||||
<dt><?php echo L('sendorder_booking_time_text');?></dt>
|
||||
<dd><?php if(empty($v['booking_time'])): ?><span class="cr-ddd"><?php echo L('common_on_fill_in_the_text');?></span><?php else: echo ($v["booking_time"]); endif; ?></dd>
|
||||
|
||||
<dt><?php echo L('sendorder_budget_time_text');?></dt>
|
||||
<dd><?php if(empty($v['budget_time'])): ?><span class="cr-ddd"><?php echo L('common_on_fill_in_the_text');?></span><?php else: echo ($v["budget_time"]); endif; ?></dd>
|
||||
|
||||
<dt><?php echo L('sendorder_collection_time_text');?></dt>
|
||||
<dd><?php if(empty($v['collection_time'])): ?><span class="cr-ddd"><?php echo L('common_on_fill_in_the_text');?></span><?php else: echo ($v["collection_time"]); endif; ?></dd>
|
||||
|
||||
<dt><?php echo L('sendorder_success_time_text');?></dt>
|
||||
<dd><?php if(empty($v['success_time'])): ?><span class="cr-ddd"><?php echo L('common_on_fill_in_the_text');?></span><?php else: echo ($v["success_time"]); endif; ?></dd>
|
||||
|
||||
<dt><?php echo L('common_create_time_name');?></dt>
|
||||
<dd><?php echo ($v["add_time"]); ?></dd>
|
||||
|
||||
<dt><?php echo L('common_upd_time_name');?></dt>
|
||||
<dd><?php echo ($v["upd_time"]); ?></dd>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="view-operation">
|
||||
<?php if(!in_array($v['status'], [4,5])): ?><button class="am-btn am-btn-default am-btn-xs am-radius am-icon-paint-brush submit-ajax" data-url="<?php echo U('Admin/SendOrder/Cancel');?>" data-id="<?php echo ($v["id"]); ?>" data-view="reload" data-msg="<?php echo L('common_cancel_tips');?>"> <?php echo L('common_operation_cancel');?></button><?php endif; ?>
|
||||
<button class="am-btn am-btn-default am-btn-xs am-radius am-icon-trash-o submit-delete" data-url="<?php echo U('Admin/SendOrder/Delete');?>" data-id="<?php echo ($v["id"]); ?>"> <?php echo L('common_operation_delete');?></button>
|
||||
</td>
|
||||
</tr><?php endforeach; endif; ?>
|
||||
<?php else: ?>
|
||||
<tr><td colspan="20" class="table-no"><?php echo L('common_not_data_tips');?></td></tr><?php endif; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<!-- list end -->
|
||||
|
||||
<!-- page start -->
|
||||
<?php if(!empty($list)): echo ($page_html); endif; ?>
|
||||
<!-- page end -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- right content end -->
|
||||
|
||||
<!-- footer start -->
|
||||
<!-- commom html start -->
|
||||
<!-- delete html start -->
|
||||
<div class="am-modal am-modal-confirm" tabindex="-1" id="common-confirm-delete">
|
||||
<div class="am-modal-dialog am-radius">
|
||||
<div class="am-modal-bd"><?php echo L('common_delete_tips');?></div>
|
||||
<div class="am-modal-footer">
|
||||
<span class="am-modal-btn" data-am-modal-cancel><?php echo L('common_operation_cancel');?></span>
|
||||
<span class="am-modal-btn" data-am-modal-confirm><?php echo L('common_operation_confirm');?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- delete html end -->
|
||||
|
||||
<!-- delete html start -->
|
||||
<div class="am-modal am-modal-confirm" tabindex="-1" id="common-confirm-cancel">
|
||||
<div class="am-modal-dialog am-radius">
|
||||
<div class="am-modal-bd"><?php echo L('common_cancel_tips');?></div>
|
||||
<div class="am-modal-footer">
|
||||
<span class="am-modal-btn" data-am-modal-cancel><?php echo L('common_operation_cancel');?></span>
|
||||
<span class="am-modal-btn" data-am-modal-confirm><?php echo L('common_operation_confirm');?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- delete html end -->
|
||||
<!-- commom html end -->
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<!-- 类库 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/jquery/jquery-2.1.0.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/assets/js/amazeui.min.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/echarts/echarts.min.js"></script>
|
||||
|
||||
<!-- ueditor 编辑器 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/ueditor/ueditor.config.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/ueditor/ueditor.all.min.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/ueditor/lang/zh-cn/zh-cn.js"></script>
|
||||
|
||||
<!-- 颜色选择器 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/colorpicker/jquery.colorpicker.js"></script>
|
||||
|
||||
<!-- 元素拖拽排序插件 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/dragsort/jquery.dragsort-0.5.2.min.js"></script>
|
||||
|
||||
<!-- amazeui插件 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/amazeui-switch/amazeui.switch.min.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/amazeui-chosen/amazeui.chosen.min.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/amazeui-dialog/amazeui.dialog.min.js"></script>
|
||||
|
||||
<!-- 日期组件 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/My97DatePicker/WdatePicker.js"></script>
|
||||
|
||||
<!-- 项目公共 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Js/Common.js"></script>
|
||||
|
||||
<!-- 控制器 -->
|
||||
<?php if(!empty($module_js)): ?><script type="text/javascript" src="/project/shop/service/Public/<?php echo ($module_js); ?>"></script><?php endif; ?>
|
||||
<!-- footer end -->
|
||||
|
|
@ -1,91 +0,0 @@
|
|||
<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="<?php echo C('DEFAULT_CHARSET');?>" />
|
||||
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1, maximum-scale=1">
|
||||
<title><?php echo L('common_site_title');?></title>
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Common/Lib/assets/css/amazeui.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Common/Lib/amazeui-switch/amazeui.switch.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Common/Lib/amazeui-chosen/amazeui.chosen.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Common/Css/Common.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Admin/<?php echo ($default_theme); ?>/Css/Common.css" />
|
||||
<?php if(!empty($module_css)): ?><link rel="stylesheet" type="text/css" href="/project/shop/service/Public/<?php echo ($module_css); ?>" /><?php endif; ?>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!-- right content start -->
|
||||
<div class="content-right">
|
||||
<div class="content">
|
||||
<!-- cache list start -->
|
||||
<?php if(is_array($cache_type_list)): foreach($cache_type_list as $key=>$v): if($v['is_enable'] == 1): ?><div class="am-panel am-panel-default am-radius">
|
||||
<div class="am-panel-hd"><?php echo ($v["name"]); ?></div>
|
||||
<a href="<?php echo ($v["url"]); ?>">
|
||||
<button type="button" class="am-btn am-btn-secondary am-radius am-btn-xs am-fr cache-submit"><?php echo L('common_operation_update');?></button>
|
||||
</a>
|
||||
<div class="am-panel-bd"><?php echo ($v["desc"]); ?></div>
|
||||
</div><?php endif; endforeach; endif; ?>
|
||||
<!-- cache list end -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- right content end -->
|
||||
|
||||
<!-- footer start -->
|
||||
<!-- commom html start -->
|
||||
<!-- delete html start -->
|
||||
<div class="am-modal am-modal-confirm" tabindex="-1" id="common-confirm-delete">
|
||||
<div class="am-modal-dialog am-radius">
|
||||
<div class="am-modal-bd"><?php echo L('common_delete_tips');?></div>
|
||||
<div class="am-modal-footer">
|
||||
<span class="am-modal-btn" data-am-modal-cancel><?php echo L('common_operation_cancel');?></span>
|
||||
<span class="am-modal-btn" data-am-modal-confirm><?php echo L('common_operation_confirm');?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- delete html end -->
|
||||
|
||||
<!-- delete html start -->
|
||||
<div class="am-modal am-modal-confirm" tabindex="-1" id="common-confirm-cancel">
|
||||
<div class="am-modal-dialog am-radius">
|
||||
<div class="am-modal-bd"><?php echo L('common_cancel_tips');?></div>
|
||||
<div class="am-modal-footer">
|
||||
<span class="am-modal-btn" data-am-modal-cancel><?php echo L('common_operation_cancel');?></span>
|
||||
<span class="am-modal-btn" data-am-modal-confirm><?php echo L('common_operation_confirm');?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- delete html end -->
|
||||
<!-- commom html end -->
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<!-- 类库 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/jquery/jquery-2.1.0.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/assets/js/amazeui.min.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/echarts/echarts.min.js"></script>
|
||||
|
||||
<!-- ueditor 编辑器 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/ueditor/ueditor.config.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/ueditor/ueditor.all.min.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/ueditor/lang/zh-cn/zh-cn.js"></script>
|
||||
|
||||
<!-- 颜色选择器 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/colorpicker/jquery.colorpicker.js"></script>
|
||||
|
||||
<!-- 元素拖拽排序插件 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/dragsort/jquery.dragsort-0.5.2.min.js"></script>
|
||||
|
||||
<!-- amazeui插件 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/amazeui-switch/amazeui.switch.min.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/amazeui-chosen/amazeui.chosen.min.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/amazeui-dialog/amazeui.dialog.min.js"></script>
|
||||
|
||||
<!-- 日期组件 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/My97DatePicker/WdatePicker.js"></script>
|
||||
|
||||
<!-- 项目公共 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Js/Common.js"></script>
|
||||
|
||||
<!-- 控制器 -->
|
||||
<?php if(!empty($module_js)): ?><script type="text/javascript" src="/project/shop/service/Public/<?php echo ($module_js); ?>"></script><?php endif; ?>
|
||||
<!-- footer end -->
|
||||
|
|
@ -1,45 +0,0 @@
|
|||
<?php if (!defined('THINK_PATH')) exit(); if(C('LAYOUT_ON')) { echo ''; } ?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>跳转提示</title>
|
||||
<style type="text/css">
|
||||
*{ padding: 0; margin: 0; }
|
||||
body{ background: #fff; font-family: '微软雅黑'; color: #333; font-size: 16px; }
|
||||
.system-message{ padding: 24px 48px; }
|
||||
.system-message h1{ font-size: 100px; font-weight: normal; line-height: 120px; margin-bottom: 12px; }
|
||||
.system-message .jump{ padding-top: 10px}
|
||||
.system-message .jump a{ color: #333;}
|
||||
.system-message .success,.system-message .error{ line-height: 1.8em; font-size: 36px }
|
||||
.system-message .detail{ font-size: 12px; line-height: 20px; margin-top: 12px; display:none}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="system-message">
|
||||
<?php if(isset($message)) {?>
|
||||
<h1>:)</h1>
|
||||
<p class="success"><?php echo($message); ?></p>
|
||||
<?php }else{?>
|
||||
<h1>:(</h1>
|
||||
<p class="error"><?php echo($error); ?></p>
|
||||
<?php }?>
|
||||
<p class="detail"></p>
|
||||
<p class="jump">
|
||||
页面自动 <a id="href" href="<?php echo($jumpUrl); ?>">跳转</a> 等待时间: <b id="wait"><?php echo($waitSecond); ?></b>
|
||||
</p>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
(function(){
|
||||
var wait = document.getElementById('wait'),href = document.getElementById('href').href;
|
||||
var interval = setInterval(function(){
|
||||
var time = --wait.innerHTML;
|
||||
if(time <= 0) {
|
||||
location.href = href;
|
||||
clearInterval(interval);
|
||||
};
|
||||
}, 1000);
|
||||
})();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,149 +0,0 @@
|
|||
<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="<?php echo C('DEFAULT_CHARSET');?>" />
|
||||
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1, maximum-scale=1">
|
||||
<title><?php echo L('common_site_title');?></title>
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Common/Lib/assets/css/amazeui.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Common/Lib/amazeui-switch/amazeui.switch.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Common/Lib/amazeui-chosen/amazeui.chosen.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Common/Css/Common.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Admin/<?php echo ($default_theme); ?>/Css/Common.css" />
|
||||
<?php if(!empty($module_css)): ?><link rel="stylesheet" type="text/css" href="/project/shop/service/Public/<?php echo ($module_css); ?>" /><?php endif; ?>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!-- right content start -->
|
||||
<div class="content-right">
|
||||
<div class="content">
|
||||
<!-- operation start -->
|
||||
<div class="am-g">
|
||||
<button class="am-btn am-btn-secondary am-radius am-btn-xs am-icon-plus tree-submit-add" data-am-modal="{target: '#data-save-win'}"> <?php echo L('common_operation_add');?></button>
|
||||
</div>
|
||||
<!-- operation end -->
|
||||
|
||||
<!-- save win start -->
|
||||
<div class="am-popup am-radius" id="data-save-win">
|
||||
<div class="am-popup-inner">
|
||||
<div class="am-popup-hd">
|
||||
<h4 class="am-popup-title" data-add-title="<?php echo L('goods_category_add_name');?>" data-edit-title="<?php echo L('goods_category_edit_name');?>"><?php echo L('goods_category_add_name');?></h4>
|
||||
<span data-am-modal-close class="am-close">×</span>
|
||||
</div>
|
||||
<div class="am-popup-bd">
|
||||
<!-- form start -->
|
||||
<form class="am-form form-validation admin-save" action="<?php echo U('Admin/GoodsCategory/Save');?>" method="POST" request-type="ajax-reload" request-value="">
|
||||
<div class="am-form-group am-form-file">
|
||||
<label class="block"><?php echo L('common_icon_text');?></label>
|
||||
<button type="button" class="am-btn am-btn-default am-btn-sm am-radius">
|
||||
<i class="am-icon-cloud-upload"></i> <?php echo L('common_select_images_text');?></button>
|
||||
<input type="text" name="icon" class="am-radius js-choice-one original-images-url original-images-url-delete" data-choice-one-to=".images-file-event" <?php if(!empty($data)): ?>value="<?php echo ($data["images_url"]); ?>"<?php endif; ?>" data-validation-message="<?php echo L('common_select_images_tips');?>" readonly="readonly" />
|
||||
<i class="am-icon-trash-o am-icon-sm original-images-url-delete" data-input-tag=".original-images-url"></i>
|
||||
<input type="file" name="file_icon" multiple data-validation-message="<?php echo L('common_select_images_tips');?>" accept="image/gif,image/jpeg,image/jpg,image/png" class="js-choice-one images-file-event" data-choice-one-to=".original-images-url" data-tips-tag="#form-images_url-tips" data-image-tag="#form-img-images_url" />
|
||||
<div id="form-images_url-tips" class="m-t-5"></div>
|
||||
<img src="<?php if(!empty($data['images_url'])): echo ($image_host); echo ($data["images_url"]); else: echo ($image_host); ?>/Public/Admin/Default/Images/default-images.png<?php endif; ?>" id="form-img-images_url" class="block m-t-5 am-img-thumbnail am-radius" width="50" height="50" data-default="<?php if(!empty($data['images_url'])): echo ($image_host); echo ($data["images_url"]); else: echo ($image_host); ?>/Public/Admin/Default/Images/default-images.png<?php endif; ?>" />
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<label><?php echo L('common_name_text');?></label>
|
||||
<input type="text" placeholder="<?php echo L('common_name_text');?>" name="name" minlength="2" maxlength="16" data-validation-message="<?php echo L('common_name_format');?>" class="am-radius" required />
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<label><?php echo L('common_view_sort_title');?></label>
|
||||
<input type="number" placeholder="<?php echo L('common_view_sort_title');?>" name="sort" min="0" max="255" data-validation-message="<?php echo L('common_sort_error');?>" class="am-radius" value="0" required />
|
||||
</div>
|
||||
<!-- 是否启用 开始 -->
|
||||
<div class="am-form-group">
|
||||
<label><?php echo L('common_view_enable_title');?></label>
|
||||
<div>
|
||||
<?php if(is_array($common_is_enable_list)): foreach($common_is_enable_list as $key=>$v): ?><label class="am-radio-inline m-r-10">
|
||||
<input type="radio" name="is_enable" value="<?php echo ($v["id"]); ?>" <?php if(isset($data['is_enable']) and $data['is_enable'] == $v['id']): ?>checked="checked"<?php else: if(!isset($data['is_enable']) and isset($v['checked']) and $v['checked'] == true): ?>checked="checked"<?php endif; endif; ?> data-am-ucheck /> <?php echo ($v["name"]); ?>
|
||||
</label><?php endforeach; endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 是否启用 结束 -->
|
||||
<div class="am-form-group">
|
||||
<input type="hidden" name="id" />
|
||||
<input type="hidden" name="pid" value="0" />
|
||||
<button type="submit" class="am-btn am-btn-primary am-radius btn-loading-example am-btn-sm w100" data-am-loading="{loadingText:'<?php echo L('common_form_loading_tips');?>'}"><?php echo L('common_operation_save');?></button>
|
||||
</div>
|
||||
</form>
|
||||
<!-- form end -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- save win end -->
|
||||
|
||||
<!-- list start -->
|
||||
<div id="tree" class="m-t-15" data-rank="2">
|
||||
<div class="m-t-30 t-c">
|
||||
<img src="/project/shop/service/Public/Common/Images/loading.gif" />
|
||||
<p><?php echo L('common_form_loading_tips');?></p>
|
||||
</div>
|
||||
</div>
|
||||
<!-- list end -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- right content end -->
|
||||
|
||||
<!-- footer start -->
|
||||
<!-- commom html start -->
|
||||
<!-- delete html start -->
|
||||
<div class="am-modal am-modal-confirm" tabindex="-1" id="common-confirm-delete">
|
||||
<div class="am-modal-dialog am-radius">
|
||||
<div class="am-modal-bd"><?php echo L('common_delete_tips');?></div>
|
||||
<div class="am-modal-footer">
|
||||
<span class="am-modal-btn" data-am-modal-cancel><?php echo L('common_operation_cancel');?></span>
|
||||
<span class="am-modal-btn" data-am-modal-confirm><?php echo L('common_operation_confirm');?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- delete html end -->
|
||||
|
||||
<!-- delete html start -->
|
||||
<div class="am-modal am-modal-confirm" tabindex="-1" id="common-confirm-cancel">
|
||||
<div class="am-modal-dialog am-radius">
|
||||
<div class="am-modal-bd"><?php echo L('common_cancel_tips');?></div>
|
||||
<div class="am-modal-footer">
|
||||
<span class="am-modal-btn" data-am-modal-cancel><?php echo L('common_operation_cancel');?></span>
|
||||
<span class="am-modal-btn" data-am-modal-confirm><?php echo L('common_operation_confirm');?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- delete html end -->
|
||||
<!-- commom html end -->
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<!-- 类库 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/jquery/jquery-2.1.0.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/assets/js/amazeui.min.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/echarts/echarts.min.js"></script>
|
||||
|
||||
<!-- ueditor 编辑器 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/ueditor/ueditor.config.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/ueditor/ueditor.all.min.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/ueditor/lang/zh-cn/zh-cn.js"></script>
|
||||
|
||||
<!-- 颜色选择器 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/colorpicker/jquery.colorpicker.js"></script>
|
||||
|
||||
<!-- 元素拖拽排序插件 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/dragsort/jquery.dragsort-0.5.2.min.js"></script>
|
||||
|
||||
<!-- amazeui插件 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/amazeui-switch/amazeui.switch.min.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/amazeui-chosen/amazeui.chosen.min.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/amazeui-dialog/amazeui.dialog.min.js"></script>
|
||||
|
||||
<!-- 日期组件 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/My97DatePicker/WdatePicker.js"></script>
|
||||
|
||||
<!-- 项目公共 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Js/Common.js"></script>
|
||||
|
||||
<!-- 控制器 -->
|
||||
<?php if(!empty($module_js)): ?><script type="text/javascript" src="/project/shop/service/Public/<?php echo ($module_js); ?>"></script><?php endif; ?>
|
||||
<!-- footer end -->
|
||||
<script>
|
||||
Tree(0, "<?php echo U('Admin/GoodsCategory/GetNodeSon');?>", 0, 1);
|
||||
</script>
|
||||
|
|
@ -1,275 +0,0 @@
|
|||
<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="<?php echo C('DEFAULT_CHARSET');?>" />
|
||||
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1, maximum-scale=1">
|
||||
<title><?php echo L('common_site_title');?></title>
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Common/Lib/assets/css/amazeui.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Common/Lib/amazeui-switch/amazeui.switch.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Common/Lib/amazeui-chosen/amazeui.chosen.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Common/Css/Common.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Admin/<?php echo ($default_theme); ?>/Css/Common.css" />
|
||||
<?php if(!empty($module_css)): ?><link rel="stylesheet" type="text/css" href="/project/shop/service/Public/<?php echo ($module_css); ?>" /><?php endif; ?>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!-- right content start -->
|
||||
<div class="content-right">
|
||||
<div class="content">
|
||||
<!-- form start -->
|
||||
<form class="am-form view-list" action="<?php echo U('Admin/User/Index');?>" method="POST">
|
||||
<div class="am-g">
|
||||
<input type="hidden" name="organization_id" <?php if(isset($param['organization_id'])): ?>value="<?php echo ($param["organization_id"]); ?>"<?php endif; ?> />
|
||||
<input type="text" class="am-radius form-keyword" placeholder="<?php echo L('user_so_keyword_tips');?>" name="keyword" <?php if(isset($param['keyword'])): ?>value="<?php echo ($param["keyword"]); ?>"<?php endif; ?> />
|
||||
<button type="submit" class="am-btn am-btn-secondary am-btn-sm am-radius form-submit"><?php echo L('common_operation_query');?></button>
|
||||
<label class="fs-12 m-l-5 c-p fw-100 more-submit">
|
||||
<?php echo L('common_more_screening');?>
|
||||
<input type="checkbox" name="is_more" value="1" id="is_more" <?php if(isset($param['is_more']) and $param['is_more'] == 1): ?>checked<?php endif; ?> />
|
||||
<i class="am-icon-angle-down"></i>
|
||||
</label>
|
||||
|
||||
<div class="more-where <?php if(!isset($param['is_more']) or $param['is_more'] != 1): ?>none<?php endif; ?>">
|
||||
<select name="gender" class="am-radius c-p m-t-10 m-l-5 param-where">
|
||||
<option value="-1"><?php echo L('common_view_gender_name');?></option>
|
||||
<?php if(is_array($common_gender_list)): foreach($common_gender_list as $key=>$v): ?><option value="<?php echo ($v["id"]); ?>" <?php if(isset($param['gender']) and $param['gender'] == $v['id']): ?>selected<?php endif; ?>><?php echo ($v["name"]); ?></option><?php endforeach; endif; ?>
|
||||
</select>
|
||||
<div class="param-date param-where m-l-5">
|
||||
<input type="text" name="time_start" class="Wdate am-radius m-t-10" placeholder="<?php echo L('common_time_start_name');?>" onclick="WdatePicker({firstDayOfWeek:1,dateFmt:'yyyy-MM-dd HH:mm:ss'})" <?php if(isset($param['time_start'])): ?>value="<?php echo ($param["time_start"]); ?>"<?php endif; ?>/>
|
||||
<span>~</span>
|
||||
<input type="text" class="Wdate am-radius m-t-10" placeholder="<?php echo L('common_time_end_name');?>" name="time_end" onclick="WdatePicker({firstDayOfWeek:1,dateFmt:'yyyy-MM-dd HH:mm:ss'})" <?php if(isset($param['time_end'])): ?>value="<?php echo ($param["time_end"]); ?>"<?php endif; ?>/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<!-- form end -->
|
||||
|
||||
<!-- operation start -->
|
||||
<div class="am-g m-t-15">
|
||||
<a href="<?php echo U('Admin/User/SaveInfo');?>" class="am-btn am-btn-secondary am-radius am-btn-xs am-icon-plus"> <?php echo L('common_operation_add');?></a>
|
||||
<?php if(!IsMobile()): ?><a href="<?php echo ($excel_url); ?>" class="am-btn am-btn-success am-btn-xs m-l-10 am-icon-file-excel-o am-radius"> <?php echo L('common_operation_excel_export_name');?></a><?php endif; ?>
|
||||
</div>
|
||||
<!-- operation end -->
|
||||
|
||||
<!-- list start -->
|
||||
<table class="am-table am-table-striped am-table-hover am-text-middle m-t-10 m-l-5">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><?php echo L('user_avatar_name');?></th>
|
||||
<th><?php echo L('user_username_name');?></th>
|
||||
<th class="am-hide-sm-only"><?php echo L('common_mobile_name');?></th>
|
||||
<th class="am-hide-sm-only"><?php echo L('user_integral_name');?></th>
|
||||
<th class="am-hide-sm-only"><?php echo L('common_view_gender_name');?></th>
|
||||
<th class="am-hide-sm-only"><?php echo L('user_birthday_name');?></th>
|
||||
<th><?php echo L('common_more_name');?></th>
|
||||
<th><?php echo L('common_operation_name');?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if(!empty($list)): if(is_array($list)): foreach($list as $key=>$v): ?><tr id="data-list-<?php echo ($v["id"]); ?>">
|
||||
<td>
|
||||
<?php if(!empty($v['avatar'])): ?><img src="<?php echo ($v['avatar']); ?>" class="am-img-thumbnail am-radius" width="60" height="60" />
|
||||
<?php else: ?>
|
||||
<span class="cr-ddd"><?php echo L('common_on_fill_in_images');?></span><?php endif; ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php if(empty($v['username'])): ?><span class="cr-ddd"><?php echo L('common_on_fill_in_the_text');?></span><?php else: echo ($v["username"]); endif; ?>
|
||||
</td>
|
||||
<td class="am-hide-sm-only">
|
||||
<?php if(empty($v['mobile'])): ?><span class="cr-ddd"><?php echo L('common_on_fill_in_the_text');?></span><?php else: echo ($v["mobile"]); endif; ?>
|
||||
</td>
|
||||
<td class="am-hide-sm-only">
|
||||
<?php if(empty($v['integral'])): ?><span class="cr-ddd"><?php echo L('common_on_fill_in_the_text');?></span><?php else: echo ($v["integral"]); endif; ?>
|
||||
</td>
|
||||
<td class="am-hide-sm-only">
|
||||
<?php if(empty($v['gender_text'])): ?><span class="cr-ddd"><?php echo L('common_not_set_text');?></span><?php else: echo ($v["gender_text"]); endif; ?>
|
||||
</td>
|
||||
<td class="am-hide-sm-only">
|
||||
<?php if(empty($v['birthday_text'])): ?><span class="cr-ddd"><?php echo L('common_on_fill_in_the_text');?></span><?php else: echo ($v["birthday_text"]); endif; ?>
|
||||
</td>
|
||||
<td>
|
||||
<span class="am-icon-caret-down c-p" data-am-modal="{target: '#my-popup<?php echo ($v["id"]); ?>'}"> <?php echo L('common_see_more_name');?></span>
|
||||
<div class="am-popup am-radius" id="my-popup<?php echo ($v["id"]); ?>">
|
||||
<div class="am-popup-inner">
|
||||
<div class="am-popup-hd">
|
||||
<h4 class="am-popup-title"><?php echo L('common_detail_content');?></h4>
|
||||
<span data-am-modal-close class="am-close">×</span>
|
||||
</div>
|
||||
<div class="am-popup-bd">
|
||||
<dl class="dl-content">
|
||||
<dt><?php echo L('user_username_name');?></dt>
|
||||
<dd><?php if(empty($v['username'])): ?><span class="cr-ddd"><?php echo L('common_on_fill_in_the_text');?></span><?php else: echo ($v["username"]); endif; ?></dd>
|
||||
|
||||
<dt><?php echo L('user_nickname_name');?></dt>
|
||||
<dd><?php if(empty($v['nickname'])): ?><span class="cr-ddd"><?php echo L('common_on_fill_in_the_text');?></span><?php else: echo ($v["nickname"]); endif; ?></dd>
|
||||
|
||||
<dt><?php echo L('common_mobile_name');?></dt>
|
||||
<dd><?php if(empty($v['mobile'])): ?><span class="cr-ddd"><?php echo L('common_on_fill_in_the_text');?></span><?php else: echo ($v["mobile"]); endif; ?></dd>
|
||||
|
||||
<dt><?php echo L('common_email_name');?></dt>
|
||||
<dd><?php if(empty($v['email'])): ?><span class="cr-ddd"><?php echo L('common_on_fill_in_the_text');?></span><?php else: echo ($v["email"]); endif; ?></dd>
|
||||
|
||||
<dt><?php echo L('common_view_gender_name');?></dt>
|
||||
<dd><?php if(empty($v['gender_text'])): ?><span class="cr-ddd"><?php echo L('common_not_set_text');?></span><?php else: echo ($v["gender_text"]); endif; ?></dd>
|
||||
|
||||
<dt><?php echo L('user_birthday_name');?></dt>
|
||||
<dd><?php if(empty($v['birthday_text'])): ?><span class="cr-ddd"><?php echo L('common_on_fill_in_the_text');?></span><?php else: echo ($v["birthday_text"]); endif; ?></dd>
|
||||
|
||||
<dt><?php echo L('user_province_name');?></dt>
|
||||
<dd><?php if(empty($v['province'])): ?><span class="cr-ddd"><?php echo L('common_on_fill_in_the_text');?></span><?php else: echo ($v["province"]); endif; ?></dd>
|
||||
|
||||
<dt><?php echo L('user_city_name');?></dt>
|
||||
<dd><?php if(empty($v['city'])): ?><span class="cr-ddd"><?php echo L('common_on_fill_in_the_text');?></span><?php else: echo ($v["city"]); endif; ?></dd>
|
||||
|
||||
<dt><?php echo L('common_address_text');?></dt>
|
||||
<dd><?php if(empty($v['address'])): ?><span class="cr-ddd"><?php echo L('common_on_fill_in_the_text');?></span><?php else: echo ($v["address"]); endif; ?></dd>
|
||||
|
||||
<dt><?php echo L('user_integral_name');?></dt>
|
||||
<dd><?php if(empty($v['integral'])): ?><span class="cr-ddd"><?php echo L('common_on_fill_in_the_text');?></span><?php else: echo ($v["integral"]); endif; ?></dd>
|
||||
|
||||
<dt><?php echo L('user_service_expire_time_name');?></dt>
|
||||
<dd><?php if(empty($v['service_expire_time_text'])): ?><span class="cr-ddd"><?php echo L('common_on_fill_in_the_text');?></span><?php else: echo ($v["service_expire_time_text"]); endif; ?></dd>
|
||||
|
||||
<dt><?php echo L('user_avatar_name');?></dt>
|
||||
<dd>
|
||||
<?php if(!empty($v['avatar'])): ?><img src="<?php echo ($v['avatar']); ?>" class="am-img-thumbnail am-radius" width="100" height="100" />
|
||||
<?php else: ?>
|
||||
<span class="cr-ddd"><?php echo L('common_on_fill_in_images');?></span><?php endif; ?>
|
||||
</dd>
|
||||
|
||||
<dt><?php echo L('common_reg_time_name');?></dt>
|
||||
<dd><?php echo ($v["add_time"]); ?></dd>
|
||||
|
||||
<dt><?php echo L('common_upd_time_name');?></dt>
|
||||
<dd><?php echo ($v["upd_time"]); ?></dd>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="view-operation">
|
||||
<a href="<?php echo U('Admin/User/SaveInfo', array_merge($param,array('id'=>$v['id'])));?>">
|
||||
<button class="am-btn am-btn-default am-btn-xs am-radius am-icon-edit"> <?php echo L('common_operation_edit');?></button>
|
||||
</a>
|
||||
<button class="am-btn am-btn-default am-btn-xs am-radius am-icon-trash-o submit-delete" data-url="<?php echo U('Admin/User/Delete');?>" data-id="<?php echo ($v["id"]); ?>"> <?php echo L('common_operation_delete');?></button>
|
||||
</td>
|
||||
</tr><?php endforeach; endif; ?>
|
||||
<?php else: ?>
|
||||
<tr><td colspan="20" class="table-no"><?php echo L('common_not_data_tips');?></td></tr><?php endif; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="am-popup am-radius" id="my-popup-audit">
|
||||
<div class="am-popup-inner">
|
||||
<div class="am-popup-hd">
|
||||
<h4 class="am-popup-title"><?php echo L('common_operation_audit');?></h4>
|
||||
<span data-am-modal-close class="am-close">×</span>
|
||||
</div>
|
||||
<div class="am-popup-bd">
|
||||
<dl class="dl-content">
|
||||
<dt><?php echo L('user_username_name');?></dt>
|
||||
<dd class="audit-username"></dd>
|
||||
|
||||
<dt><?php echo L('common_mobile_name');?></dt>
|
||||
<dd class="audit-mobile"></dd>
|
||||
|
||||
<dt><?php echo L('common_view_gender_name');?></dt>
|
||||
<dd class="audit-gender"></dd>
|
||||
|
||||
<dt><?php echo L('user_organization_name');?></dt>
|
||||
<dd class="audit-organization_name"></dd>
|
||||
|
||||
<dt><?php echo L('user_birthday_name');?></dt>
|
||||
<dd class="audit-birthday"></dd>
|
||||
|
||||
<dt><?php echo L('user_user_type_name');?></dt>
|
||||
<dd class="audit-user_type"></dd>
|
||||
|
||||
<dt><?php echo L('user_salary_type_name');?></dt>
|
||||
<dd class="audit-salary_type"></dd>
|
||||
</dl>
|
||||
|
||||
<form class="am-form form-validation" action="<?php echo U('Admin/User/Audit');?>" method="POST" request-type="ajax-reload" enctype="multipart/form-data">
|
||||
<div class="am-form-group">
|
||||
<label><?php echo L('user_refused_why_name');?></label>
|
||||
<textarea name="refused_why" rows="5" class="am-radius" placeholder="<?php echo L('user_refused_why_format');?>" data-validation-message="<?php echo L('user_refused_why_format');?>" maxlength="80"></textarea>
|
||||
</div>
|
||||
|
||||
<div class="am-form-group audit-submit t-c">
|
||||
<input type="hidden" name="status" value="" />
|
||||
<input type="hidden" name="id" value="" />
|
||||
<button type="submit" class="am-btn am-btn-danger am-radius am-btn-sm" data-am-loading="{loadingText:'<?php echo L('common_form_loading_tips');?>'}" data-status="3">拒绝</button>
|
||||
|
||||
<button type="submit" class="am-btn am-btn-success am-radius am-btn-sm" data-am-loading="{loadingText:'<?php echo L('common_form_loading_tips');?>'}" data-status="2">同意</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- list end -->
|
||||
|
||||
<!-- page start -->
|
||||
<?php if(!empty($list)): echo ($page_html); endif; ?>
|
||||
<!-- page end -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- right content end -->
|
||||
|
||||
<!-- footer start -->
|
||||
<!-- commom html start -->
|
||||
<!-- delete html start -->
|
||||
<div class="am-modal am-modal-confirm" tabindex="-1" id="common-confirm-delete">
|
||||
<div class="am-modal-dialog am-radius">
|
||||
<div class="am-modal-bd"><?php echo L('common_delete_tips');?></div>
|
||||
<div class="am-modal-footer">
|
||||
<span class="am-modal-btn" data-am-modal-cancel><?php echo L('common_operation_cancel');?></span>
|
||||
<span class="am-modal-btn" data-am-modal-confirm><?php echo L('common_operation_confirm');?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- delete html end -->
|
||||
|
||||
<!-- delete html start -->
|
||||
<div class="am-modal am-modal-confirm" tabindex="-1" id="common-confirm-cancel">
|
||||
<div class="am-modal-dialog am-radius">
|
||||
<div class="am-modal-bd"><?php echo L('common_cancel_tips');?></div>
|
||||
<div class="am-modal-footer">
|
||||
<span class="am-modal-btn" data-am-modal-cancel><?php echo L('common_operation_cancel');?></span>
|
||||
<span class="am-modal-btn" data-am-modal-confirm><?php echo L('common_operation_confirm');?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- delete html end -->
|
||||
<!-- commom html end -->
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<!-- 类库 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/jquery/jquery-2.1.0.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/assets/js/amazeui.min.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/echarts/echarts.min.js"></script>
|
||||
|
||||
<!-- ueditor 编辑器 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/ueditor/ueditor.config.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/ueditor/ueditor.all.min.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/ueditor/lang/zh-cn/zh-cn.js"></script>
|
||||
|
||||
<!-- 颜色选择器 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/colorpicker/jquery.colorpicker.js"></script>
|
||||
|
||||
<!-- 元素拖拽排序插件 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/dragsort/jquery.dragsort-0.5.2.min.js"></script>
|
||||
|
||||
<!-- amazeui插件 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/amazeui-switch/amazeui.switch.min.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/amazeui-chosen/amazeui.chosen.min.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/amazeui-dialog/amazeui.dialog.min.js"></script>
|
||||
|
||||
<!-- 日期组件 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/My97DatePicker/WdatePicker.js"></script>
|
||||
|
||||
<!-- 项目公共 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Js/Common.js"></script>
|
||||
|
||||
<!-- 控制器 -->
|
||||
<?php if(!empty($module_js)): ?><script type="text/javascript" src="/project/shop/service/Public/<?php echo ($module_js); ?>"></script><?php endif; ?>
|
||||
<!-- footer end -->
|
||||
|
|
@ -1,288 +0,0 @@
|
|||
<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="<?php echo C('DEFAULT_CHARSET');?>" />
|
||||
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1, maximum-scale=1">
|
||||
<title><?php echo L('common_site_title');?></title>
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Common/Lib/assets/css/amazeui.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Common/Lib/amazeui-switch/amazeui.switch.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Common/Lib/amazeui-chosen/amazeui.chosen.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Common/Css/Common.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/project/shop/service/Public/Admin/<?php echo ($default_theme); ?>/Css/Common.css" />
|
||||
<?php if(!empty($module_css)): ?><link rel="stylesheet" type="text/css" href="/project/shop/service/Public/<?php echo ($module_css); ?>" /><?php endif; ?>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!-- right content start -->
|
||||
<div class="content-right">
|
||||
<div class="content">
|
||||
<!-- form start -->
|
||||
<form class="am-form form-validation view-save" action="<?php echo U('Admin/Goods/Save');?>" method="POST" request-type="ajax-url" request-value="<?php echo U('Admin/Goods/Index');?>" enctype="multipart/form-data">
|
||||
<input type="hidden" name="max_file_size" value="<?php echo MyC('home_max_limit_image', 2048000);?>" />
|
||||
<legend>
|
||||
<span class="fs-16">
|
||||
<?php if(empty($data['id'])): echo L('goods_add_name');?>
|
||||
<?php else: ?>
|
||||
<?php echo L('goods_edit_name'); endif; ?>
|
||||
</span>
|
||||
<a href="<?php echo U('Admin/Goods/Index');?>" class="fr fs-14 m-t-5 am-icon-mail-reply"> <?php echo L('common_operation_back');?></a>
|
||||
</legend>
|
||||
|
||||
<nav class="goods-nav">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="#goods-nav-base"><?php echo L('goods_nav_base_name');?></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#goods-nav-photo"><?php echo L('goods_nav_photo_name');?></a>
|
||||
</li>
|
||||
<!-- <li>
|
||||
<a href="#goods-nav-video"><?php echo L('goods_nav_video_name');?></a>
|
||||
</li> -->
|
||||
<li>
|
||||
<a href="#goods-nav-attribute"><?php echo L('goods_nav_attribute_name');?></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#goods-nav-app"><?php echo L('goods_nav_app_name');?></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#goods-nav-web"><?php echo L('goods_nav_web_name');?></a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
<!-- 基础信息 -->
|
||||
<div id="goods-nav-base" class="division-block">
|
||||
<label class="block nav-detail-title"><?php echo L('goods_nav_base_name');?></label>
|
||||
<div class="am-form-group">
|
||||
<label><?php echo L('goods_title_text');?></label>
|
||||
<div class="am-input-group am-input-group-sm">
|
||||
<input type="hidden" name="title_color" value="<?php if(!empty($data['title_color'])): echo ($data["title_color"]); endif; ?>" />
|
||||
<input type="text" name="title" placeholder="<?php echo L('goods_title_text');?>" minlength="2" maxlength="60" data-validation-message="<?php echo L('goods_title_format');?>" class="am-form-field am-radius" <?php if(!empty($data)): ?>value="<?php echo ($data["title"]); ?>"<?php endif; ?> <?php if(!empty($data['title_color'])): ?>style="color:<?php echo ($data["title_color"]); ?>;"<?php endif; ?> required />
|
||||
<span class="am-input-group-btn">
|
||||
<button class="am-btn am-btn-default colorpicker-submit" type="button" data-input-tag="input[name='title']" data-color-tag="input[name='title_color']">
|
||||
<img src="/project/shop/service/Public/Common/Images/colorpicker.png" />
|
||||
</button>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<label><?php echo L('goods_model_text');?></label>
|
||||
<input type="text" name="model" placeholder="<?php echo L('goods_model_text');?>" maxlength="30" data-validation-message="<?php echo L('goods_model_format');?>" class="am-radius" <?php if(!empty($data)): ?>value="<?php echo ($data["model"]); ?>"<?php endif; ?> />
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<label><?php echo L('goods_category_id_text');?></label>
|
||||
<br />
|
||||
<select name="category_id" class="am-radius chosen-select c-p" multiple="multiple" data-placeholder="<?php echo L('common_please_select_choose');?>" data-validation-message="<?php echo L('goods_category_id_format');?>" required>
|
||||
<?php if(!empty($category_list)): if(is_array($category_list)): foreach($category_list as $key=>$v): ?><optgroup label="<?php echo ($v["name"]); ?>">
|
||||
<?php if(!empty($category_list)): if(is_array($v["items"])): foreach($v["items"] as $key=>$vs): ?><option value="<?php echo ($vs["id"]); ?>" <?php if(!empty($data['category_ids']) and in_array($vs['id'], $data['category_ids'])): ?>selected<?php endif; ?>><?php echo ($vs["name"]); ?></option><?php endforeach; endif; endif; ?>
|
||||
</optgroup><?php endforeach; endif; endif; ?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<label><?php echo L('goods_place_origin_text');?></label>
|
||||
<br />
|
||||
<select name="place_origin" class="am-radius chosen-select c-p" data-placeholder="<?php echo L('common_please_select_choose');?>" data-validation-message="<?php echo L('goods_place_origin_format');?>">
|
||||
<option value="0"><?php echo L('common_please_select_choose');?></option>
|
||||
<?php if(!empty($region_province_list)): if(is_array($region_province_list)): foreach($region_province_list as $key=>$v): ?><option value="<?php echo ($v["id"]); ?>" <?php if(!empty($data['place_origin']) and $v['id'] == $data['place_origin']): ?>selected<?php endif; ?>><?php echo ($v["name"]); ?></option><?php endforeach; endif; endif; ?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<label><?php echo L('goods_inventory_text');?></label>
|
||||
<input type="number" name="inventory" placeholder="<?php echo L('goods_inventory_text');?>" min="1" max="100000000" data-validation-message="<?php echo L('goods_inventory_format');?>" class="am-radius" <?php if(!empty($data)): ?>value="<?php echo ($data["inventory"]); ?>"<?php endif; ?> required />
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<label><?php echo L('goods_inventory_unit_text');?></label>
|
||||
<input type="text" name="inventory_unit" placeholder="<?php echo L('goods_inventory_unit_text');?>" minlength="1" maxlength="6" data-validation-message="<?php echo L('goods_inventory_unit_format');?>" class="am-radius" <?php if(!empty($data)): ?>value="<?php echo ($data["inventory_unit"]); ?>"<?php endif; ?> required />
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<label><?php echo L('goods_original_price_text');?><span class="fs-12 fw-100 cr-999">(<?php echo L('goods_price_tips');?>)</span></label>
|
||||
<input type="text" placeholder="<?php echo L('goods_price_text');?>" name="original_price" pattern="<?php echo L('common_regex_price');?>" data-validation-message="<?php echo L('goods_price_format');?>" class="am-radius" <?php if(!empty($data['original_price']) and $data['original_price'] > 0): ?>value="<?php echo ($data["original_price"]); ?>"<?php endif; ?> />
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<label><?php echo L('goods_price_text');?><span class="fs-12 fw-100 cr-999">(<?php echo L('goods_price_tips');?>)</span></label>
|
||||
<input type="text" placeholder="<?php echo L('goods_price_text');?>" name="price" pattern="<?php echo L('common_regex_price');?>" data-validation-message="<?php echo L('goods_price_format');?>" class="am-radius" <?php if(isset($data)): ?>value="<?php echo ($data["price"]); ?>"<?php endif; ?> required />
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<label><?php echo L('goods_give_integral_text');?></label>
|
||||
<input type="number" name="give_integral" placeholder="<?php echo L('goods_give_integral_text');?>" max="100000000" data-validation-message="<?php echo L('goods_give_integral_format');?>" class="am-radius" value="<?php if(empty($data)): ?>0<?php else: echo ($data["give_integral"]); endif; ?>" required />
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<label><?php echo L('goods_buy_min_number_text');?><span class="fs-12 fw-100 cr-999">(<?php echo L('goods_buy_min_number_tips');?>)</span></label>
|
||||
<input type="number" name="buy_min_number" placeholder="<?php echo L('goods_buy_min_number_text');?>" min="1" max="100000000" data-validation-message="<?php echo L('goods_buy_min_number_format');?>" class="am-radius" value="<?php if(empty($data)): ?>1<?php else: echo ($data["buy_min_number"]); endif; ?>" required />
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<label><?php echo L('goods_buy_max_number_text');?><span class="fs-12 fw-100 cr-999">(<?php echo L('goods_buy_max_number_tips');?>)</span></label>
|
||||
<input type="number" name="buy_max_number" placeholder="<?php echo L('goods_buy_max_number_text');?>" min="0" max="100000000" data-validation-message="<?php echo L('goods_buy_max_number_format');?>" class="am-radius" <?php if(!empty($data['buy_max_number'])): ?>value="<?php echo ($data["buy_max_number"]); ?>"<?php endif; ?> />
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<label class="block"><?php echo L('goods_is_deduction_inventory_text');?><span class="fs-12 fw-100 cr-999">(<?php echo L('goods_is_deduction_inventory_tips');?>)</span></label>
|
||||
<input name="is_deduction_inventory" value="1" type="checkbox" data-off-text="<?php echo L('common_operation_off_is_text');?>" data-on-text="<?php echo L('common_operation_on_is_text');?>" data-size="xs" data-on-color="success" data-off-color="default" data-handle-width="50" data-am-switch <?php if(!empty($data) and $data['is_deduction_inventory'] == 1): ?>checked="true"<?php endif; ?> />
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<label class="block"><?php echo L('goods_is_shelves_text');?><span class="fs-12 fw-100 cr-999">(<?php echo L('goods_is_shelves_tips');?>)</span></label>
|
||||
<input name="is_shelves" value="1" type="checkbox" data-off-text="<?php echo L('common_operation_off_goods_text');?>" data-on-text="<?php echo L('common_operation_on_goods_text');?>" data-size="xs" data-on-color="success" data-off-color="default" data-handle-width="50" data-am-switch <?php if(!empty($data) and $data['is_shelves'] == 1): ?>checked="true"<?php endif; ?> />
|
||||
</div>
|
||||
</div>
|
||||
<div id="goods-nav-photo" class="division-block">
|
||||
<label class="block nav-detail-title"><?php echo L('goods_nav_photo_name');?><span class="fs-12 fw-100 cr-999">(<?php echo L('goods_images_tips');?>)</span></label>
|
||||
<ul class="plug-images-list" data-max-count="10" data-required="1" data-name="photo_file[]" data-delete-text="<?php echo L('common_operation_delete');?>" data-format="<?php echo L('goods_images_format');?>">
|
||||
<?php if(!empty($data['photo'])): if(is_array($data["photo"])): foreach($data["photo"] as $key=>$v): ?><li>
|
||||
<label class="plug-images-add-prohibit">
|
||||
<input type="hidden" name="photo[]" value="<?php echo ($v["images"]); ?>" />
|
||||
<div class="img-resources">
|
||||
<img src="<?php echo ($image_host); echo ($v["images"]); ?>" />
|
||||
<button type="button" class="am-btn am-btn-danger am-btn-xs am-btn-block plug-images-delete-submit"><?php echo L('common_operation_delete');?></button>
|
||||
</div>
|
||||
</label>
|
||||
</li><?php endforeach; endif; endif; ?>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- <div id="goods-nav-video" class="division-block">
|
||||
<label class="block nav-detail-title"><?php echo L('goods_nav_video_name');?></label>
|
||||
视频
|
||||
</div> -->
|
||||
<div id="goods-nav-attribute" class="division-block">
|
||||
<label class="block nav-detail-title"><?php echo L('goods_nav_attribute_name');?></label>
|
||||
<ul class="goods-attribute-items" data-name="attribute" data-attribute-type-name="<?php echo L('goods_attribute_type_name');?>" data-attribute-type-placeholder="<?php echo L('goods_attribute_type_placeholder');?>" data-attribute-type-format="<?php echo L('goods_attribute_type_format');?>" data-attribute-type-type-name="<?php echo L('goods_attribute_type_type_name');?>" data-attribute-type-type-show="<?php echo L('goods_attribute_type_type_show');?>" data-attribute-type-type-choose="<?php echo L('goods_attribute_type_type_choose');?>" data-attribute-type-type-format="<?php echo L('goods_attribute_type_type_format');?>" data-attribute-add-sub-text="<?php echo L('goods_attribute_add_sub_text');?>" data-attribute-name="<?php echo L('goods_attribute_name');?>" data-attribute-placeholder="<?php echo L('goods_attribute_placeholder');?>" data-attribute-format="<?php echo L('goods_attribute_format');?>" data-drag-sort-text="<?php echo L('common_drag_sort_title');?>">
|
||||
<?php if(!empty($data['attribute'])): if(is_array($data["attribute"])): foreach($data["attribute"] as $k=>$v): ?><li class="goods-attribute goods-attribute-<?php echo ($v["id"]); ?>">
|
||||
<div class="attribute-type am-radius">
|
||||
<i class="am-icon-times-circle am-icon-sm c-p attribute-type-rem-sub"></i>
|
||||
<p class="am-form-group">
|
||||
<span><?php echo L('goods_attribute_type_name');?> </span>
|
||||
<input type="text" name="attribute_<?php echo ($v["id"]); ?>_data_name" class="am-radius" placeholder="<?php echo L('goods_attribute_type_name');?>" minlength="1" maxlength="10" data-validation-message="<?php echo L('goods_attribute_type_format');?>" value="<?php echo ($v["name"]); ?>" required />
|
||||
</p>
|
||||
<p class="am-form-group">
|
||||
<span><?php echo L('goods_attribute_type_type_name');?> </span>
|
||||
<span class="am-btn-group attribute-type-se" data-am-button="">
|
||||
<label class="am-btn am-btn-default am-radius am-btn-sm <?php if($v['type'] == 'show'): ?>br-sed am-active<?php endif; ?>">
|
||||
<input type="radio" name="attribute_<?php echo ($v["id"]); ?>_data_type" value="show" data-validation-message="<?php echo L('goods_attribute_type_type_format');?>" <?php if($v['type'] == 'show'): ?>checked<?php endif; ?> required /><?php echo L('goods_attribute_type_type_show');?>
|
||||
</label>
|
||||
<label class="am-btn am-btn-default am-radius am-btn-sm <?php if($v['type'] == 'choose'): ?>br-sed am-active<?php endif; ?>">
|
||||
<input type="radio" name="attribute_<?php echo ($v["id"]); ?>_data_type" value="choose" data-validation-message="<?php echo L('goods_attribute_type_type_format');?>" <?php if($v['type'] == 'choose'): ?>checked<?php endif; ?> required /><?php echo L('goods_attribute_type_type_choose');?>
|
||||
</label>
|
||||
</span>
|
||||
</p>
|
||||
</div>
|
||||
<ul class="attribute-items-ul-<?php echo ($v["id"]); ?>">
|
||||
<?php if(!empty($v['find'])): if(is_array($v["find"])): foreach($v["find"] as $key=>$vs): ?><li class="attribute">
|
||||
<i class="am-icon-times-circle-o am-icon-sm c-p attribute-rem-sub"></i>
|
||||
<input type="text" name="attribute_<?php echo ($v["id"]); ?>_find_<?php echo ($vs["id"]); ?>_name" class="am-radius" placeholder="<?php echo L('goods_attribute_name');?>" minlength="1" maxlength="10" data-validation-message="<?php echo L('goods_attribute_format');?>" value="<?php echo ($vs["name"]); ?>" required />
|
||||
<i class="am-icon-list-ul am-icon-sm c-m drag-sort-submit"> <?php echo L('common_drag_sort_title');?></i></li><?php endforeach; endif; endif; ?>
|
||||
</ul>
|
||||
<i class="am-icon-plus-square-o am-icon-sm attribute-add-sub c-p" name="attribute_<?php echo ($v["id"]); ?>_find" data-tag=".attribute-items-ul-<?php echo ($v["id"]); ?>" index="<?php echo count($v['find']);?>"> <?php echo L('goods_attribute_add_sub_text');?></i>
|
||||
<i class="am-icon-list-ul am-icon-sm c-m drag-sort-submit"> <?php echo L('common_drag_sort_title');?></i>
|
||||
</li><?php endforeach; endif; endif; ?>
|
||||
</ul>
|
||||
<label class="am-icon-plus-square am-icon-sm c-p attribute-type-add-sub"> <?php echo L('goods_attribute_type_add_sub_text');?></label>
|
||||
</div>
|
||||
<div id="goods-nav-app" class="division-block">
|
||||
<label class="block nav-detail-title"><?php echo L('goods_nav_app_name');?></label>
|
||||
<ul class="content-app-items" data-max-count="10" data-required="1" data-images-name="content_app_images" data-content-name="content_app_text" data-images-text="<?php echo L('goods_content_app_images_text');?>" data-content-text="<?php echo L('goods_content_app_text_text');?>" data-images-default="<?php echo ($image_host); ?>/Public/Admin/Default/Images/default-images.png" data-delete-text="<?php echo L('common_operation_delete');?>" data-drag-sort-text="<?php echo L('common_drag_sort_title');?>" data-select-images-text="<?php echo L('common_select_images_text');?>" data-select-images-format="<?php echo L('common_select_images_tips');?>">
|
||||
<?php if(!empty($data['content_app'])): if(is_array($data["content_app"])): foreach($data["content_app"] as $key=>$v): ?><li>
|
||||
<div>
|
||||
<div class="am-form-group am-form-file">
|
||||
<label class="block"><?php echo L('goods_content_app_images_text');?></label>
|
||||
<button type="button" class="am-btn am-btn-default am-btn-sm am-radius"><i class="am-icon-cloud-upload"></i> <?php echo L('common_select_images_text');?></button>
|
||||
<input type="text" name="content_app_images_<?php echo ($v["id"]); ?>" class="am-radius js-choice-one original-images-url original-images-url-tag-<?php echo ($v["id"]); ?>" data-choice-one-to=".images-file-tag-<?php echo ($v["id"]); ?>" data-validation-message="<?php echo L('common_select_images_tips');?>" readonly="readonly" value="<?php if(!empty($v['images'])): echo ($v["images"]); endif; ?>" />
|
||||
<input type="file" name="content_app_images_file_<?php echo ($v["id"]); ?>" data-validation-message="<?php echo L('common_select_images_tips');?>" accept="image/gif,image/jpeg,image/jpg,image/png" class="js-choice-one images-file-tag-<?php echo ($v["id"]); ?>" data-choice-one-to=".original-images-url-tag-<?php echo ($v["id"]); ?>" data-tips-tag="#form-images_url-tips-<?php echo ($v["id"]); ?>" data-image-tag="#form-img-images_url-<?php echo ($v["id"]); ?>">
|
||||
<div id="form-images_url-tips-<?php echo ($v["id"]); ?>" class="m-t-5"></div>
|
||||
<img src="<?php if(!empty($v['images'])): echo ($image_host); echo ($v["images"]); else: echo ($image_host); ?>/Public/Admin/Default/Images/default-images.png<?php endif; ?>" id="form-img-images_url-<?php echo ($v["id"]); ?>" class="block m-t-5 am-img-thumbnail am-radius" height="150" data-default="<?php echo ($image_host); ?>/Public/Admin/Default/Images/default-images.png">
|
||||
</div>
|
||||
<div class="am-form-group fr">
|
||||
<label><?php echo L('goods_content_app_text_text');?></label>
|
||||
<textarea rows="6" name="content_app_text_<?php echo ($v["id"]); ?>" maxlength="105000" class="am-radius" placeholder="<?php echo L('goods_content_app_text_text');?>" data-validation-message="<?php echo L('goods_content_app_text_format');?>"><?php if(isset($v)): echo ($v["content"]); endif; ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<i class="am-icon-times-circle am-icon-sm c-p content-app-items-rem-sub"> 删除</i><i class="am-icon-list-ul am-icon-sm c-m drag-sort-submit"> <?php echo L('common_drag_sort_title');?></i>
|
||||
</li><?php endforeach; endif; endif; ?>
|
||||
</ul>
|
||||
<label class="am-icon-plus-square am-icon-sm c-p content-app-items-add-sub"> <?php echo L('goods_content_app_add_sub_text');?></label>
|
||||
</div>
|
||||
<div id="goods-nav-web" class="division-block">
|
||||
<label class="block nav-detail-title"><?php echo L('goods_nav_web_name');?></label>
|
||||
<div class="am-form-group">
|
||||
<textarea class="am-radius am-validate" name="content_web" maxlength="105000" id="editor-tag" data-url="<?php echo U('Admin/Ueditor/Index', ['path_type'=>'Article']);?>" data-validation-message="<?php echo L('goods_content_web_format');?>"><?php if(!empty($data)): echo ($data["content_web"]); endif; ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="am-form-group">
|
||||
<input type="hidden" name="id" <?php if(!empty($data)): ?>value="<?php echo ($data["id"]); ?>"<?php endif; ?>" />
|
||||
<button type="submit" class="am-btn am-btn-primary am-radius btn-loading-example am-btn-sm w100" data-am-loading="{loadingText:'<?php echo L('common_form_loading_tips');?>'}"><?php echo L('common_operation_save');?></button>
|
||||
</div>
|
||||
</form>
|
||||
<!-- form end -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- right content end -->
|
||||
|
||||
<!-- footer start -->
|
||||
<!-- commom html start -->
|
||||
<!-- delete html start -->
|
||||
<div class="am-modal am-modal-confirm" tabindex="-1" id="common-confirm-delete">
|
||||
<div class="am-modal-dialog am-radius">
|
||||
<div class="am-modal-bd"><?php echo L('common_delete_tips');?></div>
|
||||
<div class="am-modal-footer">
|
||||
<span class="am-modal-btn" data-am-modal-cancel><?php echo L('common_operation_cancel');?></span>
|
||||
<span class="am-modal-btn" data-am-modal-confirm><?php echo L('common_operation_confirm');?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- delete html end -->
|
||||
|
||||
<!-- delete html start -->
|
||||
<div class="am-modal am-modal-confirm" tabindex="-1" id="common-confirm-cancel">
|
||||
<div class="am-modal-dialog am-radius">
|
||||
<div class="am-modal-bd"><?php echo L('common_cancel_tips');?></div>
|
||||
<div class="am-modal-footer">
|
||||
<span class="am-modal-btn" data-am-modal-cancel><?php echo L('common_operation_cancel');?></span>
|
||||
<span class="am-modal-btn" data-am-modal-confirm><?php echo L('common_operation_confirm');?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- delete html end -->
|
||||
<!-- commom html end -->
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<!-- 类库 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/jquery/jquery-2.1.0.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/assets/js/amazeui.min.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/echarts/echarts.min.js"></script>
|
||||
|
||||
<!-- ueditor 编辑器 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/ueditor/ueditor.config.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/ueditor/ueditor.all.min.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/ueditor/lang/zh-cn/zh-cn.js"></script>
|
||||
|
||||
<!-- 颜色选择器 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/colorpicker/jquery.colorpicker.js"></script>
|
||||
|
||||
<!-- 元素拖拽排序插件 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/dragsort/jquery.dragsort-0.5.2.min.js"></script>
|
||||
|
||||
<!-- amazeui插件 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/amazeui-switch/amazeui.switch.min.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/amazeui-chosen/amazeui.chosen.min.js"></script>
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/amazeui-dialog/amazeui.dialog.min.js"></script>
|
||||
|
||||
<!-- 日期组件 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Lib/My97DatePicker/WdatePicker.js"></script>
|
||||
|
||||
<!-- 项目公共 -->
|
||||
<script type="text/javascript" src="/project/shop/service/Public/Common/Js/Common.js"></script>
|
||||
|
||||
<!-- 控制器 -->
|
||||
<?php if(!empty($module_js)): ?><script type="text/javascript" src="/project/shop/service/Public/<?php echo ($module_js); ?>"></script><?php endif; ?>
|
||||
<!-- footer end -->
|
||||
|
||||
<!-- 拖拽排序初始化 -->
|
||||
<script type="text/javascript">
|
||||
$(function()
|
||||
{
|
||||
<?php if(!empty($data['attribute'])): if(is_array($data["attribute"])): foreach($data["attribute"] as $key=>$v): ?>$('ul.attribute-items-ul-<?php echo ($v["id"]); ?>').dragsort({ dragSelector: 'i.drag-sort-submit', placeHolderTemplate: '<li class="drag-sort-dotted"></li>'});<?php endforeach; endif; endif; ?>
|
||||
|
||||
<?php if(!empty($data['content_app'])): if(is_array($data["content_app"])): foreach($data["content_app"] as $key=>$v): ?>img_file_upload_show('.images-file-tag-<?php echo ($v["id"]); ?>');<?php endforeach; endif; endif; ?>
|
||||
});
|
||||
</script>
|
||||
|
|
@ -140,7 +140,7 @@ input:hover, select:hover, textarea:hover, .chosen-choices:hover, .chosen-single
|
|||
*/
|
||||
.plug-images-list { padding: 0px; margin: 0px; overflow: hidden; }
|
||||
.plug-images-list li { list-style-type: none; width: 150px; height: 200px; overflow: hidden; float: left; margin: 0 10px 10px 0; }
|
||||
.plug-images-list li:last-child { border: 1px solid #eee; }
|
||||
.plug-images-list li.plug-images-add-tag { border: 1px solid #eee; }
|
||||
.plug-images-list li img { width: 100%; height: 172px; }
|
||||
.plug-images-list .plug-images-add { text-align: center; width: 100%; }
|
||||
.plug-images-list .plug-images-add .add-icon { color: #ccc; font-size: 80px; font-style: normal; height: 200px; line-height: 200px; cursor: pointer; display: block; }
|
||||
|
|
|
|||
|
|
@ -520,12 +520,9 @@ function Tree(id, url, level, is_add_node)
|
|||
*/
|
||||
function img_file_upload_show(class_name, show_img, default_images)
|
||||
{
|
||||
if((show_img || null) == null)
|
||||
{
|
||||
show_img = $(class_name).data('image-tag') || null;
|
||||
}
|
||||
$(document).on("change", class_name, function(imgFile)
|
||||
{
|
||||
show_img = $(this).data('image-tag') || null;
|
||||
var status = false;
|
||||
if((imgFile.target.value || null) != null)
|
||||
{
|
||||
|
|
@ -704,6 +701,70 @@ $(function()
|
|||
});
|
||||
});
|
||||
|
||||
/**
|
||||
* 编辑窗口额为参数处理
|
||||
* @author Devil
|
||||
* @blog http://gong.gg/
|
||||
* @version 1.0.0
|
||||
* @date 2018-08-07
|
||||
* @desc description
|
||||
* @param {[object]} data [数据]
|
||||
* @param {[string]} type [edit, add]
|
||||
* @return {[object]} [处理后的数据]
|
||||
*/
|
||||
function fun_save_win_additional(data, type)
|
||||
{
|
||||
// 额外处理数据
|
||||
if($('#tree').length > 0)
|
||||
{
|
||||
var additional = $('#tree').data('additional') || null;
|
||||
if(additional != null)
|
||||
{
|
||||
for(var i in additional)
|
||||
{
|
||||
var value = (type == 'add') ? (additional[i]['value'] || '') : (data[additional[i]['field']] || additional[i]['value'] || '');
|
||||
switch(additional[i]['type'])
|
||||
{
|
||||
// 表单
|
||||
case 'input' :
|
||||
case 'select' :
|
||||
case 'textarea' :
|
||||
data[additional[i]['field']] = value;
|
||||
break;
|
||||
|
||||
// 样式处理
|
||||
case 'css' :
|
||||
$(additional[i]['tag']).css(additional[i]['style'], value);
|
||||
break;
|
||||
|
||||
// 文件
|
||||
case 'file' :
|
||||
var $file_tag = $(additional[i]['tag']);
|
||||
if($file_tag.val().length > 0)
|
||||
{
|
||||
$file_tag.after($file_tag.clone().val(''));
|
||||
$file_tag.val('');
|
||||
}
|
||||
break;
|
||||
|
||||
// 属性
|
||||
case 'attr' :
|
||||
$(additional[i]['tag']).attr(additional[i]['style'], value);
|
||||
break;
|
||||
|
||||
// 内容替换
|
||||
case 'html' :
|
||||
$(additional[i]['tag']).html(value);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
/**
|
||||
* [submit-edit 公共编辑]
|
||||
* @author Devil
|
||||
|
|
@ -724,23 +785,10 @@ $(function()
|
|||
}
|
||||
|
||||
// 填充数据
|
||||
var josn = $(this).data('json');
|
||||
FormDataFill(josn, '#'+tag);
|
||||
var data = fun_save_win_additional($(this).data('json'), 'edit');
|
||||
|
||||
// icon图标
|
||||
if($('input[name="file_icon"]').length > 0)
|
||||
{
|
||||
var tips_tag = $('input[name="file_icon"]').data('tips-tag') || null;
|
||||
var icon_tag = $('input[name="file_icon"]').data('image-tag') || null;
|
||||
if(tips_tag != null)
|
||||
{
|
||||
$(tips_tag).html('');
|
||||
}
|
||||
if(icon_tag != null)
|
||||
{
|
||||
$(icon_tag).attr('src', josn.icon_url || $(icon_tag).data('default'));
|
||||
}
|
||||
}
|
||||
// 开始填充数据
|
||||
FormDataFill(data, '#'+tag);
|
||||
});
|
||||
|
||||
/**
|
||||
|
|
@ -822,8 +870,14 @@ $(function()
|
|||
$title = $('#data-save-win').find('.am-popup-title');
|
||||
$title.text($title.data('add-title'));
|
||||
|
||||
// 填充数据
|
||||
var data = {"id":"", "pid":0, "name":"", "sort":0, "is_enable":1, "icon":""};
|
||||
|
||||
// 额外处理数据
|
||||
data = fun_save_win_additional(data, 'init');
|
||||
|
||||
// 清空表单
|
||||
FormDataFill({"id":"", "pid":0, "name":"", "sort":0, "is_enable":1, "icon":""});
|
||||
FormDataFill(data);
|
||||
|
||||
// 移除菜单禁止状态
|
||||
$('form select[name="pid"]').removeAttr('disabled');
|
||||
|
|
@ -833,27 +887,6 @@ $(function()
|
|||
{
|
||||
$(this).blur();
|
||||
});
|
||||
|
||||
// icon图标
|
||||
if($('input[name="file_icon"]').length > 0)
|
||||
{
|
||||
var $file_tag = $('input[name="file_icon"]');
|
||||
if($file_tag.val().length > 0)
|
||||
{
|
||||
$file_tag.after($file_tag.clone().val(''));
|
||||
$file_tag.val('');
|
||||
}
|
||||
var tips_tag = $('input[name="file_icon"]').data('tips-tag') || null;
|
||||
var icon_tag = $('input[name="file_icon"]').data('image-tag') || null;
|
||||
if(tips_tag != null)
|
||||
{
|
||||
$(tips_tag).html('');
|
||||
}
|
||||
if(icon_tag != null)
|
||||
{
|
||||
$(icon_tag).attr('src', $(icon_tag).data('default'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -1059,6 +1092,14 @@ $(function()
|
|||
$(document).on('click', '.original-images-url-delete', function()
|
||||
{
|
||||
$($(this).data('input-tag')).val('');
|
||||
$($(this).data('image-tag')).attr('src', $($(this).data('image-tag')).data('default'));
|
||||
$($(this).data('tips-tag')).html('');
|
||||
var $file_tag = $($(this).data('file-tag'));
|
||||
if($file_tag.val().length > 0)
|
||||
{
|
||||
$file_tag.after($file_tag.clone().val(''));
|
||||
$file_tag.val('');
|
||||
}
|
||||
});
|
||||
|
||||
// 颜色选择器
|
||||
|
|
@ -1067,15 +1108,15 @@ $(function()
|
|||
fillcolor:true,
|
||||
success:function(o, color)
|
||||
{
|
||||
var style = $('.colorpicker-submit').data('color-style') || 'color';
|
||||
$($('.colorpicker-submit').data('input-tag')).css(style, color);
|
||||
$($('.colorpicker-submit').data('color-tag')).val(color);
|
||||
var style = o.context.dataset.colorStyle || 'color';
|
||||
$(o.context.dataset.inputTag).css(style, color);
|
||||
$(o.context.dataset.colorTag).val(color);
|
||||
},
|
||||
reset:function(o)
|
||||
{
|
||||
var style = $('.colorpicker-submit').data('color-style') || 'color';
|
||||
$($('.colorpicker-submit').data('input-tag')).css(style, '');
|
||||
$($('.colorpicker-submit').data('color-tag')).val('');
|
||||
var style = o.context.dataset.colorStyle || 'color';
|
||||
$(o.context.dataset.inputTag).css(style, '');
|
||||
$(o.context.dataset.colorTag).val('');
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
|
After Width: | Height: | Size: 424 KiB |
|
After Width: | Height: | Size: 352 KiB |
|
After Width: | Height: | Size: 95 KiB |
|
After Width: | Height: | Size: 43 KiB |
|
After Width: | Height: | Size: 898 KiB |
|
After Width: | Height: | Size: 43 KiB |
|
After Width: | Height: | Size: 113 KiB |
|
After Width: | Height: | Size: 824 KiB |