<%@ Page Title="" Language="C#" MasterPageFile="Admin.Master" AutoEventWireup="true" CodeBehind="EditForums_MenuSmall.aspx.cs" Inherits="Portal.Admin.EditForums_MenuSmall" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

<div id=sm>
小类
</div>

<table style="width: 600px;">
            <tr>
       
                <td style="width:100px">大类ID</td>
                <td style="width:400px"><asp:DropDownList ID="ddlBigId" runat="server"></asp:DropDownList></td>
          
            </tr>
            <tr>
               
                <td>板块名称：</td>
                <td><asp:TextBox ID="menuname"  Width="380px" runat="server" ></asp:TextBox></td>
               
            </tr>
            
            
             <tr>
               
                <td>板块属性：</td>
                <td>
                
                
                
              
 <asp:CheckBox ID="bold" Text="粗体" runat="server" />
<asp:CheckBox ID="italic" Text="斜体" runat="server" />
 <asp:CheckBox ID="underline" Text="下划线" runat="server" />

颜色 <asp:DropDownList ID="color" runat="server">
     <asp:ListItem style=" background-color:#FFFFFF" Value="#ffffff"  ></asp:ListItem>
    <asp:ListItem style=" background-color:#000000" Value="#000000"></asp:ListItem>
     <asp:ListItem style=" background-color:#EE1B2E" Value="#EE1B2E"></asp:ListItem>
      <asp:ListItem style=" background-color:#EE5023" Value="#EE5023"></asp:ListItem>
       <asp:ListItem style=" background-color:#996600" Value="#996600"></asp:ListItem>
        <asp:ListItem style=" background-color:#3C9D40" Value="#3C9D40"></asp:ListItem>
         <asp:ListItem style=" background-color:#2897C5" Value="#2897C5"></asp:ListItem>
          <asp:ListItem style=" background-color:#2B65B7" Value="#2B65B7"></asp:ListItem>
           <asp:ListItem style=" background-color:#8F2A90" Value="#8F2A90"></asp:ListItem>
            <asp:ListItem style=" background-color:#EC1282" Value="#EC1282"></asp:ListItem>
    
    </asp:DropDownList>
 大小：<asp:TextBox ID="size" Width="50" runat="server"></asp:TextBox>  
 
   
                
                
                
                
                </td>
               
            </tr>
            
            
          <tr>
          <td colspan="2">&nbsp;</td>
          </tr> 
            
            
            
            
            <tr>
                
                <td>描述：</td>
                <td><asp:TextBox ID="description"  Width="380px" Height="60px" runat="server" TextMode="MultiLine"  ></asp:TextBox></td>
               
            </tr>
            <tr>
                 
                <td>图片：</td>
                <td>
                    <asp:TextBox ID="imgurl"  class="imgurl" runat="server"></asp:TextBox>
                    
                    <a href="#"   onclick="window.open('../SimpleUpload.aspx'); return false;  ">上传图片</a>
                    
                      <a href="#"    onmousemove="show()" onmouseout="hide()">预览图片</a>
                      <div id="prev"></div>
                </td>
              
            </tr>
            
             <tr>
                 
                <td>顺序ID：</td>
                <td>
                    <asp:TextBox ID="orderid" Text="0" runat="server"></asp:TextBox>
                </td>
              
            </tr>
            
            
              <tr>
                 
                <td>版主名：</td>
                <td>
                    <asp:TextBox ID="bordernames"   runat="server"  ></asp:TextBox>(多个用户以分号分隔)
                    
                    
                    
                    
                </td>
              
            </tr>
            
            
            
            
              <tr>
                 
                <td>读写角色：</td>
                <td>
                   
                      <asp:CheckBoxList ID="authRoles"  RepeatColumns="3" RepeatDirection="Horizontal"  runat="server"  >
   </asp:CheckBoxList>
                </td>
              
            </tr>
             
              <tr>
                 
                <td>是否显示：</td>
                <td>
                    <asp:CheckBox ID="cb_isshow" Checked="true" runat="server" />
              
                </td>
              
            </tr>
            
            
            <tr>
                <td align="center" colspan="4">
                <asp:Button ID="btnSubmit" runat="server" OnClick="btnSubmit_Click" Text="添加" />
                
                 <asp:Button ID="Button1" runat="server" Text="取消" OnClick="Clear" />
                 </td>
            </tr>
            
            
            
            </table>




<script>

    function setValue(o) {
        
         $(".imgurl").val(o);

     }

     function show() {

         var path = $(".imgurl").val();
         if (path != "") {

             $("#prev").html("<img src=" + path + ">");
         }

     }


     function hide() {

         var path = $(".imgurl").val();
         $("#prev").html("");
        

     }

</script>
</asp:Content>
