Ejemplo n.º 1
0
    $cat_name = "";
    $cat_image = "";
    $cat_language = "";
    $formaction = FUSION_SELF . $aidlink;
    opentable($locale['401']);
}
$image_files = makefilelist(IMAGES_NC, ".|..|index.php", true);
$image_list = makefileopts($image_files, $cat_image);
echo "<form name='addcat' method='post' action='" . $formaction . "'>\n";
echo "<table cellpadding='0' cellspacing='0' width='400' class='center'>\n<tr>\n";
echo "<td width='130' class='tbl'>" . $locale['430'] . "</td>\n";
echo "<td class='tbl'><input type='text' name='cat_name' value='" . $cat_name . "' class='textbox' style='width:200px;' /></td>\n";
echo "</tr>\n<tr>\n";
if (IF_MULTI_LANGUAGE) {
    echo "<td width='130' class='tbl'>" . $locale['437'] . "</td>\n";
    $opts = make_admin_language_opts($cat_language);
    echo "<td class='tbl'><select name='cat_language' class='textbox' style='width:200px;'>\n" . $opts;
    "</select></td>\n";
    echo "</tr>\n<tr>\n";
}
echo "<td width='130' class='tbl'>" . $locale['431'] . "</td>\n";
echo "<td class='tbl'><select name='cat_image' class='textbox' style='width:200px;'>\n" . $image_list . "</select></td>\n";
echo "</tr>\n<tr>\n";
echo "<td align='center' colspan='2' class='tbl'><br />\n";
echo "<input type='submit' name='save_cat' value='" . $locale['432'] . "' class='button' /></td>\n";
echo "</tr>\n</table>\n</form>\n";
closetable();
opentable($locale['402']);
$result = dbquery("SELECT news_cat_id, news_cat_name, news_cat_language FROM " . DB_NEWS_CATS . " ORDER BY news_cat_name");
$rows = dbrows($result);
if ($rows != 0) {
Ejemplo n.º 2
0
     $forum_action = FUSION_SELF . $aidlink;
 }
 if (!isset($_GET['t']) || $_GET['t'] != "forum") {
     opentable($cat_title);
     echo "<form name='addcat' method='post' action='" . $cat_action . "'>\n";
     echo "<table align='center' cellpadding='0' cellspacing='0' width='300'>\n<tr>\n";
     echo "<td class='tbl'>" . $locale['420'] . "<br />\n";
     echo "<input type='text' name='cat_name' value='" . $cat_name . "' class='textbox' style='width:230px;' /></td>\n";
     echo "<td width='50' class='tbl'>";
     if (!isset($_GET['action']) || $_GET['action'] != "edit") {
         echo $locale['421'] . "<br />\n<input type='text' name='cat_order' value='" . $cat_order . "' class='textbox' style='width:45px;' />";
     }
     echo "</td>\n</tr>\n<tr>\n";
     if (IF_MULTI_LANGUAGE_FORUM) {
         echo "<td width='50' colspan='2' class='tbl'>" . $locale['518'] . "<br />\n";
         $opts = make_admin_language_opts($forum_cat_language);
         echo "<select name='cat_language' class='textbox' style='width:200px;'>\n" . $opts . "</select></td>\n";
         echo "</tr>\n<tr>\n";
     }
     echo "<td align='center' colspan='2' class='tbl'>\n";
     echo "<input type='submit' name='save_cat' value='" . $locale['422'] . "' class='button' /></td>\n";
     echo "</tr>\n</table>\n</form>\n";
     closetable();
 }
 if (!isset($_GET['t']) || $_GET['t'] != "cat") {
     $cat_opts = "";
     $sel = "";
     $result2 = dbquery("SELECT forum_id, forum_name FROM " . DB_FORUMS . " WHERE forum_cat='0' ORDER BY forum_order");
     if (dbrows($result2)) {
         while ($data2 = dbarray($result2)) {
             if (isset($_GET['action']) && $_GET['action'] == "edit" && (isset($_GET['t']) && $_GET['t'] == "forum")) {
Ejemplo n.º 3
0
 echo "<td class='tbl'>" . $locale['421'] . "</td>\n";
 echo "<td class='tbl'><input type='text' name='link_url' value='" . $link_url . "' maxlength='200' class='textbox' style='width:240px;' /></td>\n";
 echo "</tr>\n<tr>\n";
 echo "<td class='tbl'>" . $locale['430'] . "</td>\n";
 // Pimped: Seo Site Link
 echo "<td class='tbl'><input type='text' name='link_seo_url' value='" . $link_seo_url . "' maxlength='200' class='textbox' style='width:240px;' /><br /><span class='small'>(" . $locale['431'] . ")</span></td>\n";
 echo "</tr>\n<tr>\n";
 echo "<td class='tbl'>" . $locale['422'] . "</td>\n";
 echo "<td class='tbl'><select name='link_visibility' class='textbox' style='width:150px;'>\n" . $visibility_opts . "</select>\n";
 echo $locale['423'] . "\n<input type='text' name='link_order'  value='" . $link_order . "' maxlength='2' class='textbox' style='width:40px;' />";
 echo "</td>\n</tr>\n<tr>\n";
 if (IF_MULTI_LANGUAGE) {
     // Pimped
     echo "<td class='tbl'>" . $locale['432'] . "</td>\n";
     // Pimped
     $opts = make_admin_language_opts($link_language);
     // Pimped
     echo "<td class='tbl'><select name='link_language' class='textbox' style='width:200px;'>\n" . $opts . "</select></td>\n";
     // Pimped
     echo "</tr>\n<tr>\n";
     // Pimped
 }
 // Pimped
 echo "<td valign='top' class='tbl'>" . $locale['424'] . "</td>\n";
 echo "<td class='tbl'><label><input type='radio' name='link_position' value='1'" . $pos1_check . " /> " . $locale['425'] . "</label><br />\n";
 echo "<label><input type='radio' name='link_position' value='2'" . $pos2_check . " /> " . $locale['426'] . "</label><br />\n";
 echo "<label><input type='radio' name='link_position' value='3'" . $pos3_check . " /> " . $locale['427'] . "</label><hr />\n";
 echo "<label><input type='checkbox' name='link_window' value='1'" . $window_check . " /> " . $locale['428'] . "</label></td>\n";
 echo "</tr>\n<tr>\n";
 echo "<td valign='top' class='tbl'>" . info_helper("site_links") . "</td><td class='tbl'>";
 echo "<input type='submit' name='savelink' value='" . $locale['429'] . "' class='button' /></td>\n";
| http://www.pimped-fusion.net
+----------------------------------------------------------------------------+
| Filename: user_forumpanellocale_include.php
| Version: Pimped Fusion v0.09.00
+----------------------------------------------------------------------------+
| Author: slaughter
+----------------------------------------------------------------------------+
| This program is released as free software under the Affero GPL license.
| You can redistribute it and/or modify it under the terms of this license
| which you can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this copyright header is
| strictly prohibited without written permission from the original author(s).
+---------------------------------------------------------------------------*/
if (!defined("PIMPED_FUSION")) {
    die("Access Denied");
}
if ($profile_method == "input") {
    if (true) {
        echo "<tr>\n";
        echo "<td class='tbl'>" . $locale['uf_forum_panel'] . "</td>\n";
        echo "<td class='tbl'><select name='user_forumpanellocale' class='textbox' style='width:100px;'>\n" . make_admin_language_opts(isset($user_data['user_forumpanellocale']) ? $user_data['user_forumpanellocale'] : "") . "\n</select></td>\n";
        echo "</tr>\n";
    }
} elseif ($profile_method == "display") {
    // Not shown in profile
} elseif ($profile_method == "validate_insert") {
    $db_fields .= ", user_forumpanellocale";
    $db_values .= ", '" . (isset($_POST['user_forumpanellocale']) ? stripinput(trim($_POST['user_forumpanellocale'])) : "all") . "'";
} elseif ($profile_method == "validate_update") {
    $db_values .= ", user_forumpanellocale='" . (isset($_POST['user_forumpanellocale']) ? stripinput(trim($_POST['user_forumpanellocale'])) : "all") . "'";
}