Exemplo n.º 1
1
    if (!$twentyfourhour_format) {
        $checked = $start_hour < 12 ? 'checked="checked"' : "";
        echo '<input name="ampm" type="radio" value="am" ' . $checked . ' />' . date("a", mktime(1, 0, 0, 1, 1, 1970));
        $checked = $start_hour >= 12 ? 'checked="checked"' : "";
        echo '<input name="ampm" type="radio" value="pm" ' . $checked . ' />' . date("a", mktime(13, 0, 0, 1, 1, 1970));
    }
}
echo '</div>' . PHP_EOL;
echo "</td></tr>" . PHP_EOL;
if ($type_affichage_reser == 0) {
    echo '<tr><td class="E">' . PHP_EOL;
    echo '<b>' . get_vocab("duration") . '</b>' . PHP_EOL;
    echo '</td></tr>' . PHP_EOL;
    echo '<tr><td class="CL">' . PHP_EOL;
    echo '<div class="form-group">' . PHP_EOL;
    spinner($duration);
    echo '<select class="form-control" name="dur_units" size="1">' . PHP_EOL;
    if ($enable_periods == 'y') {
        $units = array("periods", "days");
    } else {
        $duree_max_resa_area = grr_sql_query1("SELECT duree_max_resa_area FROM " . TABLE_PREFIX . "_area WHERE id='" . $area . "'");
        if ($duree_max_resa_area < 0) {
            $units = array("minutes", "hours", "days", "weeks");
        } else {
            if ($duree_max_resa_area < 60) {
                $units = array("minutes");
            } else {
                if ($duree_max_resa_area < 60 * 24) {
                    $units = array("minutes", "hours");
                } else {
                    if ($duree_max_resa_area < 60 * 24 * 7) {
Exemplo n.º 2
0
$template->show();
@($new = htmlspecialchars($_GET['new']));
if (array_key_exists('new', $_GET) && @$new == 1) {
    require_once "include/admission/admissionModule_new.php";
} else {
    if (isset($_GET['edit'])) {
        require_once "include/admission/admissionModule_edit.php";
    } else {
        $template->loadTemplateFile("common_table_list.tpl");
        $template->setCurrentBlock("columns");
        $i = 0;
        foreach ($column_titles as $column) {
            if ($i == 0) {
                $template->setVariable("OPTIONS", "data-toggle='class' class='th-sortable'");
                $template->setVariable("COLUMNTITLE", $column);
                $template->setVariable("SPINNER", spinner());
            } else {
                $template->setVariable("COLUMNTITLE", $column);
            }
            $template->parseCurrentBlock();
            $i++;
        }
        $i = 0;
        do {
            $id = $row_inst['id'];
            $department = $row_inst['Department'];
            $coursename = $row_inst['CourseName'];
            $coursecode = $row_inst['CourseCode'];
            $units = $row_inst['Units'];
            $template->setCurrentBlock("id");
            $template->setVariable("ID", $id);