Crabs Contents Management System

crabs_cms-1.0.4 ©2006-2008 - Christophe Cazajus (crabs-mettre_le_signe_at-crabs-world.com)

~~ / MEMBRE / GESTION / tout_publier.js
Makefile gestion.xsl gestion.css saisie.js index.php index_publie.php tout_publier.php tout_publier.js dossier.php dossier_ajout.php dossier_ajout_done.php dossier_done.php dossier_publie.php dossier_suppr.php article.php article_ajout.php article_done.php article_publie.php article_liste.php article_info.php article_suppr.php document.php document_upload.php document_suppr.php document_liste.php image.php image_upload.php image_suppr.php image_liste.php image_info.php photo.js photo.php photo_upload.php photo_download.php photo_album_modif.php photo_modif.php photo_liste.php photo_info.php photo_album_liste.php photo_album_info.php news.php news_ajout.php news_modifier.php news_done.php news_publie.php editeur.js fichier.php fichier_done.php fichier_cnt.php profil.php profil_done.php passwd.php membre.php calendrier.php calendrier.js cal_done.php forum.php forum.js forum_modif.php
    1 //
    2 // =============================================================================
    3 //  crabs_cms-1.0.4 : Crabs Contents Management System
    4 //  Copyright (C) 2006-2008 : Christophe Cazajus (crabs-mettre_le_signe_at-crabs-world.com)
    5 //
    6 //  Ce source fait partie d'un projet logiciel libre. Vous pouvez le distribuer
    7 //  et/ou le modifier en respectant les termes de la GNU General Public License
    8 //  version 2 ou (suite a votre propre choix) une version ulterieure.
    9 //
   10 //  Ce programme est distribue dans l'espoir qu'il puisse etre utile, mais
   11 //  sans aucune garantie, meme si il est associe a un produit qui vous en
   12 //  propose une. Conformez-vous a la GNU General Public License pour avoir
   13 //  plus de precisions.
   14 //
   15 //  L'auteur ne peut etre tenu responsable de l'utilisation faite des
   16 //  composantes associees a ce projet (en partie ou dans leur totalite).
   17 //
   18 //  Une copie du fichier de la GNU GPL est fournie dans le repertoire DOC
   19 //  de ce projet sous le nom gnu_gpl.txt
   20 //
   21 // =============================================================================
   22 //
   23 var tout_publier_started = false ;
   24 var tout_publier_running = false ;
   25 var hr = getHTTPObject() ;
   26 var ltp, ltp_i ;
   27 
   28 function lancer_tout_publier()
   29     {
   30     bt = document.getElementById('tp_bt') ;
   31     if ( tout_publier_running )
   32         {
   33         tout_publier_running = false ;
   34         bt.value = 'Relancer la publication' ;
   35         }
   36     else
   37         {
   38         list = document.getElementById( 'lpbl' );
   39         val = list.options[list.selectedIndex].value ;
   40         v = val.split(':') ;
   41         tout_publier_running = true ;
   42         bt.value = 'Stopper la publication' ;
   43         document.getElementById('resultat').innerHTML = '' ;
   44         url="tout_publier.php?w=liste_tout_publier&m="+v[0]+"&i="+v[1] ;
   45         hr.open("GET", url, true ) ;
   46         hr.onreadystatechange = listeToutPublier ;
   47         hr.send( null ) ;
   48         }
   49     }
   50 function listeToutPublier()
   51     {
   52     if ( hr.readyState != 4 ) return ;
   53     ltp = hr.responseText.split('|') ;
   54     if ( !tout_publier_started ) ltp_i = -1 ;
   55     tout_publier_started = true ;
   56     publierSuivant() ;
   57     }
   58 
   59 function publierSuivant()
   60     {
   61     if ( ! tout_publier_running ) return ;
   62     ltp_i++ ;
   63     if ( ltp_i < ltp.length )
   64         {
   65         url="tout_publier.php?w="+ltp[ltp_i] ;
   66         delete hr ; hr = getHTTPObject() ;
   67         hr.open("GET", url, true ) ;
   68         hr.onreadystatechange = publierSuivantIsDone ;
   69         hr.send( null ) ;
   70         }
   71     else
   72         {
   73         tout_publier_started = false ;
   74         bt = document.getElementById('tp_bt') ;
   75         tout_publier_running = false ;
   76         bt.value = 'Lancer la publication' ;
   77         }
   78     }
   79 
   80 function publierSuivantIsDone()
   81     {
   82     if ( hr.readyState != 4 ) return ;
   83     resu = document.getElementById('resultat') ;
   84     i=ltp_i+1;
   85     txt = i+'/'+ltp.length+' : ' + hr.responseText + "\n" + resu.innerHTML ;
   86     resu.innerHTML = txt ;
   87     publierSuivant() ;
   88     }
Makefile gestion.xsl gestion.css saisie.js index.php index_publie.php tout_publier.php tout_publier.js dossier.php dossier_ajout.php dossier_ajout_done.php dossier_done.php dossier_publie.php dossier_suppr.php article.php article_ajout.php article_done.php article_publie.php article_liste.php article_info.php article_suppr.php document.php document_upload.php document_suppr.php document_liste.php image.php image_upload.php image_suppr.php image_liste.php image_info.php photo.js photo.php photo_upload.php photo_download.php photo_album_modif.php photo_modif.php photo_liste.php photo_info.php photo_album_liste.php photo_album_info.php news.php news_ajout.php news_modifier.php news_done.php news_publie.php editeur.js fichier.php fichier_done.php fichier_cnt.php profil.php profil_done.php passwd.php membre.php calendrier.php calendrier.js cal_done.php forum.php forum.js forum_modif.php
~~ / MEMBRE / GESTION / tout_publier.js

Haut de page

Contacter crabs

Date de génération : 24/10/2008 21:34