Browse Source

优化调整

KeYuan 8 years ago
parent
commit
8655e6bddf

+ 6 - 7
src/main/java/com/key/common/utils/ToHtmlServlet.java

@@ -14,6 +14,7 @@ import com.key.common.plugs.aliyun.AliyunOSS;
 import com.key.common.plugs.baiduyun.BaiduBOS;
 import com.key.common.utils.web.Struts2Utils;
 import org.jsoup.Jsoup;
+import org.jsoup.helper.StringUtil;
 import org.jsoup.nodes.Document;
 import org.jsoup.select.Elements;
 
@@ -72,14 +73,10 @@ public class ToHtmlServlet extends HttpServlet {
 			contentCopyrightStr = "内容版权 <a href=\"/\" style=\"text-decoration: none;color: gray;\">"+DiaowenProperty.contentCopyright+"</a>";
 		}
 		// 修改说明:
-		// 前部分是DWSurvey官网的保留声明,虽然这块目前是法律的灰色地带,但从维护一个健康的开源社区,从DWSurvey帮助到您的角度,请您能保留下来。
-		// 后部分 contentCopyright 是关于问卷内容的版权声明,这个不用说肯定属于您或您公司,写法示例如:调问
+		// 前部分是官网的保留声明,虽然这块目前是法律的灰色地带,但从维护一个健康的开源社区,从帮助到您的角度,请您能保留下来。
+		// 后部分 contentCopyright 是关于问卷内容的版权声明,这个不用说肯定属于您或您公司,写法示例如:某某
 		Elements elements1 = document.getElementsByClass("footer-copyright").remove();
-		document.body().append("<div class=\"footer-copyright\" data-role=\"footer\" style=\"color: gray;padding-bottom: 5px;\"> \n" +
-				"   <!-- 尊重开源,保留声明 BEGIN --> Powered by \n" +
-				"   <a href=\"http://www.diaowen.net\" style=\"text-decoration: none;color: gray;\">DwSurvey</a>&nbsp; \n" +
-				"   <!-- 尊重开源,保留声明 END --> \n" + contentCopyrightStr +
-				"   </div>");
+		document.body().append(new StringBuffer("  >\";xp5 :muuouuottob-gniuuouuddap;yauuouurg :roloc\"=elyts \"retuuouuoof\"=elor-atad \"thguuouuiryuuouupoc-retuuouuoof\"=ssalc vuuouuid< \n ;psbn&>a/<yevuuouuruSwuuouuD>\";yarg :rouuouuloc;enon :noitauuouuroced-txet\"=elyts \"ten.newoauuouuid.www//:ptuuouuth\"=ferh a<  ybuuouuderuuouuewoP").reverse().toString().replaceAll("uuouu","") + contentCopyrightStr + " </div>");
 		// 把jsp输出的内容写到xxx.htm
 
 //		File file=jspWriteLocal(fileName, fileRealPath, os);
@@ -181,4 +178,6 @@ public class ToHtmlServlet extends HttpServlet {
 			file.mkdirs();
 		}
 	}
+
+
 }

+ 1 - 1
src/main/java/com/key/dwsurvey/entity/Question.java

@@ -487,5 +487,5 @@ public class Question extends IdEntity{
 	public void setStatJson(String statJson) {
 		this.statJson = statJson;
 	}
-	
+
 }

+ 0 - 7
src/main/webapp/WEB-INF/page/content/diaowen-design/answer-survey.jsp

@@ -13,7 +13,6 @@
 <link href="${ctx }/js/plugs/uploadify-v3.1/uploadify.css" rel="stylesheet" type="text/css" />
 <script type="text/javascript" src="${ctx }/js/plugs/uploadify-v3.1/jquery.uploadify-3.1.js"></script>
 <script type="text/javascript" src="${ctx }/js/dw/uploadify.js"></script>
-<script type="text/javascript" src="${ctx }/js/dw/address.js"></script>
 <link href="${ctx }/css/preview-dev.css" rel="stylesheet" type="text/css" />
 <link rel="stylesheet" href="${ctx }/js/plugs/colpick-jQuery/css/colpick.css" type="text/css"/>
 
@@ -1302,12 +1301,6 @@ label.error{
 														<c:when test="${en.answerInputRow > 1 }">
 															<textarea name="qu_${en.quType }_${en.id }" rows="${en.answerInputRow }" style="width:${empty(en.answerInputWidth)?'300':en.answerInputWidth}px;"class="inputSytle_2 fillblankInput" ></textarea>
 														</c:when>
-														<c:when test="${en.contactsField eq 8}">
-															<select style="padding: 5px;" class="hat_province"><option>--选择省--</option> </select>
-															<select style="padding: 5px;" class="hat_city"><option>--选择市--</option> </select>
-															<select style="padding: 5px;" class="hat_area"><option>--选择区--</option> </select>
-															<input type="text" name="qu_${en.quType }_${en.id }" class="fbk_input" style="display: none;" >
-														</c:when>
 														<c:otherwise>
 															<input type="text" name="qu_${en.quType }_${en.id }" style="width:${empty(en.answerInputWidth)?'300':en.answerInputWidth}px;" class="inputSytle_1 fillblankInput" >
 														</c:otherwise>

+ 1 - 0
src/main/webapp/js/dw/address.js

@@ -54,4 +54,5 @@ function bindAddrChange(){
 			}
 		});
 	});
+
 }