[ Index ] |
|
Code source de SPIP Agora 1.4 |
1 <?php 2 /***************************************************** 3 * This file is part of Agora, web based content management system. 4 * 5 * Agora is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; version 2 of the License. 8 * 9 * Agora is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details (file "COPYING"). 13 * 14 * Copyright © Arnaud Martin, Antoine Pitrou et Philippe Rivière. 15 * List of authors detailed in "copyright_fr.html" file. 16 * E-mail : agora@sig.premier-ministre.gouv.fr 17 * Web site : http://www.agora.gouv.fr 18 *****************************************************/ 19 /* 20 * Lancement de queue process en mode recursif 21 * Assurer vous que javascript est bien activé sur votre navigateur 22 * Cette page rafraichit queue process selon la variable vitesse qui par défaut est a 5000 ms 23 * $id$ 24 */ 25 26 require_once ("inc.php"); 27 require_once ("inc_config.php"); 28 require_once(dirname(__FILE__).'/include/bd/inc_newsletter_list_factory.php'); 29 require_once (dirname(__FILE__).'/include/bd/inc_newsletter_instance_factory.php'); 30 require_once (dirname(__FILE__).'/inc_newsletter.php'); 31 $vitesse = 50; // vitesse de raffraichissement toutes les 5 sec 32 debut_page("Newsletter", "documents", "newsletter"); 33 34 //----------------Zone des autorisations------------------------------------------- 35 $authorization = &recuperer_instance_authorization('lancerQueueProcessRecursif', $GLOBALS['connect_id_auteur']); 36 if (!$authorization->isAuthorizedAction()) { 37 echo _T('avis_non_acces_page'); 38 fin_page(); 39 exit; 40 } 41 //----------------Fin de la gestion des autorisations------------------------------ 42 43 if((isset($_GET['activate']))&&($_GET['activate']==true)){ 44 debut_gauche(); 45 debut_droite(); 46 debut_cadre_relief("newsletter-24.gif"); 47 echo _T("patience")."<br />"; 48 ob_start(); 49 require(dirname(__FILE__)."/include/clevermail/admin/queue_process.php"); 50 ob_end_clean(); 51 $pileQueued = &recuperer_instance_newsletter_instance(); 52 $countTotalMail = $pileQueued->countSubscribersQueued(); 53 echo _T("reste_mail_avant").$countTotalMail._T("reste_mail_apres"); 54 fin_cadre_relief(); 55 56 $pileQueuedParModele = &recuperer_instance_list_newsletter(); 57 $tableauOrganiserPostQueued = $pileQueuedParModele->getTabModelePlusQueued(); 58 debut_cadre_relief("newsletter-24.gif"); 59 gros_titre(_T("bilan_lettre")); 60 echo "<div class='centre_controle'><ul>"; 61 if(count($tableauOrganiserPostQueued)==0){ 62 echo _T("lettres_parties"); 63 }else{ 64 foreach($tableauOrganiserPostQueued as $keyTotal => $valueTotal){ 65 echo "<li>"; 66 echo "<h3>".$keyTotal."</h3>"; 67 echo "<ul>"; 68 foreach($valueTotal as $pstId => $valueRow){ 69 echo "<li>"; 70 echo "<div>"; 71 echo $valueRow['pst_subject']."<br />"; 72 $specialPost = &recuperer_instance_newsletter_instance(); 73 $tabPercentage = $specialPost->percentage_left($pstId,$valueRow['lst_id']); 74 echo barreProgression(380, $tabPercentage[0], $tabPercentage[1]); 75 echo "</li>"; 76 } 77 echo "</ul>"; 78 echo "</li><br />"; 79 } 80 } 81 echo "</ul></div>"; 82 fin_cadre_relief(); 83 84 if($countTotalMail>0){ 85 ?> 86 <script language="JavaScript" type="text/javascript"> 87 <!-- 88 setTimeout("lancerQueueProcess()",<?php echo $vitesse;?>); 89 //--> 90 </script> 91 <?php 92 } 93 } 94 ?> 95 <script language="JavaScript" type="text/javascript"> 96 <!-- 97 function lancerQueueProcess(){ 98 window.location = window.location.href 99 } 100 //--> 101 </script>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sat Feb 24 14:40:03 2007 | par Balluche grâce à PHPXref 0.7 |