<!DOCTYPE html>
<html>
<head>
<!--{if $isGbk}-->
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<!--{else}-->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!--{/if}-->
<title>{$Lang['edit_title']}</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
<link rel="stylesheet" href="source/plugin/tom_admin/layuiAdmin/layui/css/layui.css" media="all">
<link rel="stylesheet" href="source/plugin/tom_admin/layuiAdmin/style/admin.css" media="all">
<link rel="stylesheet" href="source/plugin/tom_admin/images/style.css?s={$cssJsVersion}" media="all">
<style>
.layui-form-select dl{ z-index:1000 }
.layui-form-label{ width:180px; }
.layui-input-block{ margin-left:210px; }
.layui-form .layui-upload{ margin-left:210px; }
</style>
</head>
<body>
<div class="layui-fluid">
<div class="layui-card">
<div class="layui-card-header">
<span class="layui-breadcrumb pd15">
<a>{$Lang['plugin_name']}</a>
<a><cite>{$Lang['edit_title']}</cite></a>
</span>
</div>
<div class="layui-card-body" pad15>
<form class="layui-form" lay-filter="save_form">
<div class="layui-tab layui-tab-brief">
<ul class="layui-tab-title">
<li class="layui-this">{$Lang['add_nav_base']}</li>
<li>{$Lang['add_nav_content']}</li>
<li>{$Lang['add_nav_pic']}</li>
<li>{$Lang['add_nav_taocan']}</li>
<li>{$Lang['add_nav_more']}</li>
<!--{if $__Admin['admin'] == 'admin'}-->
<li>{$Lang['add_nav_liyi']}</li>
<!--{/if}-->
</ul>
<div class="layui-tab-content">
<div class="layui-tab-item layui-show">
<!--{if $__Admin['admin'] == 'admin'}-->
<div class="layui-form-item">
<label class="layui-form-label">{$Lang['add_open_duo_shop']}</label>
<div class="layui-input-block">
<input type="checkbox" name="open_duo_shop" lay-filter="open_duo_shop" value="1" lay-skin="switch" lay-text="{$Lang['open']}|{$Lang['close']}" <!--{if $goodsInfo['open_duo_shop'] == 1}-->checked<!--{/if}-->>
</div>
<div class="layui-form-mid layui-word-aux"></div>
</div>
<div class="layui-form-item box_hide" id="site_id_box">
<label class="layui-form-label">{$Lang['sites_title']}</label>
<div class="layui-input-inline">
<select name="site_id" lay-filter="site_id" id="site_id">
<option value="1" <!--{if $goodsInfo['site_id'] == 1}-->selected<!--{/if}-->>{$Lang['sites_one']}</option>
{loop $sitesList $key $value}
<!--{if $goodsInfo['site_id'] == $value['id']}-->
<option value="{$value['id']}" selected>{$value['name']}</option>
<!--{else}-->
<option value="{$value['id']}">{$value['name']}</option>
<!--{/if}-->
{/loop}
</select>
<div class="layui-unselect layui-form-select">
<div class="layui-select-title">
<input type="text" placeholder="{$Lang['sites_one']}" value="{$sitesList[$goodsInfo['site_id']]['name']}" readonly="" class="layui-input layui-unselect"><i class="layui-edge"></i>
</div>
</div>
</div>
<div class="layui-form-mid layui-word-aux"></div>
</div>
<div class="layui-form-item" id="tcshop_id_box">
<label class="layui-form-label">{$Lang['add_tcshop_id']}</label>
<div class="layui-input-inline">
<input type="tel" name="tcshop_id" id="tcshop_id" value="{$goodsInfo['tcshop_id']}" autocomplete="off" placeholder="{$Lang['input_msg']}" class="layui-input">
</div>
<div class="layui-form-mid layui-word-aux"><font color="#f00">{$Lang['add_tcshop_id_msg']}</font></div>
</div>
<!--{/if}-->
<div class="layui-form-item">
<label class="layui-form-label">{$Lang['add_tit']}</label>
<div class="layui-input-block">
<input type="text" name="title" value="{$goodsInfo['title']}" autocomplete="off" placeholder="{$Lang['input_msg']}" class="layui-input">
</div>
</div>
<div class="layui-form-item" id="trade_box">
<label class="layui-form-label">{$Lang['add_trade']}</label>
<div class="layui-input-inline">
<select name="trade_id" id="trade_id" lay-filter="">
<option value="">{$Lang['select_msg']}</option>
{loop $tradeList $key $value}
<!--{if $goodsInfo['trade_id'] == $value['id']}-->
<option value="{$value['id']}" selected>{$value['name']}</option>
<!--{else}-->
<option value="{$value['id']}">{$value['name']}</option>
<!--{/if}-->
{/loop}
</select>
<div class="layui-unselect layui-form-select">
<div class="layui-select-title">
<input type="text" placeholder="{$Lang['select_msg']}" value="" readonly="" class="layui-input layui-unselect"><i class="layui-edge"></i>
</div>
</div>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">{$Lang['add_cate']}</label>
<div class="layui-input-inline">
<select name="cate_id" lay-filter="">
<option value="">{$Lang['select_msg']}</option>
{loop $cateList $key $value}
<!--{if $goodsInfo['cate_id'] == $value['id']}-->
<option value="{$value['id']}" selected>{$value['name']}</option>
<!--{else}-->
<option value="{$value['id']}">{$value['name']}</option>