<commit_before><% layout("/admin/admin_layout.html"){ %>
<section>
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet"
	media="screen">
<link href="bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet"
	media="screen">
<link href="assets/styles.css" rel="stylesheet" media="screen">
<script src="js/vendor/modernizr-2.6.2-respond-1.1.0.min.js"></script>
<script src="js/goods.js"></script>
<div class="span9" id="content">
	<div class="row-fluid"> 
		<div class="block">
			<div class="navbar navbar-inner block-header">
				<div class="muted pull-left">商品详情</div>
			</div>
			<div class="block-content collapse in">
				<div class="span12">
     <form class="form-signin" action="goods/updateGoods?goodsId=${goods.goodsid!}" method="post" id="createHtml" enctype="multipart/form-data">
     	
     		<input name="goods.goodsid" value="${goods.goodsid!}" type="text" class="span6 m-wrap" style="display:none"/><br>
         	商品名称：<input id="goodsname" name="goods.goodsname" value="${goods.goodsname!}" type="text" class="span6 m-wrap" />
        	<span class='font_r' style="color: red"> *</span><br>
        	商品价格：<input id="price" name="goods.price" value="${goods.price!}" type="text" class="span6 m-wrap" />
        	<span class='font_r' style="color: red"> *</span><br>
        	豆豆价格：<input id="dougprice" name="goods.dougprice" value="${goods.dougprice!}" type="text" class="span6 m-wrap" /><br>
			历史价格：<input id="oldprice" name="goods.oldprice" value="${goods.oldprice!}" type="text" class="span6 m-wrap" /><br>        	 
        	
        	商品主图：<div id="preview"></div>
        	<input id="fileImage" type="file" size="30" name="pic" name="goods.pic" onchange="onUploadImgChange(this)" />
        	<img data-src="holder.js/260x180" alt="260x180" style="width: 260px; height: 180px;" src="${goods.pic!}"/><br>
        	
        	商品信息：<input name="goods.message" value="${goods.message!}" type="text" class="span6 m-wrap" />
        	<span class='font_r' style="color: red"> *</span><br>
        	
        	商城链接：<input id="tamllurl" name="goods.tamllurl" value="${goods.tamllurl!}" type="text" class="span6 m-wrap" />
        	<span class='font_r' style="color: red"> *</span><br>
        	是否放首页：
        		
        		<%
        		if (goods.istop != null && goods.istop != ""){ 
        		var istop =parseInt(goods.istop);
        		if (istop == 1) {
        		%>
        			<input type="radio" name="goods.istop" value="0"/>否&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					<input type="radio" checked="checked" name="goods.istop" value="1"/>是<br>

          		<%
        		} else if (istop == 0) {
        		%><commit_msg>商品管理编辑图片时，更换图片<commit_after><% layout("/admin/admin_layout.html"){ %>
<section>
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet"
	media="screen">
<link href="bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet"
	media="screen">
<link href="assets/styles.css" rel="stylesheet" media="screen">
<script src="js/vendor/modernizr-2.6.2-respond-1.1.0.min.js"></script>
<script src="js/goods.js"></script>
<div class="span9" id="content">
	<div class="row-fluid"> 
		<div class="block">
			<div class="navbar navbar-inner block-header">
				<div class="muted pull-left">商品详情</div>
			</div>
			<div class="block-content collapse in">
				<div class="span12">
     <form class="form-signin" action="goods/updateGoods?goodsId=${goods.goodsid!}" method="post" id="createHtml" enctype="multipart/form-data">
     	
     		<input name="goods.goodsid" value="${goods.goodsid!}" type="text" class="span6 m-wrap" style="display:none"/><br>
         	商品名称：<input id="goodsname" name="goods.goodsname" value="${goods.goodsname!}" type="text" class="span6 m-wrap" />
        	<span class='font_r' style="color: red"> *</span><br>
        	商品价格：<input id="price" name="goods.price" value="${goods.price!}" type="text" class="span6 m-wrap" />
        	<span class='font_r' style="color: red"> *</span><br>
        	豆豆价格：<input id="dougprice" name="goods.dougprice" value="${goods.dougprice!}" type="text" class="span6 m-wrap" /><br>
			历史价格：<input id="oldprice" name="goods.oldprice" value="${goods.oldprice!}" type="text" class="span6 m-wrap" /><br>        	 
        	
        	商品主图：
        	<div class="controls">
				<div id="preview" class="imgCss">
					<img src="${goods.pic!}">
				</div>
				<label id="picPath">
					<%
						var picPath = null;
						if(!isEmpty(goods) && !isEmpty(goods.pic)){
							var filePath = strutil.replace(goods.pic,"\\\\","/");
							picPath = strutil.subStringTo(filePath,@filePath.lastIndexOf("/")+1,strutil.length(filePath));
						}
					%>
					${picPath!}
				</label>
				<input id="themeimgBtn" type="button" onclick="pic.click()" value="请选择图片" required="required">
				<input id="pic" name="pic" type="file" class="fileCss" value="${goods.pic!}" onchange="onUploadImgChange(this)" style="display: none">
			</div>
        	
        	
        	<!-- <div id="preview"></div>
        	<input id="fileImage" type="file" size="30" name="pic" onchange="onUploadImgChange(this)" />
        	<img data-src="holder.js/260x180" alt="260x180" style="width: 260px; height: 180px;" src="${goods.pic!}"/><br> -->
        	
        	商品信息：<input name="goods.message" value="${goods.message!}" type="text" class="span6 m-wrap" />
        	<span class='font_r' style="color: red"> *</span><br>
        	
        	商城链接：<input id="tamllurl" name="goods.tamllurl" value="${goods.tamllurl!}" type="text" class="span6 m-wrap" />
        	<span class='font_r' style="color: red"> *</span><br>
        	是否放首页：
        		
        		<%
        		if (goods.istop != null && goods.istop != ""){ 
        		var istop =parseInt(goods.istop);
        		if (istop == 1) {
        		%>
        			<input type="radio" name="goods.istop" value="0"/>否&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					<input type="radio" checked="checked" name="goods.istop" value="1"/>是<br>

          		<%
        		} else if (istop == 0) {
        		%>
{'fraction_non_alphanumeric': 0.2107017836306051, 'fraction_numerical': 0.013502250375062511, 'mean_word_length': 3.4776119402985075, 'pattern_counts': {'":': 0, '<': 116, '<?xml version=': 0, '>': 116, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4263343', 'n_tokens_mistral': 2379, 'n_tokens_neox': 2250, 'n_words': 352}