[pLog-svn] r5165 - in plugins/branches/lifetype-1.2/unported/mailcentre: . class/action class/view locale templates

oscar at devel.lifetype.net oscar at devel.lifetype.net
Fri Mar 23 07:53:49 EDT 2007


Author: oscar
Date: 2007-03-23 07:53:49 -0400 (Fri, 23 Mar 2007)
New Revision: 5165

Modified:
   plugins/branches/lifetype-1.2/unported/mailcentre/class/action/mailcentredeletesentmailaction.class.php
   plugins/branches/lifetype-1.2/unported/mailcentre/class/action/mailcentresendmail.class.php
   plugins/branches/lifetype-1.2/unported/mailcentre/class/action/mailcentresendmessage.class.php
   plugins/branches/lifetype-1.2/unported/mailcentre/class/action/mailcentresentmail.class.php
   plugins/branches/lifetype-1.2/unported/mailcentre/class/action/mailcentreuserselectoraction.class.php
   plugins/branches/lifetype-1.2/unported/mailcentre/class/action/mailcentreviewsentmail.class.php
   plugins/branches/lifetype-1.2/unported/mailcentre/class/view/mailcentresendmessageview.class.php
   plugins/branches/lifetype-1.2/unported/mailcentre/class/view/mailcentreuserselectorview.class.php
   plugins/branches/lifetype-1.2/unported/mailcentre/locale/locale_en_UK.php
   plugins/branches/lifetype-1.2/unported/mailcentre/pluginmailcentre.class.php
   plugins/branches/lifetype-1.2/unported/mailcentre/templates/userselector.template
Log:
Plugin mailcentre ported and working in LifeType 1.2.


Modified: plugins/branches/lifetype-1.2/unported/mailcentre/class/action/mailcentredeletesentmailaction.class.php
===================================================================
--- plugins/branches/lifetype-1.2/unported/mailcentre/class/action/mailcentredeletesentmailaction.class.php	2007-03-23 10:39:39 UTC (rev 5164)
+++ plugins/branches/lifetype-1.2/unported/mailcentre/class/action/mailcentredeletesentmailaction.class.php	2007-03-23 11:53:49 UTC (rev 5165)
@@ -1,12 +1,12 @@
 <?php
 
-	lt_include( PLOG_CLASS_PATH."class/action/admin/siteadminaction.class.php" );
+	lt_include( PLOG_CLASS_PATH."class/action/admin/adminaction.class.php" );
     lt_include( PLOG_CLASS_PATH."class/data/validator/integervalidator.class.php" );
 	lt_include( PLOG_CLASS_PATH."class/data/validator/arrayvalidator.class.php" );
 	lt_include( PLOG_CLASS_PATH."plugins/mailcentre/class/view/mailcentremessagelistview.class.php" );
 	lt_include( PLOG_CLASS_PATH."plugins/mailcentre/class/dao/mailmessages.class.php" );		
 
-    class MailCentreDeleteSentMailAction extends SiteAdminAction 
+    class MailCentreDeleteSentMailAction extends AdminAction 
 	{
 
         var $_messageIds;
@@ -29,6 +29,8 @@
 			$view = new MailCentreMessageListView( $this->_blogInfo );
 			$view->setErrorMessage( $this->_locale->tr("mailcentre_error_deleting_messages"));
 			$this->setValidationErrorView( $view );
+
+            $this->requireAdminPermission( "manage_plugin_admincentre" );            
         }
 		
 		/**

Modified: plugins/branches/lifetype-1.2/unported/mailcentre/class/action/mailcentresendmail.class.php
===================================================================
--- plugins/branches/lifetype-1.2/unported/mailcentre/class/action/mailcentresendmail.class.php	2007-03-23 10:39:39 UTC (rev 5164)
+++ plugins/branches/lifetype-1.2/unported/mailcentre/class/action/mailcentresendmail.class.php	2007-03-23 11:53:49 UTC (rev 5165)
@@ -1,14 +1,23 @@
 <?php
 
-	lt_include( PLOG_CLASS_PATH."class/action/admin/siteadminaction.class.php" );
+	lt_include( PLOG_CLASS_PATH."class/action/admin/adminaction.class.php" );
 	lt_include( PLOG_CLASS_PATH."plugins/mailcentre/class/view/mailcentresendmessageview.class.php" );
 	
-	class MailCentreSendMail extends SiteAdminAction
+	class MailCentreSendMail extends AdminAction
 	{
+        function MailCentreSendMail( $actionInfo, $request )
+        {
+            $this->AdminAction( $actionInfo, $request );
+
+            $this->requireAdminPermission( "manage_plugin_admincentre" );                
+        }
+        
 		function perform()
 		{
 			$this->_view = new MailCentreSendMessageView( $this->_blogInfo );
 			$this->setCommonData();
+
+            $this->requireAdminPermission( "manage_plugin_admincentre" );
 			
 			return( true );
 		}

Modified: plugins/branches/lifetype-1.2/unported/mailcentre/class/action/mailcentresendmessage.class.php
===================================================================
--- plugins/branches/lifetype-1.2/unported/mailcentre/class/action/mailcentresendmessage.class.php	2007-03-23 10:39:39 UTC (rev 5164)
+++ plugins/branches/lifetype-1.2/unported/mailcentre/class/action/mailcentresendmessage.class.php	2007-03-23 11:53:49 UTC (rev 5165)
@@ -1,30 +1,32 @@
-<?php
-
-	lt_include( PLOG_CLASS_PATH."class/action/admin/siteadminaction.class.php" );
+<?php
+
+	lt_include( PLOG_CLASS_PATH."class/action/admin/adminaction.class.php" );
 	lt_include( PLOG_CLASS_PATH."class/data/validator/stringvalidator.class.php" );
 	lt_include( PLOG_CLASS_PATH."class/data/validator/emailvalidator.class.php" );	
 	lt_include( PLOG_CLASS_PATH."class/mail/emailservice.class.php" );
-	lt_include( PLOG_CLASS_PATH."class/mail/emailmessage.class.php" );	
-	lt_include( PLOG_CLASS_PATH."plugins/mailcentre/class/view/mailcentresendmessageview.class.php" );
+	lt_include( PLOG_CLASS_PATH."class/mail/emailmessage.class.php" );
+	lt_include( PLOG_CLASS_PATH."plugins/mailcentre/class/view/mailcentresendmessageview.class.php" );
 	lt_include( PLOG_CLASS_PATH."plugins/mailcentre/class/view/mailcentremessagelistview.class.php" );
 	lt_include( PLOG_CLASS_PATH."plugins/mailcentre/class/dao/mailmessages.class.php" );
-	lt_include( PLOG_CLASS_PATH."class/dao/users.class.php" );
-	
-	class MailCentreSendMessage extends SiteAdminAction
-	{
-		
-		function MailCentreSendMessage( $actionInfo, $request )
-		{
-			$this->SiteAdminAction( $actionInfo, $request );
-			
-			$this->registerFieldValidator( "messageSubject", new StringValidator());
+	lt_include( PLOG_CLASS_PATH."class/dao/users.class.php" );
+	
+	class MailCentreSendMessage extends AdminAction
+	{
+		
+		function MailCentreSendMessage( $actionInfo, $request )
+		{
+			$this->AdminAction( $actionInfo, $request );
+			
+			$this->registerFieldValidator( "messageSubject", new StringValidator());
 			$this->registerFieldValidator( "messageText", new StringValidator());
 			$this->registerField( "messageRecipient" );
 			$this->registerField( "messageCc" );
-			$this->registerField( "messageBcc" );						
-			$view = new MailCentreSendMessageView( $this->_blogInfo );
-			$view->setErrorMessage( $this->_locale->tr("mailcentre_error_sending_message" ));
-			$this->setValidationErrorView( $view );		
+			$this->registerField( "messageBcc" );
+			$view = new MailCentreSendMessageView( $this->_blogInfo );
+			$view->setErrorMessage( $this->_locale->tr("mailcentre_error_sending_message" ));
+			$this->setValidationErrorView( $view );
+
+            $this->requireAdminPermission( "manage_plugin_admincentre" );            
 		}
 		
 		/** 
@@ -60,9 +62,9 @@
 		      }
 		      
 		      return( $recipients );
-		}
-		
-		function perform()
+		}
+		
+		function perform()
 		{
 		    // extract the data
 		    $recipients = $this->_request->getValue( "messageRecipient" );
@@ -74,7 +76,7 @@
 		    // check that we've got either a 'to','cc' or 'bcc'
 		    if( $recipients == "" && $recipientsCc == "" && $recipientsBcc == "" ) {
 		        // force an error
-    			$this->_view = new MailCentreSendMessageView( $this->_blogInfo );
+    			$this->_view = new MailCentreSendMessageView( $this->_blogInfo );
 	   		    $this->_view->setErrorMessage( $this->_locale->tr("mailcentre_error_sending_message" ));
 	   		    $this->_form->setFieldValidationStatus( "messageRecipient", false );
 	   		    $this->setCommonData( true );
@@ -138,7 +140,7 @@
 		    // check that we are really sending the message to somebody
 		    if( $totalTo == 0 && $totalCc == 0 && $totalBcc == 0 ) {
 		        // force an error
-    			$this->_view = new MailCentreSendMessageView( $this->_blogInfo );
+    			$this->_view = new MailCentreSendMessageView( $this->_blogInfo );
 	   		    $this->_view->setErrorMessage( $this->_locale->tr("mailcentre_error_sending_message" ));
 	   		    $this->_form->setFieldValidationStatus( "messageRecipient", false );
 	   		    $this->setCommonData( true );		    
@@ -181,9 +183,9 @@
 		    // show the resulting view
 			$this->_view = new MailCentreMessageListView( $this->_blogInfo );
 			$this->_view->setSuccessMessage( $this->_locale->tr("mailcentre_message_sent_ok"));
-            $this->setCommonData();
-			
-			return( true );
-		}
-	}
+            $this->setCommonData();
+			
+			return( true );
+		}
+	}
 ?>
\ No newline at end of file

Modified: plugins/branches/lifetype-1.2/unported/mailcentre/class/action/mailcentresentmail.class.php
===================================================================
--- plugins/branches/lifetype-1.2/unported/mailcentre/class/action/mailcentresentmail.class.php	2007-03-23 10:39:39 UTC (rev 5164)
+++ plugins/branches/lifetype-1.2/unported/mailcentre/class/action/mailcentresentmail.class.php	2007-03-23 11:53:49 UTC (rev 5165)
@@ -1,14 +1,16 @@
 <?php
 
-	lt_include( PLOG_CLASS_PATH."class/action/admin/siteadminaction.class.php" );
+	lt_include( PLOG_CLASS_PATH."class/action/admin/adminaction.class.php" );
 	lt_include( PLOG_CLASS_PATH."plugins/mailcentre/class/view/mailcentremessagelistview.class.php" );
 	
-	class MailCentreSentMail extends SiteAdminAction
+	class MailCentreSentMail extends AdminAction
 	{
 		
 		function MailCentreSentMail( $actionInfo, $request )
 		{
-			$this->SiteAdminAction( $actionInfo, $request );
+			$this->AdminAction( $actionInfo, $request );
+
+            $this->requireAdminPermission( "manage_plugin_admincentre" );            
 		}
 		
 		function perform()

Modified: plugins/branches/lifetype-1.2/unported/mailcentre/class/action/mailcentreuserselectoraction.class.php
===================================================================
--- plugins/branches/lifetype-1.2/unported/mailcentre/class/action/mailcentreuserselectoraction.class.php	2007-03-23 10:39:39 UTC (rev 5164)
+++ plugins/branches/lifetype-1.2/unported/mailcentre/class/action/mailcentreuserselectoraction.class.php	2007-03-23 11:53:49 UTC (rev 5165)
@@ -1,22 +1,24 @@
-<?php
-
-	lt_include( PLOG_CLASS_PATH."class/action/admin/siteadminaction.class.php" );
+<?php
+
+	lt_include( PLOG_CLASS_PATH."class/action/admin/adminaction.class.php" );
 	lt_include( PLOG_CLASS_PATH."plugins/mailcentre/class/view/mailcentreuserselectorview.class.php" );
-		
-	class MailCentreUserSelectorAction extends SiteAdminAction
-	{
-		
-		function MailCentreUserSelectorAction( $actionInfo, $request )
-		{
-			$this->SiteAdminAction( $actionInfo, $request );			
-		}
-		
-		function perform()
-		{
-			$this->_view = new MailCentreUserSelectorView( $this->_blogInfo );
-			$this->setCommonData();
-			
-			return( true );
-		}
-	}
+		
+	class MailCentreUserSelectorAction extends AdminAction
+	{
+		
+		function MailCentreUserSelectorAction( $actionInfo, $request )
+		{
+			$this->AdminAction( $actionInfo, $request );
+
+            $this->requireAdminPermission( "manage_plugin_admincentre" );            
+		}
+		
+		function perform()
+		{
+			$this->_view = new MailCentreUserSelectorView( $this->_blogInfo );
+			$this->setCommonData();
+			
+			return( true );
+		}
+	}
 ?>
\ No newline at end of file

Modified: plugins/branches/lifetype-1.2/unported/mailcentre/class/action/mailcentreviewsentmail.class.php
===================================================================
--- plugins/branches/lifetype-1.2/unported/mailcentre/class/action/mailcentreviewsentmail.class.php	2007-03-23 10:39:39 UTC (rev 5164)
+++ plugins/branches/lifetype-1.2/unported/mailcentre/class/action/mailcentreviewsentmail.class.php	2007-03-23 11:53:49 UTC (rev 5165)
@@ -1,28 +1,30 @@
-<?php
-
-	lt_include( PLOG_CLASS_PATH."class/action/admin/siteadminaction.class.php" );
+<?php
+
+	lt_include( PLOG_CLASS_PATH."class/action/admin/adminaction.class.php" );
 	lt_include( PLOG_CLASS_PATH."plugins/mailcentre/class/view/mailcentresendmessageview.class.php" );
 	lt_include( PLOG_CLASS_PATH."plugins/mailcentre/class/view/mailcentremessagelistview.class.php" );	
     lt_include( PLOG_CLASS_PATH."plugins/mailcentre/class/dao/mailmessages.class.php" );
-    lt_include( PLOG_CLASS_PATH."class/data/validator/integervalidator.class.php" );
+    lt_include( PLOG_CLASS_PATH."class/data/validator/integervalidator.class.php" );
 	
 	/**
 	 * displays a non-editable view of a message sent before
-	 */
-	class MailCentreViewSentMail extends SiteAdminAction
+	 */
+	class MailCentreViewSentMail extends AdminAction
 	{
 	    function MailCentreViewSentMail( $actionInfo, $request )
 	    {
-	        $this->SiteAdminAction( $actionInfo, $request );
+	        $this->AdminAction( $actionInfo, $request );
 	        
 	        // check that the message id parameter is valid
 	        $this->registerFieldValidator( "messageId", new IntegerValidator());
 	        $view = new MailCentreMessageListView( $this->_blogInfo );
 	        $view->setErrorMessage( $this->_locale->tr( "mailcentre_incorrect_message_id" ));
 	        $this->setValidationErrorView( $view );
+
+            $this->requireAdminPermission( "manage_plugin_admincentre" );            
 	    }
-	
-		function perform()
+	
+		function perform()
 		{
 		    // try to load the message
 		    $messageId = $this->_request->getValue( "messageId" );
@@ -38,17 +40,17 @@
 	            return( false );    
 		    }
 		
-		    // pass the data to the template if everything's ok  
+		    // pass the data to the template if everything's ok 
 			$this->_view = new MailCentreSendMessageView( $this->_blogInfo, false );
 			$this->_view->setValue( "messageRecipient", $message->getTo());
 			$this->_view->setValue( "messageBcc", $message->getBcc());
 			$this->_view->setValue( "messageCc", $message->getCc());			
 			$this->_view->setValue( "messageText", $message->getText());
 			$this->_view->setValue( "messageSubject", $message->getSubject());
-			$this->_view->setValue( "messageSentDate", $message->getSentTimestamp());
-			$this->setCommonData();
-			
-			return( true );
-		}
-	}
+			$this->_view->setValue( "messageSentDate", $message->getSentTimestamp());
+			$this->setCommonData();
+			
+			return( true );
+		}
+	}
 ?>
\ No newline at end of file

Modified: plugins/branches/lifetype-1.2/unported/mailcentre/class/view/mailcentresendmessageview.class.php
===================================================================
--- plugins/branches/lifetype-1.2/unported/mailcentre/class/view/mailcentresendmessageview.class.php	2007-03-23 10:39:39 UTC (rev 5164)
+++ plugins/branches/lifetype-1.2/unported/mailcentre/class/view/mailcentresendmessageview.class.php	2007-03-23 11:53:49 UTC (rev 5165)
@@ -1,16 +1,16 @@
-<?php
-
-	lt_include( PLOG_CLASS_PATH."class/view/admin/adminplugintemplatedview.class.php" );
-	
-	class MailCentreSendMessageView extends AdminPluginTemplatedView
+<?php
+
+	lt_include( PLOG_CLASS_PATH."class/view/admin/adminplugintemplatedview.class.php" );
+	
+	class MailCentreSendMessageView extends AdminPluginTemplatedView
 	{
 	    var $_editable;
-			
-		function MailCentreSendMessageView( $blogInfo, $editable = true )
-		{
+			
+		function MailCentreSendMessageView( $blogInfo, $editable = true )
+		{
 			$this->AdminPluginTemplatedView( $blogInfo, "mailcentre", "sendmail" );
 			
-			$this->_editable = $editable;
+			$this->_editable = $editable;
 		}
 		
 		function render()
@@ -18,6 +18,6 @@
 		    $this->setValue( "editable", $this->_editable );
 		    
 		    parent::render();
-		}
-	}
+		}
+	}
 ?>
\ No newline at end of file

Modified: plugins/branches/lifetype-1.2/unported/mailcentre/class/view/mailcentreuserselectorview.class.php
===================================================================
--- plugins/branches/lifetype-1.2/unported/mailcentre/class/view/mailcentreuserselectorview.class.php	2007-03-23 10:39:39 UTC (rev 5164)
+++ plugins/branches/lifetype-1.2/unported/mailcentre/class/view/mailcentreuserselectorview.class.php	2007-03-23 11:53:49 UTC (rev 5165)
@@ -65,7 +65,7 @@
 			
         	// get the users of the blog
             $users = new Users();
-            $siteUsers = $users->getAllUsers( $this->_status, "", $this->_page, DEFAULT_ITEMS_PER_PAGE );
+            $siteUsers = $users->getAllUsers( $this->_status, "", "user ASC", $this->_page, DEFAULT_ITEMS_PER_PAGE );
             $numUsers = $users->getNumUsers( $this->_status );
             
             // in case of problems, empty array...

Modified: plugins/branches/lifetype-1.2/unported/mailcentre/locale/locale_en_UK.php
===================================================================
--- plugins/branches/lifetype-1.2/unported/mailcentre/locale/locale_en_UK.php	2007-03-23 10:39:39 UTC (rev 5164)
+++ plugins/branches/lifetype-1.2/unported/mailcentre/locale/locale_en_UK.php	2007-03-23 11:53:49 UTC (rev 5165)
@@ -33,4 +33,7 @@
 $messages["mailcentre_all_nonblogowners"] = "To Non-blog Owners";
 $messages["mailcentre_special_recipients"] = "Special recipients";
 $messages["viewMessage"] = "View Message";
+$messages["manage_plugin_admincentre_desc"] = "Allow user to use the 'Mail Centre' plugin";
+$messages["sentMessages"] = "Sent Messages";
+$messages["mailcentre_address_added"] = "Address added";
 ?>
\ No newline at end of file

Modified: plugins/branches/lifetype-1.2/unported/mailcentre/pluginmailcentre.class.php
===================================================================
--- plugins/branches/lifetype-1.2/unported/mailcentre/pluginmailcentre.class.php	2007-03-23 10:39:39 UTC (rev 5164)
+++ plugins/branches/lifetype-1.2/unported/mailcentre/pluginmailcentre.class.php	2007-03-23 11:53:49 UTC (rev 5165)
@@ -5,28 +5,30 @@
 	class PluginMailCentre extends PluginBase
 	{
 	
-		function PluginMailCentre()
+		function PluginMailCentre( $source )
 		{
-			$this->PluginBase();		
+			$this->PluginBase( $source );	 	
 		
 			$this->id = "mailcentre";
 			$this->desc = "Allows site administrators to send emails to users";
 			$this->author = "The LifeType Project";
-			$this->locale = Array();				
+            $this->version = "20030723";
+
+            if( $this->getSource() == "admin" ) {
+                    // register our menu entries
+                $this->addMenuEntry( "/menu/adminSettings", "MailCentre", "", "" );	
+                $this->addMenuEntry( "/menu/adminSettings/MailCentre", "composeMessage", "?op=mailcentreSendMail" );
+                $this->addMenuEntry( "/menu/adminSettings/MailCentre", "sentMail", "?op=mailcentreSentMail" );
 			
-			// register our menu entries
-			$this->addMenuEntry( "/menu/adminSettings", "MailCentre", "", "" );	
-			$this->addMenuEntry( "/menu/adminSettings/MailCentre", "composeMessage", "?op=mailcentreSendMail" );
-			$this->addMenuEntry( "/menu/adminSettings/MailCentre", "sentMail", "?op=mailcentreSentMail" );
-			
-			// register a few actions
-			$this->registerAdminAction( "mailcentreSendMail", "MailCentreSendMail" );
-			$this->registerAdminAction( "mailcentreSentMail", "MailCentreSentmail" );			
-			$this->registerAdminAction( "mailcentreSendMessage", "MailCentreSendMessage" );
-			$this->registerAdminAction( "mailcentreUserSelector", "MailCentreUserSelectorAction" );	
-			$this->registerAdminAction( "mailcentreShowMessage", "MailCentreViewSentMail" );
-			$this->registerAdminAction( "mailcentreDeleteMessage", "MailCentreDeleteSentMailAction" );
-			$this->registerAdminAction( "mailcentreDeleteMessages", "MailCentreDeleteSentMailAction" );		
+                    // register a few actions
+                $this->registerAdminAction( "mailcentreSendMail", "MailCentreSendMail" );
+                $this->registerAdminAction( "mailcentreSentMail", "MailCentreSentmail" );			
+                $this->registerAdminAction( "mailcentreSendMessage", "MailCentreSendMessage" );
+                $this->registerAdminAction( "mailcentreUserSelector", "MailCentreUserSelectorAction" );	
+                $this->registerAdminAction( "mailcentreShowMessage", "MailCentreViewSentMail" );
+                $this->registerAdminAction( "mailcentreDeleteMessage", "MailCentreDeleteSentMailAction" );
+                $this->registerAdminAction( "mailcentreDeleteMessages", "MailCentreDeleteSentMailAction" );
+            }
 		}
 		
 		/**
@@ -36,7 +38,17 @@
 		function install()
 		{
 			// check if the database tables are there
-			$this->_checkTables();		
+			$this->_checkTables();
+
+			lt_include( PLOG_CLASS_PATH."class/dao/permissions.class.php" );
+			$perms = new Permissions();
+			
+			// admin-only permisson to allow to use this plugin
+			if( !$perms->getPermissionByName( "manage_plugin_admincentre" )) {
+				$perm = new Permission( "manage_plugin_admincentre", "manage_plugin_admincentre_desc" );
+				$perm->setAdminOnlyPermission( true );
+				$perms->addPermission( $perm );
+			}            
 		}
 		
 		/**

Modified: plugins/branches/lifetype-1.2/unported/mailcentre/templates/userselector.template
===================================================================
--- plugins/branches/lifetype-1.2/unported/mailcentre/templates/userselector.template	2007-03-23 10:39:39 UTC (rev 5164)
+++ plugins/branches/lifetype-1.2/unported/mailcentre/templates/userselector.template	2007-03-23 11:53:49 UTC (rev 5165)
@@ -4,6 +4,7 @@
   <link rel="stylesheet" href="styles/admin.css" type="text/css" />
   <title>pLog Admin</title>
   <script type="text/javascript">
+   var globalTimer = null;
    {literal}
    function setEmailAddress(address,dest)
    {
@@ -22,6 +23,16 @@
      field.value+=','+address;
     else
      field.value+=address;
+
+     // display some feedback
+     var feedback = document.getElementById( "FormInfo" );
+     feedback.style.display = "block";
+     // and make it go away within 3 seconds
+     if( globalTimer != null ) clearTimeout( globalTimer );
+     globalTimer = setTimeout(function() {
+     document.getElementById("FormInfo").style.display = "none";
+     globalTimer = null; },
+     3000 );
    }
    {/literal}
   </script>
@@ -79,23 +90,23 @@
  <fieldset>
   <legend>{$locale->tr("mailcentre_special_recipients")}</legend>
    <div class="list_nav_option">
-    <table cols="2" border="0" width="100%">
-     <tr>
-      <td><a href="javascript:setEmailAddress('[ALL]','{$dest}')">{$locale->tr("all")}</a></td>
-      <td><a href="javascript:setEmailAddress('[ALL_ACTIVE]','{$dest}')">{$locale->tr("mailcentre_all_active_users")}</a></td>
-     </tr>
-     <tr> 
-      <td><a href="javascript:setEmailAddress('[ALL_DISABLED]','{$dest}')">{$locale->tr("mailcentre_all_disabled_users")}</a></td>
-      <td><a href="javascript:setEmailAddress('[ALL_UNCONFIRMED]','{$dest}')">{$locale->tr("mailcentre_all_unconfirmed_users")}</a></td>
-     </tr>
-    </table>
-   </div>
+      <a href="javascript:setEmailAddress('[ALL]','{$dest}')">{$locale->tr("all")}</a> |
+      <a
+ href="javascript:setEmailAddress('[ALL_ACTIVE]','{$dest}')">{$locale->tr("mailcentre_all_active_users")}</a>
+ |
+      <a href="javascript:setEmailAddress('[ALL_DISABLED]','{$dest}')">{$locale->tr("mailcentre_all_disabled_users")}</a> |
+      <a href="javascript:setEmailAddress('[ALL_UNCONFIRMED]','{$dest}')">{$locale->tr("mailcentre_all_unconfirmed_users")}</a>
   </fieldset>
  </form> 
  </div>
  <br style="clear:both">
  </div>            
  
+<div id="FormInfo" style="display:none;padding-left:10px">
+  <img src="imgs/admin/icon_info-16.png" alt="Info" class="InfoIcon" />
+  <p class="InfoText">{$locale->tr("mailcentre_address_added")}</p>
+</div>
+
         <form id="siteUsers" action="admin.php" method="post">
         <div id="list">
   {include file="$admintemplatepath/successmessage.template"}



More information about the pLog-svn mailing list