function FormComme4($titre, $champs1, $champs2, $valeur1, $droitmin, $lien, $espace)
{
    // Commentaire servant pour les réseaux (pas besoin d'un double commentaire)
    $verrou = VerifieDroit($droitmin);
    $espace = LigneIni('corps1', $espace);
    $espace = CelluIni(3, '', '', $espace);
    INPUTtexteA($champs1, $valeur1, 'texte', 55, 3, $verrou, $espace);
    html($espace . '<br>' . $titre . ' : ');
    INPUTtexteA($champs2, '', 'texte', 45, 1, $verrou, $espace);
    //html('<span class="hint">Use your real name!</span>');
    $espace = substr($espace, 1, strlen($espace) - 4);
    TRfin($espace);
    return GereRetours($lien, $lien, $espace);
    // Lien non géré proprement.
}
Example #2
0
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 . " &nbsp;&nbsp;—&nbsp;&nbsp; " . $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);
    }
}