[pLog-svn] r6074 - plog/trunk/templates/admin

mark at devel.lifetype.net mark at devel.lifetype.net
Fri Nov 23 03:24:08 EST 2007


Author: mark
Date: 2007-11-23 03:24:07 -0500 (Fri, 23 Nov 2007)
New Revision: 6074

Added:
   plog/trunk/templates/admin/resourceinfo_form.template
Modified:
   plog/trunk/templates/admin/default.template
   plog/trunk/templates/admin/editblogcategory.template
   plog/trunk/templates/admin/editblogtemplate.template
   plog/trunk/templates/admin/editfriend.template
   plog/trunk/templates/admin/editglobalarticlecategory.template
   plog/trunk/templates/admin/edittemplate.template
   plog/trunk/templates/admin/error.template
   plog/trunk/templates/admin/message.template
   plog/trunk/templates/admin/newblogtemplate.template
   plog/trunk/templates/admin/newprivatemessage.template
   plog/trunk/templates/admin/readinboxprivatemessage.template
   plog/trunk/templates/admin/readoutboxprivatemessage.template
   plog/trunk/templates/admin/replyprivatemessage.template
   plog/trunk/templates/admin/resourceinfo.template
   plog/trunk/templates/admin/simpleerror.template
   plog/trunk/templates/admin/siteblogusers.template
   plog/trunk/templates/admin/sitetemplates.template
Log:
change all $blogtemplate to $admintemplatepath, I think this one is right.

Modified: plog/trunk/templates/admin/default.template
===================================================================
--- plog/trunk/templates/admin/default.template	2007-11-22 13:59:43 UTC (rev 6073)
+++ plog/trunk/templates/admin/default.template	2007-11-23 08:24:07 UTC (rev 6074)
@@ -1,20 +1,20 @@
-{include file="$blogtemplate/simpleheader.template"}
+{include file="$admintemplatepath/simpleheader.template"}
 {js src="js/ui/pages/default.js"}
 	<div class="loginBox" style="padding-top: 180px;">
 	   <form name="loginForm" id="loginForm" method="post" action="admin.php" onSubmit="Lifetype.UI.Pages.Default.submitHook();return(false);">
 		  <fieldset class="inputField">
-		   <h4>{$locale->tr("login")}</h4> 
-			{include file="$blogtemplate/formvalidateajax.template"}
+		   <h4>{$locale->tr("login")}</h4>
+			{include file="$admintemplatepath/formvalidateajax.template"}
 		   {if $viewIsError=="" && $viewIsSuccess==""}
 		     <div class="welcomeMessage">
 		   	   {$locale->tr("welcome_message")}
 			 </div>
-			{/if}	
+			{/if}
 		 <div class="field">
 	       <label for="userName">{$locale->tr("username")}</label>
 		   <input type="text" tabindex="1" id="userName" name="userName" value="" />
 		 </div>
-		 <div class="field">  
+		 <div class="field">
 		   <label for="userPassword">{$locale->tr("password")}</label>
 		   <input type="password" tabindex="2" name="userPassword" />
 		 </div>
@@ -22,8 +22,8 @@
 		</fieldset>
 		<div class="buttons">
          <input type="submit" class="button" name="Login" value="{$locale->tr("login")}" tabindex="3" />
-         <input type="hidden" name="op" value="Login"/>		 
-		</div> 
-       </form>		
+         <input type="hidden" name="op" value="Login"/>
+		</div>
+       </form>
 	</div>
-{include file="$blogtemplate/simplefooter.template"}
\ No newline at end of file
+{include file="$admintemplatepath/simplefooter.template"}
\ No newline at end of file

Modified: plog/trunk/templates/admin/editblogcategory.template
===================================================================
--- plog/trunk/templates/admin/editblogcategory.template	2007-11-22 13:59:43 UTC (rev 6073)
+++ plog/trunk/templates/admin/editblogcategory.template	2007-11-23 08:24:07 UTC (rev 6074)
@@ -22,9 +22,9 @@
     <textarea name="categoryDescription" id="categoryDescription" cols="60" rows="5">{$categoryDescription}</textarea>
     {include file="$admintemplatepath/validate.template" field=categoryDescription message=$locale->tr("error_empty_description")}
   </div>
-   
+
   </fieldset>
-  <div class="buttons">   
+  <div class="buttons">
     <input type="reset" name="resetButton" value="{$locale->tr("reset")}" />
     <input type="submit" name="Update" value="{$locale->tr("update")}" />
     <input type="hidden" name="op" value="updateBlogCategory" />
@@ -32,5 +32,5 @@
   </div>
 </form>
 
-{include file="$blogtemplate/footernavigation.template"}
+{include file="$admintemplatepath/footernavigation.template"}
 {include file="$admintemplatepath/footer.template"}
\ No newline at end of file

Modified: plog/trunk/templates/admin/editblogtemplate.template
===================================================================
--- plog/trunk/templates/admin/editblogtemplate.template	2007-11-22 13:59:43 UTC (rev 6073)
+++ plog/trunk/templates/admin/editblogtemplate.template	2007-11-23 08:24:07 UTC (rev 6074)
@@ -1,4 +1,4 @@
-{include file="$blogtemplate/header.template"}
+{include file="$admintemplatepath/header.template"}
 {include file="$admintemplatepath/navigation.template" showOpt=blogTemplates title=$locale->tr("blogTemplates")}
 <link rel="stylesheet" href="js/editor/lifetypeeditor.css" type="text/css" />
 <link rel="stylesheet" href="js/ui/assets/upload/upload.css" type="text/css" />
@@ -8,7 +8,7 @@
 {js src="js/ui/pages/templateeditor.js"}
 {check_perms perm=add_blog_template}
 <div class="extraFunctions">
-	<div class="left">		
+	<div class="left">
 		<a id="newFolderButton" href="#"
 		   onClick="Lifetype.UI.Pages.TemplateEditor.newFolderButtonHandler(this,'blog');return(false);">{$locale->tr("new_folder")}</a>&nbsp;|
 		<a id="uploadFileButton" href="?op=newBlogTemplateFile" rel="overlay">{$locale->tr("upload_file")}</a>
@@ -21,7 +21,7 @@
 {/check_perms}
 
 <form id="siteTemplatesList" method="post" action="admin.php">
- {include file="$admintemplatepath/viewvalidateajax.template"}		
+ {include file="$admintemplatepath/viewvalidateajax.template"}
  <div id="list">
  {include file="$admintemplatepath/edittemplate_table.template"}
  </div>
@@ -33,5 +33,5 @@
  </div>
 </form>
 
-{include file="$blogtemplate/footernavigation.template"}
-{include file="$blogtemplate/footer.template"}
\ No newline at end of file
+{include file="$admintemplatepath/footernavigation.template"}
+{include file="$admintemplatepath/footer.template"}
\ No newline at end of file

Modified: plog/trunk/templates/admin/editfriend.template
===================================================================
--- plog/trunk/templates/admin/editfriend.template	2007-11-22 13:59:43 UTC (rev 6073)
+++ plog/trunk/templates/admin/editfriend.template	2007-11-23 08:24:07 UTC (rev 6074)
@@ -3,5 +3,5 @@
 
 {include file="$admintemplatepath/editfriend_form.template"}
 
-{include file="$blogtemplate/footernavigation.template"}
+{include file="$admintemplatepath/footernavigation.template"}
 {include file="$admintemplatepath/footer.template"}
\ No newline at end of file

Modified: plog/trunk/templates/admin/editglobalarticlecategory.template
===================================================================
--- plog/trunk/templates/admin/editglobalarticlecategory.template	2007-11-22 13:59:43 UTC (rev 6073)
+++ plog/trunk/templates/admin/editglobalarticlecategory.template	2007-11-23 08:24:07 UTC (rev 6074)
@@ -22,9 +22,9 @@
     <textarea name="categoryDescription" id="categoryDescription" cols="60" rows="5">{$categoryDescription}</textarea>
     {include file="$admintemplatepath/validate.template" field=categoryDescription message=$locale->tr("error_empty_description")}
   </div>
-   
+
   </fieldset>
-  <div class="buttons">   
+  <div class="buttons">
     <input type="hidden" name="categoryUrl" value="" />
     <input type="reset" name="resetButton" value="{$locale->tr("reset")}" />
     <input type="submit" name="Update" value="{$locale->tr("update")}" />
@@ -33,5 +33,5 @@
   </div>
 </form>
 
-{include file="$blogtemplate/footernavigation.template"}
+{include file="$admintemplatepath/footernavigation.template"}
 {include file="$admintemplatepath/footer.template"}
\ No newline at end of file

Modified: plog/trunk/templates/admin/edittemplate.template
===================================================================
--- plog/trunk/templates/admin/edittemplate.template	2007-11-22 13:59:43 UTC (rev 6073)
+++ plog/trunk/templates/admin/edittemplate.template	2007-11-23 08:24:07 UTC (rev 6074)
@@ -1,5 +1,5 @@
-{include file="$blogtemplate/header.template"}
-{include file="$blogtemplate/navigation.template" showOpt=siteTemplates title=$locale->tr("siteTemplates")}
+{include file="$admintemplatepath/header.template"}
+{include file="$admintemplatepath/navigation.template" showOpt=siteTemplates title=$locale->tr("siteTemplates")}
 <link rel="stylesheet" href="js/editor/lifetypeeditor.css" type="text/css" />
 <link rel="stylesheet" href="js/ui/assets/upload/upload.css" type="text/css" />
 {js src="js/editor/lifetypeeditor.js"}
@@ -8,7 +8,7 @@
 {js src="js/ui/pages/templateeditor.js"}
 {check_perms adminperm=add_template}
 <div class="extraFunctions">
-	<div class="left">		
+	<div class="left">
 		<a id="newFolderButton" href="#"
 		   onClick="Lifetype.UI.Pages.TemplateEditor.newFolderButtonHandler(this);return(false);">{$locale->tr("new_folder")}</a>&nbsp;|
 		<a id="uploadFileButton" href="?op=newTemplateFile" rel="overlay">{$locale->tr("upload_file")}</a>
@@ -21,7 +21,7 @@
 {/check_perms}
 
 <form id="siteTemplatesList" method="post" action="admin.php">
- {include file="$admintemplatepath/viewvalidateajax.template"}		
+ {include file="$admintemplatepath/viewvalidateajax.template"}
  <div id="list">
  {include file="$admintemplatepath/edittemplate_table.template"}
  </div>
@@ -33,5 +33,5 @@
  </div>
 </form>
 
-{include file="$blogtemplate/footernavigation.template"}
-{include file="$blogtemplate/footer.template"}
\ No newline at end of file
+{include file="$admintemplatepath/footernavigation.template"}
+{include file="$admintemplatepath/footer.template"}
\ No newline at end of file

Modified: plog/trunk/templates/admin/error.template
===================================================================
--- plog/trunk/templates/admin/error.template	2007-11-22 13:59:43 UTC (rev 6073)
+++ plog/trunk/templates/admin/error.template	2007-11-23 08:24:07 UTC (rev 6074)
@@ -1,9 +1,9 @@
-{include file="$blogtemplate/header.template"}
-{include file="$blogtemplate/navigation.template" title=$locale->tr("error")}
+{include file="$admintemplatepath/header.template"}
+{include file="$admintemplatepath/navigation.template" title=$locale->tr("error")}
   <p>
-   <img src="imgs/admin/icon_warning-16.png" alt="Error" />  
+   <img src="imgs/admin/icon_warning-16.png" alt="Error" />
    {$message}
   </p>
   <a href="javascript:history.back();">{$locale->tr("back")}</a>
-{include file="$blogtemplate/footernavigation.template"}
-{include file="$blogtemplate/footer.template"}
\ No newline at end of file
+{include file="$admintemplatepath/footernavigation.template"}
+{include file="$admintemplatepath/footer.template"}
\ No newline at end of file

Modified: plog/trunk/templates/admin/message.template
===================================================================
--- plog/trunk/templates/admin/message.template	2007-11-22 13:59:43 UTC (rev 6073)
+++ plog/trunk/templates/admin/message.template	2007-11-23 08:24:07 UTC (rev 6074)
@@ -1,8 +1,8 @@
-{include file="$blogtemplate/header.template"}
-{include file="$blogtemplate/navigation.template" title=$locale->tr("message")}
+{include file="$admintemplatepath/header.template"}
+{include file="$admintemplatepath/navigation.template" title=$locale->tr("message")}
   <p>
    <img src="imgs/admin/icon_info-16.png" alt="Error" />
    {$message}
   </p>
-{include file="$blogtemplate/footernavigation.template"}
-{include file="$blogtemplate/footer.template"}
+{include file="$admintemplatepath/footernavigation.template"}
+{include file="$admintemplatepath/footer.template"}

Modified: plog/trunk/templates/admin/newblogtemplate.template
===================================================================
--- plog/trunk/templates/admin/newblogtemplate.template	2007-11-22 13:59:43 UTC (rev 6073)
+++ plog/trunk/templates/admin/newblogtemplate.template	2007-11-23 08:24:07 UTC (rev 6074)
@@ -1,5 +1,7 @@
-{include file="$blogtemplate/header.template"}
-{include file="$blogtemplate/navigation.template" showOpt=newBlogTemplate title=$locale->tr("blogTemplates")}
-{include file="$blogtemplate/newblogtemplate_form.template"}
-{include file="$blogtemplate/footernavigation.template"}
-{include file="$blogtemplate/footer.template"}
\ No newline at end of file
+{include file="$admintemplatepath/header.template"}
+{include file="$admintemplatepath/navigation.template" showOpt=newBlogTemplate title=$locale->tr("blogTemplates")}
+
+{include file="$admintemplatepath/newblogtemplate_form.template"}
+
+{include file="$admintemplatepath/footernavigation.template"}
+{include file="$admintemplatepath/footer.template"}
\ No newline at end of file

Modified: plog/trunk/templates/admin/newprivatemessage.template
===================================================================
--- plog/trunk/templates/admin/newprivatemessage.template	2007-11-22 13:59:43 UTC (rev 6073)
+++ plog/trunk/templates/admin/newprivatemessage.template	2007-11-23 08:24:07 UTC (rev 6074)
@@ -45,5 +45,5 @@
    <input type="submit" name="Add" value="{$locale->tr("send")}" />
   </div>
  </form>
-{include file="$blogtemplate/footernavigation.template"}
+{include file="$admintemplatepath/footernavigation.template"}
 {include file="$admintemplatepath/footer.template"}
\ No newline at end of file

Modified: plog/trunk/templates/admin/readinboxprivatemessage.template
===================================================================
--- plog/trunk/templates/admin/readinboxprivatemessage.template	2007-11-22 13:59:43 UTC (rev 6073)
+++ plog/trunk/templates/admin/readinboxprivatemessage.template	2007-11-23 08:24:07 UTC (rev 6074)
@@ -34,5 +34,5 @@
    <input type="button" name="Reply" value="{$locale->tr("reply")}" onClick="window.location='?op=replyPrivateMessage&messageId={$messageId}'" />
   </div>
  </form>
-{include file="$blogtemplate/footernavigation.template"}
+{include file="$admintemplatepath/footernavigation.template"}
 {include file="$admintemplatepath/footer.template"}
\ No newline at end of file

Modified: plog/trunk/templates/admin/readoutboxprivatemessage.template
===================================================================
--- plog/trunk/templates/admin/readoutboxprivatemessage.template	2007-11-22 13:59:43 UTC (rev 6073)
+++ plog/trunk/templates/admin/readoutboxprivatemessage.template	2007-11-23 08:24:07 UTC (rev 6074)
@@ -34,5 +34,5 @@
    <input type="submit" name="Delete" value="{$locale->tr("delete")}" />
   </div>
  </form>
-{include file="$blogtemplate/footernavigation.template"}
+{include file="$admintemplatepath/footernavigation.template"}
 {include file="$admintemplatepath/footer.template"}
\ No newline at end of file

Modified: plog/trunk/templates/admin/replyprivatemessage.template
===================================================================
--- plog/trunk/templates/admin/replyprivatemessage.template	2007-11-22 13:59:43 UTC (rev 6073)
+++ plog/trunk/templates/admin/replyprivatemessage.template	2007-11-23 08:24:07 UTC (rev 6074)
@@ -45,5 +45,5 @@
    <input type="submit" name="Add" value="{$locale->tr("send")}" />
   </div>
  </form>
-{include file="$blogtemplate/footernavigation.template"}
+{include file="$admintemplatepath/footernavigation.template"}
 {include file="$admintemplatepath/footer.template"}
\ No newline at end of file

Modified: plog/trunk/templates/admin/resourceinfo.template
===================================================================
--- plog/trunk/templates/admin/resourceinfo.template	2007-11-22 13:59:43 UTC (rev 6073)
+++ plog/trunk/templates/admin/resourceinfo.template	2007-11-23 08:24:07 UTC (rev 6074)
@@ -1,99 +1,7 @@
 {include file="$admintemplatepath/header.template"}
 {include file="$admintemplatepath/navigation.template" showOpt=resources title=$locale->tr("editResource")}
-{if $resource->isImage()}
- {assign var=imgPath value=$url->resourceMediumSizePreviewLink($resource)}
-{elseif $resource->isSound()}
- {assign var=imgPath value="imgs/admin/icon_sound-48.png"}
-{elseif $resource->isVideo()}
- {assign var=imgPath value="imgs/admin/icon_video-48.png"}
-{elseif $resource->isZip()}
- {assign var=imgPath value="imgs/admin/icon_compressed-48.png"}
-{else} 
- {assign var=imgPath value="imgs/admin/icon_file-48.png"}
-{/if}
-<form name="updateResourceInfo" method="post" action="admin.php">
- <fieldset class="inputField">
-  <legend>{$locale->tr("editResource")}</legend>
-   <div class="field">
-   	<img src="{$imgPath}" alt="Preview" style="display:block;" />
-	<span id="resourceLink"><a target="_blank" href="{$url->resourceLink($resource)}">{$resource->getFileName()}</a></span>
-   </div>
-    <div class="field">
-    <label for="resourceInformation">{$locale->tr("information")}</label>
-	<div class="formHelp">{$locale->tr("resource_information_help")}</div>
-	{assign var=metadata value=$resource->getMetadataReader()}
-	<span id="resourceInformation">
-	{if $resource->isImage()}
-	 {assign var=imgPath value=$url->resourcePreviewLink($resource)}
-	 {$locale->tr("size")}: {$metadata->getFileSize()|round:$locale} ({$metadata->getFileSize()} {$locale->tr("bytes")})<br/>
-	 {$locale->tr("format")}: {$metadata->getFormat()|upper}<br/>
-	 {$locale->tr("dimensions")}: {$metadata->getWidth()} x {$metadata->getHeight()}<br/>
-	 {$locale->tr("bits_per_sample")}: {$metadata->getBitsPerSample()}<br/>
-	 {assign var=thumbnailformat value=$resource->getThumbnailFormat()}
-	 {$locale->tr("thumbnail_format")}: {$locale->tr($thumbnailformat)}<br/>
-	{elseif $resource->isSound()}
-	 {assign var=imgPath value="imgs/admin/icon_sound-48.png"}
-	 {$locale->tr("format")}: {$metadata->getFormat()|upper}<br/> 
-	 {$locale->tr("size")}: {$metadata->getFileSize()|round:$locale} ({$metadata->getFileSize()} {$locale->tr("bytes")})<br/>
-	 {$locale->tr("length")}: {$metadata->getLengthString()}<br/>
-	 {$locale->tr("sample_rate")}: {$metadata->getSampleRate()} Khz<br/> 
-	 {$locale->tr("number_of_channels")}: {$metadata->getChannels()|upper}<br/>
-	{elseif $resource->isVideo()}
-	 {assign var=imgPath value="imgs/admin/icon_video-48.png"}
-	 {$locale->tr("size")}: {$metadata->getFileSize()|round:$locale} ({$metadata->getFileSize()} {$locale->tr("bytes")})<br/>
-	 {$locale->tr("format")}: {$metadata->getFormat()|upper}<br/>
-	 {$locale->tr("length")}: {$metadata->getLengthString()}<br/>
-	 {$locale->tr("video_codec")}: {$metadata->getVideoCodec()}<br/>
-	 {$locale->tr("audio_codec")}: {$metadata->getAudioCodec()}<br/>
-	 {$locale->tr("dimensions")}: {$metadata->getWidth()} x {$metadata->getHeight()}<br/>
-	 {$locale->tr("bits_per_sample")}: {$metadata->getBitsPerSample()}<br/>
-	{elseif $resource->isZip()}
-	 {assign var=imgPath value="imgs/admin/icon_compressed-48.png"}
-	 {$locale->tr("size")}: {$metadata->getFileSize()|round:$locale} ({$metadata->getFileSize()} {$locale->tr("bytes")})<br/>
-	 {$locale->tr("number_of_files")}: {$metadata->getTotalFiles()}<br/>
-	 {$locale->tr("uncompressed_size")}: {$metadata->getUncompressedSize()} {$locale->tr("bytes")}<br/>
-	{else} 
-	 {assign var=imgPath value="imgs/admin/icon_file-48.png"}
-	 {$locale->tr("size")}: {$metadata->getFileSize()|round:$locale} ({$metadata->getFileSize()} {$locale->tr("bytes")})<br/>
-	{/if}
-	{if $resource->hasLocationData()}
-	  {assign var=loc value=$resource->getLocation()}
-      {$locale->tr("location")}: {location_chooser locations=$locations addNewString=$locale->tr("add_new") showDisplayLink=1 default=$loc}
-	{/if}
-	</span>   
-   </div>
-   <div class="field">
-    <label for="albumId">{$locale->tr("album")}</label>
-	<span class="required">*</span>	
-	<div class="formHelp">{$locale->tr("resource_album_help")}</div>
-	<select name="albumId" id="albumId">
-     {foreach from=$albums item=albumItem}
-      <option value="{$albumItem->getId()}" {if $albumItem->getId()==$albumId}selected="selected"{/if}>
-	  {assign var=indentLevel value=$albumItem->getValue("level")}
-	  {textformat indent=$indentLevel indent_char="&nbsp;&nbsp;&nbsp;"}{$albumItem->getName()}{/textformat}
-	  </option>
-     {/foreach}
-	</select> 
-   </div>
-   <div class="field">
-    <label for="resourceDescription">{$locale->tr("description")}</label>
-	<div class="formHelp">{$locale->tr("resource_description_help")}</div>
-	<span class="required"></span>
-    <textarea name="resourceDescription" id="resourceDescription" rows="7" cols="60">{$resourceDescription}</textarea>
-   </div>
-  </div>
 
-</fieldset> 
-<div class="buttons">
- {if $resource->isImage()}
-  {** this should only appear for images... **}
-  <input type="submit" name="regenerate" value="{$locale->tr("regenerate_preview")}" />
- {/if}
- <input type="reset" name="resetButton" value="{$locale->tr("reset")}" />
- <input type="hidden" name="op" value="updateResource" />
- <input type="hidden" name="resourceId" value="{$resource->getId()}" />
- <input type="submit" name="Update" value="{$locale->tr("update")}" />
-</div> 
-</form>
-{include file="$blogtemplate/footernavigation.template"}
-{include file="$blogtemplate/footer.template"}
\ No newline at end of file
+{include file="$admintemplatepath/resourceinfo_form.template"}
+
+{include file="$admintemplatepath/footernavigation.template"}
+{include file="$admintemplatepath/footer.template"}
\ No newline at end of file

Added: plog/trunk/templates/admin/resourceinfo_form.template
===================================================================
--- plog/trunk/templates/admin/resourceinfo_form.template	                        (rev 0)
+++ plog/trunk/templates/admin/resourceinfo_form.template	2007-11-23 08:24:07 UTC (rev 6074)
@@ -0,0 +1,95 @@
+{if $resource->isImage()}
+ {assign var=imgPath value=$url->resourceMediumSizePreviewLink($resource)}
+{elseif $resource->isSound()}
+ {assign var=imgPath value="imgs/admin/icon_sound-48.png"}
+{elseif $resource->isVideo()}
+ {assign var=imgPath value="imgs/admin/icon_video-48.png"}
+{elseif $resource->isZip()}
+ {assign var=imgPath value="imgs/admin/icon_compressed-48.png"}
+{else}
+ {assign var=imgPath value="imgs/admin/icon_file-48.png"}
+{/if}
+<form name="updateResourceInfo" method="post" action="admin.php">
+ <fieldset class="inputField">
+  <legend>{$locale->tr("editResource")}</legend>
+   <div class="field">
+   	<img src="{$imgPath}" alt="Preview" style="display:block;" />
+	<span id="resourceLink"><a target="_blank" href="{$url->resourceLink($resource)}">{$resource->getFileName()}</a></span>
+   </div>
+    <div class="field">
+    <label for="resourceInformation">{$locale->tr("information")}</label>
+	<div class="formHelp">{$locale->tr("resource_information_help")}</div>
+	{assign var=metadata value=$resource->getMetadataReader()}
+	<span id="resourceInformation">
+	{if $resource->isImage()}
+	 {assign var=imgPath value=$url->resourcePreviewLink($resource)}
+	 {$locale->tr("size")}: {$metadata->getFileSize()|round:$locale} ({$metadata->getFileSize()} {$locale->tr("bytes")})<br/>
+	 {$locale->tr("format")}: {$metadata->getFormat()|upper}<br/>
+	 {$locale->tr("dimensions")}: {$metadata->getWidth()} x {$metadata->getHeight()}<br/>
+	 {$locale->tr("bits_per_sample")}: {$metadata->getBitsPerSample()}<br/>
+	 {assign var=thumbnailformat value=$resource->getThumbnailFormat()}
+	 {$locale->tr("thumbnail_format")}: {$locale->tr($thumbnailformat)}<br/>
+	{elseif $resource->isSound()}
+	 {assign var=imgPath value="imgs/admin/icon_sound-48.png"}
+	 {$locale->tr("format")}: {$metadata->getFormat()|upper}<br/>
+	 {$locale->tr("size")}: {$metadata->getFileSize()|round:$locale} ({$metadata->getFileSize()} {$locale->tr("bytes")})<br/>
+	 {$locale->tr("length")}: {$metadata->getLengthString()}<br/>
+	 {$locale->tr("sample_rate")}: {$metadata->getSampleRate()} Khz<br/>
+	 {$locale->tr("number_of_channels")}: {$metadata->getChannels()|upper}<br/>
+	{elseif $resource->isVideo()}
+	 {assign var=imgPath value="imgs/admin/icon_video-48.png"}
+	 {$locale->tr("size")}: {$metadata->getFileSize()|round:$locale} ({$metadata->getFileSize()} {$locale->tr("bytes")})<br/>
+	 {$locale->tr("format")}: {$metadata->getFormat()|upper}<br/>
+	 {$locale->tr("length")}: {$metadata->getLengthString()}<br/>
+	 {$locale->tr("video_codec")}: {$metadata->getVideoCodec()}<br/>
+	 {$locale->tr("audio_codec")}: {$metadata->getAudioCodec()}<br/>
+	 {$locale->tr("dimensions")}: {$metadata->getWidth()} x {$metadata->getHeight()}<br/>
+	 {$locale->tr("bits_per_sample")}: {$metadata->getBitsPerSample()}<br/>
+	{elseif $resource->isZip()}
+	 {assign var=imgPath value="imgs/admin/icon_compressed-48.png"}
+	 {$locale->tr("size")}: {$metadata->getFileSize()|round:$locale} ({$metadata->getFileSize()} {$locale->tr("bytes")})<br/>
+	 {$locale->tr("number_of_files")}: {$metadata->getTotalFiles()}<br/>
+	 {$locale->tr("uncompressed_size")}: {$metadata->getUncompressedSize()} {$locale->tr("bytes")}<br/>
+	{else}
+	 {assign var=imgPath value="imgs/admin/icon_file-48.png"}
+	 {$locale->tr("size")}: {$metadata->getFileSize()|round:$locale} ({$metadata->getFileSize()} {$locale->tr("bytes")})<br/>
+	{/if}
+	{if $resource->hasLocationData()}
+	  {assign var=loc value=$resource->getLocation()}
+      {$locale->tr("location")}: {location_chooser locations=$locations addNewString=$locale->tr("add_new") showDisplayLink=1 default=$loc}
+	{/if}
+	</span>
+   </div>
+   <div class="field">
+    <label for="albumId">{$locale->tr("album")}</label>
+	<span class="required">*</span>
+	<div class="formHelp">{$locale->tr("resource_album_help")}</div>
+	<select name="albumId" id="albumId">
+     {foreach from=$albums item=albumItem}
+      <option value="{$albumItem->getId()}" {if $albumItem->getId()==$albumId}selected="selected"{/if}>
+	  {assign var=indentLevel value=$albumItem->getValue("level")}
+	  {textformat indent=$indentLevel indent_char="&nbsp;&nbsp;&nbsp;"}{$albumItem->getName()}{/textformat}
+	  </option>
+     {/foreach}
+	</select>
+   </div>
+   <div class="field">
+    <label for="resourceDescription">{$locale->tr("description")}</label>
+	<div class="formHelp">{$locale->tr("resource_description_help")}</div>
+	<span class="required"></span>
+    <textarea name="resourceDescription" id="resourceDescription" rows="7" cols="60">{$resourceDescription}</textarea>
+   </div>
+  </div>
+
+</fieldset>
+<div class="buttons">
+ {if $resource->isImage()}
+  {** this should only appear for images... **}
+  <input type="submit" name="regenerate" value="{$locale->tr("regenerate_preview")}" />
+ {/if}
+ <input type="reset" name="resetButton" value="{$locale->tr("reset")}" />
+ <input type="hidden" name="op" value="updateResource" />
+ <input type="hidden" name="resourceId" value="{$resource->getId()}" />
+ <input type="submit" name="Update" value="{$locale->tr("update")}" />
+</div>
+</form>
\ No newline at end of file

Modified: plog/trunk/templates/admin/simpleerror.template
===================================================================
--- plog/trunk/templates/admin/simpleerror.template	2007-11-22 13:59:43 UTC (rev 6073)
+++ plog/trunk/templates/admin/simpleerror.template	2007-11-23 08:24:07 UTC (rev 6074)
@@ -1,4 +1,4 @@
-{include file="$blogtemplate/simpleheader.template"}
+{include file="$admintemplatepath/simpleheader.template"}
         <div id="nav_bar">
             <div id="section_title">
                 <h2>{$locale->tr("error")}</h2>
@@ -6,12 +6,12 @@
             <br style="clear:both;" />
         </div>
    <div id="FormError">
-   <img src="imgs/admin/icon_warning-16.png" alt="Error" class="InfoIcon" />  
+   <img src="imgs/admin/icon_warning-16.png" alt="Error" class="InfoIcon" />
    <p class="ErrorText">
    {$message}
    <br/><br/>
    <a href="javascript:history.back();">{$locale->tr("back")}</a>
    </p>
    </div>
-{include file="$blogtemplate/footernavigation.template"}
-{include file="$blogtemplate/simplefooter.template"}
+{include file="$admintemplatepath/footernavigation.template"}
+{include file="$admintemplatepath/simplefooter.template"}

Modified: plog/trunk/templates/admin/siteblogusers.template
===================================================================
--- plog/trunk/templates/admin/siteblogusers.template	2007-11-22 13:59:43 UTC (rev 6073)
+++ plog/trunk/templates/admin/siteblogusers.template	2007-11-23 08:24:07 UTC (rev 6074)
@@ -1,4 +1,4 @@
-{include file="$blogtemplate/header.template"}
+{include file="$admintemplatepath/header.template"}
 
  <h3>{$locale->tr("blog_users")}</h3>
  <form name="editSiteBlogUsers" method="post" action="admin.php">
@@ -35,5 +35,5 @@
  <input type="hidden" name="editBlogId" value="{$editblog->getId()}"/>
  </form>
 
-{include file="$blogtemplate/footernavigation.template"}
-{include file="$blogtemplate/footer.template"}
+{include file="$admintemplatepath/footernavigation.template"}
+{include file="$admintemplatepath/footer.template"}

Modified: plog/trunk/templates/admin/sitetemplates.template
===================================================================
--- plog/trunk/templates/admin/sitetemplates.template	2007-11-22 13:59:43 UTC (rev 6073)
+++ plog/trunk/templates/admin/sitetemplates.template	2007-11-23 08:24:07 UTC (rev 6074)
@@ -1,9 +1,9 @@
-{include file="$blogtemplate/header.template"}
-{include file="$blogtemplate/navigation.template" showOpt=siteTemplates title=$locale->tr("siteTemplates")}
+{include file="$admintemplatepath/header.template"}
+{include file="$admintemplatepath/navigation.template" showOpt=siteTemplates title=$locale->tr("siteTemplates")}
 {js src="js/ui/pages/templateeditor.js"}
 {check_perms adminperm=add_template}
 <div class="extraFunctions">
-	<div class="left">		
+	<div class="left">
 		<a id="newTemplateButton" href="?op=newTemplate" rel="overlay">{$locale->tr("newTemplate")}</a>
 	</div>
 </div>
@@ -21,6 +21,6 @@
   {/check_perms}
 </div -->
 </form>
- 
-{include file="$blogtemplate/footernavigation.template"}
-{include file="$blogtemplate/footer.template"}
+
+{include file="$admintemplatepath/footernavigation.template"}
+{include file="$admintemplatepath/footer.template"}



More information about the pLog-svn mailing list