コード例 #1
0
ファイル: functions.php プロジェクト: kamy333/kamy
function selection_chauffeurs($chauffeur_name = "ALL")
{
    $chauffeur_set = find_all_chauffeurs();
    $chauffeur_name = strtolower($chauffeur_name);
    $output = "";
    while ($chauffeur = mysqli_fetch_assoc($chauffeur_set)) {
        $chauffeur_name_db = strtolower($chauffeur['chauffeur_name']);
        if ($chauffeur_name != $chauffeur_name_db) {
            $output .= "<option ";
            $output .= "value=\"";
            $output .= htmlentities($chauffeur['chauffeur_name'], ENT_COMPAT, 'ut8');
            $output .= " \" >";
            $output .= htmlentities($chauffeur['chauffeur_name'], ENT_COMPAT, 'ut8');
            $output .= "</option>";
            // $output.= "<option value=\'AllerSimple\'>Aller Simple</option>";
        }
    }
    mysqli_free_result($chauffeur_set);
    return $output;
}
コード例 #2
0
ファイル: manage_chauffeur.php プロジェクト: kamy333/kamy
//require_once("../includes/functions.php");
?>

<?php 
require_once '../includes/initialize.php';
?>

<?php 
confirm_logged_in();
if (is_chauffeur()) {
    redirect_to('manage_program.php');
}
?>

<?php 
$chauffeur_set = find_all_chauffeurs();
?>


<?php 
$layout_context = "admin";
$active_menu = "admin";
$stylesheets = "";
$fluid_view = true;
$javascript = "";
include "../includes/layouts/header_2.php";
include "../includes/layouts/nav.php";
?>

<div class="row">
    <?php