collect_2.jsp 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. <%@ page language="java" contentType="text/html; charset=UTF-8"
  2. pageEncoding="UTF-8"%>
  3. <%@include file="/common/taglibs.jsp" %>
  4. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  5. <html>
  6. <head>
  7. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  8. <%-- <script type="text/javascript" src="${ctx }/js/plugs/zero-clipboard/ZeroClipboard.js"></script> --%>
  9. <script type="text/javascript" src="${ctx }/js/plugs/zeroclipboard-master/dist/ZeroClipboard.js"></script>
  10. <script type="text/javascript" src="${ctx }/js/dw/collect.js"></script>
  11. <title>社交分享 数据收集</title>
  12. </head>
  13. <body>
  14. <input type="hidden" id="id" name="id" value="${surveyId }">
  15. <input type="hidden" id="surveyState" name="surveyState" value="${survey.surveyState }">
  16. <div class="creatgeSurveyStepBody">
  17. <div class="creatgeSurveyStepContent bodyCenter">
  18. <ul class="createSsUl">
  19. <li><a href="" class="clickHideMenu csscStep csscStep4"><span class="csscStepLeft">&nbsp;</span><span class="csscStepCenter">设计问卷</span><span class="csscStepRight">&nbsp;</span></a>
  20. <div class="a-w-sel">
  21. <div class="w-sel" style="margin-top: 4px;">
  22. <div class="selc">
  23. <div class="selcc tbtag">
  24. <div class="seli"><a class="nx-1 sur_collectSet" href="#collectSet">收集规则</a></div>
  25. <div class="seli"><a class="nx-6 sur_edit" href="${ctx }/design/my-survey-design.action?surveyId=${surveyId}">问卷编辑</a></div>
  26. </div>
  27. </div>
  28. </div>
  29. </div>
  30. </li>
  31. <li><span class="csscStep csscStepLine"><span class="csscStepLeft">&nbsp;</span><span class="csscStepRight">&nbsp;</span></span></li>
  32. <li><a href="${ctx }/design/my-collect.action?surveyId=${surveyId }" class="clickHideMenu csscStep csscStep5 active"><span class="csscStepLeft">&nbsp;</span><span class="csscStepCenter">数据收集</span><span class="csscStepRight" >&nbsp;</span></a>
  33. </li>
  34. <li><span class="csscStep csscStepLine"><span class="csscStepLeft">&nbsp;</span><span class="csscStepRight">&nbsp;</span></span></li>
  35. <li><a href="${ctx }/da/survey-report!defaultReport.action?surveyId=${surveyId}" class="clickHideMenu csscStep csscStep6"><span class="csscStepLeft">&nbsp;</span><span class="csscStepCenter">数据分析</span><span class="csscStepRight">&nbsp;</span></a>
  36. <div class="a-w-sel">
  37. <div class="w-sel" style="margin-top: 4px;margin-left: 15px;">
  38. <div class="selc">
  39. <div class="selcc tbtag">
  40. <div class="seli"><a class="nx-1" href="${ctx }/da/survey-report!defaultReport.action?surveyId=${surveyId}">统计表格</a></div>
  41. </div>
  42. </div>
  43. </div>
  44. </div>
  45. </li>
  46. </ul>
  47. </div>
  48. </div>
  49. <div style="">
  50. <div class="main-tabs-content bodyCenter">
  51. <div class="tab-content">
  52. <div class="tab-content-collectTab">
  53. <a href="${ctx }/design/my-collect.action?surveyId=${surveyId}" class="collectTab tabItem_1 "><span class="collectTabItemLeft">&nbsp;</span><span>答卷地址</span></a>
  54. <a href="${ctx }/design/my-collect.action?surveyId=${surveyId}&tabId=share" class="collectTab tabItem_4 active" ><span class="collectTabItemLeft">&nbsp;</span><span>社交分享</span></a>
  55. <a href="${ctx }/design/my-collect.action?surveyId=${surveyId}&tabId=sitecomp" class="collectTab tabItem_5"><span class="collectTabItemLeft">&nbsp;</span><span>网站组件</span></a>
  56. <%-- <a href="${ctx }/design/my-collect.action?surveyId=${surveyId}&tabId=iframe" class="collectTab tabItem_6"><span class="collectTabItemLeft">&nbsp;</span><span>IFrame嵌入</span></a> --%>
  57. <a href="${ctx }/design/my-collect.action?surveyId=${surveyId}&tabId=weixin" class="collectTab tabItem_2"><span class="collectTabItemLeft">&nbsp;</span><span>微信收集</span></a>
  58. </div>
  59. </div>
  60. </div>
  61. </div>
  62. <div style="clear: both;"></div>
  63. <div id="dwBody" >
  64. <div id="dwBodyContent" class="bodyCenter" style="border:1px solid #C1DAEC;">
  65. <div id="dwBodyUser">
  66. <div class="surveyCollectMiddle">
  67. <!-- <div class="surveyCollectMiddleTab">
  68. <div class="scmTabLeft">
  69. <div class="scmTabLeftItem"><a href="">问卷设计</a>&nbsp;&nbsp;&gt;</div>
  70. <div class="scmTabLeftItem"><a href="" class="hover">数据收集</a>&nbsp;&nbsp;&gt;</div>
  71. <div class="scmTabLeftItem"><a href="">数据分析</a></div>
  72. </div>
  73. </div> -->
  74. <!-- <div class="surveyCollectMiddleTab">
  75. <div class="scmTabLeft">
  76. <span class="scmTabLeftItem"><a href="">问卷设计</a>&nbsp;v</span>
  77. <span>&nbsp;&nbsp;——&gt;&nbsp;&nbsp;</span>
  78. <span class="scmTabLeftItem"><a href="" class="hover">数据收集</a>&nbsp;v</span>
  79. <span>&nbsp;&nbsp;——&gt;&nbsp;&nbsp;</span>
  80. <span class="scmTabLeftItem"><a href="">数据分析</a>&nbsp;v</span>
  81. </div>
  82. </div> -->
  83. <div class="surveyCollectTop">
  84. <div class="surveyCollectTitleDiv">
  85. <span class="surveyCollectTitle">${survey.surveyName }</span>
  86. <div class="scmTabRight" >
  87. <c:choose>
  88. <c:when test="${survey.surveyState eq 0 }">
  89. <a href="" class="surveyStateBtn sbtn25 sbtn25_2" style="color: #599fd1;">开始收集</a>
  90. </c:when>
  91. <c:when test="${survey.surveyState eq 1 }">
  92. <a href="" class="surveyStateBtn sbtn25 sbtn25_2">停止收集</a>
  93. </c:when>
  94. <c:when test="${survey.surveyState eq 2 }">
  95. <a href="" class="surveyStateBtn sbtn25 sbtn25_2">重新打开收集</a>
  96. </c:when>
  97. </c:choose>
  98. </div>
  99. </div>
  100. <div class="surveyCollectInfoDiv">
  101. <span class="surveyCollectInfoLeft">
  102. 状态:<span class="collectInfoSpan surveyStateText">${survey.surveyState eq 0 ? '设计中':survey.surveyState eq 1?'收集中':survey.surveyState eq 2?'收集完成':'' }</span>&nbsp;&nbsp;&nbsp;&nbsp;
  103. 参加人数:<span class="collectInfoSpan">${survey.answerNum }</span>
  104. </span>
  105. <span class="surveyCollectInfoRight">
  106. 发布时间:<span class="collectInfoSpan"><fmt:formatDate value="${survey.createDate }" pattern="yyyy年MM月dd日 HH时mm分" /> </span>
  107. </span>
  108. </div>
  109. </div>
  110. <div class="surveyCollectMiddleContent">
  111. <div class="collect_1_content">
  112. <div style="padding:0px 60px;">
  113. <div style="" >
  114. <div class="scmcRightTop" >
  115. <div class="scmcRightTopLeft">
  116. <div class="scmcRightTopLeftTitle">分享到社交网络
  117. <!-- <span id="clipLinkSpan" style="display: none;font-size:16px;color:#80AA00;">复制成功</span> -->
  118. </div>
  119. <div class="scmcRightTopLeftNote">赶快分享您的问卷到各大社交网站,让更多关注您的朋友来回答问卷。</div>
  120. </div>
  121. </div>
  122. <div style="clear: both;"></div>
  123. <div style="padding-bottom: 20px;">
  124. <div style="border: 1px solid rgb(234, 231, 231);padding: 5px;">
  125. <textarea id="shareSurTextarea" rows="5" cols="30" style="width: 100%;height: 160px;border: none;outline: none;resize:none;font-size: 16px;" >大家好,我刚刚通过调问网制作了一份调查问卷“${survey.surveyName }”,需要您的帮助,您的意见非常重要。快快来吧帮忙回答。</textarea>
  126. </div>
  127. <div style="padding: 5px;background: rgb(234, 231, 231);height: 40px;">
  128. <div style="float: left;line-height: 45px;">分享到&nbsp;&nbsp;</div>
  129. <div style="float: left;"><!-- Baidu Button BEGIN -->
  130. <div id="bdshare" class="bdshare_t bds_tools_32 get-codes-bdshare" data='{"text":"大家好,我刚刚通过调问网制作了一份调查问卷“${survey.surveyName }”,需要您的帮助,您的意见非常重要。快快来吧帮忙回答。", "url":"http://www.diaowen.net/wenjuan/${survey.sid }.html","pic":"http://www.diaowen.net/images/logo/200-200.png"}'>
  131. <a class="bds_qzone"></a>
  132. <a class="bds_tsina"></a>
  133. <a class="bds_tqq"></a>
  134. <a class="bds_renren"></a>
  135. <a class="bds_t163"></a>
  136. <span class="bds_more"></span>
  137. </div>
  138. <script type="text/javascript" id="bdshare_js" data="type=tools&amp;uid=519013" ></script>
  139. <script type="text/javascript" id="bdshell_js"></script>
  140. <script type="text/javascript">
  141. document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + Math.ceil(new Date()/3600000)
  142. </script>
  143. <!-- Baidu Button END -->
  144. <!-- <div class="bshare-custom icon-medium-plus"><div class="bsPromo bsPromo2"></div><a title="分享到QQ空间" class="bshare-qzone"></a><a title="分享到新浪微博" class="bshare-sinaminiblog"></a><a title="分享到人人网" class="bshare-renren"></a><a title="分享到腾讯微博" class="bshare-qqmb"></a><a title="分享到网易微博" class="bshare-neteasemb"></a><a title="更多平台" class="bshare-more bshare-more-icon more-style-addthis"></a></div>
  145. <script type="text/javascript" charset="utf-8" src="http://static.bshare.cn/b/buttonLite.js#style=-1&amp;uuid=&amp;pophcol=2&amp;lang=zh"></script>
  146. <script type="text/javascript" charset="utf-8" src="http://static.bshare.cn/b/bshareC0.js"></script> -->
  147. </div>
  148. <div style="text-align: right;float: right;line-height: 45px;">还可以输入:<span id="wordsInfo" style="color: green;">120</span>个字符。</div>
  149. </div>
  150. </div>
  151. </div>
  152. <div style="clear: both;"></div>
  153. </div>
  154. </div>
  155. <%-- <div class="scmcLeft">
  156. <ul>
  157. <li><a href="${ctx }/design/my-collect.action?surveyId=${surveyId}" class="hover">答卷地址</a></li>
  158. <li><a href="${ctx }/design/my-collect.action?surveyId=${surveyId}&tabId=weixin">微信收集</a></li>
  159. <!-- <li><a href="">发布互填</a></li> -->
  160. <li><a href="${ctx }/design/my-collect.action?surveyId=${surveyId}&tabId=mail">邮件邀请</a></li>
  161. <li><a href="${ctx }/design/my-collect.action?surveyId=${surveyId}&tabId=sitecomp">网站组件</a></li>
  162. <li><a href="${ctx }/design/my-collect.action?surveyId=${surveyId}&tabId=iframe">IFrame内嵌</a></li>
  163. </ul>
  164. </div> --%>
  165. <!-- <div class="scmcRight">
  166. <div style="clear: both;margin-top:10px;overflow: auto;">
  167. <div style="" >
  168. <div class="scmcRightTop" >
  169. <div class="scmcRightTopLeft">
  170. <div class="scmcRightTopLeftTitle">赶快分享您的问卷到各大社交网站</div>
  171. <div class="scmcRightTopLeftNote">点击下面分享快速分享您的问卷,让更多关注您的朋友来回答问卷。</div>
  172. </div>
  173. <div class="scmcRightTopRight" style="float: right ;margin-top: 30px;">
  174. </div>
  175. </div>
  176. <div style="clear: both;">
  177. <div class="scmcSurveySNSShare">
  178. <textarea rows="3" cols="5">大家好,就在刚才我在调问网网制作了一份调查问卷“测试问卷测试问卷测试问卷测试问卷测试问卷测试问卷测试问卷”,需要您的帮助,您的意见非常重要。快快来吧帮忙回答。</textarea>
  179. </div>
  180. </div>
  181. </div>
  182. </div>
  183. </div> -->
  184. </div>
  185. </div>
  186. </div>
  187. </div>
  188. </div>
  189. <script type="text/javascript">
  190. /*
  191. ZeroClipboard.setMoviePath( "${ctx}/js/plugs/zero-clipboard/ZeroClipboard.swf" );
  192. function bindClipBoard(textareaId,clipBtn,clipSpanId){
  193. var clip = new ZeroClipboard.Client();
  194. clip.setHandCursor( true );
  195. clip.setCSSEffects( true );
  196. var clipText=$("#"+textareaId).text();
  197. clip.setText(clipText); // 设置要复制的文本。
  198. //这个 button 不一定要求是一个 input 按钮,也可以是其他 DOM 元素。
  199. clip.glue(clipBtn); // 和上一句位置不可调换
  200. clip.addEventListener('complete', function (client, text) {
  201. //alert(text+":复成功");//notify("复制成功!");
  202. $("#"+clipSpanId).show().delay(5000).fadeOut("slow");
  203. //$("#"+textareaId).select();
  204. });
  205. clip.reposition(clipBtn);
  206. }
  207. bindClipBoard("linkTextarea","clipLink","clipLinkSpan");
  208. */
  209. var GetLength = function(str) {
  210. return str.replace(/[^\x00-\xff]/g,"kx").length;
  211. };
  212. $("#shareSurTextarea").keyup(function(){
  213. var words = parseInt((240 - GetLength($(this).val())) / 2);
  214. $('#wordsInfo').text(words);
  215. if (words >= 0){
  216. $('#wordsInfo').removeClass('redColor');
  217. }else{
  218. $('#wordsInfo').addClass('redColor');
  219. }
  220. $('#bdshare').attr('data', '{"text":"' + $(this).val() + '", "url":"http://www.diaowen.net/wenjuan/${survey.sid }.html","pic":"http://www.diaowen.net/images/logo/200-200.png"}');
  221. });
  222. $("#shareSurTextarea").keyup();
  223. </script>
  224. </body>
  225. </html>