Copyright (C) 2005 James Grant This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; see the file COPYING. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ ?> ".i18n("Active Send Queues")."\n"; $q=mysql_query("SELECT *,UNIX_TIMESTAMP(started) AS ts FROM emailqueue WHERE finished IS NULL ORDER BY started DESC"); if(!$config['emailqueue_lock']) { echo error(i18n("It looks like there's emails waiting to send, but the sending process isnt running."). "
". "".i18n("Click here to manually restart the process").""); } echo ""; echo ""; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo "\n"; while($r=mysql_fetch_object($q)) { echo ""; echo " \n"; echo " \n"; echo " \n"; $remaining=$r->numtotal-$r->numsent; $now=time(); $duration=$now-$r->ts; $num=$r->numsent+$r->numfailed; echo " \n"; echo ""; echo ""; echo ""; echo "\n"; } echo "
".i18n("Name")."".i18n("Subject")."".i18n("Started")."".i18n("Progress")."".i18n("Duration")."".i18n("ETA")."".i18n("Cancel")."
$r->name$r->subject$r->started$num / $r->numtotal"; echo format_duration($duration); echo ""; if($r->numsent || $r->numfailed) { $emailspersecond=($r->numsent+$r->numfailed)/$duration; $remainingduration=$remaining/$emailspersecond; echo format_duration($remainingduration); } else { echo "Unknown"; } echo "id)\">".i18n("cancel")."
"; echo "

\n"; } else { echo notice("No Email Communications are currently being sent out"); ?> ".i18n("Completed Send Queues")."\n"; echo "\n"; echo ""; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; //FIXME: comment bounced until we implement it // echo " \n"; echo "\n"; while($r=mysql_fetch_object($q)) { echo ""; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; //echo " \n"; echo "\n"; } echo "
".i18n("Name")."".i18n("Subject")."".i18n("Started")."".i18n("Finished")."".i18n("Total Emails")."".i18n("Success")."".i18n("Failed")."".i18n("Bounced")."
$r->name$r->subject$r->started$r->finished$r->numtotal$r->numsent$r->numfailed$r->numbounced
\n"; exit; } send_header("Communication Sending Status", array('Committee Main' => 'committee_main.php', 'Administration' => 'admin/index.php', 'Communication' => 'admin/communication.php') ); ?> "; echo "
"; echo "
"; echo "
"; send_footer(); ?>