<%@ page language="C#" masterpagefile="AdminIndexMaster.master" autoeventwireup="true" inherits="Admin_Admin_TemplatePageSet, mallz" title="模板路径管理" enableEventValidation="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<script type="text/javascript" language="javascript">
function OpenFileList(boj){
    window.open("Admin_PageFileList.aspx?obj=ctl00_ContentPlaceHolder1_"+boj,"PageFileList","width=500px; height=350px; help=no; scroll=no; status=no; edge=sunken;");
}
function EditFile(x){
    x = "ctl00_ContentPlaceHolder1_" + x;
    var inputvalue = document.getElementById(x).value;
    location.href = "Admin_Template.aspx?action=modify&Dir=" + unescape(inputvalue);
}
</script>
<table class="nick" cellpadding="1" cellspacing="1">
        <tr><td class="tit" colspan="2">模板路径管理</td></tr>
        <tr><td class="ltd" style="text-align:center"><a href="?all=1">显示全部</a></td>
		<td class="rtd">
		<a href="?id=0" id="a0">商城首页</a> | 
		<a href="?id=1" id="a1">会员中心</a> | 
		<a href="?id=2" id="a2">通行证</a> | 
		<a href="?id=3" id="a3">商品信息</a> | 
		<a href="?id=4" id="a4">店铺模板</a> | 
		<a href="?id=5" id="a5">订购流程</a> | 
		<a href="?id=6" id="a6">专题模板</a> | 
		<a href="?id=7" id="a7">搜索模板</a> | 
		<a href="?id=8" id="a8">会员认证</a> | 
		<a href="?id=9" id="a9">文章模板</a> | 
		<a href="?id=10" id="a10">系统提示</a></td></tr>
</table>

<table class="adminlist">
<tbody>
	<tr><th>名称</th><th>模板路径</th></tr>
</tbody>
<tbody class="hidden" id="m0">
	<tr>
		<td class="ltd">商城首页模板：</td>
		<td class="rtd"><asp:TextBox ID="Index" runat="server" Width="300px" />
		<input name="Indexbutton" type="button" id="Button2" value="浏 览" onclick="return OpenFileList('Index')" />
		<input name="Button39" type="button" id="Button39" value="修改模版" onclick="return EditFile('Index')" />
		</td>
	</tr>
</tbody>                      

<tbody class="hidden" id="m1">
	<tr>
		<td class="ltd">会员中心首页模板：</td>
		<td class="rtd"><asp:TextBox ID="MemberIndex" runat="server" Text='<%# Bind("MemberIndex") %>' Width="300px" />
		<input name="Loginbutton" type="button" id="Button15" value="浏 览" onclick="return OpenFileList('MemberIndex')" />
		<input name="Button59" type="button" id="Button59" value="修改模版" onclick="return EditFile('MemberIndex')" />
		</td>
	</tr> 
</tbody> 

<tbody class="hidden" id="m2">
	<tr>
		<td class="ltd">注册页模板：</td>
		<td class="rtd"><asp:TextBox ID="UserReg" runat="server" Width="300px" />
		<input name="UserRegbutton" type="button" id="UserRegbutton" value="浏 览" onclick="return OpenFileList('UserReg')" />
		<input name="Button36" type="button" id="Button36" value="修改模版" onclick="return EditFile('UserReg')" />
		</td>
	</tr>
	<tr>
		<td class="ltd">登录页模板：</td>
		<td class="rtd"><asp:TextBox ID="Login" runat="server"  Width="300px"/>
		<input name="Loginbutton" type="button" id="Button1" value="浏 览" onclick="return OpenFileList('Login')" />
		<input name="Button37" type="button" id="Button37" value="修改模版" onclick="return EditFile('Login')" />
		</td>
	</tr>
	<tr>
		<td class="ltd">通行证模板：</td>
		<td class="rtd"><asp:TextBox ID="Passport" runat="server" Width="300px"/>
		<input name="Loginbutton" type="button" id="Button34" value="浏 览" onclick="return OpenFileList('Passport')" />
		<input name="Button38" type="button" id="Button38" value="修改模版" onclick="return EditFile('Passport')" />
		</td>
	</tr>
</tbody>

<tbody class="hidden" id="m3">
	<tr>
		<td class="ltd">商品分类列表模板：</td>
		<td class="rtd"><asp:TextBox ID="CategoryList" runat="server" Width="300px" />
		<input name="Loginbutton" type="button" id="Button6" value="浏 览" onclick="return OpenFileList('CategoryList')" />
		<input name="Button55" type="button" id="Button55" value="修改模版" onclick="return EditFile('CategoryList')" />
		</td>
	</tr>  
	 <tr>
		<td class="ltd">商品列表模板：</td>
		<td class="rtd"><asp:TextBox ID="ProductList" runat="server" Width="300px" />
		<input name="Loginbutton" type="button" id="Button7" value="浏 览" onclick="return OpenFileList('ProductList')" />
		<input name="Button56" type="button" id="Button56" value="修改模版" onclick="return EditFile('ProductList')" />
		</td>
	</tr>      
	<tr>
		<td class="ltd">商品详细信息模板：</td>
		<td class="rtd"><asp:TextBox ID="ShowProduct" runat="server" Width="300px" />
		<input name="Loginbutton" type="button" id="Button4" value="浏 览" onclick="return OpenFileList('ShowProduct')" />
		<input name="Button46" type="button" id="Button46" value="修改模版" onclick="return EditFile('ShowProduct')" />
		</td>
	</tr>
	<tr style="display:none;">
		<td class="ltd">商品详细信息预览模板：</td>
		<td class="rtd"><asp:TextBox ID="PublishPreview" runat="server" Width="300px" />
		<input name="Loginbutton" type="button" id="Button23" value="浏 览" onclick="return OpenFileList('PublishPreview')" />
		<input name="Button47" type="button" id="Button47" value="修改模版" onclick="return EditFile('PublishPreview')" />
		</td>
	</tr>   
	 <tr style="display:none;">
		<td class="ltd">商品出售选择模板：</td>
		<td class="rtd"><asp:TextBox ID="Sell" runat="server" Width="300px" />
		<input name="Loginbutton" type="button" id="Button3" value="浏 览" onclick="return OpenFileList('Sell')" />
		<input name="Button48" type="button" id="Button48" value="修改模版" onclick="return EditFile('Sell')" />
		</td>
	</tr>
	<tr>
		<td class="ltd">商品比较页模板：</td>
		<td class="rtd"><asp:TextBox ID="ProductCompare" runat="server" Width="300px" />
		<input name="Loginbutton" type="button" id="Button5" value="浏 览" onclick="return OpenFileList('ProductCompare')" />
		<input name="Button49" type="button" id="Button49" value="修改模版" onclick="return EditFile('ProductCompare')" />
		</td>
	</tr> 
	 <tr style="display:none;">
		<td class="ltd">求购信息模板：</td>
		<td class="rtd"><asp:TextBox ID="Browseoffer" runat="server" Width="300px" />
		<input name="Loginbutton" type="button" id="Button13" value="浏 览" onclick="return OpenFileList('Browseoffer')" />
		<input name="Button50" type="button" id="Button50" value="修改模版" onclick="return EditFile('Browseoffer')" />
		</td>
	</tr>
	<tr style="display:none;">
		<td class="ltd">发布求购信息模板：</td>
		<td class="rtd"><asp:TextBox ID="RequestProduct" runat="server" Width="300px" />
		<input name="Loginbutton" type="button" id="Button35" value="浏 览" onclick="return OpenFileList('RequestProduct')" />
		<input name="Button51" type="button" id="Button51" value="修改模版" onclick="return EditFile('RequestProduct')" />
		</td>
	</tr>
	<tr style="display:none;">
		<td class="ltd">商品分类选择模板：</td>
		<td class="rtd"><asp:TextBox ID="ClassChoose" runat="server" Width="300px" />
		<input name="Loginbutton" type="button" id="Button28" value="浏 览" onclick="return OpenFileList('ClassChoose')" />
		<input name="Button52" type="button" id="Button52" value="修改模版" onclick="return EditFile('ClassChoose')" />
		</td>
	</tr> 
	<tr>
		<td class="ltd">商品发布页模板：</td>
		<td class="rtd"><asp:TextBox ID="SaleProduct" runat="server"  Width="300px" />
		<input name="Loginbutton" type="button" id="Button29" value="浏 览" onclick="return OpenFileList('SaleProduct')" />
		<input name="Button53" type="button" id="Button53" value="修改模版" onclick="return EditFile('SaleProduct')" />
		</td>
	</tr>  
	<tr>
		<td class="ltd">商品编辑页模板：</td>
		<td class="rtd"><asp:TextBox ID="ProductEdit" runat="server" Width="300px" />
		<input name="Loginbutton" type="button" id="Button30" value="浏 览" onclick="return OpenFileList('ProductEdit')" />
		<input name="Button54" type="button" id="Button54" value="修改模版" onclick="return EditFile('ProductEdit')" />
		</td>
	</tr>                           
</tbody>

<tbody class="hidden" id="m4">
<tr>
	<td class="ltd">店铺介绍模板：</td>
	<td class="rtd"><asp:TextBox ID="ShopIntro" runat="server" Width="300px" />
	<input name="ShopIntrobutton" type="button" id="Button11" value="浏 览" onclick="return OpenFileList('ShopIntro')" />
	<input name="Button41" type="button" id="Button41" value="修改模版" onclick="return EditFile('ShopIntro')" />
	</td>
</tr>  
 <tr>
	<td class="ltd">信用评价模板：</td>
	<td class="rtd"><asp:TextBox ID="ShopReview" runat="server" Width="300px" />
	<input name="Loginbutton" type="button" id="Button12" value="浏 览" onclick="return OpenFileList('ShopReview')" />
	<input name="Button42" type="button" id="Button42" value="修改模版" onclick="return EditFile('ShopReview')" />
	</td>
</tr> 
<tr>
	<td class="ltd">全部留言模板：</td>
	<td class="rtd"><asp:TextBox ID="ShopAllMessage" runat="server" Width="300px" />
	<input name="Loginbutton" type="button" id="Button32" value="浏 览" onclick="return OpenFileList('ShopAllMessage')" />
	<input name="Button43" type="button" id="Button43" value="修改模版" onclick="return EditFile('ShopAllMessage')" />
	</td>
</tr>
<tr>
	<td class="ltd">默认店铺模板：</td>
	<td class="rtd"><asp:TextBox ID="CommonShopIndex" runat="server"  Width="300px" />
	<input name="Loginbutton" type="button" id="Button26" value="浏 览" onclick="return OpenFileList('CommonShopIndex')" />
	<input name="Button44" type="button" id="Button44" value="修改模版" onclick="return EditFile('CommonShopIndex')" />
	</td>
</tr>
<tr style="display:none;">
	<td class="ltd">高级店铺模板：</td>
	<td class="rtd"><asp:TextBox ID="SeniorShopIndex" runat="server" Width="300px" />
	<input name="Loginbutton" type="button" id="Button27" value="浏 览" onclick="return OpenFileList('SeniorShopIndex')" />
	<input name="Button45" type="button" id="Button45" value="修改模版" onclick="return EditFile('SeniorShopIndex')" />
	</td>
</tr>
<tr>
	<td class="ltd">店铺大厅列表模板：</td>
	<td class="rtd"><asp:TextBox ID="ShopIndex" runat="server"  Width="300px" />
	<input name="Loginbutton" type="button" id="Button14" value="浏 览" onclick="return OpenFileList('ShopIndex')" />
	<input name="Button57" type="button" id="Button57" value="修改模版" onclick="return EditFile('ShopIndex')" />
	</td>
</tr>
<tr>
	<td class="ltd">商城店铺分类列表模板：</td>
	<td class="rtd"><asp:TextBox ID="ShopList" runat="server" Width="300px" />
	<input name="Loginbutton" type="button" id="Button8" value="浏 览" onclick="return OpenFileList('ShopList')" />
	<input name="Button58" type="button" id="Button58" value="修改模版" onclick="return EditFile('ShopList')" />
	</td>
</tr>                                                        
</tbody>

<tbody class="hidden" id="m5">
	<tr>
		<td class="ltd">商品购买页模板：</td>
		<td class="rtd"><asp:TextBox ID="ShopBuy" runat="server" Width="300px" />
		<input name="Loginbutton" type="button" id="Button9" value="浏 览" onclick="return OpenFileList('ShopBuy')" />
		<input name="Button60" type="button" id="Button60" value="修改模版" onclick="return EditFile('ShopBuy')" />
		</td>
	</tr>
	<tr>
		<td class="ltd">购物车模板：</td>
		<td class="rtd"><asp:TextBox ID="ShopingCar" runat="server" Width="300px" />
		<input name="Loginbutton" type="button" id="Button10" value="浏 览" onclick="return OpenFileList('ShopingCar')" />
		<input name="Button70" type="button" id="Button61" value="修改模版" onclick="return EditFile('ShopingCar')" />
		</td>
	</tr>                     
</tbody>

<tbody class="hidden" id="m6">
	<tr>
		<td class="ltd">默认专题页模板：</td>
		<td class="rtd"><asp:TextBox ID="SpecialDefault" runat="server"  Width="300px" />
		<input name="Specialbutton" type="button" id="Specialbutton" value="浏 览" onclick="return OpenFileList('SpecialDefault')" />
		<input name="Button40" type="button" id="Button40" value="修改模版" onclick="return EditFile('SpecialDefault')" />
		</td>
	</tr>                                             
</tbody> 

<tbody class="hidden" id="m7">
	<tr>
		<td class="ltd">商品搜索页面模板：</td>
		<td class="rtd"><asp:TextBox ID="SearchProduct" runat="server"  Width="300px" />
		<input name="Loginbutton" type="button" id="Button16" value="浏 览" onclick="return OpenFileList('SearchProduct')" />
		<input name="Button62" type="button" id="Button62" value="修改模版" onclick="return EditFile('SearchProduct')" />
		</td>
	</tr> 
	 <tr>
		<td class="ltd">店铺搜索页面模板：</td>
		<td class="rtd"><asp:TextBox ID="SearchShop" runat="server"  Width="300px" />
		<input name="Loginbutton" type="button" id="Button33" value="浏 览" onclick="return OpenFileList('SearchShop')" />
		<input name="Button63" type="button" id="Button63" value="修改模版" onclick="return EditFile('SearchShop')" />
		</td>
	</tr>                                     
</tbody>

<tbody class="hidden" id="m8">
   <tr style="display:none;">
		<td class="ltd">认证方式选择模板：</td>
		<td class="rtd"><asp:TextBox ID="IdentifyChoose" runat="server"  Width="300px" />
		<input name="Loginbutton" type="button" id="Button18" value="浏 览" onclick="return OpenFileList('IdentifyChoose')" />
		<input name="Button64" type="button" id="Button64" value="修改模版" onclick="return EditFile('IdentifyChoose')" />
		</td>
	</tr> 
	<tr style="display:none;">
		<td class="ltd">认证协议模板：</td>
		<td class="rtd"><asp:TextBox ID="IdentifyAgree" runat="server"  Width="300px" />
		<input name="Loginbutton" type="button" id="Button19" value="浏 览" onclick="return OpenFileList('IdentifyAgree')" />
		<input name="Button65" type="button" id="Button65" value="修改模版" onclick="return EditFile('IdentifyAgree')" />
		</td>
	</tr> 
	<tr>
		<td class="ltd">个人身份认证申请模板：</td>
		<td class="rtd"><asp:TextBox ID="IdentifyUser" runat="server" Width="300px" />
		<input name="Loginbutton" type="button" id="Button20" value="浏 览" onclick="return OpenFileList('IdentifyUser')" />
		<input name="Button66" type="button" id="Button66" value="修改模版" onclick="return EditFile('IdentifyUser')" />
		</td>
	</tr> 
	<tr>
		<td class="ltd">企业认证申请模板：</td>
		<td class="rtd"><asp:TextBox ID="IdentifyCompany" runat="server"  Width="300px" />
		<input name="Loginbutton" type="button" id="Button21" value="浏 览" onclick="return OpenFileList('IdentifyCompany')" />
		<input name="Button67" type="button" id="Button67" value="修改模版" onclick="return EditFile('IdentifyCompany')" />
		</td>
	</tr> 
	<tr style="display:none;">
		<td class="ltd">认证资料提交成功模板：</td>
		<td class="rtd"><asp:TextBox ID="IdentifySuccess" runat="server"  Width="300px" />
		<input name="Loginbutton" type="button" id="Button22" value="浏 览" onclick="return OpenFileList('IdentifySuccess')" />
		<input name="Button68" type="button" id="Button68" value="修改模版" onclick="return EditFile('IdentifySuccess')" />
		</td>
	</tr> 
	<tr style="display:none;">
		<td class="ltd">认证提示页面模板：</td>
		<td class="rtd"><asp:TextBox ID="IdentifyAlert" runat="server"  Width="300px" />
		<input name="Loginbutton" type="button" id="Button31" value="浏 览" onclick="return OpenFileList('IdentifyAlert')" />
		<input name="Button69" type="button" id="Button69" value="修改模版" onclick="return EditFile('IdentifyAlert')" />
		</td>
	</tr>                       
</tbody>

<tbody class="hidden" id="m9">
	<tr>
		<td class="ltd">文章浏览页面模板：</td>
		<td class="rtd"><asp:TextBox ID="Article" runat="server" Width="300px" />
		<input name="Loginbutton" type="button" id="Button17" value="浏 览" onclick="return OpenFileList('Article')" />
		<input name="Button70" type="button" id="Button70" value="修改模版" onclick="return EditFile('Article')" />
		</td>
	</tr>
	<tr>
		<td class="ltd">文章列表页面模板：</td>
		<td class="rtd"><asp:TextBox ID="ArticleList" runat="server" Width="300px" />
		<input name="Loginbutton" type="button" id="Button25" value="浏 览" onclick="return OpenFileList('ArticleList')" />
		<input name="Button71" type="button" id="Button71" value="修改模版" onclick="return EditFile('ArticleList')" />
		</td>
	</tr>
	<tr>
		<td class="ltd">公告浏览页面模板：</td>
		<td class="rtd"><asp:TextBox ID="Announce" runat="server" Width="300px" />
		<input name="Loginbutton" type="button" id="Button24" value="浏 览" onclick="return OpenFileList('Announce')" />
		<input name="Button72" type="button" id="Button72" value="修改模版" onclick="return EditFile('Announce')" />
		</td>
	</tr>                                    
</tbody>

<tbody class="hidden" id="m10">
	<tr>
		<td class="ltd">后台出错提示：</td>
		<td class="rtd"><asp:TextBox ID="AdminError" runat="server" Width="300px" />
		<input name="Loginbutton" type="button" id="Button73" value="浏 览" onclick="return OpenFileList('AdminError')" />
		<input name="Button70" type="button" id="Button74" value="修改模版" onclick="return EditFile('AdminError')" />
		</td>
	</tr>
	<tr>
		<td class="ltd">后台成功提示：</td>
		<td class="rtd"><asp:TextBox ID="AdminSuccess" runat="server" Width="300px" />
		<input name="Loginbutton" type="button" id="Button75" value="浏 览" onclick="return OpenFileList('AdminSuccess')" />
		<input name="Button70" type="button" id="Button76" value="修改模版" onclick="return EditFile('AdminSuccess')" />
		</td>
	</tr>
	<tr>
		<td class="ltd">前台出错提示：</td>
		<td class="rtd"><asp:TextBox ID="ShopError" runat="server" Width="300px" />
		<input name="Loginbutton" type="button" id="Button77" value="浏 览" onclick="return OpenFileList('ShopError')" />
		<input name="Button70" type="button" id="Button78" value="修改模版" onclick="return EditFile('ShopError')" />
		</td>
	</tr>
	<tr>
		<td class="ltd">前台成功提示：</td>
		<td class="rtd"><asp:TextBox ID="ShopSuccess" runat="server" Width="300px" />
		<input name="Loginbutton" type="button" id="Button79" value="浏 览" onclick="return OpenFileList('ShopSuccess')" />
		<input name="Button70" type="button" id="Button80" value="修改模版" onclick="return EditFile('ShopSuccess')" />
		</td>
	</tr>
	<tr>
		<td class="ltd">会员中心出错提示：</td>
		<td class="rtd"><asp:TextBox ID="MemberError" runat="server" Width="300px" />
		<input name="Loginbutton" type="button" id="Button81" value="浏 览" onclick="return OpenFileList('MemberError')" />
		<input name="Button70" type="button" id="Button82" value="修改模版" onclick="return EditFile('MemberError')" />
		</td>
	</tr>
	<tr>
		<td class="ltd">会员中心成功提示：</td>
		<td class="rtd"><asp:TextBox ID="MemberSuccess" runat="server" Width="300px" />
		<input name="ButMemberSuccess" type="button" id="Button83" value="浏 览" onclick="return OpenFileList('MemberSuccess')" />
		<input name="Button70" type="button" id="Button84" value="修改模版" onclick="return EditFile('MemberSuccess')" />
		</td>
	</tr>
</tbody>
</table>

<div class="div_btm">
	 <asp:Button ID="UpdatePageSetButton" runat="server" OnCommand="UpDateConfig" Text="保存修改" />&nbsp;
	 <input type="button" style="display:none;" onclick="return confirm('保存为新方案？')" value="保存为新方案" />
	 <input type="button" onclick="javascript:history.back()" value="取消返回" />
 </div>
<script type="text/javascript">
var url=window.location.search; 
if(url.indexOf("?")!=-1) 
{ 
var str = url.substr(1) 
strs = str.split("&"); 

  for(i=0;i<strs.length;i++){ 
  if([strs[i].split("=")[0]]=='id') 
    {
		document.getElementById("m"+unescape(strs[i].split("=")[1])).className="view";
		document.getElementById("a"+unescape(strs[i].split("=")[1])).className="red";
	} 
  if([strs[i].split("=")[0]]=='all')
  	{
	  for(i=0;i<11;i++){ 
    	document.getElementById("m"+i).className="view"; 
  		}
	}
  }
  
} 
else {
  for(i=0;i<1;i++){ 
    document.getElementById("m"+i).className="view"; 
  }
}
</script>

</asp:Content>