usercpshopgoodsmanage.aspx
上传用户:wenllgg125
上传日期:2020-04-09
资源大小:7277k
文件大小:18k
源码类别:
SCSI/ASPI
开发平台:
Others
- <%@ Page language="c#" AutoEventWireup="false" EnableViewState="false" Inherits="Discuz.Mall.Pages.usercpshopgoodsmanage" %>
- <%@ 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:25:00.
- 本页面代码由Discuz!NT模板引擎生成于 2009-9-22 17:25:00.
- */
- base.OnInit(e);
- templateBuilder.Capacity = 220000;
- templateBuilder.Append("<script type="text/javascript" src="javascript/template_usercpshopgoodsmanage.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<!--header end-->rn");
- 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> » <a href="usercp.aspx">用户中心</a> » <strong>推荐商品列表</strong>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div id="headsearch">rn");
- templateBuilder.Append(" <div id="search">rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("<!--主体-->rn");
- templateBuilder.Append("<div class="controlpannel">rn");
- templateBuilder.Append(" <div class="pannelcontent">rn");
- templateBuilder.Append(" <div class="pcontent">rn");
- templateBuilder.Append(" <!--panneldetail start-->rn");
- templateBuilder.Append(" <div class="panneldetail">rn");
- templateBuilder.Append(" <!--pannelbody start-->rn");
- templateBuilder.Append(" <div class="pannelbody">rn");
- templateBuilder.Append(" <div class="pannellist">rn");
- if (page_err==0)
- {
- if (ispost)
- {
- }
- else
- {
- templateBuilder.Append(" <form id="goodslist" name="goodslist" method="post" action="usercpshopgoodsmanage.aspx?item=");
- templateBuilder.Append(item.ToString());
- templateBuilder.Append("">rn");
- templateBuilder.Append(" <input type="hidden" id="operation" name="operation" value="movecategory"/>rn");
- templateBuilder.Append(" <input type="hidden" id="removeshopgoodscategoryid" name="removeshopgoodscategoryid" value="0"/>rn");
- templateBuilder.Append(" <input type="hidden" id="removegoodsid" name="removegoodsid" value="0"/>rn");
- templateBuilder.Append(" <input type="hidden" id="shopgoodscategoryid" name="shopgoodscategoryid" value="");
- templateBuilder.Append(shopgoodscategoryid.ToString());
- templateBuilder.Append(""/>rn");
- templateBuilder.Append(" <input type="submit" id="shopcategorysubmit" name="shopcategorysubmit" style="display: none" />rn");
- if (item=="recommend")
- {
- templateBuilder.Append(" <div class="shopsearch"><strong>推荐商品列表</strong></div>rn");
- if (recommendgoodslist.Count>0)
- {
- templateBuilder.Append(" <input type="submit" id="shoprecommendsubmit" name="shoprecommendsubmit" style="display: none" />rn");
- templateBuilder.Append(" <input type="hidden" id="cancelrecommendgoodsid" name="cancelrecommendgoodsid" value="updatedisplayorder"/>rn");
- templateBuilder.Append(" <ul id="photo">rn");
- int recommendgoodsinfo__loop__id=0;
- foreach(Goodsinfo recommendgoodsinfo in recommendgoodslist)
- {
- recommendgoodsinfo__loop__id++;
- templateBuilder.Append(" <li style="text-align:center; min-height:200px;">rn");
- templateBuilder.Append(" <div class="pictureimg">rn");
- aspxrewriteurl = this.ShowGoodsAspxRewrite(recommendgoodsinfo.Goodsid);
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(aspxrewriteurl.ToString());
- templateBuilder.Append("" target="_blank">rn");
- if (recommendgoodsinfo.Goodspic=="")
- {
- templateBuilder.Append(" <img width="80" height="80" src="templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/NoPhoto.jpg" onerror="this.onerror=null;this.src='");
- templateBuilder.Append(recommendgoodsinfo.Goodspic.ToString().Trim());
- templateBuilder.Append("';" title="");
- templateBuilder.Append(recommendgoodsinfo.Title.ToString().Trim());
- templateBuilder.Append("">rn");
- }
- else
- {
- templateBuilder.Append(" <img width="80" height="80" src="upload/");
- templateBuilder.Append(recommendgoodsinfo.Goodspic.ToString().Trim());
- templateBuilder.Append("" onerror="this.onerror=null;this.src='");
- templateBuilder.Append(recommendgoodsinfo.Goodspic.ToString().Trim());
- templateBuilder.Append("';" title="");
- templateBuilder.Append(recommendgoodsinfo.Title.ToString().Trim());
- templateBuilder.Append("">rn");
- } //end if
- templateBuilder.Append(" </a>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <h4><a href="");
- templateBuilder.Append(aspxrewriteurl.ToString());
- templateBuilder.Append("" target="_blank">");
- templateBuilder.Append(recommendgoodsinfo.Title.ToString().Trim());
- templateBuilder.Append("</a> <a href="editgoods.aspx?goodsid=");
- templateBuilder.Append(recommendgoodsinfo.Goodsid.ToString().Trim());
- templateBuilder.Append("" target="_blank">[编辑]</a></h4>rn");
- templateBuilder.Append(" <p class="fontfamily">显示顺序:<input value="");
- templateBuilder.Append(recommendgoodsinfo.Displayorder.ToString().Trim());
- templateBuilder.Append("" name="displayorder_");
- templateBuilder.Append(recommendgoodsinfo.Goodsid.ToString().Trim());
- templateBuilder.Append("" size="1"/></p>rn");
- templateBuilder.Append(" <p><a href="#" class="submitbutton" onclick="javascript:$('operation').value='cancelrecommend';$('cancelrecommendgoodsid').value=");
- templateBuilder.Append(recommendgoodsinfo.Goodsid.ToString().Trim());
- templateBuilder.Append(";$('shoprecommendsubmit').click();">取消推荐</a>rn");
- templateBuilder.Append(" </p>rn");
- templateBuilder.Append(" </li>rn");
- } //end loop
- templateBuilder.Append(" </ul>rn");
- templateBuilder.Append(" <a href="#" class="submitbutton" onclick="javascript:$('operation').value='updatedisplayorder';$('shoprecommendsubmit').click();">更新商品摆放顺序</a> <br />rn");
- templateBuilder.Append(" </div>rn");
- }
- else
- {
- templateBuilder.Append(" <div style="text-align:center; border: 1px solid rgb(221, 221, 221); padding: 10px; background: rgb(245, 245, 245) none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-size: 14px; margin-top: 10px;">rn");
- templateBuilder.Append(" 暂无推荐商品!rn");
- templateBuilder.Append(" </div><BR />rn");
- } //end if
- } //end if
- templateBuilder.Append(" <div class="shopsearch"><strong>商品分类:rn");
- templateBuilder.Append(" <select id="jumpcategoryid" name="jumpcategoryid" onchange="javascript:window.location.href='usercpshopgoodsmanage.aspx?item=shopcategory&shopgoodscategoryid=' + this.value;">rn");
- templateBuilder.Append(" <option value="-1">全部商品</option>rn");
- if (shopcategorydt_count>0)
- {
- templateBuilder.Append(" ");
- templateBuilder.Append(categoryoptions.ToString());
- templateBuilder.Append("rn");
- } //end if
- templateBuilder.Append(" </select></strong>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <script type="text/javascript">rn");
- templateBuilder.Append(" var cats = ");
- templateBuilder.Append(shopcategorydata.ToString());
- templateBuilder.Append(";rn");
- templateBuilder.Append(" selectcategory($('jumpcategoryid'), $('shopgoodscategoryid').value);rn");
- templateBuilder.Append(" </");
- templateBuilder.Append("script> rn");
- templateBuilder.Append(" <table width="100%" cellspacing="0" cellpadding="0" border="0">rn");
- templateBuilder.Append(" <thead>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th></th>rn");
- templateBuilder.Append(" <th colspan="2" style="text-align: center;">商品名称</th>rn");
- templateBuilder.Append(" <th>查看交易</th>rn");
- if (item=="recommend")
- {
- templateBuilder.Append("<th>推荐</th>rn");
- } //end if
- if (item=="shopcategory")
- {
- templateBuilder.Append("<th>所属分类</th>rn");
- } //end if
- templateBuilder.Append(" <th>上架</th> rn");
- templateBuilder.Append(" <th>关闭</th> rn");
- templateBuilder.Append(" <th>最后交易</th>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </thead>rn");
- templateBuilder.Append(" <!--NtGoodsList start-->rn");
- int goodsinfo__loop__id=0;
- foreach(Goodsinfo goodsinfo in goodslist)
- {
- goodsinfo__loop__id++;
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr class="messagetable" onmouseover="this.className='messagetableon'" onmouseout="this.className='messagetable'">rn");
- aspxrewriteurl = this.ShowGoodsAspxRewrite(goodsinfo.Goodsid);
- templateBuilder.Append(" <td style="width: 30px;"><input name="goodsid" type="checkbox" id="goodsid_");
- templateBuilder.Append(goodsinfo.Goodsid.ToString().Trim());
- templateBuilder.Append("" value="");
- templateBuilder.Append(goodsinfo.Goodsid.ToString().Trim());
- templateBuilder.Append("" style="margin-top:8px;" rn");
- if (item=="recommend" && goodsinfo.Recommend>0)
- {
- templateBuilder.Append("disabled="true"rn");
- } //end if
- templateBuilder.Append("/></td>rn");
- templateBuilder.Append(" <td style="width: 120px; padding:2px 0;"><a href="");
- templateBuilder.Append(aspxrewriteurl.ToString());
- templateBuilder.Append("" target="_blank">rn");
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(aspxrewriteurl.ToString());
- templateBuilder.Append("" target="_blank">rn");
- if (goodsinfo.Goodspic=="")
- {
- templateBuilder.Append(" <img width="50" height="50" src="templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/NoPhoto.jpg" onerror="this.onerror=null;this.src='");
- templateBuilder.Append(goodsinfo.Goodspic.ToString().Trim());
- templateBuilder.Append("';" title="");
- templateBuilder.Append(goodsinfo.Title.ToString().Trim());
- templateBuilder.Append("">rn");
- }
- else
- {
- templateBuilder.Append(" <img width="50" height="50" src="upload/");
- templateBuilder.Append(goodsinfo.Goodspic.ToString().Trim());
- templateBuilder.Append("" onerror="this.onerror=null;this.src='");
- templateBuilder.Append(goodsinfo.Goodspic.ToString().Trim());
- templateBuilder.Append("';" title="");
- templateBuilder.Append(goodsinfo.Title.ToString().Trim());
- templateBuilder.Append("">rn");
- } //end if
- templateBuilder.Append(" </a>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" <td style="text-align: left;"><a href="");
- templateBuilder.Append(aspxrewriteurl.ToString());
- templateBuilder.Append("" target="_blank">");
- templateBuilder.Append(goodsinfo.Title.ToString().Trim());
- templateBuilder.Append("</a> <a href="editgoods.aspx?goodsid=");
- templateBuilder.Append(goodsinfo.Goodsid.ToString().Trim());
- templateBuilder.Append("" target="_blank">[编辑]</a></td>rn");
- templateBuilder.Append(" <td><a href="usercpmygoods.aspx?item=selltrade&goodsid=");
- templateBuilder.Append(goodsinfo.Goodsid.ToString().Trim());
- templateBuilder.Append("" target="_blank">进入</td>rn");
- if (item=="recommend")
- {
- templateBuilder.Append(" <td>rn");
- if (goodsinfo.Recommend>0)
- {
- templateBuilder.Append("<font color="red">已推荐</font>rn");
- }
- else
- {
- templateBuilder.Append("未推荐rn");
- } //end if
- templateBuilder.Append("</td>rn");
- } //end if
- if (item=="shopcategory")
- {
- templateBuilder.Append(" <td ><script type="text/javascript">bindshopgoodscategory('");
- templateBuilder.Append(goodsinfo.Shopcategorylist.ToString().Trim());
- templateBuilder.Append("',");
- templateBuilder.Append(goodsinfo.Goodsid.ToString().Trim());
- templateBuilder.Append(");</");
- templateBuilder.Append("script></td>rn");
- } //end if
- templateBuilder.Append(" <td>rn");
- if (goodsinfo.Displayorder>=0)
- {
- templateBuilder.Append("已上架rn");
- }
- else
- {
- templateBuilder.Append("未上架rn");
- } //end if
- templateBuilder.Append("</td>rn");
- templateBuilder.Append(" <td>rn");
- if (goodsinfo.Closed==1)
- {
- templateBuilder.Append("未关闭rn");
- }
- else
- {
- templateBuilder.Append("已关闭rn");
- } //end if
- templateBuilder.Append("</td>rn");
- templateBuilder.Append(" <td>rn");
- if (goodsinfo.Lastbuyer!="")
- {
- templateBuilder.Append("<a href="redirect.php?tid=45&goto=lastpost#lastpost">");
- templateBuilder.Append(goodsinfo.Lasttrade.ToString().Trim());
- templateBuilder.Append("</a><br/> by ");
- templateBuilder.Append(goodsinfo.Lastbuyer.ToString().Trim());
- templateBuilder.Append("rn");
- }
- else
- {
- templateBuilder.Append("暂无交易rn");
- } //end if
- templateBuilder.Append("</td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- templateBuilder.Append(" <!--NtGoodsList end--> rn");
- } //end loop
- templateBuilder.Append(" </table> rn");
- templateBuilder.Append(" <div class="pannelmessage">rn");
- templateBuilder.Append(" <div class="pannelleft" style="width: 100%;">rn");
- templateBuilder.Append(" <a href="javascript:;" onclick="checkgoodsbox($('goodslist'),this)" checked="true" class="selectall">全选</a> rn");
- if (item=="shopcategory")
- {
- templateBuilder.Append("移动商品到分类: rn");
- if (shopcategorydt_count>0)
- {
- templateBuilder.Append(" <select id="selectcategoryid" name="selectcategoryid">rn");
- templateBuilder.Append(" ");
- templateBuilder.Append(categoryoptions.ToString());
- templateBuilder.Append("rn");
- templateBuilder.Append(" </select>rn");
- } //end if
- templateBuilder.Append(" <a href="#" class="selectall" onclick="javascript:$('operation').value='movecategory';$('shopcategorysubmit').click();">移动</a>rn");
- } //end if
- if (item=="recommend" && recommendgoodslist.Count<5)
- {
- templateBuilder.Append(" <a href="#" class="selectall" onclick="javascript:$('operation').value='recommend';$('shopcategorysubmit').click();">推荐</a> 您最多可推荐的商品数: 5rn");
- } //end if
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </form>rn");
- templateBuilder.Append(" <div class="pages_btns">rn");
- templateBuilder.Append(" <div class="pages">rn");
- templateBuilder.Append(" <em>");
- templateBuilder.Append(pageid.ToString());
- templateBuilder.Append("/");
- templateBuilder.Append(pagecount.ToString());
- templateBuilder.Append("页</em>");
- templateBuilder.Append(pagenumbers.ToString());
- templateBuilder.Append("rn");
- templateBuilder.Append(" <kbd>跳转<input name="gopage" type="text" id="gopage" onKeyDown="if(event.keyCode==13) { window.location.href='usercpshopgoodsmanage.aspx?item=");
- templateBuilder.Append(item.ToString());
- templateBuilder.Append("&shopcategoryid=");
- templateBuilder.Append(shopgoodscategoryid.ToString());
- templateBuilder.Append("&page=' + (parseInt(this.value) > 0 ? parseInt(this.value) : 1);}" size="4" maxlength="9"/>页</kbd>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- } //end if
- }
- else
- {
- } //end if
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div> rn");
- templateBuilder.Append(" <!--pannelbody end-->rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <!--panneldetail end-->rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("<!--主体-->rn");
- Response.Write(templateBuilder.ToString());
- }
- </script>