<%@ page language="C#" autoeventwireup="true" inherits="HL_Admin_admin_lablePa, HoWaveVGO" enableEventValidation="false" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>请输入参数</title>
    <base target="_self"></base>
    <link href="Css/template_css.css?version=1.1" type="text/css" rel="stylesheet" />
    <script language="JavaScript" type="text/JavaScript">
<!--
  function backpag()
  {  
      var mytable=document.getElementById('mytable');
      var textbox=document.getElementById('Text1');
      var textboxvalue=textbox.value;
      var parameter ='';  
      for (var i=0;i<mytable.rows.length;i++)
      {
           var Mytextbox=document.getElementById('textbox'+i);
           parameter+=Mytextbox.value+','; 
      } 
      if(parameter.length >=1)
      {
          var index= textboxvalue.indexOf('}');
          var index1=parameter.lastIndexOf(',');
          parameter=parameter.substr(0,index1); 
          textboxvalue= textboxvalue.substr(0,index) +'('+ parameter+')' + textboxvalue.substr(index,             textboxvalue.length);
       }  
       window.parent.returnValue=' '+textboxvalue+' ';
       window.parent.close();
  }
    
  function  cancel()
  {
      var mytable=document.getElementById('mytable'); 
       for (var i=0;i<mytable.rows.length;i++)
       {
           var Mytextbox=document.getElementById('textbox'+i);
           Mytextbox.value='';
       } 
  }
  
  function ChangeSize()
  {
     var w_height;
     var w_width;
     w_height=document.body.scrollHeight+100;
     w_width=document.body.scrollWidth+100; 
     if(w_height>150 && w_width>150)
     { 
        window.dialogHeight=w_height+"px";
        window.dialogWidth=w_width+"px";
     }
    
  }
  
  function ShowFlagPreview(objID,objValue)
  {
    var divObj=document.getElementById(objID);
    if(objValue!="")
    {
       
       divObj.innerHTML="&nbsp;图片：&nbsp;<img src=\"../Shop/Images/front_icon/"+objValue+"\"/>";
    }
    else
    {
       divObj.innerHTML="";
    }   
    
  
  }

    
 

//-->
</script>
  <style type="text/css">
  body{
      font-size:12px;
      background:#E0EEF5;
     
  }
  </style>
</head>
<body topmargin="0" leftmargin="0" rightmargin="0" topmargin="0">
    <form id="form1" runat="server">
    
     <asp:Panel ID="UserLabel" runat="server" Visible="false">
         <script type="text/javascript">
             function returnValues()
             {
                var labelText;
                var containHead;
                var containFoot;
                containHead = "";
                containFoot = "";
                
                labelText = "{HL.Label ID=\"<%=LabelNamestr %>\"";        
               
                <asp:Literal ID="JsParm" runat="server"/>
                if(document.getElementById("contain").value!=""){
                    containHead = "<" + document.getElementById("contain").value;
                    if(document.getElementById("cssname").value!=""){
                        containHead = containHead + " class=\"" + document.getElementById("cssname").value + "\" ";
                    }
                    containHead = containHead + ">";
                    containFoot = "</"+document.getElementById("contain").value+">";
                }
                
                labelText = labelText + " }";
                window.returnValue = containHead + labelText + containFoot;
                window.close();
             }
        </script>
     <div>
       <div style="height:25px; width:100%; line-height:25px; padding-left:10px;">
           标签名称：<asp:Label ID="LabelName" runat="server"  />
       </div>
       <hr align="center" width="95%" size="1" />
      
       <asp:Literal ID="listParamter" runat="server"  />
       <div style="width:100%;">
            <div style="float:left; width:40%; text-align:right; line-height:25px;">容器类型：</div>
            <div style="float:left; line-height:25px;"><input id="contain" name="contain" /></div>
       </div>
       <div style="width:100%;">
            <div style="float:left; width:40%; text-align:right; line-height:25px;">样式名：</div>
            <div style="float:left; line-height:25px;"><input id="cssname" name="cssname"/></div>
       </div>
       <div style="text-align:center;"><input name="Ok" onclick="return returnValues()" type="button" value="确 定" /> <input name="canl" type="button" onclick="window.close();" value="取 消" /></div>
     </div>
    </asp:Panel>
     
     
    <table id="ShowProduct_Table" runat="server"   visible="false" class="tableForm" >
         <tr>              
             <td colspan="2">标签名称：商品图文列表显示标签</td>
         </tr>
         <tr>
             <th>商品类型：</th>
             <td><asp:DropDownList ID="ProductClassID" runat="server" DataSourceID="ObjectDataSource1" DataTextField="ClassName" DataValueField="ClassID" AppendDataBoundItems="true">
                     <asp:ListItem Text="所有分类" Value=""  Selected="True"/>
                 </asp:DropDownList>
                 <asp:ObjectDataSource ID="ObjectDataSource1" runat="server"  TypeName="Shop_Class" SelectMethod="GetAllParentClass" ></asp:ObjectDataSource>
             </td>
         </tr>
          <tr>
             <th>显示方式：</th>
             <td><asp:DropDownList ID="ShowType" runat="server">
                     <asp:ListItem Text="文字" Value="text" Selected="True" />
                     <asp:ListItem Text="图片" Value="img" />                    
                     <asp:ListItem Text="图文混排" Value="imgtext" />
                 </asp:DropDownList></td>
         </tr>
         <tr>
             <th>商品属性：</th>
             <td><asp:DropDownList ID="ProductProprity" runat="server">    
                     <asp:ListItem Text="不限" Value="all" />                 
                     <asp:ListItem Text="推荐商品" Value="recommend" />
                     <asp:ListItem Text="集市商品" Value="common" />
                     <asp:ListItem Text="品牌店商品" Value="band" />
                     <asp:ListItem Text="打折商品" Value="discount" />
                     <asp:ListItem Text="最新成交商品" Value="order" />
                 </asp:DropDownList></td>
         </tr>
         <tr>
             <th>价格类型：</th>
             <td><asp:ListBox ID="ProductType" runat="server" SelectionMode="Multiple" >                     
                     <asp:ListItem Text="一口价" Value="一口价"  Selected="True"/>
                     <asp:ListItem Text="拍卖" Value="拍卖" />                     
                     <asp:ListItem Text="团购" Value="团购" />
                 </asp:ListBox>&nbsp;<span>注：若要多选请按Ctrl进行选择</span></td>
         </tr>
          <tr>
             <th>商品类型：</th>
             <td><asp:DropDownList ID="ProductStandard" runat="server">
                     <asp:ListItem Text="不限" Value="-1" Selected="True"/>
                     <asp:ListItem Text="全新" Value="new" />
                     <asp:ListItem Text="二手" Value="secondhand" />            
                 </asp:DropDownList></td>
         </tr>
          <tr>
             <th>商品价格范围：</th>
             <td>从<asp:TextBox ID="StrartPrice" runat="server" Text=""  Width="50px"/>至<asp:TextBox ID="EndPrice" runat="server" Text="" Width="50px"/>空表示不限制价格</td>
         </tr>
         <tr>
             <th>商品所在地：</th>
             <td><hl:HowaveProvinceCity ID="HowaveProvinceCity1" runat="server" />  </td>
         </tr>
         <tr>
             <th>显示数量：</th>
             <td><asp:TextBox ID="ShowNums" runat="server" Text="10" Width="100px"/></td>
         </tr>
         <tr>
             <th>标题长度：</th>
             <td><asp:TextBox ID="TitleLength" runat="server" Text="0" Width="100px"/>*0表示不限制长度</td>
         </tr>
         <tr>
             <th>显示字段：</th>
             <td><asp:CheckBoxList ID="ShowField" runat="server" RepeatColumns="2" RepeatDirection="Horizontal" RepeatLayout="Flow">
                     <asp:ListItem Text="商品类型" Value="ProductType" />
                     <asp:ListItem Text="商品价格" Value="ProductPrice" />                  
                     <asp:ListItem Text="卖家名称" Value="ShopOwnerName" />
                     <asp:ListItem Text="所在地" Value="ProductPlace" />
                     <asp:ListItem Text="剩余时间" Value="LeftTime" />
                     <asp:ListItem Text="点击数" Value="Hits" />
                     <asp:ListItem Text="库存" Value="Stocks" />
                 </asp:CheckBoxList></td>
         </tr>
         <tr>
             <th>每行显示商品数：</th>
             <td><asp:DropDownList ID="RowNums" runat="server">
                     <asp:ListItem Text="1" Value="1" />
                     <asp:ListItem Text="2" Value="2" />
                     <asp:ListItem Text="3" Value="3" />
                     <asp:ListItem Text="4" Value="4" />
                     <asp:ListItem Text="5" Value="5" />
                     <asp:ListItem Text="6" Value="6" />
                     <asp:ListItem Text="7" Value="7" />
                     <asp:ListItem Text="8" Value="8" />
                     <asp:ListItem Text="9" Value="9" />
                     <asp:ListItem Text="10" Value="10" />
                    
                 </asp:DropDownList></td>
         </tr>
         <tr>
             <th>标题前缀图标：</th>
             <td><asp:DropDownList ID="ShowFronIcon" runat="server"/>
                    
                 <div id="show_product_frontIcon" style="display:inline;"></div>&nbsp;<span style="color:Red">注：文字方式才显示图标</span>
             </td>
         </tr>    
         <tr>
             <th>商品标记显示位置：</th>
             <td><asp:DropDownList ID="ShowFlag" runat="server">
                     <asp:ListItem Text="不显示" Value="none" />
                     <asp:ListItem Text="显示热门图标" Value="hot-icon" />
                     <asp:ListItem Text="显示最新图标" Value="new-icon" />
                 </asp:DropDownList>
             
             </td>
         </tr>        
         <tr>
             <th>排序方式：</th>
             <td><asp:DropDownList ID="SortType" runat="server">
                      <asp:ListItem Text="按商品ID从高到低" Value="10" />
                      <asp:ListItem Text="按商品ID从低到高" Value="9" />
                      <asp:ListItem Text="价格从低到高" Value="1" />
                      <asp:ListItem Text="价格从高到低" Value="2" />
                      <asp:ListItem Text="时间从小到多" Value="3" />
                      <asp:ListItem Text="时间从多到小" Value="4" />
                      <asp:ListItem Text="卖家信用从高到低" Value="5" />
                      <asp:ListItem Text="卖家信用从低到高" Value="6" />
                      <asp:ListItem Text="浏览量从高到低" Value="7" />
                      <asp:ListItem Text="浏览量从低到高" Value="8" />                    
                 </asp:DropDownList>
                
             </td>
         </tr>
         <tr>
             <th>打开方式：</th>
             <td><asp:DropDownList ID="OpenType" runat="server">
                     <asp:ListItem Text="新窗口打开" Value="_blank" />
                     <asp:ListItem Text="原窗口打开" Value="_self" />                     
                 </asp:DropDownList>
             </td>
         </tr>
          <tr>
             <th>样式名：</th>
             <td><asp:TextBox ID="StyleName" runat="server" />
             </td>
         </tr>
          <tr>
             <td colspan="2" style="text-align:center"><asp:Button ID="ProductLabelButton" runat="server" OnClick="ProductLabelButton_Click" Text="确定" /></td>           
            
         </tr>
       
     </table>
     
     
     <table id="ShowShop_Table" runat="server"   visible="false" class="tableForm">
         <tr>              
             <td colspan="2">标签名称：店铺图文列表显示标签</td>
         </tr>
         <tr>
             <th>店铺分类：</th>
             <td><asp:DropDownList ID="ShopClass" runat="server" DataSourceID="ObjectDataSource2" DataTextField="ClassName" DataValueField="ClassID" AppendDataBoundItems="true">
                     <asp:ListItem Text="所有分类" Value=""  Selected="True"/>
                 </asp:DropDownList>
                 <asp:ObjectDataSource ID="ObjectDataSource2" runat="server"  TypeName="Shop_Class" SelectMethod="GetAllParentClass" ></asp:ObjectDataSource>
             </td>
         </tr>
          <tr>
             <th>显示方式：</th>
             <td><asp:DropDownList ID="Shop_ShowType" runat="server">
                     <asp:ListItem Text="文字" Value="text" Selected="True" />
                     <asp:ListItem Text="图片" Value="img" />                    
                     <asp:ListItem Text="图文混排" Value="imgtext" />
                 </asp:DropDownList></td>
         </tr>
          <tr>
             <th>显示数量：</th>
             <td><asp:TextBox ID="Shop_ShowNums" runat="server" Text="10" Width="100px"/></td>
         </tr>       
         <tr>
             <th>店铺类型：</th>
             <td><asp:ListBox ID="ShopType" runat="server" SelectionMode="Multiple" >                     
                     <asp:ListItem Text="普通店铺" Value="0"  Selected="True"/>
                     <asp:ListItem Text="高级店铺" Value="1" />                     
                     <asp:ListItem Text="品牌店铺" Value="2" />
                 </asp:ListBox>&nbsp;<span>注：若要多选请按Ctrl进行选择</span></td>
         </tr>
          <tr>
             <th>店铺属性：</th>
             <td><asp:DropDownList ID="Shop_Proprity" runat="server">
                     <asp:ListItem Text="不限" Selected="True" Value="" />
                     <asp:ListItem Text="精品店铺" Value="recommend" />
                              
                 </asp:DropDownList></td>
         </tr>
         <tr>
             <th>店铺所在地：</th>
             <td></td>
         </tr>
        
         <tr>
             <th>标题长度：</th>
             <td><asp:TextBox ID="Shop_TitleLength" runat="server" Text="0" Width="100px"/>*0表示不限制长度</td>
         </tr>
         <tr>
             <th>显示字段：</th>
             <td><asp:CheckBoxList ID="Shop_ShowField" runat="server" RepeatColumns="2" RepeatDirection="Horizontal" RepeatLayout="Flow">
                     <asp:ListItem Text="店长名" Value="ShopOwnerName" />
                     <asp:ListItem Text="店铺简介" Value="ShopIntro" />  
                     <asp:ListItem Text="公告" Value="ShopAnnouncement" />
                     <asp:ListItem Text="所在地" Value="ShopPlace" />
                     <asp:ListItem Text="店铺商品数" Value="ShopProductNum" />
                     <asp:ListItem Text="主营项目" Value="ShopOperatorItem" />
                     <asp:ListItem Text="开店时间" Value="ShopRegDate" />
                     <asp:ListItem Text="店铺信誉" Value="SalerCrediet" />
                     <asp:ListItem Text="OICQ" Value="OICQ" />
                     <asp:ListItem Text="淘宝旺旺" Value="Taobaowangwang" />
                 </asp:CheckBoxList></td>
         </tr>
         <tr>
             <th>每行显示数：</th>
             <td><asp:DropDownList ID="Shop_RowNums" runat="server">
                     <asp:ListItem Text="1" Value="1" />
                     <asp:ListItem Text="2" Value="2" />
                     <asp:ListItem Text="3" Value="3" />
                     <asp:ListItem Text="4" Value="4" />
                     <asp:ListItem Text="5" Value="5" />
                     <asp:ListItem Text="6" Value="6" />
                     <asp:ListItem Text="7" Value="7" />
                     <asp:ListItem Text="8" Value="8" />
                     <asp:ListItem Text="9" Value="9" />
                     <asp:ListItem Text="10" Value="10" />
                    
                 </asp:DropDownList></td>
         </tr>
          <tr>
             <th>标题前缀图标：</th>
             <td><asp:DropDownList ID="ShopFrontIcon" runat="server"/>
                    
                 <div id="show_shop_frontIcon" style="display:inline;"></div>&nbsp;<span style="color:Red">注：文字方式才显示图标</span>
             </td>
         </tr> 
         <tr>
             <th>标记显示位置：</th>
             <td><asp:DropDownList ID="Shop_ShowFlag" runat="server">
                     <asp:ListItem Text="不显示" Value="none" />
                     <asp:ListItem Text="显示热门图标" Value="hot-icon" />
                     <asp:ListItem Text="显示最新图标" Value="new-icon" />
                 </asp:DropDownList>
             
             </td>
         </tr>        
         <tr>
             <th>数据排序方式：</th>
             <td><asp:DropDownList ID="Shop_SortType" runat="server">                      
                      <asp:ListItem Text="按店铺ID从低到高" Value="1" />
                      <asp:ListItem Text="按店铺ID从高到低" Value="2" />
                      <asp:ListItem Text="注册时间从前到后" Value="3" />
                      <asp:ListItem Text="注册时间从后到前" Value="4" />
                      <asp:ListItem Text="店铺等级从低到高" Value="5" />
                      <asp:ListItem Text="店铺等级从高到低" Value="6" />
                      <asp:ListItem Text="浏览量从低到高" Value="7" />
                      <asp:ListItem Text="浏览量从高到低" Value="8" />
                      <asp:ListItem Text="卖家信用从低到高" Value="9" />
                      <asp:ListItem Text="卖家信用从高到低" Value="10" />                    
                 </asp:DropDownList>
             
             </td>
         </tr>
         <tr>
             <th>打开方式：</th>
             <td><asp:DropDownList ID="Shop_OpenType" runat="server">
                     <asp:ListItem Text="新窗口打开" Value="_blank" />
                     <asp:ListItem Text="原窗口打开" Value="_self" />                     
                 </asp:DropDownList>
             </td>
         </tr>
          <tr>
             <th>样式名：</th>
             <td><asp:TextBox ID="Shop_StyleName" runat="server" />
             </td>
         </tr>
          <tr>
             <td colspan="2" style="text-align:center"><asp:Button ID="ShopLabelButton" runat="server" OnClick="ShopLabelButton_Click_" Text="确定" /></td>           
            
         </tr>
       
     </table>
     
     
      <table id="ShowArticle_Table" runat="server"   visible="false" class="tableForm" >
         <tr>              
             <td colspan="2">标签名称：文章图文列表显示标签</td>
         </tr>
         <tr>
             <th>文章所属模块类型：</th>
             <td><asp:DropDownList ID="ArticleType" runat="server" DataSourceID="ObjectDataSource5" AppendDataBoundItems="true" DataTextField="Title" DataValueField="id">
                     <asp:ListItem Text="所有分类" Value="-1"  Selected="True"/>
                 </asp:DropDownList>
                 <asp:ObjectDataSource ID="ObjectDataSource5" runat="server"  TypeName="Shop_Module" SelectMethod="GetAllModule" ></asp:ObjectDataSource>
             </td>
         </tr>
         <tr>
             <th>文章所属分类</th>
             <td><asp:DropDownList ID="Article_Class" runat="server" DataTextField="ClassName" DataValueField="ClassID" DataSourceID="ObjectDataSource4" AppendDataBoundItems="true">
                    <asp:ListItem Text="所有分类" Value="-1"  Selected="True"/>
                 </asp:DropDownList>                     
                 <asp:ObjectDataSource ID="ObjectDataSource4" runat="server"  TypeName="Shop_Class" SelectMethod="GetAllParentClass" ></asp:ObjectDataSource>
             </td>
         </tr>
          <tr>
             <th>显示方式：</th>
             <td><asp:DropDownList ID="Article_ShowType" runat="server">
                     <asp:ListItem Text="文字" Value="Text" Selected="True" />
                     <asp:ListItem Text="图片" Value="IMG" />                    
                     <asp:ListItem Text="图文混排" Value="IMGText" />
                 </asp:DropDownList></td>
         </tr>
       
           <tr>
             <th>文章属性：</th>
             <td><asp:DropDownList ID="Aritcle_Proprity" runat="server"  >                     
                     <asp:ListItem Text="不限" Value=""  Selected="True"/>
                     <asp:ListItem Text="置顶" Value="OnTop" />                     
                     <asp:ListItem Text="推荐" Value="Elite" />
                 </asp:DropDownList></td>
         </tr>
         <tr>
             <th>显示标题类型：</th>
             <td><asp:DropDownList ID="Article_TitleType" runat="server">    
                     <asp:ListItem Text="短标题" Value="short" />                 
                     <asp:ListItem Text="长标题" Value="long" />                   
                 </asp:DropDownList></td>
         </tr>
          <tr>
             <th>文章链接属性：</th>
             <td><asp:DropDownList ID="Article_LinkType" runat="server">
                     <asp:ListItem Text="不限" Value="-1" Selected="True"/>
                     <asp:ListItem Text="内部文章" Value="0" />
                     <asp:ListItem Text="外部链接" Value="1" />            
                 </asp:DropDownList></td>
         </tr>
          <tr>
             <th>文章录入日期范围：</th>
             <td>从<asp:TextBox ID="Date_Begin" runat="server" Text=""  Width="50px"/>至<asp:TextBox ID="Date_End" runat="server" Text="" Width="50px"/>空表示不限制日期</td>
         </tr>      
         <tr>
             <th>显示数量：</th>
             <td><asp:TextBox ID="Article_ShowNums" runat="server" Text="10" Width="100px"/></td>
         </tr>
         <tr>
             <th>标题长度：</th>
             <td><asp:TextBox ID="Article_TitleLength" runat="server" Text="0" Width="100px"/>*0表示不限制长度</td>
         </tr>
         <tr>
             <th>显示字段：</th>
             <td><asp:CheckBoxList ID="Article_ShowField" runat="server" RepeatColumns="2" RepeatDirection="Horizontal" RepeatLayout="Flow">                  
                     <asp:ListItem Text="作者" Value="Editor" />
                     <asp:ListItem Text="录入时间" Value="InputTime" />
                     <asp:ListItem Text="修改时间" Value="UpdateTime" />
                     <asp:ListItem Text="点击数" Value="Hits" />                   
                 </asp:CheckBoxList></td>
         </tr>
         <tr>
             <th>每行显示文章数：</th>
             <td><asp:DropDownList ID="Article_RowNums" runat="server">
                     <asp:ListItem Text="1" Value="1" />
                     <asp:ListItem Text="2" Value="2" />
                     <asp:ListItem Text="3" Value="3" />
                     <asp:ListItem Text="4" Value="4" />
                     <asp:ListItem Text="5" Value="5" />
                     <asp:ListItem Text="6" Value="6" />
                     <asp:ListItem Text="7" Value="7" />
                     <asp:ListItem Text="8" Value="8" />
                     <asp:ListItem Text="9" Value="9" />
                     <asp:ListItem Text="10" Value="10" />
                    
                 </asp:DropDownList></td>
         </tr>
         <tr>
             <th>标题前缀图标：</th>
             <td><asp:DropDownList ID="ArticleFrontIcon" runat="server"/>
                    
                 <div id="show_article_frontIcon" style="display:inline;"></div>&nbsp;<span style="color:Red">注：文字方式才显示图标</span>
             </td>
         </tr>    
         <tr>
             <th>文章标记显示位置：</th>
             <td><asp:DropDownList ID="Article_ShowFlag" runat="server">
                     <asp:ListItem Text="不显示" Value="none" />
                     <asp:ListItem Text="显示热门图标" Value="hot-icon" />
                     <asp:ListItem Text="显示最新图标" Value="new-icon" />
                 </asp:DropDownList>
             
             </td>
         </tr>        
         <tr>
             <th>排序方式：</th>
             <td><asp:DropDownList ID="Article_SortType" runat="server">
                      <asp:ListItem Text="按文章ID从高到低" Value="1" />
                      <asp:ListItem Text="按文章ID从低到高" Value="2" /> 
                      <asp:ListItem Text="文章发表时间从近到远" Value="3" />
                      <asp:ListItem Text="文章发表时间从远到近" Value="4" />
                      <asp:ListItem Text="文章更新时间从近到远" Value="5" />      
                      <asp:ListItem Text="文章更新时间从远到近" Value="6" />                                         
                      <asp:ListItem Text="浏览量从高到低" Value="7" />
                      <asp:ListItem Text="浏览量从低到高" Value="8" />                    
                 </asp:DropDownList>
                
             </td>
         </tr>
         <tr>
             <th>打开方式：</th>
             <td><asp:DropDownList ID="Article_OpenType" runat="server">
                     <asp:ListItem Text="新窗口打开" Value="_blank" />
                     <asp:ListItem Text="原窗口打开" Value="_self" />                     
                 </asp:DropDownList>
             </td>
         </tr>
          <tr>
             <th>样式名：</th>
             <td><asp:TextBox ID="Article_StyleName" runat="server" />
             </td>
         </tr>
          <tr>
             <td colspan="2" style="text-align:center"><asp:Button ID="ArticleLabelButton" runat="server" OnClick="ArticleLabelButton_Click" Text="确定" /></td>           
            
         </tr>
       
     </table>
     
    </form>
    
</body>
</html>
<script type="text/javascript">ChangeSize();</script>