################################################################# ## Phenix Agenda ## http://phenix.gapi.fr ## Written by Stephane TEIL ################################################################# ## MOD Title: Phenix - Modification des statuts de note en agenda quotidien, hedbo, mensuel ## MOD Author: MaxWho17 ## MOD Idea: Gallus20 ## MOD Description: ## ## ## Ce MOD permet de modifier le statut, de toutes les notes sauf privées, sur un agenda ## dont on possède les droits en modification. ## ## When you find a 'AFTER, ADD'-Statement, the Code have to be added after the last ## line quoted in the 'FIND'-Statement. ## When you find a 'BEFORE, ADD'-Statement, the Code have to be added before the ## first line quoted in the 'FIND'-Statement. ## When you find a 'REPLACE WITH'-Statement, the Code quoted in the ## 'FIND'-Statement have to be replaced completely with the quoted Code in the ## 'REPLACE WITH'-Statement. ## ## ############################################################ ##ATTENTION ## Ce Mod s'installe à partir des fichiers originaux de Phenix 4.5 ## Si vous avez intégré le Mod_Phenix_V4.5_Changement_de_statut_d_une_note_V1 vous devez revenir à la version antérieure ############################################################ ## ## ## MOD Version: 1.1.0 ## ## Installation Level: Facile / Easy ## Installation Time: 5 Minutes ## ## Files To Edit: ## agenda_quotidien.php ## agenda_hebdomadaire.php ## agenda_mensuel.php ## agenda_traitement.php ## ############################################################## ## Author Notes: Cette modification est en accors avec l'auteur du script ## Phenix ## ############################################################## ## MOD Historique / History: ## ## 2007-08-31 - Version 1.1.0 ## - correction sur l'enregistrement du statut de la note ## ## 2006-11-24 - Version 1.0.0 ## - version initiale / initial release ## ############################################################## ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD #### ##Avant toute modification, vous devriez effectuer une sauvegarde des fichiers concernés par ce Mod ############################################################## # #-----[ OPEN ]--------------------------------------------- # agenda_quotidien.php # ##-----[ FIND ]--------------------------------------------- # if ($USER_SUBSTITUE==$idUser) # ##-----[ REPLACE WITH ]---------------------------------------- # // MOD Changement de status //if ($USER_SUBSTITUE==$idUser) if ($USER_SUBSTITUE==$idUser || ($AFFECTE_NOTE && !$notePrive)) # #-----[ OPEN ]--------------------------------------------- # agenda_hebdomadaire.php # ##-----[ FIND ]--------------------------------------------- # if ($USER_SUBSTITUE==$idUser) # ##-----[ REPLACE WITH ]---------------------------------------- # // MOD Changement de status //if ($USER_SUBSTITUE==$idUser) if ($USER_SUBSTITUE==$idUser || ($AFFECTE_NOTE && !$notePrive)) # #-----[ OPEN ]--------------------------------------------- # agenda_mensuel.php # ##-----[ FIND ]--------------------------------------------- # if ($USER_SUBSTITUE==$idUser) # ##-----[ REPLACE WITH ]---------------------------------------- # // MOD Changement de status //if ($USER_SUBSTITUE==$idUser) if ($USER_SUBSTITUE==$idUser || ($AFFECTE_NOTE && !$notePrive)) # #-----[ OPEN ]--------------------------------------------- # agenda_traitement.php # ##-----[ FIND ]--------------------------------------------- # $DB_CX->DbQuery("UPDATE ${PREFIX_TABLE}agenda_concerne SET aco_termine= 1-aco_termine WHERE aco_age_id=".$idAge." AND aco_util_id=".$idUser); # ##-----[ REPLACE WITH ]---------------------------------------- # // MOD Changement de status //$DB_CX->DbQuery("UPDATE ${PREFIX_TABLE}agenda_concerne SET aco_termine= 1-aco_termine WHERE aco_age_id=".$idAge." AND aco_util_id=".$idUser); $DB_CX->DbQuery("UPDATE ${PREFIX_TABLE}agenda_concerne SET aco_termine= 1-aco_termine WHERE aco_age_id=".$idAge." AND aco_util_id=".$USER_SUBSTITUE); // Fin MOD Changement de status # #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ # # EoM