}
    if (!isset($after[$program_id])) {
        $after[$program_id] = '';
    }
    $before[$program_id] = $before[$program_id] . '<span class="program_inactive">';
    $after[$program_id] = '</span>' . $after[$program_id];
}
addChoice('program_id', $choices);
addChoiceBeforeAndAfter('program_id', $before, $after);
// Address_id
addChoice('invoice_address_id', array('0' => __('No customer set.')));
// Yes/no
addChoice('invoice', array('1' => __('Yes'), '0' => __('No')));
addChoice('invoice_electronic', array('1' => __('Yes'), '0' => __('No')));
addChoice('service_alco', array('1' => __('Yes'), '0' => __('No')));
addChoice('num_person_count', array('1' => __('Yes'), '0' => __('No')));
/* ### GETTING DATA FROM ENTRY OR DEFAULTS ### */
$entry_add = TRUE;
$copy_entry = false;
if ($entry_id != 0 || isset($_GET['copy_entry_id'])) {
    if ($entry_id != 0) {
        $entry_add = FALSE;
    } else {
        $entry_id = $_GET['copy_entry_id'];
        $copy_entry = true;
    }
    $entry = getEntry($entry_id);
    if (!count($entry)) {
        $entry = getEntryDeleted($entry_id);
        if (!count($entry)) {
            echo __('Can\'t find entry');
Exemple #2
0
        return;
    } else {
        if (isset($_POST['sendB'])) {
            addChoice(1, $PDOX, $p, $LINK, $USER);
            return;
        } else {
            if (isset($_POST['sendC'])) {
                addChoice(2, $PDOX, $p, $LINK, $USER);
                return;
            } else {
                if (isset($_POST['sendD'])) {
                    addChoice(3, $PDOX, $p, $LINK, $USER);
                    return;
                } else {
                    if (isset($_POST['sendE'])) {
                        addChoice(4, $PDOX, $p, $LINK, $USER);
                        return;
                    }
                }
            }
        }
    }
} else {
    $PDOX->queryDie("UPDATE {$p}clicker SET guess = 5 WHERE attend = :TODAY", array(':TODAY' => $today));
    $PDOX->queryDie("UPDATE {$p}clicker SET count = count - 1 WHERE count > 0 AND attend = :TODAY", array(':TODAY' => $today));
    header('Location: ' . addSession('index.php'));
    return;
}
$OUTPUT->header();
// Start the document and begin the <head>
$OUTPUT->bodyStart();