示例#1
0
function bandeau_titre($titre)
{
    global $ALLOWED_LANGUAGES;
    $img = IMAGE_TITRE ? '<img src="' . Utils::get_server_name() . IMAGE_TITRE . '" alt="' . NOMAPPLICATION . '" class="img-responsive">' : '';
    echo '
    <header role="banner">';
    if (count($ALLOWED_LANGUAGES) > 1) {
        echo '<form method="post" action="" class="hidden-print">
            <div class="input-group input-group-sm pull-right col-md-2 col-xs-4">
                <select name="lang" class="form-control" title="' . __('Language selector', 'Select the language') . '" >' . liste_lang() . '</select>
                <span class="input-group-btn">
                    <button type="submit" class="btn btn-default btn-sm" title="' . __('Language selector', 'Change the language') . '">OK</button>
                </span>
            </div>
        </form>';
    }
    echo '
        <h1><a href="' . Utils::get_server_name() . '" title="' . __('Generic', 'Home') . ' - ' . NOMAPPLICATION . '">' . $img . '</a></h1>
        <h2 class="lead"><i>' . $titre . '</i></h2>
        <hr class="trait" role="presentation" />
    </header>
    <main role="main">';
    global $connect;
    $tables = $connect->allTables();
    $diff = array_diff([Utils::table('comment'), Utils::table('poll'), Utils::table('slot'), Utils::table('vote')], $tables);
    if (0 != count($diff)) {
        echo '<div class="alert alert-danger">' . __('Error', 'Framadate is not properly installed, please check the "INSTALL" to setup the database before continuing.') . '</div>';
        bandeau_pied();
        die;
    }
}
示例#2
0
echo '<body>' . "\n";
framanav();
//bandeaux de tete
logo();
bandeau_tete();
bandeau_titre(_("Organiser des rendez-vous simplement, librement."));
sous_bandeau();
echo '<div class=corps>' . "\n";
#echo '<p><b>'.NOMAPPLICATION.'<br>'. _("What is it about?") .'</b></p>';
#echo '<p>'. _("Making polls to schedule meetings or events, quickly and easily. <br> You can also run polls to determine what will be your next meeting place, the meeting topic or anything like the country you would like to visit during your next holidays.") .'</p>'."\n".'<br>'."\n";
#echo '<div class="nouveau_sondage"><b>'. _("Make a poll") .'</b>';
#     '<span>' .
#     '<a href="/infos_sondage.php"><img alt="' . _('Make a poll') . '" src="images/next-32.png" /></a>' .
#     '</span>';
#echo '</div>' . "\n";
echo '<br>' . "\n";
echo '<div class="index_date">';
echo '<div><a href="./infos_sondage.php?choix_sondage=date"/><image class="opacity" src="images/date.png"/></a></div>';
echo '<a href="./infos_sondage.php?choix_sondage=date" class="button orange bigrounded"/><strong><img src="images/calendar-32.png" alt="" />' . _('Schedule an event') . '</strong></a>';
echo '</div>';
echo '<div class="index_sondage">';
echo '<div><a href="./infos_sondage.php?choix_sondage=autre"><image class="opacity" src="images/sondage2.png" /></a></div>';
echo '<a href="./infos_sondage.php?choix_sondage=autre" class="button blue bigrounded"><strong><img src="images/chart-32.png" alt="" />' . _('Make a poll') . '</strong></a>';
echo '</div>';
echo '<div style="clear:both;"></div>' . "\n";
echo '</div>' . "\n";
//bandeau de pied
//sur_bandeau_pied();
bandeau_pied();
echo '</body>' . "\n";
echo '</html>' . "\n";