- <%@ Page language="c#" AutoEventWireup="false" EnableViewState="false" Inherits="Discuz.Mall.Pages.usercpshoplink" %>
- <%@ 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("<!--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="shoplink" name="shoplink" method="post" action="">rn");
- templateBuilder.Append(" <script type="text/javascript">rn");
- templateBuilder.Append(" function checkgoodsbox(form,objtag) {rn");
- templateBuilder.Append(" for(var i = 0; i < form.elements.length; i++) {rn");
- templateBuilder.Append(" var e = form.elements[i];rn");
- templateBuilder.Append(" if(e.name == "shoplinkid") {rn");
- templateBuilder.Append(" e.checked = objtag.checked;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" objtag.checked = !objtag.checked;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" </");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" <input type="hidden" id="operation" name="operation" value="add"/>rn");
- templateBuilder.Append(" <input type="submit" id="shoplinksubmit" name="shoplinksubmit" style="display: none" />rn");
- if (shoplinkinfolist.Count<16)
- {
- templateBuilder.Append(" <div style="text-align:center;background:#F5F5F5 none repeat scroll 0%;border:1px solid #DDDDDD;font-size:14px;margin-top:10px;padding:10px;">rn");
- templateBuilder.Append(" 店主姓名: <input type="text" value="" maxlength="50" size="20" id="username" name="username">rn");
- templateBuilder.Append(" <button class="mallbutton" type="button" onclick="javascript:$('operation').value='add';$('shoplinksubmit').click();">添加</button>rn");
- templateBuilder.Append(" </div>rn");
- } //end if
- templateBuilder.Append(" <div class="shopsearch"><strong>友情链接列表</strong></div>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>店铺名称</th>rn");
- templateBuilder.Append(" <th>排序位置</th>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </thead>rn");
- templateBuilder.Append(" <!--NtGoodsList start-->rn");
- int shoplink__loop__id=0;
- foreach(Shoplinkinfo shoplink in shoplinkinfolist)
- {
- shoplink__loop__id++;
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr class="messagetable" onmouseover="this.className='messagetableon'" onmouseout="this.className='messagetable'">rn");
- templateBuilder.Append(" <td style="width: 30px;"><input name="shoplinkid" type="checkbox" id="shoplink_");
- templateBuilder.Append(shoplink.Id.ToString().Trim());
- templateBuilder.Append("" value="");
- templateBuilder.Append(shoplink.Id.ToString().Trim());
- templateBuilder.Append("" style="margin-top:8px;" /></td>rn");
- templateBuilder.Append(" <td style="width: 120px; padding:2px 0;"><a href="shop.aspx?shopid=");
- templateBuilder.Append(shoplink.Linkshopid.ToString().Trim());
- templateBuilder.Append("" target="_blank">");
- templateBuilder.Append(shoplink.Name.ToString().Trim());
- templateBuilder.Append("</a></td>rn");
- templateBuilder.Append(" <td align="center"><input value="");
- templateBuilder.Append(shoplink.Displayorder.ToString().Trim());
- templateBuilder.Append("" name="displayorder_");
- templateBuilder.Append(shoplink.Id.ToString().Trim());
- templateBuilder.Append("" size="2"/></td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- templateBuilder.Append(" <!--NtGoodsList end--> rn");
- } //end loop
- templateBuilder.Append(" </table> rn");
- templateBuilder.Append(" <div style="text-align:center;background:#F5F5F5 none repeat scroll 0%;border:1px solid #DDDDDD;font-size:14px;margin-top:10px;padding:10px;">rn");
- templateBuilder.Append(" <a href="javascript:;" onclick="checkgoodsbox($('goodslist'),this)" checked="true" class="selectall">全选</a> rn");
- templateBuilder.Append(" <button class="mallbutton" type="button" onclick="javascript:$('operation').value='delete';$('shoplinksubmit').click();">删除</button> rn");
- templateBuilder.Append(" <button class="mallbutton" type="button" onclick="javascript:$('operation').value='updatedisplayorder';$('shoplinksubmit').click();">更新显示顺序</button>rn");
- templateBuilder.Append(" 注:目前系统允许您最多添加 16 个友情链接,您当前已经添加 ");
- templateBuilder.Append(shoplinkinfolist.Count.ToString().Trim());
- templateBuilder.Append(" 个。rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </form>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>