<cfsetting enablecfoutputonly=true>
<cfprocessingdirective pageencoding="utf-8">
<!---
	Name         : /client/tags/adminlayout.cfm
	Author       : Raymond Camden 
	Created      : 04/06/06
	Last Updated : 4/13/07
	History      : link to stats (rkc 5/17/06)
				 : new links in left menu (rkc 7/7/06 and 7/13/06)
				 : Scott P suggested adding blogname (rkc 8/2/06)
				 : Re-organized the menu a bit (rkc 9/5/06)
				 : htmlEditFormat the blog title (rkc 10/12/06)
				 : comment mod link (tr 12/7/06)
				 : check filebrowse prop, settings prop (rkc 12/14/06)
				 : podmanager add by Scott P (rkc 4/13/07)
--->				 
 
<cfparam name="attributes.title" default="">

<cfif thisTag.executionMode is "start">

<cfoutput>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="/css/admin.css" media="screen" />
<cfif NOT caller.isLoggedIn()>
  <style type="text/css">
    body{background:none;}
  </style>
</cfif>
<title>BlogCFC Administrator #htmlEditFormat(application.blog.getProperty("blogTitle"))#: #attributes.title#</title>
</head>

<body>

<!--- TODO: Switch to request scope --->
<cfif caller.isLoggedIn()>
<div id="menu">
<ul>
<li><a href="index.cfm">Home</a></li>
<li><a href="entry.cfm?id=0">Add Entry</a></li>
<li><a href="entries.cfm">Entries</a></li>
<li><a href="categories.cfm">Categories</a></li>
<li><a href="comments.cfm">Comments</a></li>
<cfif application.commentmoderation>
<li><a href="moderate.cfm">Moderate Comments (<cfoutput>#application.blog.getNumberUnmoderated()#</cfoutput>)</a></li>
</cfif>
<li><a href="index.cfm?reinit=1">Refresh Blog Cache</a></li>
<cfif application.settings>
<li><a href="settings.cfm">Settings</a></li>
</cfif>
<li><a href="subscribers.cfm">Subscribers</a></li>
<li><a href="mailsubscribers.cfm">Mail Subscribers</a></li>
<cfif application.trackbacksallowed>
<li><a href="trackbacks.cfm">Trackbacks</a></li>
</cfif>
</ul>
<hr>
<ul>
<li><a href="pods.cfm">Pod Manager</a></li>
<cfif application.filebrowse>
<li><a href="filemanager.cfm">File Manager</a></li>
</cfif>
<li><a href="pages.cfm">Pages</a></li>
<li><a href="slideshows.cfm">Slideshows</a></li>
<li><a href="textblocks.cfm">Textblocks</a></li>
</ul>
<hr>
<ul>
<li><a href="../">Your Blog</a></li>
<li><a href="../" target="_new">Your Blog (New Window)</a></li>
<li><a href="../stats.cfm">Your Blog Stats</a></li>
</ul>
<hr>
<ul>
<li><a href="updatepassword.cfm">Update Password</a><li>
<li><a href="index.cfm?logout=youbetterbelieveit">Logout</a></li>
</ul>
</div>
</cfif>

<div id="content">
<div id="header">BlogCFC Administrator #htmlEditFormat(application.blog.getProperty("blogTitle"))#: #attributes.title#</div>
</cfoutput>

<cfelse>

<cfoutput>
</div>

</body>
</html>
</cfoutput>

</cfif>

<cfsetting enablecfoutputonly=false>