function FormCite($titre, $valeur) { // Formulaire : texte simple global $titretablarg; if ($valeur == '') { $valeur = ' '; } LigneIni('corps1'); CelluUni($titre, '', $titretablarg, ''); CelluUni($valeur, '', '', ''); LigneFin(); }
function FormulaireFin($formulaire, $bouton, $titre, $simple, $droitmin) { // if ($simple != 1) { TabletteFin(); LigneFin(); } TableFin(0, 0); html('<br>'); TableIni('', 'rien'); LigneIni(''); CelluIni('', '', ''); FormFin($formulaire, $bouton, $titre, $droitmin); CelluFin(); LigneFin(); TableFin(0, 0); }
function afficheActions($texterequete, $titre, $saisie, $nbtotal, $connexion) { $resultat = ExecRequete("SELECT " . $texterequete, $connexion); $compteur = MYSQL_NUM_ROWS($resultat); if ($compteur > 0) { $objet = ObjetSuivant($resultat); $titre = $titre . " — " . $compteur . " / " . $nbtotal; html('<div class="titrelisteaction">' . $titre . '</div>'); TableIni('970', 'rien'); do { // On ne gère pas ici l'en-tête de tableau, ce que les fonctions font en temps normal. LigneIni(''); Cellule2('Action', $objet->id, 20, 'corpsc1,centre', $saisie); Cellule2('Type', Icones($objet->id, $objet->type), 16, 'corpsnt1', 1); Cellule2('Catégorie', traduitcategorie($objet->categorie), 80, 'corps1', 1); /*corpstc1*/ Cellule2('Projet', $objet->projet, 120, 'corps1', 1); Cellule2('Titre', TitreAction($objet->titre, $objet->note), '', 'corpsg1', 1); /*corpst1*/ Cellule2('Qui', $objet->qui, 70, 'corps1', 1); Cellule2('Evénement', DateLisible($objet->date), 70, 'corps1', 1); Cellule2('Création', DateTexteCoursFr($objet->datesaisie1), 20, 'corps1', $saisie); Cellule2('Modification', DateTexteCoursFr($objet->datesaisie9), 20, 'corps1', $saisie); Cellule2('Edit.', LienEdition($objet->id), 16, 'corpsnt1', 1); //Cellule2('Actions',LienEdition($objet->id).' '.LienReport($objet->id,$objet->periojours,$objet->periomois) // .' '.LienValidation($objet->id).' '.LienSuppression($objet->id),76,'corpsnt2',1); Cellule2('Report', LienReport($objet->id, $objet->periojours, $objet->periomois), 16, 'corpsnt1', 1); Cellule2('Valid.', LienValidation($objet->id), 16, 'corpsnt1', 1); Cellule2('Suppr.', LienSuppression($objet->id), 16, 'corpsnt1', 1); LigneFin(); } while ($objet = ObjetSuivant($resultat)); TableFin(1, 0); } }