示例#1
0
        echo $obj->titre;
        ?>
</h4>
                </div>
                <div class="row">
                    <h6 id="datemov"><em><?php 
        echo $obj->dateSortie;
        ?>
</em></h6>
                </div>
                <div id="<?php 
        echo 'cpt_' . $obj->name;
        ?>
" class="row">                
                    <?php 
        affiche($obj->annee, $obj->mois, $obj->jour);
        ?>
                </div>
            </div>
        </div>
    <?php 
    }
    if ($cpt < 5) {
        ?>
        <div id="notfound">
            <div class="container">
                <div class="row">
                    <div class="twelve columns">
                        <h3>Tu n'as pas trouvé le film que tu recherches ?</h3>
                        <p> Essayes une autre recherche ou envoie nous ta proposition d'ajout sur <a href="proposer-film.php" alt="Proposition film">cette page</a>.</p>
                    </div>
示例#2
0
            }
            $browser_content .= '</tr>';
        }
        //fin while
    } else {
        $browser_content = $msg[4051];
    }
}
//Barre de navigation
$url_base = $PHP_SELF . "?categ=categories&sub=&id_thes=" . $id_thes . "&parent=" . $parent;
if (!$last_param && $pagine) {
    $nav_bar = aff_pagination($url_base, $nbr_lignes, $nb_per_page, $page, 10, false, true);
} else {
    $nav_bar = "";
}
affiche($nav_bar);
exit;
// création du tableau à partir du template et affichage
function affiche($nav_bar = '')
{
    global $categ_browser;
    global $browser_top;
    global $liste_thesaurus;
    global $browser_header;
    global $browser_content;
    global $parent;
    global $user_query;
    $categ_browser = str_replace('!!browser_top!!', $browser_top, $categ_browser);
    $categ_browser = str_replace('!!liste_thesaurus!!', $liste_thesaurus, $categ_browser);
    $categ_browser = str_replace('!!browser_header!!', $browser_header, $categ_browser);
    $categ_browser = str_replace('!!browser_content!!', $browser_content, $categ_browser);
示例#3
0
    $browser_content = $msg[4051];
    affiche();
    exit;
}
$odd_even = 1;
while ($row = mysql_fetch_object($r)) {
    if ($odd_even == 0) {
        $browser_content .= "\t<tr class='odd'>";
        $odd_even = 1;
    } else {
        $browser_content .= "\t<tr class='even'>";
        $odd_even = 0;
    }
    $browser_content .= "<td>";
    $browser_content .= "<a href='" . $base_url . "thes_form&id_thes=" . $row->id_thesaurus . "' >" . $row->libelle_thesaurus . "</a>";
    $browser_content .= "</td></tr>";
}
affiche();
exit;
// création du tableau à partir du template et affichage
function affiche()
{
    global $thes_browser;
    global $browser_content;
    global $action;
    global $browser_header;
    $thes_browser = str_replace('!!browser_header!!', $browser_header, $thes_browser);
    $thes_browser = str_replace('!!browser_content!!', $browser_content, $thes_browser);
    $thes_browser = str_replace('!!action!!', $action, $thes_browser);
    print pmb_bidi($thes_browser);
}
示例#4
0
<?php

include 'commande.php';
if (isset($_GET['nombre']) && isset($_GET['nom'])) {
    $nom = trim($_GET['nom']);
    $nombre = $_GET['nombre'];
    $commande = new Commande($nom, $nombre);
    echo $commande . affiche();
}
示例#5
0
      <form action="<?php 
    echo $_SERVER['PHP_SELF'];
    ?>
" method="<?php 
    echo $method;
    ?>
" encoding="multipart/form-data">
        Nom : <input type="text" name="nom">
        Mot de passe : <input type="password" name="passwd"><br>
        Civilité : <select>
          <option value="1">Mr</option>
          <option value="2">Mme</option>
        </select>
        <input type="checkbox" id="cond"><label for="cond">J'accepte les conditions</label><br>
        Abonnement : <input type="radio" name="abo" value="oui" id="yes"><label for="yes">Oui</label>
        <input type="radio" name="abo" value="non" checked="checked" id="no"><label for="no">Non</label><br>

        Message : <textarea name="message"></textarea><br>
        Pièce jointe : <input type="file" name="pj"><br>
        <input type="submit" name="Envoyer">
        <input type="reset" name="Réinitialiser">
      </form>
    </fieldset>
    <br>
  <?php 
    affiche($method);
}
?>
</body>
</html>