X-Git-Url: http://git.cyclocoop.org/?p=velocampus%2Fweb%2Fwww.git;a=blobdiff_plain;f=www%2Fecrire%2Fexec%2Fmessage_edit.php;fp=www%2Fecrire%2Fexec%2Fmessage_edit.php;h=e86a84c34fa1e4e659eb70e8fd46682ff1f53672;hp=0000000000000000000000000000000000000000;hb=80b4d3e85f78d402ed2e73f8f5d1bf4c19962eed;hpb=aaf970bf4cdaf76689ecc10609048e18d073820c diff --git a/www/ecrire/exec/message_edit.php b/www/ecrire/exec/message_edit.php new file mode 100644 index 0000000..e86a84c --- /dev/null +++ b/www/ecrire/exec/message_edit.php @@ -0,0 +1,178 @@ + 3) { + echo icone(_T('info_envoyer_message_prive'), "mailto:".$email, "envoi-message-24.gif"); + } + } + + echo debut_droite('', true); + + $res = "
" + . "$le_type"; + if ($type == "affich") + $res .="

" . _T('texte_message_edit')."

"; + + $res .= '

'."
\n"; + $res .=""; + + if (!$dest) { + if ($type == 'normal') { + $res .="

\n"; + $res .=""; + } + } else { + $nom = sql_getfetsel("nom", "spip_auteurs", "id_auteur=$dest"); + $res .= "
" . + _T('info_nom_destinataire') . + " :   " . + $nom . + "

\n"; + } + $res .= '
'; + + ////////////////////////////////////////////////////// + // Fixer rendez-vous? + // + if ($rv == "oui") $fonction = "rv.gif"; else $fonction = ""; + + $res .= debut_cadre_trait_couleur($logo.".gif", true, $fonction, _T('titre_rendez_vous')) + . afficher_si_rdv($date_heure, $date_fin, ($rv == "oui")) + . fin_cadre_trait_couleur(true) + . "\n


" + . "


\n" + . "\n
" + . "\n
"; + + echo redirige_action_post('editer_message', $id_message, 'message',"id_message=$id_message", $res); + + echo fin_gauche(), fin_page(); + } +} + +// http://doc.spip.org/@afficher_si_rdv +function afficher_si_rdv($date_heure, $date_fin, $choix) +{ + $heures_debut = heures($date_heure); + $minutes_debut = minutes($date_heure); + $heures_fin = heures($date_fin); + $minutes_fin = minutes($date_fin); + + if ($date_fin == "0000-00-00 00:00:00") { + $date_fin = $date_heure; + $heures_fin = $heures_debut + 1; + } + + if ($heures_fin >=24){ + $heures_fin = 23; + $minutes_fin = 59; + } + + $lib = _T('item_non_afficher_calendrier'); + if (!$choix) $lib = "$lib"; + + $res = "\n
" + . "" + . "
"; + + $lib = _T('item_afficher_calendrier'); + if ($choix) $lib = "$lib"; + + $res .= "\n
" . + "" + . '
'; + + $display = ($choix ? "block" : "none"); + + return $res . + "\n
" . + afficher_jour_mois_annee_h_m($date_heure, $heures_debut, $minutes_debut) . + "
". + afficher_jour_mois_annee_h_m($date_fin, $heures_fin, $minutes_fin, '_fin') . + "
"; +} + +?>