goodsrate.aspx
上传用户:wenllgg125
上传日期:2020-04-09
资源大小:7277k
文件大小:8k
源码类别:

SCSI/ASPI

开发平台:

Others

  1. <%@ Page language="c#" AutoEventWireup="false" EnableViewState="false" Inherits="Discuz.Mall.Pages.goodsrate" %>
  2. <%@ Import namespace="System.Data" %>
  3. <%@ Import namespace="Discuz.Common" %>
  4. <%@ Import namespace="Discuz.Forum" %>
  5. <%@ Import namespace="Discuz.Entity" %>
  6. <script runat="server">
  7. override protected void OnInit(EventArgs e)
  8. {
  9. /* 
  10. This page was created by Discuz!NT Template Engine at 2009-9-22 17:24:50.
  11. 本页面代码由Discuz!NT模板引擎生成于 2009-9-22 17:24:50. 
  12. */
  13. base.OnInit(e);
  14. templateBuilder.Capacity = 220000;
  15. templateBuilder.Append("<!--TheCurrent start-->rn");
  16. if (page_err==0)
  17. {
  18. if (ispost)
  19. {
  20. }
  21. else
  22. {
  23. templateBuilder.Append("<div id="foruminfo">rn");
  24. templateBuilder.Append(" <div id="nav">rn");
  25. templateBuilder.Append(" <a href="");
  26. templateBuilder.Append(config.Forumurl.ToString().Trim());
  27. templateBuilder.Append("" class="home">");
  28. templateBuilder.Append(config.Forumtitle.ToString().Trim());
  29. templateBuilder.Append("</a>  &raquo; <strong>");
  30. templateBuilder.Append(goodstradelog.Subject.ToString().Trim());
  31. templateBuilder.Append("</strong>rn");
  32. templateBuilder.Append(" </div>rn");
  33. templateBuilder.Append(" <div id="headsearch">rn");
  34. templateBuilder.Append(" <div id="search">rn");
  35. if (usergroupinfo.Allowsearch>0)
  36. {
  37. } //end if
  38. templateBuilder.Append(" </div>rn");
  39. templateBuilder.Append(" </div>rn");
  40. templateBuilder.Append("</div>rn");
  41. templateBuilder.Append("<script type="text/javascript" src="javascript/template_trade.js"></");
  42. templateBuilder.Append("script>rn");
  43. templateBuilder.Append("<script type="text/javascript">rn");
  44. templateBuilder.Append("zoomstatus = parseInt(1);rn");
  45. templateBuilder.Append("</");
  46. templateBuilder.Append("script>rn");
  47. templateBuilder.Append("<div class="mainbox">rn");
  48. templateBuilder.Append("<form method="post" id="tradepost" name="tradepost" action="goodsrate.aspx?goodstradelogid=");
  49. templateBuilder.Append(goodstradelog.Id.ToString().Trim());
  50. templateBuilder.Append("">rn");
  51. templateBuilder.Append("   <h3>发表评价</h3>rn");
  52. templateBuilder.Append(" <table summary="发表评价" cellspacing="0" cellpadding="0">rn");
  53. templateBuilder.Append(" <tr>rn");
  54. templateBuilder.Append(" <th>被评价人</th>rn");
  55. templateBuilder.Append(" <td>rn");
  56. if (goodstradelog.Sellerid!=userid)
  57. {
  58.  aspxrewriteurl = this.UserInfoAspxRewrite(goodstradelog.Sellerid);
  59. templateBuilder.Append(" <a href="");
  60. templateBuilder.Append(aspxrewriteurl.ToString());
  61. templateBuilder.Append("" target="_blank">");
  62. templateBuilder.Append(goodstradelog.Seller.ToString().Trim());
  63. templateBuilder.Append("</a>rn");
  64. }
  65. else
  66. {
  67.  aspxrewriteurl = this.UserInfoAspxRewrite(goodstradelog.Buyerid);
  68. templateBuilder.Append(" <a href="");
  69. templateBuilder.Append(aspxrewriteurl.ToString());
  70. templateBuilder.Append("" target="_blank">");
  71. templateBuilder.Append(goodstradelog.Buyer.ToString().Trim());
  72. templateBuilder.Append("</a>rn");
  73. } //end if
  74. templateBuilder.Append(" </td>rn");
  75. templateBuilder.Append(" </tr>rn");
  76. templateBuilder.Append("       <tr>rn");
  77. templateBuilder.Append("            <th>相关商品</th>rn");
  78. templateBuilder.Append("            <td>rn");
  79.  aspxrewriteurl = this.ShowGoodsAspxRewrite(goodstradelog.Goodsid);
  80. templateBuilder.Append("                <a href="");
  81. templateBuilder.Append(aspxrewriteurl.ToString());
  82. templateBuilder.Append("" target="_blank">");
  83. templateBuilder.Append(goodstradelog.Subject.ToString().Trim());
  84. templateBuilder.Append("</a>rn");
  85. templateBuilder.Append(" </td>rn");
  86. templateBuilder.Append("        </tr>rn");
  87. templateBuilder.Append("       <tr>rn");
  88. templateBuilder.Append("            <th>评分</th>rn");
  89. templateBuilder.Append("            <td>rn");
  90. templateBuilder.Append("                <input name="ratetype" value="1" type="radio" class="radio" checked />rn");
  91. templateBuilder.Append("                <font color="#ff0000"><img src="templates/");
  92. templateBuilder.Append(templatepath.ToString());
  93. templateBuilder.Append("/images/good.gif" border="0" width="14" height="16"><strong>好评</strong></font>&nbsp;&nbsp;rn");
  94. templateBuilder.Append("                <input name="ratetype" value="2" type="radio" class="radio">rn");
  95. templateBuilder.Append("                <font color="green"><img src="templates/");
  96. templateBuilder.Append(templatepath.ToString());
  97. templateBuilder.Append("/images/soso.gif" border="0" width="14" height="16"><strong>中评</strong></font>&nbsp;&nbsp;rn");
  98. templateBuilder.Append("                <input name="ratetype" value="3" type="radio" class="radio">rn");
  99. templateBuilder.Append("                <img src="templates/");
  100. templateBuilder.Append(templatepath.ToString());
  101. templateBuilder.Append("/images/bad.gif" border="0" width="14" height="16"><strong>差评</strong>&nbsp;&nbsp;(线下交易的评分不计入信用评价)rn");
  102. templateBuilder.Append(" </td>rn");
  103. templateBuilder.Append("        </tr>rn");
  104. templateBuilder.Append("       <tr>rn");
  105. templateBuilder.Append("            <th>评价</th>rn");
  106. templateBuilder.Append("            <td>rn");
  107. templateBuilder.Append("                <textarea id="message" name="message" cols="10" rows="7" class="autosave" id="message" tabindex="2"  onkeydown="quickpost(event, this.form);" maxlength="200"></textarea>rn");
  108. templateBuilder.Append("            </td>rn");
  109. templateBuilder.Append("        </tr>rn");
  110. templateBuilder.Append("       <tr>rn");
  111. templateBuilder.Append("            <th>&nbsp;</th>rn");
  112. templateBuilder.Append("            <td>rn");
  113. templateBuilder.Append("                <button type="submit" id="postsubmit" name="ratesubmit" value="true"> 提交</button>[完成后可按 Ctrl+Enter 发布]rn");
  114. templateBuilder.Append("            </td>rn");
  115. templateBuilder.Append("        </tr>rn");
  116. templateBuilder.Append("    </table>rn");
  117. templateBuilder.Append("</form>rn");
  118. templateBuilder.Append("</div>rn");
  119. templateBuilder.Append("<script type="text/javascript">rn");
  120. templateBuilder.Append("var postSubmited = false;rn");
  121. templateBuilder.Append("function quickpost(event, theform) {rn");
  122. templateBuilder.Append(" if(postSubmited == false && (event.ctrlKey && event.keyCode == 13) || (event.altKey && event.keyCode == 83)) {rn");
  123. templateBuilder.Append(" if (!$("postsubmit").disabled) {rn");
  124. templateBuilder.Append("     if(validateform(theform, false,false)){rn");
  125. templateBuilder.Append("     theform.submit();rn");
  126. templateBuilder.Append("     $("postsubmit").disabled = truern");
  127. templateBuilder.Append(" }rn");
  128. templateBuilder.Append(" }rn");
  129. templateBuilder.Append(" else {rn");
  130. templateBuilder.Append(" alert('正在提交, 请稍候...');rn");
  131. templateBuilder.Append(" }rn");
  132. templateBuilder.Append(" }rn");
  133. templateBuilder.Append("}rn");
  134. templateBuilder.Append("function validateform(theform, previewpost, switcheditormode) {rn");
  135. templateBuilder.Append(" var message = theform.message.value;rn");
  136. templateBuilder.Append(" if (message == "") {rn");
  137. templateBuilder.Append(" alert("请完成内容栏。");rn");
  138. templateBuilder.Append(" $("postsubmit").disabled = false;rn");
  139. templateBuilder.Append(" return false;rn");
  140. templateBuilder.Append(" } rn");
  141. templateBuilder.Append(" if(mb_strlen(message) < 1 || mb_strlen(message) > 200) {rn");
  142. templateBuilder.Append(" alert("您的帖子长度不符合要求。\n\n当前长度: " + mb_strlen(message) + " 字节\n系统限制: 1 到 200 字节");rn");
  143. templateBuilder.Append(" return false;rn");
  144. templateBuilder.Append(" }rn");
  145. templateBuilder.Append(" if (!switcheditormode && !previewpost) {rn");
  146. templateBuilder.Append(" $("postsubmit").disabled = true;rn");
  147. templateBuilder.Append(" }rn");
  148. templateBuilder.Append(" theform.message.value = message;rn");
  149. templateBuilder.Append(" return true;rn");
  150. templateBuilder.Append("}rn");
  151. templateBuilder.Append("</");
  152. templateBuilder.Append("script>rn");
  153. } //end if
  154. }
  155. else
  156. {
  157. templateBuilder.Append("</div>rn");
  158. } //end if
  159. Response.Write(templateBuilder.ToString());
  160. }
  161. </script>