コード例 #1
0
ファイル: purchase.php プロジェクト: pmontojo/Blackboard
function view($data)
{
    startOfPage();
    //$title = get_Title();
    //siteTitle("$title");
    //startOfPage();
    //startContent();
    //$content = "this is the title";
    //$title = get_Title();
    //siteTitle("$title");
    echo "<div class='jumbotron'>" . PHP_EOL;
    startContent();
    users_renderLoginForm();
    echo "</div>" . PHP_EOL;
    echo '<hr>' . PHP_EOL;
    echo '<div class="container-narrow">' . PHP_EOL;
    endContent();
    p("<h2>Here is the list of your current enrollments</h2>");
    //users_renderLoginForm();
    $history = $data["Enrollment"];
    h1("Your Enrollments");
    foreach ($history as $enrollment) {
        purchases_render($enrollment);
    }
    endOfPage();
}
コード例 #2
0
ファイル: enrollment.php プロジェクト: beafus/blackboard
function view($data)
{
    startOfPage("esto es el view enrollment");
    siteTitle("Blackboard");
    p("Welcome to Blackboard - Select your subjects!");
    $history = $data["enrollments"];
    h1("Your Subjects");
    foreach ($history as $enrollment) {
        enrollments_render($enrollment);
    }
    endOfPage();
}
コード例 #3
0
ファイル: installation.php プロジェクト: pmontojo/Blackboard
function get_Form()
{
    h1("First step:Create your database");
    echo '<form id="CreateDataBase" action="installation.php" method="POST">       ' . PHP_EOL;
    h3("Introduce a Hostname");
    echo '<p><input name="hostname" type="text"/></p>' . PHP_EOL;
    h3("Introduce an User");
    echo '<p><input name="user" type="text" /></p>' . PHP_EOL;
    h3("Introduce a password");
    echo '<p><input name="password" type="text" /></p>' . PHP_EOL;
    h3("Introduce a name for the database");
    echo '<p><input name="db_name" type="text"/></p>' . PHP_EOL;
    echo '	<input type="submit" value="Submit"/>                     ' . PHP_EOL;
    echo '</form> ';
}
コード例 #4
0
ファイル: details.php プロジェクト: pmontojo/Blackboard
function view($data)
{
    startOfPage();
    echo "<div class='jumbotron'>" . PHP_EOL;
    startContent();
    users_renderLoginForm();
    echo "</div>" . PHP_EOL;
    echo '<div class="container-narrow">' . PHP_EOL;
    endContent();
    $history = $data["Enrollment"];
    h1("Details of this course");
    foreach ($history as $enrollment) {
        //echo $data;
        display_render($enrollment);
    }
    //endOfPage();
}
コード例 #5
0
ファイル: 489.php プロジェクト: badlamer/hhvm
function h1(&$arr, $i)
{
    foreach ($arr as $k => &$v) {
        echo "i={$i} key={$k}\n";
        if ($k == 0) {
            if ($i > 0) {
                h1($arr, $i - 1);
            } else {
                if ($i == 0) {
                    echo "Unsetting key 1\n";
                    unset($arr[1]);
                }
            }
        }
    }
    end($arr);
}
コード例 #6
0
ファイル: shortcodes.php プロジェクト: ankitparsanaa/foodapp
/**
*######################################################################
*#  takeaway heading
*######################################################################
*/
function takeaway_heading($atts)
{
    if (isset($atts['type'])) {
        switch ($atts['type']) {
            case 'h1':
                return h1($atts);
                break;
            case 'h2':
                return h2($atts);
                break;
            case 'h3':
                return h3($atts);
                break;
            case 'h4':
                return h4($atts);
                break;
            case 'h5':
                return h5($atts);
                break;
        }
    }
    return '';
}
コード例 #7
0
ファイル: controller.php プロジェクト: pmontojo/Blackboard
function execute_loginAdm()
{
    $username = $_POST['username'];
    //echo "username is $username";
    $password = $_POST['password'];
    $success = users_checkExists($username, $password);
    //echo $success;
    $admin = users_checkAdmin($username);
    //echo "admin is $admin";
    if ($admin) {
        execute_admin();
        //view courses after logging in
    } else {
        h1("You don't have permission to access this section");
        h3("<a href='index.php?option=courses&view=list'>Click here to be logged as an student</a>");
    }
}
コード例 #8
0
ファイル: fiche.inc.php プロジェクト: Kloadut/noalyss_ynh
$str_add_card = $g_user->check_action(FICADD) == 1 ? $h_add_card_b->input() : "";
/*
 * You show now the result
 */
if ($array == null) {
    echo '<div class="content">';
    echo '<h2 class="info2"> ' . _('Aucune fiche trouvée') . '</h2>';
    echo $str_add_card;
    echo '</div>';
    return;
}
$allcard = isset($_GET['allcard']) ? 1 : 0;
if ($allcard == 0) {
    $fiche_def = new Fiche_Def($cn, $_GET['cat']);
    $fiche_def->get();
    echo h1($fiche_def->label, "");
    echo h2($fiche_def->fd_description, "");
}
echo '<div class="content">';
/* * *********************************************************************************************************************************
 * Liste
 *
 * ******************************************************************************************************************************** */
if ($_GET['histo'] == -1) {
    $write = $g_user->check_action(FICADD);
    /**
     * If ask for move or delete
     */
    if (isset($_POST['action'])) {
        if ($write == 1) {
            $ack = $_POST['f_id'];
コード例 #9
0
ファイル: def_sprintfer.php プロジェクト: najomi/najomi.org
<?php

// def_sprintfer - делает тоже что и def_printfer, но используя функцию sprintf
def_sprintfer('h1', '<h1>%s</h1>');
$v = h1('hello!');
echo ">" . $v . "<";
?>
---
><h1>hello!</h1><
コード例 #10
0
ファイル: index.php プロジェクト: doodzik/homespot_legacy
<?php

require __DIR__ . '/../../init.php';
$tag = new Tag($db, $user->get_id());
$rows = $tag->all();
$content = tag_names_ul($rows);
if (!$content) {
    redirect('/tag/create/index.php?no_tags=1');
}
echo html(title('Homespot - All Tags'), navigation($user->is_authed()) . content(h1("All Tags") . p('tag count: ' . count($rows)) . $content));
?>

コード例 #11
0
ファイル: user.php プロジェクト: beafus/blog
function print_page_title()
{
    h1("Blog World");
}
コード例 #12
0
ファイル: layout.html.php プロジェクト: rcrowley/wheresmycar
<?php

return html(head(meta(array('http-equiv' => 'Content-Type', 'content' => 'text/html; charset=UTF-8')), meta(array('id' => 'viewport', 'name' => 'viewport', 'content' => 'width=320; initial-scale=1.0; ' . 'maximum-scale=1.0; user-scalable=0;')), title(Sc('title'), Sd('title'), ' &mdash; Where&rsquo;s my car?'), title(Sc('title', false), 'Where&rsquo;s my car?'), S('link', array(array('type' => 'text/css', 'rel' => 'stylesheet', 'href' => '/css/style.css')))), body(div(array('id' => 'head'), a(array('href' => '/'), 'Where&rsquo;s my car?')), div(array('id' => 'content'), h1(Sc('title'), Sd('title')), p(array('class' => 'error'), Sc('error'), Sd('error')), p(array('class' => 'status'), Sc('status'), Sd('status')), p(array('class' => 'success'), Sc('success'), Sd('success')), Sl()), div(array('id' => 'foot'), p(Sc('logged_in'), a(array('href' => '/logout'), 'Logout')), p('By ', a(array('href' => 'http://rcrowley.org/'), 'Richard Crowley')))));
コード例 #13
0
ファイル: home.html.php プロジェクト: rcrowley/wheresmycar
<?php

return Snil(form(array('action' => '/report', 'method' => 'post'), Sc('address'), h1(small('Currently:&nbsp; '), Sd('address'), br(), Snil(Sc('sweep', true), small('That street is swept:&nbsp; '), Sd('sweep'), '&nbsp; ', Sif(Sc('inaccurate', true), '(inaccurate)'), Sif(Sc('inaccurate', false), small(small(input(array('type' => 'submit', 'value' => 'Report as inaccurate', 'class' => 'link')))))), Sif(Sc('sweep', false), Sc('impossible', true), small('This address was impossible to geocode')), Sif(Sc('sweep', false), Sc('impossible', false), small('Street sweeping information will be available shortly&nbsp; ', small(a(array('href' => '/home'), 'Refresh')))))), form(array('action' => Sd('URL'), 'method' => 'post'), p(label(array('for' => 'address'), 'My car is at...'), br(), input(array('id' => 'address', 'name' => 'address', 'type' => 'text', 'value' => Sd('new_address'), 'class' => 'text stretch')), br(), 'Only the closest street number and the street name, please.', br(), small('Don&rsquo;t choose a corner address because SF GIS might return inaccurate street sweeping data.&nbsp; Make sure you use the proper side of the street so we can accurately predict the street sweeping schedule.')), p(input(array('type' => 'submit', 'value' => 'Update', 'class' => 'button')))), Sif(Sc('need_confirm_sms'), h2('Confirm your cell phone number for SMS'), form(array('action' => '/confirm/sms', 'method' => 'post'), p(label(array('for' => 'code'), 'SMS confirmation code:'), br(), input(array('id' => 'code', 'name' => 'code', 'type' => 'text', 'class' => 'text stretch')), br(), small('Enter the code sent to your cell phone to have reminders sent to your phone.')), p(input(array('type' => 'submit', 'value' => 'Confirm', 'class' => 'button'))))));
コード例 #14
0
ファイル: 250.php プロジェクト: badlamer/hhvm
<?php

function h1()
{
    $x = array(1, 2, 3, 4);
    next($x);
    $y = $x;
    unset($y[2]);
    var_dump(current($x));
    var_dump(current($y));
}
h1();
コード例 #15
0
ファイル: index.php プロジェクト: doodzik/homespot_legacy
<?php

require __DIR__ . '/../../../init.php';
$error = array();
$tag = new Tag($db, $user->get_id());
if (isset($_GET['no_tags'])) {
    $error['no_tags'] = 'you need tags to use this service';
}
if (isset($_POST['name'])) {
    if (count($error) == 0) {
        $tag->create($_POST['name']);
        redirect('/tags');
    }
}
echo html(title('Homespot - Create Tag'), navigation($user->is_authed()) . content(h1("Create Tag") . input_err($error, 'no_tags') . form('post', input_err($error, 'name') . input('text', 'name') . submit())));
コード例 #16
0
ファイル: def_printfer.php プロジェクト: najomi/najomi.org
<?php

// def_printfer принимает название функции которую надо создать и шаблон.
// Привызове она будет использовать шаблон как первый аргумент для printf.
def_printfer('h1', '<h1>%s</h1>');
h1('hello!');
?>
---
<h1>hello!</h1>
コード例 #17
0
function view()
{
	$b=h1("News").getNews();

	return menuSystem($b);
}
コード例 #18
0
ファイル: rebuild.php プロジェクト: notarzvit/Notarzvit-Tools
function ln($n = 1)
{
    out('', $n);
}
function h1($msg)
{
    ln(2);
    out("-------");
    out($msg);
}
$configFile = dirname(__FILE__) . '/config.php';
if (!file_exists($configFile)) {
    out('Cannot find config.php file!');
    die;
}
require_once $configFile;
h1("Update sources from git...");
chdir($dir);
system("git pull");
system("git submodule update --init --recursive");
h1("Rebuild Propel ORM classes...");
chdir($dir . "/core/orm");
system("../../lib/propel/generator/bin/propel-gen");
h1("Set write permissions for folders...");
$writeDirs = array($dir . '/lib/tcpdf/cache', $dir . '/lib/tcpdf/fonts', $dir . '/lib/tcpdf/images', $dir . '/docs/invoices', $dir . '/docs/reports');
foreach ($writeDirs as $d) {
    out('  * ' . $d);
    chmod($d, 0777);
}
ln();
out("Done!", 2);
コード例 #19
0
ファイル: cwtest.php プロジェクト: zendtech/ibmitoolkit
if ($doAdoptAuthority) {
    echo h2('Adopt authority');
    // Note: only works if you've defined $user and $testPw, and created the user profile.
    echo "About to adopt authority to user {$user}<BR>";
    $start = microtime(true);
    $success = i5_adopt_authority($user, $testPw);
    $end = microtime(true);
    $elapsed = $end - $start;
    if (!$success) {
        echo "Error adopting authority: " . printArray(i5_error()) . "<BR>";
    } else {
        echo "Success adopting authority in {$elapsed} seconds<BR>";
        echo "About to check current user and other variables after adopting authority.<BR>";
        $cmdString = 'RTVJOBA';
        $input = array();
        $output = array('ccsid' => array('ccsid', 'dec(5 0)'), 'dftccsid' => array('defaultCcsid', 'dec(5 0)'), 'curuser' => 'currentUser', 'nbr' => 'jobNumber', 'job' => 'jobName', 'user' => 'jobUser', 'usrlibl' => 'userLibl');
        $commandSuccessful = i5_command($cmdString, $input, $output, $conn);
        if (function_exists('i5_output')) {
            extract(i5_output());
        }
        // i5_output() required if called in a function
        echo "Ran command {$cmdString}. Return: " . OkBad($commandSuccessful) . " with original job user '{$jobUser}', current user '{$currentUser}', CCSID '{$ccsid}', default CCSID '{$defaultCcsid}', job name '{$jobName}', job number '{$jobNumber}', with user liblist '{$userLibl}'.<BR><BR>";
    }
}
$ret = i5_close($conn);
//$conn optional
echo h2('Connection close');
echo "Closed i5 connection. return status: " . OkBad($ret) . ".";
echo h1('End of script');
?>
</html>
コード例 #20
0
ファイル: articleGUI.php プロジェクト: arewold/calcuttagutta
function deleteArticle()
{
    if (isset($_REQUEST['confirmDelete'])) {
        if (mayDeleteArticle($_REQUEST['articleid'])) {
            $feedback = deleteArticleService($_REQUEST['articleid']);
            $result = $feedback[0];
            array_shift($feedback);
            if ($result) {
                echo "Kommentaren eller artikkelen ble slettet.";
                //echo($feedback[0]);
            } else {
                echo "En feil oppstod, kommentaren/artikkelen ble ikke slettet.";
                //echo($feedback[0]);
            }
        } else {
            h3("Du har ikke tillatelse til å slette denne artikkelen.");
        }
    } else {
        h1("Bekreft sletting");
        form_start_post();
        form_hidden("m_c", "deleteArticle");
        form_hidden("confirmDelete", "1");
        form_hidden("articleid", $_REQUEST['articleid']);
        form_submit("submit", "Bekreft sletting");
        form_end();
        br();
        js_backbutton("Avbryt");
    }
}
コード例 #21
0
ファイル: index.php プロジェクト: doodzik/homespot_legacy
<?php

require __DIR__ . '/../../init.php';
echo html(title('Homespot - About'), navigation($user->is_authed()) . navigation($user->is_authed()) . content(h1('About') . p('A skateboard tricks todo website') . p('Never forget the tricks you want to do') . p('Skateboarding isnt a sport') . p('No css and no js.') . a('check out the mothersite', 'http://321157.eu') . br() . a('check out my personal website', 'http://dudzik.co') . br() . a('check out the source code', 'https://github.com/doodzik/homespot')));
コード例 #22
0
ファイル: index.php プロジェクト: doodzik/homespot_legacy
    }
}
if (isset($_POST['submit']) && $_POST['submit'] == 'reset') {
    if (isset($_POST['trick_ids'])) {
        $trick->reset($_POST['trick_ids']);
        redirect();
    } else {
        $err = 'select at least one track';
    }
}
if (empty($_GET['tag_names'])) {
    $rows = $tag->all_names();
    if (count($rows) > 0) {
        $uri_query = http_build_query(array('tag_names' => $rows));
        redirect("/index.php?{$uri_query}");
    } else {
        redirect('/tag/create/index.php?no_tags=1');
    }
}
$tag_names = $_GET['tag_names'];
$filters = join(', ', $tag_names);
$tags_query = http_build_query(array('tag_names' => $tag_names));
$tricks = $trick->current($tag_names);
$content = trick_names_checkbox_ul($tricks);
if ($content) {
    $content = p('trick count: ' . count($tricks)) . form('post', submit('defer') . submit('reset') . $content);
} else {
    $content = p('you have no more tricks to do');
}
echo html(title('Homespot'), navigation($user->is_authed()) . content(h1("Current Tricks") . $err . a('change filters', '/tricks/current/filter/index.php?' . $tags_query) . br() . p("current filters: {$filters}") . $content));
コード例 #23
0
echo "Done\n";
//*/
///*
echo "----- test using literals, constants, and arbitrary-complex expressions ----\n";
//$a =& 12;     // literals are disallowed
//$a =& CON;    // constants are disallowed
$b = 10;
$a =& $b;
echo "After '=&', \$a is {$a}, \$b is {$b}\n";
//$a =& 5 + $b; // arbitrary-complex expressions are disallowed
echo "After '=&', \$a is {$a}, \$b is {$b}\n";
function h1()
{
    $b = 10;
    return $b + 5;
    //  return 12;
    //  return CON;
}
echo "h1() is " . h1() . "\n";
//*/
///*
function &h2()
{
    $b = 10;
    //  return $b + 5;  // Only variable references should be returned by reference
    //  return 12;
    //  return CON;
}
h2();
echo "Done\n";
//*/
コード例 #24
0
ファイル: first_code.php プロジェクト: Enelar/evamail
subtitle("Шаг №1");
h2("«Долгий, вдумчивый разговор»");
p("Мы достанем и вывалим на стол все из вашего\n  упаковочного чемодана. А дальше мы будем задавать вопросы о вашем бизнесе. Для этого у нас есть файл со 117 вопросами. Ваша задача будет рассказать все, что вы знаете. Длинна беседы в среднем занимает 5-6 часов. Вам нужно будет погрузить нас максимально возможно глубоко в тему.\n  Рассказать про себя, научить продукту, провести по закоулкам своей\n  компании. Мы поедем, если нужно к вам на производство, в офис или склад. Этот шаг самый\n  важный. Все будет фиксироваться на диктофон или камеру.");
subtitle("Шаг №2");
h2("«Выделение и формулировка смыслов»");
p("После этого мы отдадим все ваши записи с диктофонов, листочков, видеозаписей на транскрибацию (перевод из видео/аудио в текст). Скопируем все полотно\n  разговора в Microsoft Office Word и распечаем. На выходе\n  получится стопка в палец, напечатанная мелким шрифтом. Затем цветным маркером мы выделим места, где прозвучала важная/интересная\n  мысль/тезис/смысл. Выделенные смыслы мы формулируем в тезисы. Выбираем самые важные.");
subtitle("Шаг №3");
h2("«Структура и прототип»");
p("В процессе упаковки выбираем инструмент и систему продаж. Это может быть сайт, маркетинг кит, видео,\n  презентация, буклет. У каждого инструмента своя логика, свой ритм и своя\n  структура. На его базе составляем первичный прототип. Это тот порядок и тот\n  формат, в котором будут изложены смыслы.");
subtitle("Шаг №4");
h2("«30 встреч»");
p("Затем мы проходим 30 встреч с потенциальными клиентами\n  вместе со своим прототипом. Корректируем его после каждой встречи. Меняем\n  блоки местами. Удаляем и добавляем новые.");
subtitle("Шаг №5");
h2("«Дизайн, конверсия, производство»");
p("Готовый прототип отрисовывают наши дизайнеры. В процессе добавляем конверсионный слой. Корректируем заголовки. Продумываем следующий шаг и ваше предложение/УТП.");
subtitle("Шаг №6");
h2("«Аналитика и докрутка»");
p("80% результата — это докрутка. Проводим А/Б тесты. Тестируем\n  и постоянно корректируме ваш инструмент. Точим его и совершенствуем.");
h1("И это работает?");
p("Просто посмотрите уже упакованные работы. Мы подготовили 3 наглядных, с цифрами кейсов и прикрепили к письму.");
h1("Это не про всех");
p("Упаковка нужна лишь только тем, кому действительно есть что сказать и упаковать. Тому, кто действительно несет пользу и на 1 единицу цены отдает 10 единиц ценности.");
h1("Мы вас упакуем");
p("Сейчас мы готовы взять 3 производства на полную проработку и упаковку. Мы готовы поручиться за результат. Прямо сейчас (до 00:00 сегодняшнего дня — крайний срок)  ответьте на это письмо и напишите:");
?>
  <ol>
    <li>ФИО</li>
    <li>Телефон</li>
    <li>Город</li>
    <li>В теме письма — «На упаковку»</li>
  </ol>
コード例 #25
0
ファイル: index.php プロジェクト: doodzik/homespot_legacy
<?php

require __DIR__ . '/../../../init.php';
redirect_authed($user);
$error = array();
if (isset($_POST['email'])) {
    $email = $_POST['email'];
    $email_err = validate_email($email);
    if (strlen($email_err) > 0) {
        $error['email'] = $email_err;
    }
    if (count($error) == 0) {
        $uuid = $user->set_token(gen_uuid(), $email);
        if (!is_production()) {
            die("<a href='http://localhost:8080/auth/confirm.php?token={$uuid}'>login</a>");
        }
        send_login_mail($email, $uuid);
        redirect('/auth/confirm.php');
    }
}
echo html(title('Homespot - Sign In/Up'), navigation($user->is_authed()) . content(h1("Sign In/Up") . p('This website uses cookies to check if you are authenticated or not.') . p('By signing in or up you permit us to do so.') . form('post', input_err($error, 'email') . input('email') . submit())));
コード例 #26
0
ファイル: index.php プロジェクト: doodzik/homespot_legacy
<?php

require __DIR__ . '/../../../init.php';
if (empty($_GET['name']) && empty($_POST['name'])) {
    redirect();
}
$trick = new Trick($db, $user->get_id());
if (isset($_POST['name'])) {
    $trick->delete_by_name($_POST['name']);
    redirect('/tricks');
}
$name = $_GET['name'];
echo html(title('Homespot - Delete Trick'), navigation($user->is_authed()) . content(h1("Delete Trick - " . $_GET['name']) . form('post', hidden('name', $_GET['name']) . submit('DELETE'))));
コード例 #27
0
ファイル: refs.php プロジェクト: michaelprem/phc
var_dump($out_f5);
// int(10)
$out_f5 = f5();
var_dump($out_f5);
// int(11) [**]
/*
 * actual_paramter ::= '&' VARIABLE
 *
 * Note the discrepency between this and the previous test. 
 * - If a function _returns_ a symbol table entry, the associated assignment
 *   must also be =& (and not just =; cf. test above)
 * - For a function to _accept_ a symbol table entry, there is a choice:
 *   either you add the & to the formal parameter, or you add the & to the
 *   actual parameter (both is allowed too). 
 */
function h1($in_h1)
{
    $in_h1++;
}
$out_h1 = 5;
h1(&$out_h1);
var_dump($out_h1);
// Outputs 6
function h2(&$in_h2)
{
    $in_h2++;
}
$out_h2 = 5;
h2(&$out_h2);
var_dump($out_h2);
// Outputs 6
コード例 #28
0
ファイル: index.php プロジェクト: doodzik/homespot_legacy
<?php

require __DIR__ . '/../../../../init.php';
$tag = new Tag($db, $user->get_id());
if (isset($_POST['tag_names'])) {
    $uri_query = http_build_query(array('tag_names' => $_POST['tag_names']));
    redirect("/index.php?{$uri_query}");
}
$tags = $tag->all();
$tag_defaults = isset($_GET['tag_names']) ? $_GET['tag_names'] : array();
$content = tag_names_checkbox_ul($tags, $tag_defaults);
if ($content) {
    $content = form('post', $content . submit('filter'));
} else {
    $content = 'you have no tags';
}
echo html(title('Homespot - Filter Current'), navigation($user->is_authed()) . content(h1("Filter Current by Tag") . $content));
コード例 #29
0
ファイル: logic.login.php プロジェクト: atlcurling/tkt
        if ($errors) {
            $presentform = 1;
        } else {
            $errlist = "";
            /* Create user record */
            $user = new User($usernm, $firstnm, $lastnm, $phonenbr, false, $passwd);
            $user->save();
            $user->passwd = "";
            $_SESSION["user"] = $user;
            echo "<p>Congratulations! You have been registered and are logged in.</p>\n";
            $x->log("Registration Succeeded", "New user {$usernm} ({$firstnm} {$lastnm}) has been registered.", $user->userix);
        }
        loginprompt(false);
        break;
    case "logout":
        h1("Logout");
        if (isset($_SESSION) && array_key_exists("user", $_SESSION)) {
            $usernm = $_SESSION["user"]->usernm;
            $userix = $_SESSION["user"]->userix;
            unset($_SESSION["user"]);
            $x->log("Logout Succeeded", "Logout succeeded for {$usernm}", $userix);
        } else {
            $x->log("Logout Succeeded Anonymously", "Anonymous logout succeeded.");
        }
        $usernm = "";
        $userix = 0;
        echo "<p>You have been logged out.</p>";
        loginprompt(false);
        break;
}
if ($presentform) {
コード例 #30
0
}
$p_msg = "";
//----------------------------------------
// Confirm the operations
//----------------------------------------
if (isset($_POST['save'])) {
    try {
        $Ledger->verify($_POST);
    } catch (Exception $e) {
        alert($e->getMessage());
        $p_msg = $e->getMessage();
        $correct = 1;
    }
    if (!isset($correct)) {
        echo '<div class="content">';
        echo h1(_('Confirmation'), '');
        echo_warning(_("Attention, cette opération n'est pas encore sauvée : vous devez encore confirmer"));
        echo '<form name="form_detail" class="print" enctype="multipart/form-data" class="print" METHOD="POST">';
        echo HtmlInput::hidden('ac', $_REQUEST['ac']);
        echo $Ledger->confirm($_POST);
        echo HtmlInput::submit('confirm', _('Confirmer'));
        echo HtmlInput::submit('correct', _('Corriger'));
        echo '</form>';
        echo '</div>';
        return;
    }
}
//----------------------------------------
// Confirm and save  the operations
// into the database
//----------------------------------------