<%@ Page language="c#" Codebehind="Default.aspx.cs" AutoEventWireup="false" Inherits="CommunityServer.ControlPanel.Blogs.BlogEditorHomePage" EnableViewstate="false" MasterPageFile="~/ControlPanel/Masters/Blogs.master" %>

<asp:Content ContentPlaceHolderId="TopLeft" runat="server"></asp:Content>

<asp:Content ContentPlaceHolderId="TaskRegion" runat="Server">
	<script type="text/javascript" src="../charts/swfobject.js"></script>
    <div class="CommonDescription" style="display: none;">
	    <CP:ResourceControl ID="ResourceControl6" runat="server" ResourceName="CP_Blog_Home_TitleDesc" />
    </div>

    <table style="width:100%">
        <tr>
            <td style="width:300px; padding:20px" valign="top">
                <div class="CommonListArea">
                <table width="100%" cellpadding="0">
                    <tr>
                        <td>
                            <div style="float:left; height: 60px; width: 30px; text-align:right; padding-right: 10px;">
                                <img src="../images/icons/blog-post.gif" />
                            </div>
                            
                            <strong><CSControl:SiteUrl runat="server" UrlName="blog_ControlPanel_NewPost" ResourceName="CP_Blog_NavBar_NewPost" ResourceFile="ControlPanelResources.xml" /></strong>
                            <br />
                            <cp:resourcecontrol runat="server" resourcename="CP_Blog_Home_WriteDesc" />
                        </td>
                    </tr>
                        
                    <tr>
                        <td>
                            <div style="float:left; height: 60px; width: 30px; text-align:right; padding-right: 10px;">
                                <img src="../images/icons/comments.gif" />
                            </div>
                            
                            <strong><CSControl:SiteUrl runat="server" UrlName="blog_ControlPanel_ReviewComments" ResourceName="CP_Blog_NavBar_ReviewComments" ResourceFile="ControlPanelResources.xml" /></strong>
                            <br />
                            <cp:resourcecontrol runat="server" resourcename="CP_Blog_Home_ReviewCommentsDesc" />
                        </td>
                    </tr>

                    <tr runat="server" id="ThemeOptionsRow">
                        <td>
                            <div style="float:left; height: 60px; width: 30px; text-align:right; padding-right: 10px;">
                                <img src="../images/icons/themes.gif" />
                            </div>
                            
                            <strong><CSControl:SiteUrl runat="server" UrlName="blog_ControlPanel_Options_ThemeConfiguration" ResourceName="CP_Blog_SkinOptions_Title" ResourceFile="ControlPanelResources.xml" /></strong>
                            <br />
                            <cp:resourcecontrol runat="server" resourcename="CP_Blog_Home_ThemeDesc" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div style="float:left; height: 60px; width: 30px; text-align:right; padding-right: 10px;">
                                <img src="../images/icons/control-panel.gif" />
                            </div>
                            
                            <strong><CSControl:SiteUrl runat="server" ResourceName="CP_Blog_NavBar_DescOptions" urlname="blog_ControlPanel_Options_TitleDesc" ResourceFile="ControlPanelResources.xml" /></strong>
                            <br />
                            <cp:resourcecontrol runat="server" resourcename="CP_Blog_Home_SetupDesc" />
                        </td>
                    </tr>
                </table>
                </div>
            </td>
            
            <td valign="top" style="padding-left:20px;">
                <h3><CP:ResourceControl runat="server" ResourceName="CP_Blogs_ViewsChart" /></h3>
	            <div id="linechart">
		            <strong><CP:ResourceControl runat="server" ResourceName="CP_ChartError" /></strong>

	            </div>

	            <script type="text/javascript">
		            // <![CDATA[		
		            var so = new SWFObject("../charts/amline.swf", "amline", "100%", "200", "8", "#FFFFFF");
		            so.addVariable("path", "../charts/");
		            so.addVariable("settings_file", escape("../charts/settings_Blog_ViewsByDay.xml"));
		            so.addVariable("data_file", escape("../charts/charts.ashx?report=ViewsByDay&sid=<%= CurrentWeblog.SectionID %>"));
		            so.addVariable("preloader_color", "#999999");
		            so.write("linechart");
		            // ]]>
	            </script>

                <h3><CP:ResourceControl runat="server" ResourceName="CP_Blogs_RecentViews" /></h3>
                <div>
                    <div id="barchart">
                        <strong><CP:ResourceControl runat="server" ResourceName="CP_ChartError" /></strong>
                    </div>
                    <script type="text/javascript">
                    //<![CDATA[
                        var so = new SWFObject("../charts/amcolumn.swf", "amcolumn", "100%", "230", "8", "#FFFFFF");
                        so.addVariable("path", "../charts/");
                        so.addVariable("settings_file", escape("../charts/settings_Blog_RecentPosts.xml"));
                        so.addVariable("data_file", escape("../charts/charts.ashx?report=ViewsBySection&sid=<asp:Literal id="BlogSection" runat="server" />"));
                        so.addVariable("preloader_color", "#999999");
                        so.write("barchart");
                    // ]]>
                    </script>
                </div>
                
            </td>
        </tr>
    </table>
</asp:Content>