<?php /* Smarty version Smarty-3.0.8, created on 2017-07-30 12:34:52
         compiled from "/www/wwwroot/sanweiyuan.cn/tpl/admin/shop.html" */ ?>
<?php /*%%SmartyHeaderCode:743649749597d61ec569b69-58637318%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '4922d4a96aa6f52f766407a7c2db1cc62a3a4e54' => 
    array (
      0 => '/www/wwwroot/sanweiyuan.cn/tpl/admin/shop.html',
      1 => 1501242857,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '743649749597d61ec569b69-58637318',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<!DOCTYPE HTML>
<html>
<head>
<title>燕子家居-砍价系统管理后台</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta content="mxszpt Inc." name="Copyright" />
<link href="css/bootstrap.min.css" rel="stylesheet" />
<link href="css/bootstrap-datetimepicker.min.css" rel="stylesheet" media="screen">
<link media="all" type="text/css" href="css/admincp.css" rel="stylesheet">
<link media="all" type="text/css" href="css/style.admin.css" rel="stylesheet">
<script type="text/javascript" src="js/jquery-1.8.3.js"></script>
<script type="text/javascript" src="js/xheditor-1.2.2.min.js"></script>
<script type="text/javascript" src="js/xheditor_lang/zh-cn.js"></script>
<link rel="stylesheet" href="css/kind_default.css" />
<script src="kindeditor/kindeditor.js"></script>
<script src="kindeditor/lang/zh_CN.js"></script>
<script>
	KindEditor.ready(function(K) {
		var uploadbutton = K.uploadbutton({
			button : K('#uploadButton')[0],
			fieldName : 'imgFile',
			url : 'php/upload_json.php?dir=file',
			afterUpload : function(data) {
				if (data.error === 0) {
					var url = K.formatUrl(data.url, 'absolute');
					K('#url').val(url);
				} else {
					alert(data.message);
				}
			},
			afterError : function(str) {
				alert('自定义错误信息: ' + str);
			}
		});
		uploadbutton.fileBox.change(function(e) {
			uploadbutton.submit();
		});
	});
</script>
</head>

<body>
<form action="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'admin','a'=>'shopgo'),$_smarty_tpl);?>
" method="POST">
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-bottom: 60px;">
  <tr>
    <td class="ry-td4">活动时间：</td>
    <td class="ry-td6">
      <input type="text" name="starttime" placeholder="开始日期" class="form_datetime time"/>   
      <input type="text" name="overtime"  placeholder="结束日期" class="form_datetime time"/></td>
    </tr>
  <tr>
    <td class="ry-td4">总数量：</td>
    <td class="ry-td3"><input type="text" name="num" placeholder="件，0代表不限制"/>
 </td>
  </tr>
  <tr>
    <td class="ry-td4">活动名称：</td>
    <td class="ry-td3"><input type="text" name="title"/></td>
  </tr>
  <tr>
    <td class="ry-td4">原价：</td>
    <td class="ry-td3"><input type="text" name="yprice"/></td>
  </tr>
  <tr>
    <td class="ry-td4">保底价：</td>
    <td class="ry-td3"><input type="text" name="minprice"/></td>
  </tr>
  <tr>
    <td class="ry-td4">第一次砍价范围：</td>
    <td class="ry-td5">
      <input type="text" name="dprice" placeholder="小于(此项必须和原价一致)"/>
      元，砍价随机值：从
      <input type="text" name="kjmin"/>
      元，到
      <input type="text" name="kjmax"/>
    元</td>
  </tr>
  <tr>
    <td class="ry-td4">第二次砍价范围：</td>
    <td class="ry-td5">
      <input type="text" name="dpricetwo" placeholder="小于"/>
      元，砍价随机值：从
      <input type="text" name="kjmintwo"/>
      元，到
      <input type="text" name="kjmaxtwo"/>
    元</td>
  </tr>
  <tr>
    <td class="ry-td4">第三次砍价范围：</td>
    <td class="ry-td5">
      <input type="text" name="dpricethree" placeholder="小于"/>
      元，砍价随机值：从
      <input type="text" name="kjminthree"/>
      元，到
      <input type="text" name="kjmaxthree"/>
    元</td>
  </tr>
  <tr>
    <td class="ry-td4">活动图片：</td>
    <td class="ry-td7"><input type="text" id="url" value="<?php echo $_smarty_tpl->getVariable('edituser')->value['avatar'];?>
" readonly="readonly" name="pic" class="ry-input-pic"/> <input type="button" id="uploadButton" value="上传缩略图" /></td>
  </tr>
  <tr style="height: 220px;">
    <td class="ry-td4">活动规则：</td>
    <td class="ry-td3">	<textarea name="guize" class="ry-tb-textarea xheditor {upImgUrl:'upload.php'}" placeholder="活动规则" ></textarea></td>
  </tr>
  <tr style="height: 220px;">
    <td class="ry-td4">活动详情：</td>
    <td class="ry-td3"><textarea name="xiangqing" class="ry-tb-textarea xheditor {upImgUrl:'upload.php'}" placeholder="活动详情" ></textarea></td>
  </tr>
  <tr>
    <td class="ry-td4">&nbsp;</td>
    <td class="ry-td3"><input type="submit" value="添加" class="ry-tijiao-shop"/></td>
  </tr>
</table>
    </form>
</body>
	<script type="text/javascript" src="js/bootstrap.min.js"></script>
	<script type="text/javascript" src="js/bootstrap-datetimepicker.min.js" charset="UTF-8"></script>
	<script type="text/javascript" src="js/bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></script>
	<script type="text/javascript">
		$(document).ready(function(){
				//日期控件事件
			    $('.time').datetimepicker({
				 	format: 'yyyy-mm-dd',
			        weekStart: 1,
			        autoclose: true,
			        todayBtn: 'linked',
			        language: 'zh-CN',
			        minView: "month",
			    });
	    });
</script>
</html>