[pLog-svn] r5798 - in plog/trunk: class/action/admin templates/admin
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Sun Aug 5 16:46:10 EDT 2007
Author: oscar
Date: 2007-08-05 16:46:10 -0400 (Sun, 05 Aug 2007)
New Revision: 5798
Modified:
plog/trunk/class/action/admin/adminupdateeditblogaction.class.php
plog/trunk/templates/admin/editblog.template
Log:
Edit and update of blogs via ajax.
Modified: plog/trunk/class/action/admin/adminupdateeditblogaction.class.php
===================================================================
--- plog/trunk/class/action/admin/adminupdateeditblogaction.class.php 2007-08-05 19:38:18 UTC (rev 5797)
+++ plog/trunk/class/action/admin/adminupdateeditblogaction.class.php 2007-08-05 20:46:10 UTC (rev 5798)
@@ -11,6 +11,7 @@
lt_include( PLOG_CLASS_PATH."class/data/validator/integervalidator.class.php" );
lt_include( PLOG_CLASS_PATH."class/data/validator/domainvalidator.class.php" );
lt_include( PLOG_CLASS_PATH."class/data/validator/arrayvalidator.class.php" );
+ lt_include( PLOG_CLASS_PATH."class/data/filter/htmlfilter.class.php" );
/**
* \ingroup Action
@@ -31,6 +32,7 @@
var $_blogQuota;
var $_blogName;
var $_blogStatus;
+ var $_blogInfo;
/**
* Constructor. If nothing else, it also has to call the constructor of the parent
@@ -41,19 +43,16 @@
$this->AdminAction( $actionInfo, $request );
// data validation
- $this->registerFieldValidator( "blogUsers", new ArrayValidator( new IntegerValidator()), true );
- $this->registerFieldValidator( "blogName", new BlogNameValidator());
- $this->registerFieldValidator( "blogId", new IntegerValidator());
- $this->registerFieldValidator( "blogStatus", new IntegerValidator());
- $this->registerFieldValidator( "blogLocale", new StringValidator());
- $this->registerFieldValidator( "blogTemplate", new StringValidator());
- $this->registerFieldValidator( "blogResourcesQuota", new IntegerValidator(), true );
- $this->registerFieldValidator( "userId", new IntegerValidator());
+ $this->registerFieldValidator( "blogName", new BlogNameValidator(), false, $this->_locale->tr("error_invalid_blog_name"));
+ $this->registerFieldValidator( "blogId", new IntegerValidator(), false, $this->_locale->tr("error_invalid_blog_name"));
+ $this->registerFieldValidator( "blogStatus", new IntegerValidator(), false, $this->_locale->tr("error_incorrect_value"));
+ $this->registerFieldValidator( "blogResourcesQuota", new IntegerValidator(), true, $this->_locale->tr("error_incorrect_value"));
+ $this->registerFieldValidator( "userId", new IntegerValidator(), false, $this->_locale->tr("error_incorrect_user"));
$this->registerFieldValidator( "userName", new StringValidator());
$this->registerField( "blogTimeOffset" );
if( Subdomains::getSubdomainsEnabled()) {
- $this->registerFieldValidator( "blogSubDomain", new DomainValidator());
- $this->registerFieldValidator( "blogMainDomain", new DomainValidator());
+ $this->registerFieldValidator( "blogSubDomain", new DomainValidator(), false, $this->_locale->tr("error_invalid_subdomain"));
+ $this->registerFieldValidator( "blogMainDomain", new DomainValidator(), false, $this->_locale->tr("error_invalid_domain"));
}
$view = new AdminEditSiteBlogView( $this->_blogInfo );
$view->setErrorMessage( $this->_locale->tr("error_updating_blog_settings2" ));
@@ -61,128 +60,141 @@
$this->requireAdminPermission( "update_site_blog" );
}
-
- /**
- * Carries out the specified action
- */
- function perform()
- {
- // fetch the values from the form which have already been validated
- $this->_blogName = Textfilter::filterAllHTML($this->_request->getValue( "blogName" ));
- $this->_blogLocale = $this->_request->getValue( "blogLocale" );
- $this->_blogTemplate = $this->_request->getValue( "blogTemplate" );
- $this->_blogOwner = $this->_request->getValue( "blogOwner" );
- $this->_editBlogId = $this->_request->getValue( "blogId" );
- $this->_blogTimeOffset = $this->_request->getValue( "blogTimeOffset" );
- $this->_blogProperties = $this->_request->getValue( "properties" );
- $this->_blogQuota = $this->_request->getValue( "blogResourcesQuota" );
- $this->_blogUsers = $this->_request->getValue( "blogUsers" );
- $this->_blogStatus = $this->_request->getValue( "blogStatus" );
- $this->_blogOwner = $this->_request->getValue( "userId" );
-
- // get the blog we're trying to update
- $blogs = new Blogs();
- $blogInfo = $blogs->getBlogInfo( $this->_editBlogId );
- if( !$blogInfo ) {
- $this->_view = new AdminSiteBlogsListView( $this->_blogInfo );
- $this->_view->setErrorMessage( $this->_locale->tr("error_fetching_blog"));
- $this->setCommonData();
- return false;
- }
+ function validate()
+ {
+ if( !parent::validate())
+ return( false );
- $this->notifyEvent( EVENT_BLOG_LOADED, Array( "blog" => &$blogInfo ));
-
- // make sure that the user we'd like to set as owner exists
+ $this->_blogOwner = $this->_request->getValue( "userId" );
+ // check that the user really exists
$users = new Users();
$userInfo = $users->getUserInfoFromId( $this->_blogOwner );
if( !$userInfo ) {
- $this->_view = new AdminSiteBlogsListView( $this->_blogInfo );
- $this->_view->setErrorMessage( $this->_locale->tr("error_incorrect_blog_owner"));
- $this->setCommonData();
- return false;
+ $this->_form->setFieldValidationStatus( "userId", false );
+ $this->validationErrorProcessing();
+ return( false );
}
-
$this->notifyEvent( EVENT_USER_LOADED, Array( "user" => &$userInfo ));
- // set the different settings
- $blogSettings = $blogInfo->getSettings();
- $blogSettings->setValue( "locale", $this->_blogLocale );
- $blogSettings->setValue( "template", $this->_blogTemplate );
- $blogSettings->setValue( "time_offset", $this->_blogTimeOffset );
- $blogInfo->setSettings( $blogSettings );
- $blogInfo->setResourcesQuota( $this->_blogQuota );
- $blogInfo->setBlog( $this->_blogName );
- $blogInfo->setProperties( $this->_blogProperties );
- $blogInfo->setOwner( $this->_blogOwner );
- $blogInfo->setStatus( $this->_blogStatus );
- $blogInfo->setMangledBlogName( $blogInfo->getBlog(), true );
+ // get the blog we're trying to update
+ $this->_editBlogId = $this->_request->getValue( "blogId" );
+ $blogs = new Blogs();
+ $this->_blog = $blogs->getBlogInfo( $this->_editBlogId );
+ if( !$this->_blog ) {
+ $this->_form->setFieldValidationStatus( "blogId", false );
+ $this->validationErrorProcessing();
+ return false;
+ }
+ $this->notifyEvent( EVENT_BLOG_LOADED, Array( "blog" => &$this->_blog ));
- // check to see whether we are going to save subdomain information
if( Subdomains::getSubdomainsEnabled()) {
-
// Translate a few characters to valid names, and remove the rest
- $mainDomain = Textfilter::domainize($this->_request->getValue( "blogMainDomain" ));
- if(!$mainDomain)
- $mainDomain = "?";
- $subDomain = Textfilter::domainize($this->_request->getValue( "blogSubDomain" ));
+ $this->_mainDomain = Textfilter::domainize($this->_request->getValue( "blogMainDomain" ));
+ if(!$this->_mainDomain) $this->_mainDomain = "?";
+ $this->_subDomain = Textfilter::domainize($this->_request->getValue( "blogSubDomain" ));
-
-
- if( !Subdomains::isDomainAvailable( $mainDomain )) {
- $this->_view = new AdminEditSiteBlogView( $this->_blogInfo );
- $this->_view->setErrorMessage( $this->_locale->tr("error_updating_blog_subdomain"));
+ if( !Subdomains::isDomainAvailable( $this->_mainDomain )) {
$this->_form->setFieldValidationStatus( "blogMainDomain", false );
- $this->setCommonData();
+ $this->validationErrorProcessing();
return false;
}
- if( !Subdomains::isValidDomainName( $subDomain )) {
- $this->_view = new AdminEditSiteBlogView( $this->_blogInfo );
- $this->_view->setErrorMessage( $this->_locale->tr("error_updating_blog_subdomain"));
+ if( !Subdomains::isValidDomainName( $this->_subDomain )) {
$this->_form->setFieldValidationStatus( "blogSubDomain", false );
- $this->setCommonData();
+ $this->validationErrorProcessing();
return false;
}
+ }
- if($mainDomain == "?"){
- $blog_domain = $subDomain;
+ return( true );
+ }
+
+ function updateBlog()
+ {
+ // fetch the values from the form which have already been validated
+ $this->_blogName = $this->_request->getFilteredValue( "blogName", new HtmlFilter());
+ $this->_blogProperties = $this->_request->getValue( "properties" );
+ $this->_blogQuota = $this->_request->getValue( "blogResourcesQuota" );
+ $this->_blogStatus = $this->_request->getValue( "blogStatus" );
+ $this->_blogOwner = $this->_request->getValue( "userId" );
+
+ // set the different settings
+ $blogSettings = $this->_blog->getSettings();
+ $this->_blog->setSettings( $blogSettings );
+ $this->_blog->setResourcesQuota( $this->_blogQuota );
+ $this->_blog->setBlog( $this->_blogName );
+ $this->_blog->setProperties( $this->_blogProperties );
+ $this->_blog->setOwner( $this->_blogOwner );
+ $this->_blog->setStatus( $this->_blogStatus );
+ $this->_blog->setMangledBlogName( $this->_blog->getBlog(), true );
+
+ // check to see whether we are going to save subdomain information
+ if( Subdomains::getSubdomainsEnabled()) {
+ if($this->_mainDomain == "?") {
+ $blog_domain = $this->_subDomain;
}
else{
- $blog_domain = $subDomain . "." . $mainDomain;
+ $blog_domain = $this->_subDomain . "." . $this->_mainDomain;
}
- $blogInfo->setCustomDomain( $blog_domain );
+ $blog->setCustomDomain( $blog_domain );
}
- $this->notifyEvent( EVENT_PRE_BLOG_UPDATE, Array( "blog" => &$blogInfo ));
- if( !$blogs->updateBlog( $blogInfo )) {
- $this->_view = new AdminSiteBlogsListView( $this->_blogInfo );
- $this->_view->setErrorMessage( $this->_locale->pr( "error_updating_blog_settings", $blogInfo->getBlog()));
- $this->setCommonData();
+ $blogs = new Blogs();
+ $this->notifyEvent( EVENT_PRE_BLOG_UPDATE, Array( "blog" => &$this->_blog ));
+ if( !$blogs->updateBlog( $this->_blog )) {
return false;
}
- $this->notifyEvent( EVENT_POST_BLOG_UPDATE, Array( "blog" => &$blogInfo ));
+ $this->notifyEvent( EVENT_POST_BLOG_UPDATE, Array( "blog" => &$this->_blog ));
// do it again, baby :)))
- if( $this->_blogInfo->getId() == $blogInfo->getId()) {
+ if( $this->_blogInfo->getId() == $this->_blog->getId()) {
$this->_blogInfo->setSettings( $blogSettings );
- $blogInfo->setProperties( $this->_blogProperties );
+ $this->_blog->setProperties( $this->_blogProperties );
$this->_session->setValue( "blogInfo", $this->_blogInfo );
$this->saveSession();
}
- // if everything went fine, we can show a nice message
- $this->_view = new AdminSiteBlogsListView( $this->_blogInfo );
- $this->_view->setSuccessMessage( $this->_locale->pr( "edit_blog_settings_updated_ok", $blogInfo->getBlog()));
- $this->setCommonData();
-
// clear the cache
- CacheControl::resetBlogCache( $blogInfo->getId());
+ CacheControl::resetBlogCache( $this->_blog->getId());
+ return( $this->_blog );
+ }
+
+ /**
+ * Carries out the specified action
+ */
+ function perform()
+ {
+ $this->_view = new AdminSiteBlogsListView( $this->_blogInfo );
+
+ $blog = $this->updateBlog();
+ if( $blog )
+ $this->_view->setSuccessMessage( $this->_locale->pr( "edit_blog_settings_updated_ok", $blog->getBlog()));
+ else
+ $this->_view->setErrorMessage( $this->_locale->tr( "error_updating_blog_settings" ));
+
+ $this->setCommonData();
+
// better to return true if everything fine
return true;
}
+
+ function performAjax()
+ {
+ lt_include( PLOG_CLASS_PATH."class/view/admin/ajax/adminajaxview.class.php" );
+ $this->_view = new AdminAjaxView( $this->_blogInfo );
+
+ $blog = $this->updateBlog();
+ if( $blog )
+ $this->_view->setSuccessMessage( $this->_locale->pr( "edit_blog_settings_updated_ok", $blog->getBlog()));
+ else
+ $this->_view->setErrorMessage( $this->_locale->tr( "error_updating_blog_settings" ));
+
+ // better to return true if everything fine
+ return true;
+ }
}
-?>
+?>
\ No newline at end of file
Modified: plog/trunk/templates/admin/editblog.template
===================================================================
--- plog/trunk/templates/admin/editblog.template 2007-08-05 19:38:18 UTC (rev 5797)
+++ plog/trunk/templates/admin/editblog.template 2007-08-05 20:46:10 UTC (rev 5798)
@@ -1,10 +1,8 @@
-{include file="$admintemplatepath/header.template"}
-{include file="$admintemplatepath/navigation.template" showOpt=editSiteBlogs title=$locale->tr("editBlog")}
-
- <form name="blogSettings" action="admin.php" method="post" onsubmit="Lifetype.Forms.List.selectAll('userList');">
+ <form id="blogSettings" name="blogSettings" action="admin.php" method="post" onSubmit="Lifetype.UI.Pages.Blogs.updateSubmitHook(this);return(false);">
<fieldset class="inputField">
<legend>{$locale->tr("editBlog")}</legend>
- {include file="$admintemplatepath/formvalidate.template"}
+ {include file="$admintemplatepath/formvalidateajax.template"}
+ <div style="float:left;width:50%">
<div class="field">
<label for="ro_blogLink">{$locale->tr("blog_link")}</label>
<span class="required"></span>
@@ -30,8 +28,8 @@
</option>
{/foreach}
</select>
- {include file="$admintemplatepath/validate.template" field=blogSubDomain message=$locale->tr("error_invalid_subdomain")}
- {include file="$admintemplatepath/validate.template" field=blogMainDomain message=$locale->tr("error_invalid_domain")}
+ {include file="$admintemplatepath/validateajax.template" field=blogSubDomain}
+ {include file="$admintemplatepath/validateajax.template" field=blogMainDomain}
</div>
{/if}
@@ -41,7 +39,7 @@
<span class="required">*</span>
<div class="formHelp">{$locale->tr("blog_name_help")}</div>
<input type="text" name="blogName" style="width:100%" id="blogName" value="{$blogName|escape:"html"}" />
- {include file="$admintemplatepath/validate.template" field=blogName message=$locale->tr("error_invalid_blog_name")}
+ {include file="$admintemplatepath/validateajax.template" field=blogName}
</div>
<div class="field">
@@ -60,109 +58,34 @@
<span class="required">*</span>
<div class="formHelp">{$locale->tr("blog_owner_help")}</div>
<input type="hidden" id="userId" name="userId" value="{if $userId==""}{$blogOwnerInfo->getId()}{else}{$userId}{/if}" />
- <input type="text" id="userName" name="userName" value="{if $userName==""}{$blogOwnerInfo->getUsername()}{else}{$userName}{/if}" style="width:50%"/>
- <a href="{$url->getAdminUrl()}?op=siteUsersChooser" title="UserChooser" rel="gb_page[600, 450]">
+ <input type="text" id="userName" name="userName" value="{if $userName==""}{$blogOwnerInfo->getUsername()}{else}{$userName}{/if}" style="width:50%" readonly="readonly"/>
+ <a href="#" title="UserChooser" onClick="window.open('?op=siteUsersChooser','UserChooser','scrollbars=yes,resizable=yes,toolbar=no,height=450,width=600');return(false);">
{$locale->tr("select")}
</a>
-
- {* onclick="window.open('?op=siteUsersChooser','UserChooser','scrollbars=yes,resizable=yes,toolbar=no,height=450,width=600');" *}
-
-
+ {include file="$admintemplatepath/validateajax.template" field=userId}
</div>
<div class="field">
- <label for="blogLocale">{$locale->tr("language")}</label>
- <span class="required">*</span>
- <div class="formHelp">{$locale->tr("blog_language_help")}</div>
- <select name="blogLocale" id="blogLocale">
- {foreach from=$locales item=localeobject}
- <option value="{$localeobject->getLocaleCode()}" {if $localeobject->getLocaleCode()==$blogLocale} selected="selected" {/if}>
- {$localeobject->getDescription()} ({$localeobject->getLocaleCode()} {$localeobject->getCharset()})
- </option>
- {/foreach}
- </select>
- </div>
-
- <div class="field">
- <label for="blogTemplate">{$locale->tr("template")}</label>
- <span class="required">*</span>
- <div class="formHelp">{$locale->tr("blog_template_help")}</div>
- {assign var=blogTemplateSet value=$editblog->getTemplateSet()}
- <select name="blogTemplate" id="blogTemplate">
- {foreach from=$templates item=template}
- <option value="{$template->getName()}"{if $template->getName() == $blogTemplateSet->getName()} selected="selected" {/if}>{$template->getName()}</option>
- {/foreach}
- </select>
- <a href="javascript:Lifetype.UI.Pages.TemplateChooser.openTemplateChooserWindow();">{$locale->tr("select")}</a>
- </div>
-
- <div class="field">
- <label for="blogTimeOffset">{$locale->tr("time_offset")}</label>
- <div class="formHelp">{$locale->tr("time_offset_help")}</div>
- <select name="blogTimeOffset" id="blogTimeOffset">
- <option {if $blogTimeOffset == -20} selected="selected"{/if} value="-20">-20 {$locale->tr("hours")}</option>
- <option {if $blogTimeOffset == -19} selected="selected"{/if} value="-19">-19 {$locale->tr("hours")}</option>
- <option {if $blogTimeOffset == -18} selected="selected"{/if} value="-18">-18 {$locale->tr("hours")}</option>
- <option {if $blogTimeOffset == -17} selected="selected"{/if} value="-17">-17 {$locale->tr("hours")}</option>
- <option {if $blogTimeOffset == -16} selected="selected"{/if} value="-16">-16 {$locale->tr("hours")}</option>
- <option {if $blogTimeOffset == -15} selected="selected"{/if} value="-15">-15 {$locale->tr("hours")}</option>
- <option {if $blogTimeOffset == -14} selected="selected"{/if} value="-14">-14 {$locale->tr("hours")}</option>
- <option {if $blogTimeOffset == -13} selected="selected"{/if} value="-13">-13 {$locale->tr("hours")}</option>
- <option {if $blogTimeOffset == -12} selected="selected"{/if} value="-12">-12 {$locale->tr("hours")}</option>
- <option {if $blogTimeOffset == -11} selected="selected"{/if}value="-11">-11 {$locale->tr("hours")}</option>
- <option {if $blogTimeOffset == -10} selected="selected"{/if}value="-10">-10 {$locale->tr("hours")}</option>
- <option {if $blogTimeOffset == -9} selected="selected"{/if}value="-9">-9 {$locale->tr("hours")}</option>
- <option {if $blogTimeOffset == -8} selected="selected"{/if}value="-8">-8 {$locale->tr("hours")}</option>
- <option {if $blogTimeOffset == -7} selected="selected"{/if}value="-7">-7 {$locale->tr("hours")}</option>
- <option {if $blogTimeOffset == -6} selected="selected"{/if}value="-6">-6 {$locale->tr("hours")}</option>
- <option {if $blogTimeOffset == -5} selected="selected"{/if}value="-5">-5 {$locale->tr("hours")}</option>
- <option {if $blogTimeOffset == -4} selected="selected"{/if}value="-4">-4 {$locale->tr("hours")}</option>
- <option {if $blogTimeOffset == -3} selected="selected"{/if}value="-3">-3 {$locale->tr("hours")}</option>
- <option {if $blogTimeOffset == -2} selected="selected"{/if}value="-2">-2 {$locale->tr("hours")}</option>
- <option {if $blogTimeOffset == -1} selected="selected"{/if}value="-1">-1 {$locale->tr("hours")}</option>
- <option {if $blogTimeOffset == 0} selected="selected"{/if}value="0">0 {$locale->tr("hours")}</option>
- <option {if $blogTimeOffset == 1} selected="selected"{/if}value="1">+1 {$locale->tr("hours")}</option>
- <option {if $blogTimeOffset == 2} selected="selected"{/if}value="2">+2 {$locale->tr("hours")}</option>
- <option {if $blogTimeOffset == 3} selected="selected"{/if}value="3">+3 {$locale->tr("hours")}</option>
- <option {if $blogTimeOffset == 4} selected="selected"{/if}value="4">+4 {$locale->tr("hours")}</option>
- <option {if $blogTimeOffset == 5} selected="selected"{/if}value="5">+5 {$locale->tr("hours")}</option>
- <option {if $blogTimeOffset == 6} selected="selected"{/if}value="6">+6 {$locale->tr("hours")}</option>
- <option {if $blogTimeOffset == 7} selected="selected"{/if}value="7">+7 {$locale->tr("hours")}</option>
- <option {if $blogTimeOffset == 8} selected="selected"{/if}value="8">+8 {$locale->tr("hours")}</option>
- <option {if $blogTimeOffset == 9} selected="selected"{/if}value="9">+9 {$locale->tr("hours")}</option>
- <option {if $blogTimeOffset == 10} selected="selected"{/if}value="10">+10 {$locale->tr("hours")}</option>
- <option {if $blogTimeOffset == 11} selected="selected"{/if}value="11">+11 {$locale->tr("hours")}</option>
- <option {if $blogTimeOffset == 12} selected="selected"{/if}value="12">+12 {$locale->tr("hours")}</option>
- <option {if $blogTimeOffset == 13} selected="selected"{/if} value="13">+13 {$locale->tr("hours")}</option>
- <option {if $blogTimeOffset == 14} selected="selected"{/if} value="14">+14 {$locale->tr("hours")}</option>
- <option {if $blogTimeOffset == 15} selected="selected"{/if} value="15">+15 {$locale->tr("hours")}</option>
- <option {if $blogTimeOffset == 16} selected="selected"{/if} value="16">+16 {$locale->tr("hours")}</option>
- <option {if $blogTimeOffset == 17} selected="selected"{/if} value="17">+17 {$locale->tr("hours")}</option>
- <option {if $blogTimeOffset == 18} selected="selected"{/if} value="18">+18 {$locale->tr("hours")}</option>
- <option {if $blogTimeOffset == 19} selected="selected"{/if} value="19">+19 {$locale->tr("hours")}</option>
- <option {if $blogTimeOffset == 20} selected="selected"{/if} value="20">+20 {$locale->tr("hours")}</option>
- </select>
- {include file="$admintemplatepath/validate.template" field=blogTimeOffset message=$locale->tr("error_incorrect_time_offset")}
- </div>
-
- <div class="field">
<label for="blogResourcesQuota">{$locale->tr("quota")}</label>
<div class="formHelp">{$locale->tr("blog_quota_help")}</div>
<input type="text" id="blogResourcesQuota" name="blogResourcesQuota" value="{$blogResourcesQuota}" />
- {include file="$admintemplatepath/validate.template" field=blogResourcesQuota message=$locale->tr("error_invalid_number")}
+ {include file="$admintemplatepath/validate.template" field=blogResourcesQuota}
</div>
-
+ </div>
+ <div style="float:right;width:50%">
<div class="field">
<label for="blog_users">{$locale->tr("users")}</label>
<div class="formHelp">{$locale->tr("blog_users_help")}</div>
{assign var=owner value=$editblog->getOwnerInfo()}
+ <div style="overflow:auto;height:250px">
{foreach from=$blogusers item=bloguser}
{if $owner->getUsername() != $bloguser->getUsername()}
{check_perms adminperm=edit_blog_admin_mode}<a href="?op=adminBlogSelect&blogId={$editblog->getId()}&action=editBlogUser&userId={$bloguser->getId()}">{/check_perms}{$bloguser->getUsername()}{check_perms adminperm=edit_blog_admin_mode}</a>{/check_perms}<br/>
{/if}
+ </div>
{/foreach}
- {check_perms adminperm=edit_blog_admin_mode}<a href="?op=adminBlogSelect&blogId={$editblog->getId()}&action=newBlogUser">{$locale->tr("add")}</a>{/check_perms}
</div>
+ </div>
</fieldset>
<div class="buttons">
<input type="reset" name="resetButton" value="{$locale->tr("reset")}" />
@@ -170,7 +93,4 @@
<input type="hidden" name="op" value="updateEditBlog" />
<input type="hidden" name="blogId" value="{$editblog->getId()}"/>
</div>
- </form>
-
-{include file="$admintemplatepath/footernavigation.template"}
-{include file="$admintemplatepath/footer.template"}
+ </form>
\ No newline at end of file
More information about the pLog-svn
mailing list