コード例 #1
0
ファイル: utilisateur.php プロジェクト: Zawartek/4event
function accueil()
{
    require_once './Modele/utilisateurs.php';
    $_SESSION['page'] = 'accueil';
    $themes = getThemeEvent();
    $events = recherche();
    include "./Vue/accueil.php";
}
コード例 #2
0
<?php

include "./modele/modele_connexion_bdd.php";
include "./modele/modele_rech.php";
include "./modele/modele_fonction.php";
include "/var/www/wordpress/wp-load.php";
$res_rech = $_POST['res_rech'];
/*$test[0] = "steephen";
	$test[1] = "adolf";
	$test[2] = "hassane";*/
$tous_utilisateurs = tous_utilisateurs();
while ($donnees = $tous_utilisateurs->fetch()) {
    $tous_utilisateur[] = $donnees['pseudo'];
}
$rech_compteur = 0;
foreach ($tous_utilisateur as $res) {
    $recherche = recherche($res, $res_rech);
    if (!empty($recherche)) {
        $rech_compteur++;
        foreach ($recherche as $res) {
            $post_date = explode(" ", $res->post_date);
            $post_content = substr($res->post_content, 0, 400);
            $post_content = str_replace(chr(34), "", $post_content);
            //$post_content = str_split($post_content, 100);
            $rech[] = "<ol><h4><a href=" . $res->guid . " target=_blank><i class='fa fa-compass'></i> " . $res->post_title . "</a></h4></n><h5 style='color:green;'>" . $res->guid . " <i class='fa fa-caret-down'></i></h5></n>" . $post_date[0] . "  <label>" . strip_tags($post_content) . "...</label><label>" . "</label></ol>";
        }
    }
}
include "./vue/page_recherche.php";
コード例 #3
0
ファイル: recherche.php プロジェクト: relaismago/outils
        $modele->description .= ';PV : +';
    }
    if (isset($HTTP_POST_VARS['mm']) && $HTTP_POST_VARS['mm'] == "1") {
        $modele->description .= ';MM : +';
    }
    if (isset($HTTP_POST_VARS['rm']) && $HTTP_POST_VARS['rm'] == "1") {
        $modele->description .= ';RM : +';
    }
    //champ description lui-même
    if (isset($HTTP_POST_VARS['description']) && $HTTP_POST_VARS['description'] != "") {
        $modele->description .= ';' . $HTTP_POST_VARS['description'];
    }
} else {
    $modele->id = "0";
}
$tresors = recherche($modele);
//==================FIN CREATION DU MODELE A PARTIR DES DONNEES POST==================
$button = "<a href='./index.php'>[ Retour à l'index ]</a>";
afficher_titre_tableau('Magasins ' . NOM_GUILDE . '<br/>' . "\nRecherche dans les tanières", $button);
?>

<?php 
//==================DEBUT FORMULAIRE DE RECHERCHE==================
?>
<form action="<?php 
echo $_SERVER['PHP_SELF'];
?>
" method="POST" name="trtRecherche" style="text-align:center; margin-bottom:40px;">
<table class='mh_tdborder' cellspacing="0" width="90%" align="center">
	<tr class='mh_tdpage'>
		<td width="33%">
コード例 #4
0
ファイル: jsonCodex.php プロジェクト: selenith/plasmide
{
    $id = $_GET['idEntite'];
    $arch = new Archiviste();
    $entite = new Entite();
    $entite->set('id', $id);
    $entites = $arch->supprimer($entite);
}
//---------main----------------
session_start();
$auth = new Auth();
$authBundle = $auth->checkStatut();
$action = $_REQUEST['action'];
$reponse = array();
if ($authBundle['statut'] == "connect") {
    if ($action == 'find') {
        $reponse = recherche();
    } else {
        if ($action == 'creerEntite') {
            $reponse = creerEntite($authBundle['login']);
        } else {
            if ($action == 'editEntite') {
                $reponse = editEntite($authBundle['login']);
            } else {
                if ($action == 'infoEntite') {
                    $reponse = infoEntite();
                } else {
                    if ($action == 'supprEntite') {
                        supprEntite();
                    }
                }
            }