Exemple #1
0
function SearchFormView($arr_search_field, $arr_order_field, $arr_order_select, $url_options)
{
    $form_search = '<form method="get" action="' . Routes::add_get_parameters($url_options, array()) . '">';
    $form_search .= Utils::set_csrf_key();
    $form_search .= I18n::lang('common', 'order_by', 'Order by') . ': ' . SelectForm('order_field', '', $arr_order_field) . ' ' . I18n::lang('common', 'in_order', 'By order') . ': ' . SelectForm('order_desc', '', $arr_order_select);
    $arr_order_field[0] = $_GET['search_field'];
    $form_search .= '<p>' . I18n::lang('common', 'search', 'Search') . ': ' . TextForm('search_word', '', $_GET['search_word']) . ' ' . I18n::lang('common', 'search_by', 'Search by') . ': ' . SelectForm('search_field', '', $arr_search_field) . '</p><p><input type="submit" value="' . I18n::lang('common', 'send', 'Send') . '"/> <input type="button" value="' . I18n::lang('common', 'reset', 'Reset') . '" onclick="javascript:location.href=\'' . $url_options . '\'"/>';
    $form_search .= '</form></p>';
    echo View::load_view(array(I18n::lang('common', 'order_and_search', 'Order and search'), $form_search), 'content');
}
Exemple #2
0
function questForPics()
{
    global $HTTP_POST_VARS, $xoopsConfig, $xoopsTheme, $xoopsUser, $xoopsLogger, $xoopsMF;
    include XOOPS_ROOT_PATH . "/header.php";
    $cid = $HTTP_POST_VARS["cid"];
    OpenTable();
    echo "<p align=\"center\"><b>" . _MD_QUESTPIC . "</b></p>";
    echo "<table align=\"center\"><tr><td>";
    echo TextForm("submit.php?op=addTutorial&createdir=1&cid={$cid}", _MD_YES);
    echo "</td><td>";
    echo TextForm("submit.php?op=addTutorial&createdir=0&cid={$cid}", _MD_NO);
    echo "</td></tr></table>";
    CloseTable();
    include XOOPS_ROOT_PATH . "/footer.php";
}
<?php

if (isset($_SESSION['admin']) and $_SESSION['admin']) {
    echo '<section>';
    TextForm($website_nav_section3);
    echo '</br>';
    TextForm($website_section_subtitle3);
    echo '</br><div>
	         <div class="wrapper">';
    echo '<form method=post action="index.php">
              <input type=text class="admin" name="JoliHeader1" value="' . $website_joliplume1['content'] . '" />
              <input type=text class="admin" name="JoliHeader2" value="' . $website_joliplume2['content'] . '" />
              <input type=text class="admin" name="JoliHeader3" value="' . $website_joliplume3['content'] . '" />
              <input type=text class="admin" name="JoliHeader4" value="' . $website_joliplume4['content'] . '" />
              <input type=text class="admin" name="JoliHeader5" value="' . $website_joliplume5['content'] . '" />
              <input name="JoliHeader" type="hidden" value="JoliHeader" />
              <input class="admin" type=submit value="" />
            </form>';
    echo '<ul id="filter-container" class="grid cs-style-1"><li id="addIdea">';
    AddIdeaForm($website_joliplume_header);
    echo '</li>';
    for ($link = 0; $link < $max; $link++) {
        echo '<li>';
        UpdateJoliForm($joli_title, $joli_subtitle, $joli_article, $joli_link, $joli_button, $link, $website_joliplume_header, $joli_filter);
        echo '</li>';
    }
    echo '</li></ul></div></div></br></br>';
    echo '</section>';
} else {
    echo '<section><div class="wrapper">
            <ul id="filter-container" class="grid cs-style-1"><li id="addIdea">';
<?php

if (isset($_SESSION['admin']) and $_SESSION['admin'] == 'editor') {
    TextForm($website_welcome_members0, $page);
    echo '$accounts_number_ironhawk ';
    TextForm($website_welcome_members1, $page);
    separator();
    TeamForm($paradoxe01, 'name', $page);
    TeamForm($paradoxe01, 'fonction', $page);
    TeamForm($paradoxe01, 'description', $page);
    separator();
    TeamForm($wuwu, 'name', $page);
    TeamForm($wuwu, 'fonction', $page);
    TeamForm($wuwu, 'description', $page);
    separator();
    TeamForm($pioupiou, 'name', $page);
    TeamForm($pioupiou, 'fonction', $page);
    TeamForm($pioupiou, 'description', $page);
    separator();
    TeamForm($joh, 'name', $page);
    TeamForm($joh, 'fonction', $page);
    TeamForm($joh, 'description', $page);
} else {
    /*------------MEMBER ACTIVITY-------------*/
    if (isset($_SESSION['admin']) and $_SESSION['admin'] == 'standard') {
        $activity = 0;
        $actif_member = $pdo->query('SELECT actif FROM accounts WHERE actif = 1');
        while ($i = $actif_member->fetch()) {
            $activity++;
        }
        $actif_member->closeCursor();
<?php

if (isset($_SESSION['admin']) and $_SESSION['admin'] == 'editor') {
    TextForm($website_iron_system_title, $page);
    echo '<section>';
    ArticleForm($website_iron_system_article, $page);
    echo '</section>';
    separator();
    echo '<section>';
    ArticleForm($website_section3_article0, $page);
    echo '</br>';
    ArticleForm($website_section3_article1, $page);
    echo '</section>';
    echo '<section>';
    ArticleForm($website_section4_article0, $page);
    /*echo '</br>';
      ArticleForm($website_section4_article1, $page);*/
    echo '</section>';
    separator();
    echo '<section>';
    ArticleForm($website_section5_article0, $page);
    /*echo '</br>';
      ArticleForm($website_section5_article1, $page);*/
    echo '</section>';
    echo '<section>';
    ArticleForm($website_section6_article0, $page);
    echo '</br>';
    ArticleForm($website_section6_article1, $page);
    echo '</section>';
    separator();
    echo '<section>';
<?php

if (isset($_SESSION['admin']) and $_SESSION['admin'] == 'editor') {
    TextForm($website_welcome, $page);
    echo '<section>';
    ArticleForm($website_section1_article0, $page);
    echo '</br>';
    ArticleForm($website_section1_article1, $page);
    echo '</section>';
    echo '<section>';
    ArticleForm($website_section2_article0, $page);
    echo '</br>';
    ArticleForm($website_section2_article1, $page);
    echo '</section>';
    separator();
    echo '<section>';
    ArticleForm($website_iron_system0, $page);
    echo '</br>';
    ArticleForm($website_iron_system1, $page);
    echo '</section>';
    echo '<section>';
    ArticleForm($website_hawk_project0, $page);
    echo '</br>';
    ArticleForm($website_hawk_project1, $page);
    echo '</section>';
} else {
    echo '<div>' . '<div class="wrapper">
          <ul id="filter-container" class="grid cs-style-1">';
    echo '<li class="home">
      <figure>
     <section>' . '<article>
Exemple #7
0
function delTutorial()
{
    global $db, $xoopsConfig, $HTTP_POST_VARS, $HTTP_GET_VARS, $myts, $eh;
    if ($HTTP_GET_VARS['ok']) {
        $ok = $HTTP_GET_VARS['ok'];
    } elseif ($HTTP_POST_VARS['ok']) {
        $ok = $HTTP_POST_VARS['ok'];
    }
    if ($ok == 1) {
        xoops_cp_header();
        if ($HTTP_GET_VARS['tid']) {
            $tid = $HTTP_GET_VARS['tid'];
        } else {
            $tid = $HTTP_POST_VARS['tid'];
        }
        OpenTable();
        echo "<center>";
        echo "<h4><font color=\"#ff0000\">";
        echo _MD_WARNINGT . "</font></h4><br>";
        echo "<table><tr><td>\n";
        echo TextForm("index.php?op=delTutorial&tid={$tid}&ok=2", _MD_YES);
        echo "</td><td>\n";
        echo TextForm("index.php", _MD_NO);
        echo "</td></tr></table>\n";
        CloseTable();
        xoops_cp_footer();
    } elseif ($ok == 2) {
        $tid = $HTTP_GET_VARS['tid'];
        $db->query("delete from " . $db->prefix("tutorials") . " where tid=" . $tid . "") or $eh->show("0013");
        redirect_header("index.php", 1, _MD_TUTORIALDELETED);
    } else {
        $cid = $HTTP_POST_VARS["cid"];
        $result = $db->query("select count(*) from " . $db->prefix("tutorials") . " where cid={$cid}");
        list($numrows) = $db->fetch_row($result);
        if ($numrows > 0) {
            xoops_cp_header();
            $result = $db->query("select tid, tname from " . $db->prefix("tutorials") . " where cid={$cid}");
            OpenTable();
            echo "<center><h4>" . _MD_DELETETUTORIAL . "</h4>";
            echo "<form method=post action=index.php>";
            echo "<select name='tid'>";
            echo "<option value=0>" . _MD_SELECT . "</option>";
            while (list($tid, $tname) = $db->fetch_row($result)) {
                $tname = $myts->makeTboxData4Show($tname);
                echo "<option value='{$tid}'>{$tname}</option>";
            }
            echo "</select>";
            echo "<input type=hidden name=op value=delTutorial>\n";
            echo "<input type=hidden name=ok value=1>\n";
            echo "<input type=submit value=" . _MD_CLEAR . ">\n";
            echo "</form></center>";
            CloseTable();
            xoops_cp_footer();
        } else {
            redirect_header("index.php", 2, _MD_NOTUTSAVAILABLE);
        }
    }
}
<?php

if (isset($_SESSION['admin']) and $_SESSION['admin'] == 'editor') {
    TextForm($website_hawk_project_title, $page);
    echo '<section>';
    ArticleForm($website_hawk_project_article, $page);
    echo '</section>';
    separator();
    echo '<section>';
    ArticleForm($website_hawk_project_article0, $page);
    echo '</br>';
    ArticleForm($website_hawk_project_article1, $page);
    echo '</section>';
    echo '<section>';
    ArticleForm($website_hawk_project2, $page);
    echo '</br>';
    ArticleForm($website_hawk_project3, $page);
    echo '</section>';
    separator();
    echo '<section>';
    ArticleForm($website_hawk_project4, $page);
    echo '</br>';
    ArticleForm($website_hawk_project5, $page);
    echo '</section>';
    echo '<section>';
    ArticleForm($website_hawk_project6, $page);
    echo '</br>';
    ArticleForm($website_hawk_project7, $page);
    echo '</section>';
    echo '<section>';
    ArticleForm($website_hawk_project8, $page);