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"); echo ""; echo ""; 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; echo " \n"; echo ""; echo ""; echo "\n"; } echo "
".i18n("Name")."".i18n("Subject")."".i18n("Started")."".i18n("Progress")."".i18n("Duration")."".i18n("ETA")."
$r->name$r->subject$r->started$r->numsent / $r->numtotal"; echo format_duration($duration); echo ""; if($r->numsent) { $emailspersecond=$r->numsent/$duration; $remainingduration=$remaining/$emailspersecond; echo format_duration($remainingduration); } else { echo "Unknown"; } echo "
"; 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"; while($r=mysql_fetch_object($q)) { echo ""; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo "\n"; } echo "
".i18n("Name")."".i18n("Subject")."".i18n("Started")."".i18n("Finished")."".i18n("Total Emails")."
$r->name$r->subject$r->started$r->finished$r->numtotal
\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(); ?>