<?php /* Smarty version Smarty-3.0.8, created on 2014-05-16 16:54:23
         compiled from "D:\www\cangku/tpl\shopadd.html" */ ?>
<?php /*%%SmartyHeaderCode:27415375d23fb659e1-97540304%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '43320f35ce558ab45473171b27bacc547cbd8001' => 
    array (
      0 => 'D:\\www\\cangku/tpl\\shopadd.html',
      1 => 1400230461,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '27415375d23fb659e1-97540304',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<!DOCTYPE HTML>
<html>
<head>
	<meta http-equiv="content-type" content="text/html" />
	<meta name="author" content="mxszpt.com" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <link rel="stylesheet" href="dist/css/bootstrap.css"/>
    <link href="dist/css/bootstrap-responsive.css" rel="stylesheet"/>
     <script src="dist/js/jquery.min.js"></script>
     <script src="dist/js/bootstrap.min.js"></script>
     		<link rel="stylesheet" href="dist/js/default.css" />
		<script src="dist/js/kindeditor.js"></script>
	<title>仓库管理系统后台-添加产品</title>
        		<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>
<div style="margin: 30px;">
<form action="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'main','a'=>'shopaddzz'),$_smarty_tpl);?>
" method="POST">
    <p><b>产品名：</b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" name="shopname" style="width: 250px;"/></p>
    <p><b>产品分类：</b>&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" name="type"  style="width: 250px;"/><span style="color: red;">分类格式，直接填写分类，例如：食品</span></p>
    <p><b>产品编号：</b>&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" name="num" style="width: 250px;"/><span style="color: red;">编号格式：年月日+第几件商品，例如：201405160001</span></p>
    <p><b>产品单价：</b>&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" name="pay" style="width: 250px;"/><span style="color: red;">请直接填写商品价格，例如：120</span></p>
    <p><b>成品总数量：</b><input type="text" name="goodnum" style="width: 250px;"/><span style="color: red;">请直接填写成品总数量，例如：4754</span></p>
    <p><b>次品总数量：</b><input type="text" name="badnum" style="width: 250px;"/><span style="color: red;">请直接填写次品总数量，例如：5980</span></p>
    <p><b>产品图片：</b>&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" id="url" value="" readonly="readonly" name="images" style="width: 350px;"/> <input type="button" id="uploadButton" value="上传图片" class="btn btn-primary btn-xs"/></p>
   <input type="submit" value="添加产品" class="btn btn-primary"/>
   </form> 
    </div>


</body>
</html>