<%@ page language="C#" autoeventwireup="true" validaterequest="false" inherits="Knowledge_KnowledgeManage_E, App_Web_ynl9o0ta" stylesheettheme="Themes" theme="Themes" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="cc1" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<!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/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 src="../js/common.js" type="text/javascript"></script>
            <script src="../js/artDialog3/artDialog.min.js"></script>
      <script>          (function($) { var d = $.dialog.defaults; d.skin = ['chrome']; })(art);</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('您确定要删除所选项吗?');
            }
        }

        function upload() {
            var sURL = "KnowledgeAdjunctUpload.aspx?id=" + document.form1.txtProductID.value + "&type=1";
            var sFeatures = 'dialogHeight:450px; dialogWidth:750px; scroll:no; status:no; help:no; resizable:yes; center:yes';
            var result = window.showModalDialog(sURL, "", sFeatures);
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <table cellpadding="0" cellspacing="0" class="table_box">
        <tr>
            <td class="right_bg">
                <span class="right_title">
                    <img src="../Images/homen.gif" class="img_style" /> 资源管理 &gt; 企业知识转化<asp:Label ID="lblNav"
                        runat="server" Text=""></asp:Label></span>
            </td>
        </tr>
    </table>
    <asp:Panel ID="panelGrid" runat="server" Height="100%" CssClass="table_box">
        <table cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td class="r_top_box">
                    <table cellspacing="0" cellpadding="5" class="r_top_title_box">
                        <tr>
                            <td style="height: 34px; width: 120px; padding-left: 8px;">
                                请选择知识来源：
                            </td>
                            <td style="height: 34px; width: 100px;">
                                <asp:RadioButton ID="rbtnApply" runat="server" GroupName="knowlegde" Text="学员申请"
                                    Checked="true" AutoPostBack="True" OnCheckedChanged="rbtnApply_CheckedChanged" />
                            </td>
                            <td style="height: 34px; width: 100px;">
                                <asp:RadioButton ID="rbtnTop20" runat="server" GroupName="knowlegde" Text="热门知识"
                                    AutoPostBack="True" OnCheckedChanged="rbtnTop20_CheckedChanged" />
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td class="margintop5">
                    <asp:GridView ID="gvKnowledge" runat="server" AutoGenerateColumns="False" DataKeyNames="ID"
                        CssClass="gvOverflow" OnRowDataBound="gvKnowledge_RowDataBound" OnRowEditing="gvKnowledge_RowEditing"
                        OnRowDeleting="gvKnowledge_RowDeleting">
                        <Columns>
                            <asp:BoundField DataField="ClassName" HeaderText="分类">
                                <ItemStyle HorizontalAlign="Left" />
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="标题">
                                <ItemStyle HorizontalAlign="Left" CssClass="tdOverflow" />
                                <ItemTemplate>
                                    <%# Common.CutString(Eval("Title").ToString(), 26)%>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="发布者">
                                <ItemTemplate>
                                    <asp:TextBox ID="txtUserID" runat="server" Visible="false" Text='<%# Eval("UserID") %>'></asp:TextBox>
                                    <%--<a id="lkbUserName" runat="server" href='PersonalInfo.aspx?userid=<%# Eval("UserID") %>&username=<%# Eval("UserName") %>' target="_blank"><%# Eval("UserName") %></a>--%>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="ClickRate" HeaderText="点击量">
                                <HeaderStyle Width="80px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="CreateTime" DataFormatString="{0:yyyy/MM/dd HH:mm}" HeaderText="创建时间">
                            </asp:BoundField>
                            <asp:CommandField ShowEditButton="True" EditText="转化" ControlStyle-CssClass="gridBtn"
                                ControlStyle-ForeColor="#430050">
                                <HeaderStyle Width="40" />
                            </asp:CommandField>
                            <%--<asp:CommandField ShowDeleteButton="True" DeleteText="删除"  ControlStyle-CssClass="gridBtn" ControlStyle-ForeColor="Blue" >
                    <HeaderStyle Width="40" />
                  </asp:CommandField>   --%>
                        </Columns>
                        <EmptyDataRowStyle BackColor="#E0E0E0" />
                        <EmptyDataTemplate>
                            <div class="nodata">
                                <img src="../images/waring_pic01.gif" />
                                <asp:Label ID="lbltext" runat="server" Text="没有你要查询的数据！" HorizontalAlign="Center"
                                    Height="30px"></asp:Label>
                            </div>
                        </EmptyDataTemplate>
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td class="page_bg_left">
                   <cc1:AspNetPager ID="myAspNetPager" runat="server" AlwaysShow="True" CssClass="cut_pager" PageSize="10"
                                FirstPageText="首页&nbsp;&nbsp;" HorizontalAlign="Right" InputBoxStyle="width:20px;" 
                                LastPageText="尾页" NextPageText="&nbsp;&nbsp;下一页&nbsp;&nbsp;" NumericButtonTextFormatString="  {0}"
                                OnPageChanging="AspNetPager1_PageChanging" PrevPageText="上一页"  ShowCustomInfoSection="Left" CustomInfoTextAlign="Left"
                                ShowInputBox="Always">
                            </cc1:AspNetPager>
                </td>
            </tr>
        </table>
        <%--<div class="box">
<table width="100%" height="100%" cellpadding="0" cellspacing="0">
    <tr>
         <td align="right">
<asp:Button ID="btnAdd" runat="server" Text="添加" onclick="btnAdd_Click" />
             <asp:Button ID="btnBatchDel" runat="server" Text="批量删除" 
                 onclick="btnBatchDel_Click" />        </td>
    </tr>
</table>
</div>--%>
        <%--<div class="box">
<table width="100%" cellpadding="0" cellspacing="0">
    <tr>
        <td style="width: 83px; height: 34px;" align="right">
            查询条件：：：
：
：


        </td>
        <td style="width: 100px; height: 34px;">
            <asp:DropDownList ID="ddlFieldName" runat="server" Width="95px" Height="19px">
                <asp:ListItem Value="Title">标题</asp:ListItem>
                <asp:ListItem Value="Keyword">关键字</asp:ListItem>
            </asp:DropDownList>
        </td>
        <td style="width: 148px; height: 34px;">
            <asp:TextBox ID="txtFieldValue" runat="server" Width="135px" MaxLength="50"></asp:TextBox>
        </td>
         <td align="left" width="100">
             <asp:Button ID="btnSearch" runat="server" Text="查 询" onclick="btnSearch_Click" />             
        </td>
        <td width="">            
            <asp:RadioButtonList ID="rblStatus" runat="server" RepeatDirection="Horizontal" style="cursor:pointer;"
                AutoPostBack="True" onselectedindexchanged="rblStatus_SelectedIndexChanged">
            <asp:ListItem Value="CreateTime">创建时间</asp:ListItem>
            <asp:ListItem Value="ClickRate">点击量</asp:ListItem>
            <asp:ListItem Value="All" Selected="True">全部</asp:ListItem>
            </asp:RadioButtonList>
        </td>
    </tr>
</table>
</div> --%><%--<div class="box"><table width="100%" cellpadding="0" cellspacing="0" bgcolor="white" align="center">
    <tr>
        <td  align="center" height="28px" style="font-size:16px;color:#666666;font-family:黑体;border:none;">
            个人知识转化</td>
    </tr>
</table></div>--%>
        <%--<td align="left" id="ClassArea" runat="server" width="200" height="100%" valign="top" style="overflow:auto;border-right:solid 1px #d3eaf8;">
          <div style="width: 200px; height:100%; padding-left: 10px; padding-right:10px;">            
            <asp:TreeView ID="tree" runat="server" ShowLines="True" DataSourceID="XmlDataSource1" ExpandDepth="1" OnDataBound="tree_DataBound" OnSelectedNodeChanged="tree_SelectedNodeChanged">
                <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="XmlDataSource1" runat="server" EnableCaching="False"></asp:XmlDataSource>
          </div>
        </td>--%>
    </asp:Panel>
    <asp:Panel ID="panelAdd_Edit" runat="server" Height="100%" Visible="false"
        CssClass="table_box">
        <table cellpadding="0" cellspacing="0" width="100%">
            <tr>   
            <td class="r_top_box">
                <table cellspacing="0" cellpadding="5" class="r_top_title_box">
                <tr>
                    <td id="tab_title" width="500px">
                        个人知识转化
                    </td>
                    <td align="right">
                        <asp:Button ID="btnSave" runat="server" Text="同意" OnClick="btnSave_Click" />
                        <asp:Button ID="btnNotOK" runat="server" Text="不同意" OnClick="btnNotOK_Click" />
                        <asp:Button ID="btnReturn" runat="server" Text="返回" OnClick="btnReturn_Click" />
                    </td>
                </tr>
            </table></td>
            </tr>
            <tr>
                <td class="margintop5"><table border="0" cellpadding="0" cellspacing="1" class="table_notitle">
                <%--<tr>
        <td colspan="4" align="center">
            企业知识转化</td>
    </tr>--%>
                <tr>
                    <td width="200" align="right" bgcolor="#ffffff" class="td01">
                        个人分类:
                    </td>
                    <td bgcolor="#ffffff">
                        <asp:Label ID="lblClassName_P" runat="server" Text=""></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="right" bgcolor="#ffffff" width="200" class="td01">
                        企业分类:
                    </td>
                    <td bgcolor="#ffffff" >
                        <asp:Label ID="lblClassName" runat="server" Text=""></asp:Label>
                        <asp:Button ID="btnSelectClas" runat="server" OnClick="btnSelectClas_Click" Text="选择分类" />
                    </td>
                </tr>
                <tr>
                    <td width="200" align="right" bgcolor="#ffffff" class="td01">
                        标题:
                    </td>
                    <td bgcolor="#ffffff">
                        <asp:TextBox ID="txtName" runat="server" CssClass="txt" MaxLength="50" Width="550px"></asp:TextBox>
                        <%--<span style="color:Red; font-size:12px;">*</span>--%>
                    </td>
                </tr>
                <tr>
                    <td width="200" align="right" bgcolor="#ffffff" class="td01">
                        内容:
                    </td>
                    <td bgcolor="#ffffff">
                        <%--<asp:TextBox ID="txtDescription" runat="server" CssClass="input1" Height="129px"
                            TextMode="MultiLine" Width="550px"></asp:TextBox>--%>
                        <FCKeditorV2:FCKeditor ID="txtDescription" runat="server" BasePath="../Edit/" Height="300px"
                            Width="650px">
                        </FCKeditorV2:FCKeditor>
                    </td>
                </tr>
                <tr height="30px" id="attatchList" runat="server">
                    <td align="right" bgcolor="#ffffff" width="200" class="td01">
                        附件列表：
                    </td>
                    <td bgcolor="#ffffff" >
                        <table style="width: 100%;">
                            <tr>
                                <td>
                                    附件名称
                                </td>
                                <td>
                                    附件大小
                                </td>
                            </tr>
                            <asp:Repeater ID="rptAttachmentList" runat="server">
                                <ItemTemplate>
                                    <tr>
                                        <td>
                                            <a href='<%#Eval("Address") %>'>
                                                <%#Eval("Name") %></a>
                                        </td>
                                        <td>
                                            <%#Eval("Size")%>
                                        </td>
                                    </tr>
                                </ItemTemplate>
                            </asp:Repeater>
                        </table>
                    </td>
                </tr>
            </table></td>
            </tr>
        </table>
    </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 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" Style="display: none"></asp:TextBox>
    <asp:TextBox ID="txtUserID" runat="server" Visible="false"></asp:TextBox>
    <asp:TextBox ID="txtUserName" 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(500);
    }
    </script>--%>
</html>
