goodsadmin.aspx
上传用户:wenllgg125
上传日期:2020-04-09
资源大小:7277k
文件大小:17k
- <%@ Page language="c#" AutoEventWireup="false" EnableViewState="false" Inherits="Discuz.Mall.Pages.goodsadmin" %>
- <%@ 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("<div id="foruminfo">rn");
- templateBuilder.Append(" <div class="userinfo">rn");
- templateBuilder.Append(" <h2><a href="");
- templateBuilder.Append(config.Forumurl.ToString().Trim());
- templateBuilder.Append("">");
- templateBuilder.Append(config.Forumtitle.ToString().Trim());
- templateBuilder.Append("</a> » <span> ");
- templateBuilder.Append(forumnav.ToString());
- templateBuilder.Append("</span> » <strong>");
- templateBuilder.Append(operationtitle.ToString());
- templateBuilder.Append("</strong></h2>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append("</div>rn");
- if (DNTRequest.GetString("operation")=="")
- {
- if (page_err==0)
- {
- templateBuilder.Append("<div class="mainbox">rn");
- templateBuilder.Append("<form id="moderate" name="moderate" method="post" action="goodsadmin.aspx?action=moderate&operation=");
- templateBuilder.Append(operation.ToString());
- templateBuilder.Append("">rn");
- templateBuilder.Append(" <input type="hidden" name="goodsid" value="");
- templateBuilder.Append(goodslist.ToString());
- templateBuilder.Append("" />rn");
- templateBuilder.Append(" <input type="hidden" name="categoryid" value="");
- templateBuilder.Append(categoryid.ToString());
- templateBuilder.Append("" />rn");
- if (config.Aspxrewrite==1)
- {
- templateBuilder.Append(" <input type="hidden" name="referer" value="showgoodslist-");
- templateBuilder.Append(categoryid.ToString());
- templateBuilder.Append(config.Extname.ToString().Trim());
- templateBuilder.Append("" />rn");
- }
- else
- {
- templateBuilder.Append(" <input type="hidden" name="referer" value="showgoodslist.aspx?categoryid=");
- templateBuilder.Append(categoryid.ToString());
- templateBuilder.Append("">rn");
- } //end if
- if (operation=="delposts")
- {
- templateBuilder.Append("<input type="hidden" size="10" name="postid" ID="postid" value="postidlist" />rn");
- } //end if
- templateBuilder.Append(" <h3>");
- templateBuilder.Append(operationtitle.ToString());
- templateBuilder.Append("</h3>rn");
- templateBuilder.Append(" <table cellpadding="0" cellspacing="0" border="0" summary="管理商品">rn");
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th>用户名:</th>rn");
- templateBuilder.Append(" <td> ");
- templateBuilder.Append(username.ToString());
- templateBuilder.Append(" <a href="logout.aspx?userkey=");
- templateBuilder.Append(userkey.ToString());
- templateBuilder.Append("">退出登录</a></td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- if (operation=="highlight")
- {
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th>字体样式:</th>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" <input type="checkbox" name="highlight_style_b" value="B" /> <strong>粗体</strong>rn");
- templateBuilder.Append(" <input type="checkbox" name="highlight_style_i" value="I" /> <em>斜体</em>rn");
- templateBuilder.Append(" <input type="checkbox" name="highlight_style_u" value="U" /> <u>下划线</u>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th>字体颜色:</th>rn");
- templateBuilder.Append(" <td> rn");
- templateBuilder.Append(" <script type="text/javascript" src="javascript/template_colorpicker.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" <input type="text" value="" name="highlight_color" id="highlight_color" size="7" />rn");
- templateBuilder.Append(" <select name="highlight_colorselect" id="highlight_colorselect" onChange="selectoptioncolor(this)" style="margin-bottom:2px;">rn");
- templateBuilder.Append(" <option value="">默认</option> rn");
- templateBuilder.Append(" <option style="background:#FF0000" value="#FF0000"></option> rn");
- templateBuilder.Append(" <option style="background:#FFA500" value="#FFA500"></option> rn");
- templateBuilder.Append(" <option style="background:#FFFF00" value="#FFFF00"></option> rn");
- templateBuilder.Append(" <option style="background:#008000" value="#008000"></option> rn");
- templateBuilder.Append(" <option style="background:#00FFFF" value="#00FFFF"></option> rn");
- templateBuilder.Append(" <option style="background:#0000FF" value="#0000FF"></option> rn");
- templateBuilder.Append(" <option style="background:#800080" value="#800080"></option> rn");
- templateBuilder.Append(" <option style="background:#808080" value="#808080"></option>rn");
- templateBuilder.Append(" </select>rn");
- templateBuilder.Append(" <img class="img" title="选择颜色" src="templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/colorpicker.gif" id=s_bgcolor onclick="IsShowColorPanel(this);" style="cursor:hand; border:0px;" />rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- } //end if
- if (operation=="close")
- {
- templateBuilder.Append(" <!--rn");
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th>操作:</th>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" <input type="radio" value="1" name="close" checked="checked"/> 关闭商品rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- templateBuilder.Append(" -->rn");
- } //end if
- if (operation=="movecategory")
- {
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th>商品分类:</th>rn");
- templateBuilder.Append(" <td>rn");
- if (goodscategoryinfo==null || goodscategoryinfo.Categoryname=="")
- {
- templateBuilder.Append(" <input type="hidden" id="goodscategoryid" name="goodscategoryid" value="-1"/> rn");
- templateBuilder.Append(" <span id="goodstypeinfo">暂无分类</span> rn");
- }
- else
- {
- templateBuilder.Append(" <input type="hidden" id="goodscategoryid" name="goodscategoryid" value="");
- templateBuilder.Append(goodscategoryinfo.Categoryid.ToString().Trim());
- templateBuilder.Append(""/>rn");
- templateBuilder.Append(" <span id="goodstypeinfo">");
- templateBuilder.Append(goodscategoryinfo.Categoryname.ToString().Trim());
- templateBuilder.Append("</span>rn");
- } //end if
- templateBuilder.Append("<script type="text/javascript">rn");
- templateBuilder.Append("var enablemall = parseInt('");
- templateBuilder.Append(config.Enablemall.ToString().Trim());
- templateBuilder.Append("');rn");
- templateBuilder.Append("</");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("[<a href="javascript:;" onclick="setCategory('goodscategoryid');boxShow('editcategoryinfo');">选择...</a>]rn");
- if (config.Enablemall==1)
- {
- templateBuilder.Append(" <div id="BOX_overlay" style="background: #000; position: absolute; z-index:100; filter:alpha(opacity=50);-moz-opacity: 0.6;opacity: 0.6;"></div>rn");
- templateBuilder.Append(" <div id="editcategoryinfo" style="display: none; background :#fff; padding:10px; border:1px solid #999; width:740px;">rn");
- templateBuilder.Append(" <h3 style="line-height:270%;margin-top:15px;"><a name="edit" />请选择已绑定版块的商品分类(不带*号):</a></h3>rn");
- templateBuilder.Append(" <div class="CompartLine"> </div>rn");
- templateBuilder.Append(" <div id="categoryselector">rn");
- templateBuilder.Append(" <ul id="categorylevel0" class=""></ul>rn");
- templateBuilder.Append(" <ul id="categorylevel1" class="blank"/></ul>rn");
- templateBuilder.Append(" <ul id="categorylevel2" class="blank"/></ul>rn");
- templateBuilder.Append(" <ul id="categorylevel3" class="blank"/></ul>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div style="padding-top:5px;text-align:center;" > rn");
- templateBuilder.Append(" <input type="button" name="submit" value="确定" onclick="submitCategory();" /> rn");
- templateBuilder.Append(" <input type="button" name="cancel" value="取消" onclick="boxRemove('editcategoryinfo');" /> rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- } //end if
- templateBuilder.Append("<script language="javascript" src="javascript/template_goodsadmin.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- templateBuilder.Append(" <script language="javascript" src="javascript/goodscategories.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" <script language="javascript" src="javascript/template_goodsadmin.js"></");
- templateBuilder.Append("script>rn");
- } //end if
- if (operation!="identify")
- {
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th>操作原因:</th>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" <select id="selectreason" name="selectreason" size="6" style="width: 8em;height:8em; " onchange="this.form.reason.value=this.value" >rn");
- templateBuilder.Append(" <option value="">自定义</option>rn");
- templateBuilder.Append(" <option value="">--------</option>rn");
- templateBuilder.Append(" <option value="广告/SPAM">广告</option>rn");
- templateBuilder.Append(" <option value="恶意灌水">恶意灌水</option>rn");
- templateBuilder.Append(" <option value="违规内容">违规内容</option>rn");
- templateBuilder.Append(" <option value="文不对题">文不对题</option>rn");
- templateBuilder.Append(" <option value="屡教不改">屡教不改</option>rn");
- templateBuilder.Append(" <option value="已经过期">已经过期</option>rn");
- templateBuilder.Append(" </select>rn");
- templateBuilder.Append(" <textarea name="reason" style="height: 8em; width:20em; margin-bottom:-2px;" onkeydown="if(this.value.length>200){ alert('操作原因不能多于200个字符');return false; }"></textarea>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- } //end if
- if (donext==1)
- {
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th>后续:</th>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" <input name="next" type="radio" checked="checked" value="" />无rn");
- if (operation!="highlight")
- {
- templateBuilder.Append(" <input type="radio" value="highlight" name="next" />高亮显示rn");
- } //end if
- if (operation!="close")
- {
- templateBuilder.Append(" <input type="radio" value="close" name="next" />关闭商品rn");
- } //end if
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- } //end if
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th> </th>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" <input type="submit" value="提 交" name="modsubmit" />rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- templateBuilder.Append(" </table>rn");
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("</form>rn");
- templateBuilder.Append("</div>rn");
- if (operation=="highlight")
- {
- templateBuilder.Append("<div id="ColorPicker" title="ColorPicker" style="display:none;cursor:crosshair;border: black 1px solid;position: absolute; z-index: 10;background-color: aliceblue; width:250px;background: #FFFFFF;padding: 4px; margin-left:150px;" onmouseover="ShowColorPanel();">rn");
- templateBuilder.Append(" <table border="0" cellPadding="0" cellSpacing="10" onmouseover="ShowColorPanel();">rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" <table border="0" cellPadding="0" cellSpacing="0" id="ColorTable" style="cursor:crosshair;" onmouseover="ShowColorPanel();">rn");
- templateBuilder.Append(" <script type="text/javascript">rn");
- templateBuilder.Append(" function wc(r, g, b, n){rn");
- templateBuilder.Append(" r = ((r * 16 + r) * 3 * (15 - n) + 0x80 * n) / 15;rn");
- templateBuilder.Append(" g = ((g * 16 + g) * 3 * (15 - n) + 0x80 * n) / 15;rn");
- templateBuilder.Append(" b = ((b * 16 + b) * 3 * (15 - n) + 0x80 * n) / 15;rn");
- templateBuilder.Append(" document.write('<td BGCOLOR=#' + ToHex(r) + ToHex(g) + ToHex(b) + ' title="#' + ToHex(r) + ToHex(g) + ToHex(b) + '" height=8 width=8 onmouseover="ColorTableMouseOver(this)" onmousedown="ColorTableMouseDown(this)" onmouseout="ColorTableMouseOut(this)" ></TD>');rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" var cnum = new Array(1, 0, 0, 1, 1, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 1, 1, 0, 0);rn");
- templateBuilder.Append(" for(i = 0; i < 16; i ++){rn");
- templateBuilder.Append(" document.write('<TR>');rn");
- templateBuilder.Append(" for(j = 0; j < 30; j ++){rn");
- templateBuilder.Append(" n1 = j % 5;rn");
- templateBuilder.Append(" n2 = Math.floor(j / 5) * 3;rn");
- templateBuilder.Append(" n3 = n2 + 3;rn");
- templateBuilder.Append(" wc((cnum[n3] * n1 + cnum[n2] * (5 - n1)),rn");
- templateBuilder.Append(" (cnum[n3 + 1] * n1 + cnum[n2 + 1] * (5 - n1)),rn");
- templateBuilder.Append(" (cnum[n3 + 2] * n1 + cnum[n2 + 2] * (5 - n1)), i);rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" document.writeln('</TR>');rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" </");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" </table></td>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" <table border="0" cellPadding="0" cellSpacing="0" id="GrayTable" style="CURSOR: hand;cursor:crosshair;" onmouseover="ShowColorPanel();">rn");
- templateBuilder.Append(" <script type="text/javascript">rn");
- templateBuilder.Append(" for(i = 255; i >= 0; i -= 8.5)rn");
- templateBuilder.Append(" document.write('<tr BGCOLOR=#' + ToHex(i) + ToHex(i) + ToHex(i) + '><td TITLE=' + Math.floor(i * 16 / 17) + ' height=4 width=20 onmouseover="GrayTableMouseOver(this)" onmousedown="GrayTableMouseDown(this)" onmouseout="GrayTableMouseOut(this)" ></td></tr>');rn");
- templateBuilder.Append(" </");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" </table></td></tr></table>rn");
- templateBuilder.Append(" <table border="0" cellPadding="0" cellSpacing="10" onmouseover="ShowColorPanel();">rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td rowSpan="2">选中色彩rn");
- templateBuilder.Append(" <table border="1" cellPadding="0" cellSpacing="0" height="30" id="ShowColor" width="40" bgcolor="">rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td></td></tr></table></td>rn");
- templateBuilder.Append(" <td rowSpan=2>基色: <span id="RGB"></span><br />亮度: <span id="GRAY">120</span><br />代码: <input id="SelColor" size="7" value="" border="0" name="SelColor" /></TD>rn");
- templateBuilder.Append(" <td><input type="button" onclick="javascript:ColorPickerOK();" value="确定" ID="ok" class="lightbutton" /></td></tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td><input type="button" onclick="javascript:document.getElementById('highlight_color').value='';document.getElementById('s_bgcolor').style.background='#FFFFFF';HideColorPanel();" value="取消" ID="Button2" NAME="Button2" class="lightbutton" /></td></tr></table>rn");
- templateBuilder.Append("</div>rn");
- templateBuilder.Append(" <!--colorpicker层显示结束-->rn");
- } //end if
- }
- else
- {
- } //end if
- }
- else
- {
- if (page_err==0)
- {
- }
- else
- {
- } //end if
- } //end if
- templateBuilder.Append("</div>rn");
- Response.Write(templateBuilder.ToString());
- }
- </script>