<%@ page language="C#" autoeventwireup="true" validaterequest="false" inherits="Knowledge_KnowledgeManage_P, App_Web_4plofzsr" stylesheettheme="Themes" theme="Themes" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="cc1" %>

<!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 id="Head1" runat="server">
   <title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
    <link href="../css/layout.css" rel="stylesheet" type="text/css" />
    <link href="../css/layerDiv.css" rel="stylesheet" type="text/css" />
    <script src="../js/common.js" type="text/javascript"></script>
    <script src="../js/LayerDiv.js" type="text/javascript"></script>
<script src="../js/calendar.js" type="text/javascript"></script>

<script type="text/javascript" src="../js/jquery.js"></script>
    <script type="text/javascript" src="../js/jquery.pngFix.pack.js"></script>
    <script type="text/javascript" src="../js/WebValidator.js"></script>
    <script type="text/javascript" src="../js/InterfaceContrl.js"></script>
    
    
<script language="javascript">
    function CheckAll()
    {
        var cked = false;
        cked = document.getElementById("chkSelAll").checked;
        for (var i = 0; i < document.getElementsByTagName("*").length; i++)
        {
            var e = document.getElementsByTagName("*")[i];
            try
            {
                if (e.name.substring(e.name.length - 6, e.name.length) == "chkSel")
                {
                    e.checked = cked;
                }
            }
            catch (exception)
            {
            }
        }
    }

    function CheckSelect()
    {
        var count = 0;
        for (var i = 0; i < document.getElementsByTagName("*").length; i++)
        {
            var e = document.getElementsByTagName("*")[i];
            try
            {
                if (e.name.substring(e.name.length - 6, e.name.length) == "chkSel")
                {
                    if (e.checked == true)
                    {
                        count++;
                    }
                }
            }
            catch (exception)
            {
            }
        }
        if (count == 0)
        {
            alert("请选择您要删除的项！");
            return false;
        }
        else
        {
            return confirm('您确定要删除所选项吗?');
        }
    }
</script> 
 </head>
<body>
<form id="form1" runat="server" enctype="multipart/form-data" method="post">

<asp:Panel ID="panelAdd_Edit" runat="server" Width="100%" Height="100%" CssClass="">
<table width="100%" cellpadding="0" cellspacing="0" class="table_3">
       <tr>
            <td class="nav_font"><img src= "../Images/ico4.gif" /> 当前的位置：个人知识转化</td>
       </tr>
    </table>   

        
 <div class="box">
<table width="100%" cellpadding="0" cellspacing="0" bgcolor="white">
    <tr>
        <td align="right" id="tab_title">
            个人知识转化</td>
         <td align="right">
<asp:Button ID="btnSave" runat="server" Text="保存" onclick="btnSave_Click" />
             </td>
    </tr>
</table>
</div>

<div class="box">

<table  border="0" cellpadding="5" cellspacing="1" width="100%" >
    
    <tr height="30px">
        <td width="200" align="right" bgcolor="#ffffff">
            问题分类：</td>
        <td width="300" bgcolor="#ffffff">
            <asp:Label ID="lblClassName_Q" runat="server" Text=""></asp:Label>
        </td>
    </tr>
    <tr height="30px">
        <td align="right" bgcolor="#ffffff" width="200">
            个人知识分类:
        </td>
        <td bgcolor="#ffffff" width="300">
            <asp:Label ID="lblClassName" runat="server" Text=""></asp:Label>
            <asp:Button ID="btnSelectClas" runat="server" onclick="btnSelectClas_Click" 
                Text="选择分类" />
        </td>
        <%--<td width="100" bgcolor="#ffffff">
            &nbsp;</td>--%>
    </tr>
    <tr height="30px">
        <td align="right" bgcolor="#ffffff">
            标题:</td>
        <td bgcolor="#ffffff">
            <asp:TextBox ID="txtName" runat="server" CssClass="input1" MaxLength="50" 
                Width="550px"></asp:TextBox>
            <%--<span style="color:Red; font-size:12px;">*</span>--%>
        </td>
        <%--<td width="100" bgcolor="#ffffff" align="right">
            &nbsp;</td>--%>
    </tr>
    
    <tr height="30px">
        <td align="right" bgcolor="#ffffff" >
            内容:
        </td>
        <td bgcolor="#ffffff" >
            <asp:TextBox ID="txtDescription" runat="server" CssClass="input1" 
                Height="129px" TextMode="MultiLine" Width="550px"></asp:TextBox>
        </td>
    </tr>
</table>
</div>


       
</asp:Panel>        
<div id="LayerShow" runat="server" style="width: 400px; top:8%; overflow: auto; padding-left: 10px; padding-right:10px; padding-top:10px; display:none; background-color:#fff;">
<div id="m_onlineuser" class="b2">
            <div class="rct">
                <div class="l tl1">
                </div>
                <div class="r tr1">
                </div>
            </div>
            
            <div class="cnt f14">
                <div style="color: #666" align="center">
                    <table class="" cellpadding="5" height="400">
                <tr>
                    <td>
                    <div style="overflow:auto; height:400px;">
                        <asp:TreeView ID="TreeView1" runat="server" ShowLines="True" DataSourceID="XmlDataSource2" ExpandDepth="1" OnDataBound="tree_DataBound1" OnSelectedNodeChanged="tree_SelectedNodeChanged1">
                <LevelStyles>
                  <asp:TreeNodeStyle Font-Underline="False" />
                  <asp:TreeNodeStyle Font-Underline="False" />
                </LevelStyles>
                <SelectedNodeStyle BackColor="Gainsboro" ForeColor="" />
                <NodeStyle ForeColor="Black" />
                <RootNodeStyle HorizontalPadding="0px" />
                <DataBindings>
                  <asp:TreeNodeBinding DataMember="Item" TextField="ClassName" ValueField="ID" />
                  <asp:TreeNodeBinding DataMember="Root" TextField="ClassName" ValueField="ID" />
                </DataBindings>
              </asp:TreeView>
             <asp:XmlDataSource ID="XmlDataSource2" runat="server" EnableCaching="False"></asp:XmlDataSource>
                    </div>
                        
             </td>
                </tr>
                <tr>
                    <td>
                    <asp:Button ID="btnSelectClass" runat="server" Text="确定" onclick="btnSelectClass_Click" />
                    <asp:Button ID="btnCancel" runat="server" Text="取消" onclick="btnCancel_Click" />
                    </td>
                </tr>
            </table>
                
             
    
                </div>
            </div>
            <div class="rcb">
                <div class="l bl1">
                </div>
                <div class="r br1">
                </div>
            </div>
        </div>
</div> 
                        
          <div id = "LayerAll" runat="server"></div>
          
<asp:TextBox ID="txtClassID" runat="server" Visible="false"></asp:TextBox>
<asp:TextBox ID="txtProductID" runat="server" Visible="false"></asp:TextBox>
  </form>
</body>
<script language="javascript" type="text/javascript">
    $(document).ready(function()
    {
        Validator();
    });
    function Validator()
    {
        $('#<%= btnSave.ClientID %>').bind('click', function()
        {

            return GetValidatorMessage();
        });
        $("#<%=txtDescription.ClientID %>").textlimit(20000);
    }
    </script>
</html>
