<%@ page language="C#" autoeventwireup="true" inherits="Knowledge_KnowledgeInfo, App_Web_jxxxkg0n" stylesheettheme="Themes" theme="Themes" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<%@ Register Src="../UserControls/AnsweredQuestion.ascx" TagName="AnsweredQuestion"
    TagPrefix="uc1" %>
<!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>
    <meta http-equiv="x-ua-compatible" content="ie=7" />

    <script src="../js/tab_tip.js" type="text/javascript"></script>
        <script type="text/javascript" src="../js/jquery.js"></script>

    <script type="text/javascript">
        function perform() {
            if (window.event.keyCode == 13) {
                var obj = document.activeElement;

                document.getElementById("btnSubmit").focus();
            }
        }
        //document.onkeydown = perform 
    </script>

</head>
<body>
<div id="loading">
        <div style="position: absolute; top: 0px; left: 0px; width: 100%; height: 100%; background-color: #ffffff;
            z-index: 10; filter: alpha(opacity=90); opacity: 0.9;">
        </div>
        <div id="msg_area" style="z-index: 200; left: 289px; position: absolute; top: 202px;">
            <div id="msgPanel" style="z-index: 200;" height="24px" width="100px" bordercolor="#eeeeee"
                borderstyle="Solid" borderwidth="1px">
                <asp:Image ID="img" runat="server" ImageUrl="~/images/loading.gif" />
                <font style="font-size: 9pt;color:Gray;">loading...读取中......</font>
            </div>
        </div>
    </div>
    <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" />
                    您的当前位置：<asp:Label ID="lblUserCName" runat="server" Text=""></asp:Label>的知识博客</span>
            </td>
        </tr>
        <tr>
            <td>
                <table cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <td width="170" valign="top" class="left_blog_box" style="height:100%;">
                            <table width="100%" cellpadding="5" cellspacing="0">
                                <tr>
                                    <td>
                                        <asp:Image ID="imgGrade" runat="server" BorderStyle="Solid" BorderColor="#cccccc"
                                            BorderWidth="3" Width="97" Height="123" ImageUrl="~/Images/null.jpg" onerror="this.src='../images/null.jpg'" />
                                    </td>
                                </tr>
                                <tr height="30px">
                                    <td align="left">
                                        <img src="../Images/person.gif" class="pic_style" />用户名：
                                        <asp:Label ID="lblUserName" runat="server" Text="Label"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="left">
                                        <img src="../Images/grade.gif" class="pic_style" />等 &nbsp;级：
                                        <asp:Label ID="lblRank" runat="server" Text=""></asp:Label>&nbsp;<br />
                                        <br />
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="lblGradeName"
                                            runat="server" Text=""></asp:Label>
                                    </td>
                                </tr>
                                <tr height="30px">
                                    <td align="left">
                                        <img src="../Images/coins.gif" class="pic_style" />
                                        积&nbsp; 分：<asp:Label ID="lblPoint" runat="server" Text=""></asp:Label>
                                    </td>
                                </tr>
                            </table>
                            <asp:Repeater ID="rptPersonalStatistic" runat="server">
                                <ItemTemplate>
                                    <table width="170px" cellpadding="2" cellspacing="0" align="left">
                                        <tr>
                                            <td style="line-height: 22px;" align="left">
                                                <img src="../Images/tag_01.gif" class="pic_style" />
                                                提问数：
                                            </td>
                                            <td>
                                                <%# Eval("QuestionsNum")%>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="line-height: 22px;" align="left">
                                                <img src="../Images/tag_02.gif" class="pic_style" />
                                                发布个人知识数量：
                                            </td>
                                            <td>
                                                <%# Eval("Knowledge_PNum")%>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="line-height: 22px;" align="left">
                                                <img src="../Images/tag_03.gif" class="pic_style" />
                                                转化企业知识数量：
                                            </td>
                                            <td>
                                                <%# Eval("TransferNum")%>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="line-height: 22px;" align="left">
                                                <img src="../Images/tag_04.gif" class="pic_style" />
                                                参与的问题：
                                            </td>
                                            <td>
                                                <%# Eval("canyunQuestions")%>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="line-height: 22px;" align="left">
                                                <img src="../Images/tag_05.gif" class="pic_style" />
                                                采纳为答案数：
                                            </td>
                                            <td>
                                                <%# Eval("AnswerNum")%>
                                            </td>
                                        </tr>
                                    </table>
                                </ItemTemplate>
                            </asp:Repeater>
                        </td>
                        <td class="right_blog_box" valign="top" align="left" style="height:100%; width:78%;">
                            <div class="con" style="width:97.5%;">
                                <ul class="tags">
                                    <li class="selectTag"><a onclick="selectTag('tagContent0',this)" onfocus="this.blur()"
                                        href="javascript:void(0)"><span style="padding: 0px 40px;">个人知识</span></a> </li>
                                    <li><a onclick="selectTag('tagContent1',this)" onfocus="this.blur()" href="javascript:void(0)">
                                        <span style="padding: 0px 40px;">个人提问</span></a> </li>
                                    <li><a onclick="selectTag('tagContent2',this)" onfocus="this.blur()" href="javascript:void(0)">
                                        <span style="padding: 0px 40px;">参与问题</span></a> </li>
                                </ul>
                                <div id="tagContent">
                                    <div class="tagContent selectTag" id="tagContent0" style="width:98%">
                                        <asp:GridView ID="gvKnowledge" runat="server" AutoGenerateColumns="False" DataKeyNames="ID"
                                            OnRowDataBound="gvKnowledge_RowDataBound">
                                            <Columns>
                                                <asp:BoundField DataField="ClassName" HeaderText="分类">
                                                    <ItemStyle HorizontalAlign="Left" Width="200" />
                                                </asp:BoundField>
                                                <asp:TemplateField HeaderText="标题">
                                                    <ItemStyle HorizontalAlign="Left" CssClass="link_title" />
                                                    <ItemTemplate>
                                                        <%--<asp:HyperLink ID="HyperLink1" NavigateUrl='KnowledgeInfo.aspx?id=<%# Eval("ID") %>&type=2' runat="server"><%# Common.CutString(Eval("Title").ToString(), 26) %></asp:HyperLink>--%>
                                                        <a href='KnowledgeInfo.aspx?id=<%# Eval("ID") %>&type=2&source=kp&userid=<%# Eval("UserID") %>&username=<%# Eval("UserName") %>'
                                                            target="_blank">
                                                            <%# Common.CutString(Eval("Title").ToString(), 26) %></a>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:BoundField DataField="ClickRate" HeaderText="点击量" HeaderStyle-Width="60px">
                                                    <HeaderStyle Width="60px" />
                                                </asp:BoundField>
                                                <asp:TemplateField HeaderText="转化状态">
                                                    <ItemStyle Width="60" />
                                                    <ItemTemplate>
                                                        <%# TransferStatus(Convert.ToInt32(Eval("Status")))%>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:BoundField DataField="CreateTime" DataFormatString="{0:yyyy/MM/dd HH:mm}" HeaderText="创建时间">
                                                    <HeaderStyle Width="110" />
                                                </asp:BoundField>
                                            </Columns>
                                            <EmptyDataRowStyle BackColor="#E0E0E0" />
                                            <EmptyDataTemplate>
                                            </EmptyDataTemplate>
                                        </asp:GridView>
                                        <div class="link_style">
                                            <asp:HyperLink ID="hlkMore_KP" NavigateUrl="~/Knowledge/PersonalKnowledgeList.aspx"
                                                runat="server">更多>></asp:HyperLink></div>
                                    </div>
                                    <div class="tagContent" id="tagContent1" style="width:98%">
                                        <asp:GridView ID="gvPersonalQuestions" runat="server" AutoGenerateColumns="False"
                                            DataKeyNames="ID" OnRowDataBound="gvKnowledge_RowDataBound">
                                            <Columns>
                                                <asp:BoundField DataField="ClassName" HeaderText="分类" HeaderStyle-Width="70px">
                                                    <HeaderStyle Width="200" />
                                                    <ItemStyle HorizontalAlign="Left" Width="200" />
                                                </asp:BoundField>
                                                <asp:TemplateField HeaderText="标题">
                                                    <ItemStyle HorizontalAlign="Left" />
                                                    <ItemTemplate>
                                                        <a target="_blank" href='QuestionInfo.aspx?id=<%#Eval("ID") %>&source=qp&userid=<%# Eval("UserID") %>&username=<%# Eval("UserName") %>' class="linkBtn">
                                                            <%# Common.CutString(Eval("Title").ToString(), 26).Replace("…", "")%></a>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <%--<asp:BoundField DataField="UserName" HeaderText="创建者" HeaderStyle-Width="90px" >
                           </asp:BoundField>--%>
                                                <asp:BoundField DataField="ClickRate" HeaderText="点击量" HeaderStyle-Width="60px">
                                                    <HeaderStyle Width="60px" />
                                                </asp:BoundField>
                                                <asp:TemplateField HeaderText="是否转化">
                                                    <HeaderStyle Width="60px" />
                                                    <ItemTemplate>
                                                        <%# Convert.ToBoolean( Eval("IsTransfer"))==true ?"是" :"否" %>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:BoundField DataField="CreateTime" HeaderText="创建时间">
                                                    <HeaderStyle Width="110px" />
                                                </asp:BoundField>
                                            </Columns>
                                            <EmptyDataRowStyle BackColor="#E0E0E0" />
                                            <EmptyDataTemplate>
                                            </EmptyDataTemplate>
                                        </asp:GridView>
                                        <div class="link_style">
                                            <asp:HyperLink ID="hlkMore_PQ" NavigateUrl="~/Knowledge/PersonalQuestionsList.aspx"
                                                runat="server">更多>></asp:HyperLink></div>
                                    </div>
                                    <div class="tagContent" id="tagContent2" style="width:98%">
                                        <uc1:AnsweredQuestion ID="AnsweredQuestion" runat="server" />
                                    </div>
                                </div>
                            </div>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    </form>
      <script type="text/javascript">
         $("#loading").fadeOut()
</script>
</body>
</html>
