- <%@ Page language="c#" AutoEventWireup="false" EnableViewState="false" Inherits="Discuz.Mall.Pages.goodsrate" %>
- <%@ Import namespace="System.Data" %>
- <%@ Import namespace="Discuz.Common" %>
- <%@ Import namespace="Discuz.Forum" %>
- <%@ Import namespace="Discuz.Entity" %>
- <script runat="server">
- override protected void OnInit(EventArgs e)
- {
- /*
- This page was created by Discuz!NT Template Engine at 2009-9-22 17:24:50.
- 本页面代码由Discuz!NT模板引擎生成于 2009-9-22 17:24:50.
- */
- base.OnInit(e);
- templateBuilder.Capacity = 220000;
- templateBuilder.Append("<!--TheCurrent start-->rn");
- if (page_err==0)
- {
- if (ispost)
- {
- }
- else
- {
- templateBuilder.Append("<div id="foruminfo">rn");
- templateBuilder.Append(" <div id="nav">rn");
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(config.Forumurl.ToString().Trim());
- templateBuilder.Append("" class="home">");
- templateBuilder.Append(config.Forumtitle.ToString().Trim());
- templateBuilder.Append("</a> » <strong>");
- templateBuilder.Append(goodstradelog.Subject.ToString().Trim());
- templateBuilder.Append("</strong>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div id="headsearch">rn");
- templateBuilder.Append(" <div id="search">rn");
- if (usergroupinfo.Allowsearch>0)
- {
- } //end if
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("<script type="text/javascript" src="javascript/template_trade.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<script type="text/javascript">rn");
- templateBuilder.Append("zoomstatus = parseInt(1);rn");
- templateBuilder.Append("</");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<div class="mainbox">rn");
- templateBuilder.Append("<form method="post" id="tradepost" name="tradepost" action="goodsrate.aspx?goodstradelogid=");
- templateBuilder.Append(goodstradelog.Id.ToString().Trim());
- templateBuilder.Append("">rn");
- templateBuilder.Append(" <h3>发表评价</h3>rn");
- templateBuilder.Append(" <table summary="发表评价" cellspacing="0" cellpadding="0">rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th>被评价人</th>rn");
- templateBuilder.Append(" <td>rn");
- if (goodstradelog.Sellerid!=userid)
- {
- aspxrewriteurl = this.UserInfoAspxRewrite(goodstradelog.Sellerid);
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(aspxrewriteurl.ToString());
- templateBuilder.Append("" target="_blank">");
- templateBuilder.Append(goodstradelog.Seller.ToString().Trim());
- templateBuilder.Append("</a>rn");
- }
- else
- {
- aspxrewriteurl = this.UserInfoAspxRewrite(goodstradelog.Buyerid);
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(aspxrewriteurl.ToString());
- templateBuilder.Append("" target="_blank">");
- templateBuilder.Append(goodstradelog.Buyer.ToString().Trim());
- templateBuilder.Append("</a>rn");
- } //end if
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th>相关商品</th>rn");
- templateBuilder.Append(" <td>rn");
- aspxrewriteurl = this.ShowGoodsAspxRewrite(goodstradelog.Goodsid);
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(aspxrewriteurl.ToString());
- templateBuilder.Append("" target="_blank">");
- templateBuilder.Append(goodstradelog.Subject.ToString().Trim());
- templateBuilder.Append("</a>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th>评分</th>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" <input name="ratetype" value="1" type="radio" class="radio" checked />rn");
- templateBuilder.Append(" <font color="#ff0000"><img src="templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/good.gif" border="0" width="14" height="16"><strong>好评</strong></font> rn");
- templateBuilder.Append(" <input name="ratetype" value="2" type="radio" class="radio">rn");
- templateBuilder.Append(" <font color="green"><img src="templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/soso.gif" border="0" width="14" height="16"><strong>中评</strong></font> rn");
- templateBuilder.Append(" <input name="ratetype" value="3" type="radio" class="radio">rn");
- templateBuilder.Append(" <img src="templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/bad.gif" border="0" width="14" height="16"><strong>差评</strong> (线下交易的评分不计入信用评价)rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th>评价</th>rn");
- templateBuilder.Append(" <td>rn");
- 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");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th> </th>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" <button type="submit" id="postsubmit" name="ratesubmit" value="true"> 提交</button>[完成后可按 Ctrl+Enter 发布]rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </table>rn");
- templateBuilder.Append("</form>rn");
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("<script type="text/javascript">rn");
- templateBuilder.Append("var postSubmited = false;rn");
- templateBuilder.Append("function quickpost(event, theform) {rn");
- templateBuilder.Append(" if(postSubmited == false && (event.ctrlKey && event.keyCode == 13) || (event.altKey && event.keyCode == 83)) {rn");
- templateBuilder.Append(" if (!$("postsubmit").disabled) {rn");
- templateBuilder.Append(" if(validateform(theform, false,false)){rn");
- templateBuilder.Append(" theform.submit();rn");
- templateBuilder.Append(" $("postsubmit").disabled = truern");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" else {rn");
- templateBuilder.Append(" alert('正在提交, 请稍候...');rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append("}rn");
- templateBuilder.Append("function validateform(theform, previewpost, switcheditormode) {rn");
- templateBuilder.Append(" var message = theform.message.value;rn");
- templateBuilder.Append(" if (message == "") {rn");
- templateBuilder.Append(" alert("请完成内容栏。");rn");
- templateBuilder.Append(" $("postsubmit").disabled = false;rn");
- templateBuilder.Append(" return false;rn");
- templateBuilder.Append(" } rn");
- templateBuilder.Append(" if(mb_strlen(message) < 1 || mb_strlen(message) > 200) {rn");
- templateBuilder.Append(" alert("您的帖子长度不符合要求。\n\n当前长度: " + mb_strlen(message) + " 字节\n系统限制: 1 到 200 字节");rn");
- templateBuilder.Append(" return false;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" if (!switcheditormode && !previewpost) {rn");
- templateBuilder.Append(" $("postsubmit").disabled = true;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" theform.message.value = message;rn");
- templateBuilder.Append(" return true;rn");
- templateBuilder.Append("}rn");
- templateBuilder.Append("</");
- templateBuilder.Append("script>rn");
- } //end if
- }
- else
- {
- templateBuilder.Append("</div>rn");
- } //end if
- Response.Write(templateBuilder.ToString());
- }
- </script>