editgoods.aspx
上传用户:wenllgg125
上传日期:2020-04-09
资源大小:7277k
文件大小:40k
- <%@ Page language="c#" AutoEventWireup="false" EnableViewState="false" Inherits="Discuz.Mall.Pages.editgoods" %>
- <%@ 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("<script type="text/javascript" src="javascript/template_calendar.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<script type="text/javascript" src="javascript/ajax.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<script type="text/javascript">rn");
- templateBuilder.Append("var postminchars = parseInt('");
- templateBuilder.Append(config.Minpostsize.ToString().Trim());
- templateBuilder.Append("');rn");
- templateBuilder.Append("var postmaxchars = parseInt('");
- templateBuilder.Append(config.Maxpostsize.ToString().Trim());
- templateBuilder.Append("');rn");
- templateBuilder.Append("var disablepostctrl = parseInt('");
- templateBuilder.Append(disablepost.ToString());
- templateBuilder.Append("');rn");
- templateBuilder.Append("var tradepost = 1;rn");
- templateBuilder.Append("</");
- templateBuilder.Append("script>rn");
- 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(goodscategoryinfo.Pathlist.ToString().Trim());
- templateBuilder.Append("</strong> » <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("<div class="mainbox">rn");
- templateBuilder.Append("<h3>编辑商品</h3>rn");
- templateBuilder.Append("<form method="post" name="postform" id="postform" action="" enctype="multipart/form-data" onsubmit="">rn");
- templateBuilder.Append("<table border="0" cellpadding="0" cellspacing="0">rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td class="navformcommend" colspan="2">商品信息</td>rn");
- templateBuilder.Append(" </tr>rn");
- 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(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th>商品类型:</th>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" <select id="quality" name="quality" tabindex="51">rn");
- templateBuilder.Append(" <option value="1" rn");
- if (goodsinfo.Quality==1)
- {
- templateBuilder.Append("selectedrn");
- } //end if
- templateBuilder.Append(">全新</option>rn");
- templateBuilder.Append(" <option value="2" rn");
- if (goodsinfo.Quality==2)
- {
- templateBuilder.Append("selectedrn");
- } //end if
- templateBuilder.Append(">二手</option>rn");
- templateBuilder.Append(" </select>rn");
- templateBuilder.Append(" <select id="itemtype" name="itemtype" tabindex="52">rn");
- templateBuilder.Append(" <option value="1" rn");
- if (goodsinfo.Itemtype==1)
- {
- templateBuilder.Append("selectedrn");
- } //end if
- templateBuilder.Append(">商品</option>rn");
- templateBuilder.Append(" <option value="2" rn");
- if (goodsinfo.Itemtype==2)
- {
- templateBuilder.Append("selectedrn");
- } //end if
- templateBuilder.Append(">服务</option>rn");
- templateBuilder.Append(" <option value="3" rn");
- if (goodsinfo.Itemtype==3)
- {
- templateBuilder.Append("selectedrn");
- } //end if
- templateBuilder.Append(">拍卖</option>rn");
- templateBuilder.Append(" <option value="4" rn");
- if (goodsinfo.Itemtype==4)
- {
- templateBuilder.Append("selectedrn");
- } //end if
- templateBuilder.Append(">捐赠</option>rn");
- templateBuilder.Append(" <option value="5" rn");
- if (goodsinfo.Itemtype==5)
- {
- templateBuilder.Append("selectedrn");
- } //end if
- templateBuilder.Append(">邮费</option>rn");
- templateBuilder.Append(" <option value="6" rn");
- if (goodsinfo.Itemtype==6)
- {
- templateBuilder.Append("selectedrn");
- } //end if
- templateBuilder.Append(">奖金</option>rn");
- templateBuilder.Append(" </select>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(" <span id="ticketTitle" style="display: none;"></span>rn");
- templateBuilder.Append(" <input id="title" name="title" maxlength="60" size="40" value="");
- templateBuilder.Append(goodsinfo.Title.ToString().Trim());
- templateBuilder.Append("" class="colorblue" onblur="this.className='colorblue';" onfocus="this.className='colorfocus';" >rn");
- if (canhtmltitle)
- {
- templateBuilder.Append(" <a id="titleEditorButton" href="###" onclick="">高级编辑</a>rn");
- templateBuilder.Append(" <script type="text/javascript" src="javascript/dnteditor.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" <div id="titleEditorDiv" style="display: none;">rn");
- templateBuilder.Append(" <textarea name="htmltitle" id="htmltitle" cols="80" rows="10"></textarea>rn");
- templateBuilder.Append(" <script type="text/javascript">rn");
- templateBuilder.Append(" var forumpath = '");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("';rn");
- templateBuilder.Append(" var templatepath = '");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("';rn");
- templateBuilder.Append(" var temptitle = $('faketitle');rn");
- templateBuilder.Append(" var titleEditor = null;rn");
- templateBuilder.Append(" function AdvancedTitleEditor() {rn");
- templateBuilder.Append(" $('title').style.display = 'none';rn");
- templateBuilder.Append(" $('titleEditorDiv').style.display = '';rn");
- templateBuilder.Append(" $('titleEditorButton').style.display = 'none';rn");
- templateBuilder.Append(" titleEditor = new DNTeditor('htmltitle', '500', '50', '");
- templateBuilder.Append(htmltitle.ToString());
- templateBuilder.Append("'==''?$('title').value:'");
- templateBuilder.Append(htmltitle.ToString());
- templateBuilder.Append("');rn");
- templateBuilder.Append(" titleEditor.OnChange = function(){rn");
- templateBuilder.Append(" //temptitle.innerHTML = html2bbcode(titleEditor.GetHtml().replace(/<[^>]*>/ig, ''));rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" titleEditor.Basic = true;rn");
- templateBuilder.Append(" titleEditor.IsAutoSave = false;rn");
- templateBuilder.Append(" titleEditor.Style = forumpath + 'templates/' + templatepath + '/editor.css';rn");
- templateBuilder.Append(" titleEditor.BasePath = forumpath;rn");
- templateBuilder.Append(" titleEditor.ReplaceTextarea();rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" $('titleEditorButton').onclick = function(){rn");
- templateBuilder.Append(" AdvancedTitleEditor();rn");
- templateBuilder.Append(" };rn");
- templateBuilder.Append(" </");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" </div>rn");
- if (htmltitle!="")
- {
- templateBuilder.Append(" <script type="text/javascript"> rn");
- templateBuilder.Append(" AdvancedTitleEditor();rn");
- templateBuilder.Append(" </");
- templateBuilder.Append("script>rn");
- } //end if
- } //end if
- 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(" <div style="float:left; padding-top:25px;">rn");
- templateBuilder.Append(" <input type="file" onchange="PhotoView(this.value,document.getElementById('previewImage'))" id="upfilegoodspic" name="postfile" size="40" class="colorfocus" onblur="this.className='colorblue';" onfocus="this.className='colorfocus';"/> rn");
- templateBuilder.Append(" <br/><span class="posttip">图片限定jpg或gif格式, 请确保图片在浏览器中可以正常打开.</span> rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div style="float:left; border: 1px solid #DDD; width: 75px; height: 75px; text-align:center;line-height:75px;" id="previewImage">rn");
- if (goodsinfo.Goodspic!="")
- {
- templateBuilder.Append(" <img width="75" height="75" src="/upload/");
- templateBuilder.Append(goodsinfo.Goodspic.ToString().Trim());
- templateBuilder.Append("" border="0" alt="" />rn");
- }
- else
- {
- templateBuilder.Append(" 暂无图片rn");
- } //end if
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- templateBuilder.Append(" <!--编辑器代码段开始-->rn");
- templateBuilder.Append(" <!--编辑器代码段结束-->rn");
- if (allowviewattach && canpostattach)
- {
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th> </th>rn");
- templateBuilder.Append(" <td><input type="button" value="查看已上传附件>>" onclick="expandoptions('attachfilelist');" class="lightbutton"/></td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody> rn");
- templateBuilder.Append(" <!--附件列表开始-->rn");
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td colspan="2" style="border-top:none;">rn");
- templateBuilder.Append(" <div id="attachfilelist" style="display:none">rn");
- if (attachmentlist.Count>0)
- {
- templateBuilder.Append(" <script type="text/javascript">rn");
- templateBuilder.Append(" var attachments = new Array();rn");
- templateBuilder.Append(" var attachimgurl = new Array();rn");
- templateBuilder.Append(" function restore(aid) {rn");
- templateBuilder.Append(" obj = $('attach' + aid);rn");
- templateBuilder.Append(" objupdate = $('attachupdate' + aid);rn");
- templateBuilder.Append(" obj.style.display = '';rn");
- templateBuilder.Append(" objupdate.innerHTML = '<input type="file" name="attachupdated" style="display: none;">';rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" function attachupdate(aid) {rn");
- templateBuilder.Append(" obj = $('attach' + aid);rn");
- templateBuilder.Append(" objupdate = $('attachupdate' + aid);rn");
- templateBuilder.Append(" obj.style.display = 'none';rn");
- templateBuilder.Append(" objupdate.innerHTML = '<input type="file" name="attachupdated" class="colorblue" onfocus="this.className=\'colorfocus\';" onblur="this.className=\'colorblue\';" size="15" /><input type="hidden" value="' + aid + '" name="attachupdatedid" /> <input onfocus="this.className=\'colorfocus\';" onblur="this.className=\'colorblue\';" class="colorblue" type="button" value="取 消" onclick="restore(\'' + aid + '\')" />';rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" function insertAttachTag(aid) {rn");
- templateBuilder.Append(" if (bbinsert && wysiwyg) {rn");
- templateBuilder.Append(" insertText('[attach]' + aid + '[/attach]', false);rn");
- templateBuilder.Append(" } else {rn");
- templateBuilder.Append(" AddText('[attach]' + aid + '[/attach]');rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" function insertAttachimgTag(aid) {rn");
- templateBuilder.Append(" if (bbinsert && wysiwyg) {rn");
- templateBuilder.Append(" var attachimgurl = eval('attachimgurl_' + aid);rn");
- templateBuilder.Append(" insertText('<img src="' + attachimgurl[0] + '" border="0" aid="attachimg_' + aid + '" alt="" />', false);rn");
- templateBuilder.Append(" } else {rn");
- templateBuilder.Append(" AddText('[attachimg]' + aid + '[/attachimg]');rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" </");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" <table width="100%" border="0" align="center" cellpadding="4" cellspacing="0">rn");
- templateBuilder.Append(" <tr style="line-height:25px;">rn");
- templateBuilder.Append(" <td width="5%" align="center">删除</td>rn");
- templateBuilder.Append(" <td width="5%" >附件ID</td>rn");
- templateBuilder.Append(" <td width="25%">文件名</td>rn");
- templateBuilder.Append(" <td width="15%">时间</td>rn");
- templateBuilder.Append(" <td width="10%">附件大小</td>rn");
- templateBuilder.Append(" <td width="5%">阅读权限</td>rn");
- templateBuilder.Append(" <td width="20%">描述</td>rn");
- templateBuilder.Append(" </tr>rn");
- int attachment__loop__id=0;
- foreach(Goodsattachmentinfo attachment in attachmentlist)
- {
- attachment__loop__id++;
- if (Utils.StrToInt(attachment.Goodsid, 0)==goodsinfo.Goodsid)
- {
- templateBuilder.Append(" <tr onmouseover="this.style.backgroundColor='#fff'" onmouseout="this.style.backgroundColor='#F5FBFF'">rn");
- templateBuilder.Append(" <td align="center"><input class="checkbox" name="deleteaid" value="");
- templateBuilder.Append(attachment.Aid.ToString().Trim());
- templateBuilder.Append("" type="checkbox"></td>rn");
- templateBuilder.Append(" <td >");
- templateBuilder.Append(attachment.Aid.ToString().Trim());
- templateBuilder.Append("<input type="hidden" value="");
- templateBuilder.Append(attachment.Aid.ToString().Trim());
- templateBuilder.Append("" name="attachupdateid" /></td>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" <div id="attach");
- templateBuilder.Append(attachment.Aid.ToString().Trim());
- templateBuilder.Append("">rn");
- templateBuilder.Append(" <a href="###" class="right" onclick="attachupdate('");
- templateBuilder.Append(attachment.Aid.ToString().Trim());
- templateBuilder.Append("')">[更新]</a>rn");
- templateBuilder.Append(" <a href="###" class="right" onclick="rn");
- if (attachment.Filetype.IndexOf("image")>-1)
- {
- templateBuilder.Append("insertAttachimgTag('");
- templateBuilder.Append(attachment.Aid.ToString().Trim());
- templateBuilder.Append("');rn");
- }
- else
- {
- templateBuilder.Append("insertAttachTag('");
- templateBuilder.Append(attachment.Aid.ToString().Trim());
- templateBuilder.Append("');rn");
- } //end if
- templateBuilder.Append("" title="点击这里将本附件插入帖子内容中当前光标的位置">[插入]</a>rn");
- templateBuilder.Append(" <script type="text/javascript">attachimgurl_");
- templateBuilder.Append(attachment.Aid.ToString().Trim());
- templateBuilder.Append(" = ['attachment.aspx?attachmentid=");
- templateBuilder.Append(attachment.Aid.ToString().Trim());
- templateBuilder.Append("', 400];</");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" <span id="imgpreview_");
- templateBuilder.Append(attachment.Aid.ToString().Trim());
- templateBuilder.Append("" rn");
- if (attachment.Filetype.IndexOf("image")>-1)
- {
- templateBuilder.Append("onmouseover="if($('imgpreview_");
- templateBuilder.Append(attachment.Aid.ToString().Trim());
- templateBuilder.Append("_image').width > 400)$('imgpreview_");
- templateBuilder.Append(attachment.Aid.ToString().Trim());
- templateBuilder.Append("_image').width = 400;showMenu(this.id, 0, 0, 1, 0);"rn");
- } //end if
- templateBuilder.Append("><a href="attachment.aspx?attachmentid=");
- templateBuilder.Append(attachment.Aid.ToString().Trim());
- templateBuilder.Append("">");
- templateBuilder.Append(attachment.Attachment.ToString().Trim());
- templateBuilder.Append("</a></span>rn");
- if (attachment.Filetype.IndexOf("image")>-1)
- {
- templateBuilder.Append("<div class="popupmenu_popup" id="imgpreview_");
- templateBuilder.Append(attachment.Aid.ToString().Trim());
- templateBuilder.Append("_menu" style="display: none;margin-left:20px;"><img id="imgpreview_");
- templateBuilder.Append(attachment.Aid.ToString().Trim());
- templateBuilder.Append("_image" src="upload/");
- templateBuilder.Append(attachment.Filename.ToString().Trim());
- templateBuilder.Append("" onerror="this.onerror=null;this.src='");
- templateBuilder.Append(attachment.Filename.ToString().Trim());
- templateBuilder.Append("';" /></div>rn");
- } //end if
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <span id="attachupdate");
- templateBuilder.Append(attachment.Aid.ToString().Trim());
- templateBuilder.Append(""><input type="file" name="attachupdated" style="display: none;"></span>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" <td>");
- templateBuilder.Append(attachment.Postdatetime.ToString().Trim());
- templateBuilder.Append("</td>rn");
- templateBuilder.Append(" <td>");
- templateBuilder.Append(attachment.Filesize.ToString().Trim());
- templateBuilder.Append(" 字节</td>rn");
- templateBuilder.Append(" <td><input type="text" name="attachupdatereadperm" size="1" class="colorblue" onfocus="this.className='colorfocus';" onblur="this.className='colorblue';" value=");
- templateBuilder.Append(attachment.Readperm.ToString().Trim());
- templateBuilder.Append(" /></td>rn");
- templateBuilder.Append(" <td><input type="text" name="attachupdatedesc" size="25" class="colorblue" onfocus="this.className='colorfocus';" onblur="this.className='colorblue';" value=");
- templateBuilder.Append(attachment.Description.ToString().Trim());
- templateBuilder.Append(" /></td>rn");
- templateBuilder.Append(" </tr>rn");
- } //end if
- } //end loop
- templateBuilder.Append(" </table>rn");
- } //end if
- templateBuilder.Append(" </div>rn");
- } //end if
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- templateBuilder.Append(" <!--附件列表结束-->rn");
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th>总数:</th>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" <input maxlength="6" size="5" value="");
- templateBuilder.Append(goodsinfo.Amount.ToString().Trim());
- templateBuilder.Append("" name="amount" class="colorblue" id="amount"> 件rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td class="navformcommend" colspan="2">交易信息</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(" <input id="costprice" maxlength="12" size="12" name="costprice" value="");
- templateBuilder.Append(goodsinfo.Costprice.ToString().Trim());
- templateBuilder.Append("" type="text" class="colorblue" onblur="this.className='colorblue';" onfocus="this.className='colorfocus';">元 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(" <input id="price" maxlength="12" size="12" name="price" value="");
- templateBuilder.Append(goodsinfo.Price.ToString().Trim());
- templateBuilder.Append("" type="text" class="colorblue" onblur="this.className='colorblue';" onfocus="this.className='colorfocus';">元 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>");
- templateBuilder.Append(goodsinfo.Locus.ToString().Trim());
- templateBuilder.Append(" rn");
- templateBuilder.Append(" <select class="input_gray" style="width: 130px;" id="locus_1" name="locus_1"></select>rn");
- templateBuilder.Append(" 城市:<select class="input_gray" style="width: 90px;" id="locus_2" name="locus_2"></select>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(" <input class="radio" type="radio" name="transport" value="0" tabindex="160" rn");
- if (goodsinfo.Transport==0)
- {
- templateBuilder.Append("checkedrn");
- } //end if
- templateBuilder.Append(" onclick="$('logisticssetting').style.display='none'" /> 虚拟物品或无需邮递rn");
- templateBuilder.Append(" <input class="radio" type="radio" name="transport" value="1" tabindex="161" rn");
- if (goodsinfo.Transport==1)
- {
- templateBuilder.Append("checkedrn");
- } //end if
- templateBuilder.Append(" onclick="$('logisticssetting').style.display=''" /> 卖家承担运费rn");
- templateBuilder.Append(" <input class="radio" type="radio" name="transport" value="2" tabindex="162" rn");
- if (goodsinfo.Transport==2)
- {
- templateBuilder.Append("checkedrn");
- } //end if
- templateBuilder.Append(" onclick="$('logisticssetting').style.display=''" /> 买家承担运费rn");
- templateBuilder.Append(" <input class="radio" type="radio" name="transport" value="3" tabindex="163" rn");
- if (goodsinfo.Transport==3)
- {
- templateBuilder.Append("checkedrn");
- } //end if
- templateBuilder.Append(" onclick="$('logisticssetting').style.display=''" /> 支付给物流公司rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- templateBuilder.Append(" <tbody id="logisticssetting" style="rn");
- if (goodsinfo.Transport==0)
- {
- templateBuilder.Append("display:none;rn");
- }
- else
- {
- templateBuilder.Append("display:;rn");
- } //end if
- templateBuilder.Append("">rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th>运费:</th>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" 平邮 <input type="text" id="postage_mail" name="postage_mail" size="3" value="rn");
- if (goodsinfo.Ordinaryfee>0)
- {
- templateBuilder.Append(goodsinfo.Ordinaryfee.ToString().Trim());
- templateBuilder.Append("rn");
- } //end if
- templateBuilder.Append("" tabindex="164" class="colorblue" onblur="this.className='colorblue';" onfocus="this.className='colorfocus';" /> 元 <em class="tips">(不填表示不提供平邮)</em><br />rn");
- templateBuilder.Append(" 快递 <input type="text" id="postage_express" name="postage_express" size="3" value="rn");
- if (goodsinfo.Expressfee>0)
- {
- templateBuilder.Append(goodsinfo.Expressfee.ToString().Trim());
- templateBuilder.Append("rn");
- } //end if
- templateBuilder.Append("" tabindex="165" class="colorblue" onblur="this.className='colorblue';" onfocus="this.className='colorfocus';" /> 元 <em class="tips">(不填表示不提供快递)</em><br />rn");
- templateBuilder.Append(" EMS <input type="text" id="postage_ems" name="postage_ems" size="3" value="rn");
- if (goodsinfo.Emsfee>0)
- {
- templateBuilder.Append(goodsinfo.Emsfee.ToString().Trim());
- templateBuilder.Append("rn");
- } //end if
- templateBuilder.Append("" tabindex="166" class="colorblue" onblur="this.className='colorblue';" onfocus="this.className='colorfocus';" /> 元 <em class="tips">(不填表示不提供 EMS)</em><br />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(" <input rn");
- if (goodsinfo.Invoice==0)
- {
- templateBuilder.Append("checked="checked"rn");
- } //end if
- templateBuilder.Append(" value="0" name="invoice" id="invoiceN" type="radio"><label for="invoiceN">无</label>rn");
- templateBuilder.Append(" <input rn");
- if (goodsinfo.Invoice==1)
- {
- templateBuilder.Append("checked="checked"rn");
- } //end if
- templateBuilder.Append(" value="1" name="invoice" id="invoiceY" type="radio"><label for="invoiceY">有</label> 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(" <input type="text" value="rn");
- if (goodsinfo.Repair!=0)
- {
- templateBuilder.Append(goodsinfo.Repair.ToString().Trim());
- templateBuilder.Append("rn");
- } //end if
- templateBuilder.Append("" name="repair" id="repair" class="colorblue" onblur="this.className='colorblue';" onfocus="this.className='colorfocus';"> 单位:天, 不填表示不提供保修rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td class="navformcommend" colspan="2">支付宝</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(" <input id="tradetype_1" name="tradetype" onclick="$('tradeaccount').style.display = ''" value="1" rn");
- if (goodsinfo.Tradetype==1)
- {
- templateBuilder.Append("checkedrn");
- } //end if
- templateBuilder.Append(" type="radio" > 支付宝在线交易 rn");
- templateBuilder.Append(" <input id="tradetype_2" name="tradetype" onclick="$('tradeaccount').style.display = 'none'" value="0" rn");
- if (goodsinfo.Tradetype==0)
- {
- templateBuilder.Append("checkedrn");
- } //end if
- templateBuilder.Append(" type="radio"> 线下交易rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- templateBuilder.Append(" <tbody id="tradeaccount" style="display: rn");
- if (goodsinfo.Tradetype==1)
- {
- templateBuilder.Append(";rn");
- }
- else
- {
- templateBuilder.Append("nonern");
- } //end if
- templateBuilder.Append("">rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th>支付宝账户:</th>rn");
- templateBuilder.Append(" <td> rn");
- templateBuilder.Append(" <input type="text" id="account" name="account" size="30" value="");
- templateBuilder.Append(goodsinfo.Account.ToString().Trim());
- templateBuilder.Append("" class="colorblue" onblur="this.className='colorblue';" onfocus="this.className='colorfocus';" />rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td class="navformcommend" colspan="2"><span style="color:#999; font-size:10px; padding-right:2px;"></span>其它信息</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(" <input id="serverdatetime" name="serverdatetime" value="");
- templateBuilder.Append(serverdatetime.ToString());
- templateBuilder.Append("" type="hidden">rn");
- templateBuilder.Append(" <input name="_now" value="0" id="_now0" onclick="setTimeEnableAndInStock(false, 0)" type="radio"><label for="_now0">立刻</label>rn");
- templateBuilder.Append(" <br>rn");
- templateBuilder.Append(" <input name="_now" value="1" id="_now1" onclick="setTimeEnableAndInStock(true, 1)" type="radio"><label for="_now1">设定</label>rn");
- templateBuilder.Append(" <select disabled="disabled" id="_date" name="_date" onchange="changeDate()"></select>rn");
- templateBuilder.Append(" <select disabled="disabled" id="_hour" name="_hour" onchange="changeHour()"></select>时rn");
- templateBuilder.Append(" <select disabled="disabled" id="_minute" name="_minute" onchange="setMinute()"></select>分rn");
- templateBuilder.Append(" <span class="posttip" style="font-size: 12px;" id="durainfo">您可以设定商品的正式开始销售时间</span>rn");
- templateBuilder.Append(" <br>rn");
- templateBuilder.Append(" <input name="_now" value="2" id="inStock" onclick="setTimeEnableAndInStock(false, 2)" type="radio"><label for="inStock">暂不设置</label>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(" <input name="expiration" type="text" id="expiration" size="20" value="");
- templateBuilder.Append(goodsinfo.Expiration.ToString().Trim());
- templateBuilder.Append("" style="cursor:default" class="colorblue" onClick="showcalendar(event, 'expiration', 'cal_startdate', 'cal_enddate', '");
- templateBuilder.Append(expiration.ToString());
- templateBuilder.Append("');" readonly="readonly" onblur="this.className='colorblue';" onfocus="this.className='colorfocus';" /></span>rn");
- templateBuilder.Append(" <input type="hidden" name="cal_startdate" id="cal_startdate" size="20" value="");
- templateBuilder.Append(goodsinfo.Expiration.ToString().Trim());
- templateBuilder.Append("">rn");
- templateBuilder.Append(" <input type="hidden" name="cal_enddate" id="cal_enddate" size="20" value="">rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- if (enabletag)
- {
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th>标签(Tags):</th>rn");
- templateBuilder.Append(" <td><input type="text" name="tags" id="tags" value="");
- templateBuilder.Append(goodstags.ToString());
- templateBuilder.Append("" class="colorblue" onblur="this.className='colorblue';" onfocus="this.className='colorfocus';" /><input type="button" onclick="relatekw();" value="可用标签" />(用空格隔开多个标签,最多可填写 5 个)</td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- } //end if
- if (config.Enablemall==2)
- {
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th>推荐商品:</th>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" <input name="recommend" id="recommend" type="checkbox" rn");
- if (goodsinfo.Recommend==1)
- {
- templateBuilder.Append("checkedrn");
- } //end if
- templateBuilder.Append(">rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- } //end if
- if (config.Enablemall==2)
- {
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr> rn");
- templateBuilder.Append(" <th>上架:</th>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" <input name="displayorder" id="displayorder" type="checkbox" rn");
- if (goodsinfo.Displayorder>=0)
- {
- templateBuilder.Append("checkedrn");
- } //end if
- templateBuilder.Append(">rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- } //end if
- if (config.Enablemall==1)
- {
- if (goodsinfo.Displayorder<0)
- {
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th>状态:</th>rn");
- templateBuilder.Append(" <td>rn");
- if (goodsinfo.Displayorder==-1)
- {
- templateBuilder.Append(" 回收站rn");
- } //end if
- if (goodsinfo.Displayorder==-2)
- {
- templateBuilder.Append(" 待审核rn");
- } //end if
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- } //end if
- if (useradminid==1 || goodsinfo.Selleruid==userid)
- {
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr> rn");
- templateBuilder.Append(" <th>上架:</th>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" <input name="displayorder" id="displayorder" type="checkbox" rn");
- if (goodsinfo.Displayorder>=0)
- {
- templateBuilder.Append("checkedrn");
- } //end if
- templateBuilder.Append(">rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- } //end if
- } //end if
- if (isseccode)
- {
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th>验证码</th>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" <div style="position: relative;">rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- } //end if
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td colspan="2" class="formarea">rn");
- templateBuilder.Append(" <input name="goodssubmit" id="postsubmit" value="编辑商品" class="sbutton" style="margin-bottom: -3px; margin-right: 10px;" type="submit">rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- templateBuilder.Append("</table>rn");
- templateBuilder.Append("</form>rn");
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("<script language="javascript" src="javascript/goodscategories.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<script language="javascript" src="javascript/locations.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<script language="javascript" src="javascript/template_editgoods.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("</div>rn");
- } //end if
- }
- else
- {
- templateBuilder.Append("</div>rn");
- } //end if
- Response.Write(templateBuilder.ToString());
- }
- </script>