Exemplo n.º 1
0
function form_select($name, $arr, $checked = 0, $id = TRUE)
{
    if (empty($arr)) {
        return '';
    }
    $idadd = $id === TRUE ? "id=\"{$name}\"" : ($id ? "id=\"{$id}\"" : '');
    $s = "<select name=\"{$name}\" {$idadd}> \r\n";
    $s .= form_options($arr, $checked);
    $s .= "</select> \r\n";
    return $s;
}
     $para = 2;
 }
 $sql = "SELECT * FROM " . $cfg["db"]["entries"] . " WHERE " . $cfg["db"]["key"] . "='" . $environment["parameter"][$para] . "'";
 $result = $db->query($sql);
 $data = $db->fetch_array($result, $nop);
 // bilder zum entfernen
 $image_delete = array("extlink.gif", "schlagzeile.gif");
 $form_fields = array("emailfrom", "emailto", "emailzusatz", "emailabsname");
 if (count($HTTP_POST_VARS) == 0) {
     #$form_values["emailfrom"] = "*****@*****.**";
     #$form_values["emailto"] = "*****@*****.**";
 } else {
     $form_values = $HTTP_POST_VARS;
 }
 // form options holen
 $form_options = form_options("1943315524.email");
 // form elememte bauen
 foreach ($form_fields as $key) {
     $form_options[$key]["fsize"] > 0 ? $size = " size=\"" . $form_options[$key]["fsize"] . "\"" : ($size = "");
     $form_options[$key]["fclass"] != "" ? $class = " class=\"" . $form_options[$key]["fclass"] . "\"" : ($class = " class=\"" . $form_defaults["class"]["textfield"] . "\"");
     $form_options[$key]["fstyle"] != "" ? $style = " style=\"" . $form_options[$key]["fstyle"] . "\"" : ($style = "");
     $form_values[$key] != "" ? $value = " value=\"" . $form_values[$key] . "\"" : ($value = "");
     $element[$key] = "<input type=\"text\"" . $size . $class . $style . " name=\"" . $key . "\" " . $value . ">\n";
 }
 /*
 ( $form_options["emailfrom"]["fsize"] > 0 ) ? $size = " size=\"".$form_options["emailfrom"]["fsize"]."\"" : $size = "";
 ( $form_options["emailfrom"]["fclass"] != "" ) ? $class = " class=\"".$form_options["emailfrom"]["fclass"]."\"" : $class = " class=\"".$form_defaults["class"]["textfield"]."\"";
 ( $form_options["emailfrom"]["fstyle"] != "" ) ? $style = " style=\"".$form_options["emailfrom"]["fstyle"]."\"" : $style = "";
 
 ( $form_values["emailfrom"] != "" ) ? $value = " value=\"".$form_values["emailfrom"]."\"" : $value = "";
 
if (priv_check($cfg["bannered"]["basis"], $cfg["bannered"]["right"])) {
    // page basics
    // ***
    //        if ( count($_POST) == 0 ) {
    //            $sql = "SELECT *
    //                      FROM ".$cfg["bannered"]["db"]["banner"]["entries"]."
    //                     WHERE ".$cfg["bannered"]["db"]["banner"]["key"]."='".$environment["parameter"][1]."'";
    //            if ( $debugging["sql_enable"] ) $debugging["ausgabe"] .= "sql: ".$sql.$debugging["char"];
    //            $result = $db -> query($sql);
    //            $form_values = $db -> fetch_array($result,1);
    //        } else {
    $form_values = $_POST;
    //        }
    // form options holen
    $form_options = form_options(eCRC($environment["ebene"]) . "." . $environment["kategorie"]);
    $form_options = form_options("bannered-edit");
    // form elememte bauen
    $element = form_elements($cfg["bannered"]["db"]["banner"]["entries"], $form_values);
    // form elemente erweitern
    $element["extension1"] = "<input name=\"extension1\" type=\"text\" maxlength=\"5\" size=\"5\">";
    $element["extension2"] = "<input name=\"extension2\" type=\"text\" maxlength=\"5\" size=\"5\">";
    // +++
    // page basics
    // funktions bereich fuer erweiterungen
    // ***
    // kategorien
    if (is_array($cfg["bannered"]["kategorien"])) {
        foreach ($cfg["bannered"]["kategorien"] as $key => $value) {
            $sel = "";
            if (is_array($form_values["kat"])) {
                if (in_array($key, $form_values["kat"])) {
Exemplo n.º 4
0
                      <option value="">-- ALL --</option>
                      <?php 
$groups = array_map('trim', file(FILE_GROUPS));
echo form_options($groups);
?>
                    </select>
                  </span>
                </div>

                <div class="field hideable trade">
                  <label>Trade:</label>
                  <span>
                    <select name="trade">
                      <?php 
$trades = dir_read_files(DIR_TRADES);
echo form_options($trades);
?>
                    </select>
                  </span>
                </div>

                <div class="field">
                  <label>Link Identifier:</label>
                  <span>
                    <input type="text" name="link" value="" size="20"/> <span class="fsize-8pt">(leave blank for none)</span>
                  </span>
                </div>

              </fieldset>

Exemplo n.º 5
0
    Lerchenstr. 11c

    86343 K�nigsbrunn

    URL: http://www.chaos.de
*/
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if ($rechte[$cfg["kontakt"]["right"]] == "" || $rechte[$cfg["kontakt"]["right"]] == -1) {
    // page basics
    // ***
    #if ( count($HTTP_POST_VARS) == 0 ) {
    #} else {
    $form_values = $HTTP_POST_VARS;
    #}
    // form options holen
    $form_options = form_options(eCRC($environment["ebene"]) . "." . $environment["kategorie"]);
    // form elememte bauen
    $element = form_elements($cfg["kontakt"]["db"]["entries"], $form_values);
    $hidedata["form"] = array();
    // +++
    // page basics
    // funktions bereich fuer erweiterungen
    // ***
    if (is_array($cfg["kontakt"]["captcha"])) {
        // zufaellige zeichen erzeugen
        $captcha_text = captcha_randomize($cfg["kontakt"]["captcha"]["length"], $cfg["kontakt"]["captcha"]);
        // bild erzeugen
        captcha_create($captcha_text, $cfg["kontakt"]["captcha"]);
        // captcha-info erzeugen
        $captcha_crc = crc32($captcha_text . $cfg["kontakt"]["captcha"]["randomize"]);
        $captcha_name = "captcha-" . $captcha_crc . ".png";
Exemplo n.º 6
0
        <b style="margin-left: 15px;">Owner:</b>
        <select name="owner">
          <option value="">-- ALL --</option>
          <?php 
if (!empty($values['owners'])) {
    echo form_options($values['owners'], $_REQUEST['owner']);
}
?>
        </select>

        <b style="margin-left: 15px;">Category:</b>
        <select name="category">
          <option value="">-- ALL --</option>
          <?php 
if (!empty($values['categories'])) {
    echo form_options($values['categories'], $_REQUEST['category']);
}
?>
        </select>

        <input type="submit" value="Submit" style="margin-left: 15px;">
        <input type="hidden" name="r" value="_xNetworkStatsShow">
      </form>
    </div>
    <!-- SEARCH OPTIONS END -->



    <!-- NETWORK STATS START -->
    <table id="network-stats" class="item-table no-wrap" border="0" cellspacing="0" cellpadding="4" align="center" style="min-width: 1000px;">
      <?php 
    c/o Werner Ammon
    Lerchenstr. 11c

    86343 Königsbrunn

    URL: http://www.chaos.de
*/
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
// suchmaske anzeigen
//
if ($environment[kategorie] == "mask") {
    $position = $environment["parameter"][1] + 0;
    $form_values = $HTTP_POST_VARS;
    // form options holen
    $form_options = form_options(crc32($environment[ebene]) . "." . $environment[kategorie]);
    // form elememte bauen
    $element = form_elements($cfg["db"]["entries"], $HTTP_POST_VARS);
    // dropdown amtsbezeichnung aus db erstellen (wach 0304)
    // ***
    $sql = "SELECT abamtbez_id, abamtbezkurz FROM db_adrb_amtbez ORDER by abamtbez_sort";
    $result = $db->query($sql);
    $formularobject[1] = "<select class=\"" . $form_defaults["class"]["dropdown"] . "\" name=\"abamtbez\">\n";
    $formularobject[1] .= "<option value=\"\">Bitte auswählen</option>\n";
    while ($field = $db->fetch_row($result, $nop)) {
        $formularobject[1] .= "<option value=\"" . $field[0] . "\"" . $selected . ">" . $field[1] . "</option>\n";
    }
    $formularobject[1] .= "</select>\n";
    // +++
    // dropdown amtsbezeichnung aus db erstellen
    // dropdown dienstposten aus db erstellen (wach 0404)
}

if ( $environment["parameter"][2] == "search" ) {
    if ( $HTTP_POST_VARS["search"] != "" ) {
        $search_value = $HTTP_POST_VARS["search"];
    } else {
        $search_value = $environment["parameter"][3];
    }
    $parameter = ",search,".$search_value;
    $where = " WHERE (abnamra LIKE '%".$search_value."%' OR abnamvor LIKE '%".$search_value."%')";
}
*/
$form_values = $HTTP_POST_VARS;
// form options holen
#$form_options = form_options(crc32($environment[ebene]).".".$environment[kategorie]);
$form_options = form_options("1943315524.list");
// form elememte bauen
$element = form_elements($cfg["db"]["entries"], $HTTP_POST_VARS);
// form elememt itext umbauen
$form_fields = array("itext");
foreach ($form_fields as $key) {
    $form_options[$key]["fsize"] > 0 ? $size = " size=\"" . $form_options[$key]["fsize"] . "\"" : ($size = "");
    $form_options[$key]["fclass"] != "" ? $class = " class=\"" . $form_options[$key]["fclass"] . "\"" : ($class = " class=\"" . $form_defaults["class"]["textfield"] . "\"");
    $form_options[$key]["fstyle"] != "" ? $style = " style=\"" . $form_options[$key]["fstyle"] . "\"" : ($style = "");
    $form_values[$key] != "" ? $value = " value=\"" . $form_values[$key] . "\"" : ($value = "");
    $element[$key] = "<input type=\"text\"" . $size . $class . $style . " name=\"" . $key . "\" " . $value . ">\n";
}
//datumsfeld von und bis leeren (wach 2508)
$pos = strrpos($element["ivon"], "value");
$element["ivon"] = substr($element["ivon"], 0, $pos - 1) . ">";
$pos = strrpos($element["ibis"], "value");
Exemplo n.º 9
0
          <div id="dialog-panel" dwidth="900px">
            <div style="padding-top: 2px;">

              <fieldset class="short-labels">
                <legend>Search and Replace Settings</legend>

                <div class="field">
                  <label>Templates:</label>
                  <span>
                    <?php 
$templates = string_htmlspecialchars(dir_read_files(DIR_TEMPLATES, REGEX_EMAIL_TEMPLATES, true));
?>
                    <select name="templates[]" id="templates" multiple="multiple" size="10">
                      <?php 
echo form_options($templates);
?>
                    </select>
                  </span>
                </div>

                <div class="field">
                  <label>Search For:</label>
                  <span><textarea name="search" id="search" rows="5" cols="88"></textarea></span>
                </div>

                <div class="field">
                  <label>Replace With:</label>
                  <span><textarea name="replace" id="replace" rows="5" cols="88"></textarea></span>
                </div>
 if ($_POST["amt_wechseln"] != "" && $environment["parameter"][1] != $_POST["amt_wechseln"]) {
     $header = $cfg["katauszug"]["basis"] . "/" . $cfg["katauszug"]["name"] . "," . $_POST["amt_wechseln"] . "," . $environment["parameter"][2] . ".html";
     header("Location: " . $header);
 }
 // ueberschriftsmarke besetzen
 if (!strstr($_SERVER["SERVER_NAME"], "vermessungsamt-")) {
     $hidedata["change_amt"] = array();
 } else {
     $hidedata["amt_page"]["amt"] = "VA " . $data[$cfg["katauszug"]["db"]["amt"]["name"]];
 }
 $hidedata["ueberschrift"]["label"] = "#(" . $environment["parameter"][2] . ")";
 if ($_POST["amt_wechseln"] != "" && $_POST["amt_wechseln"] != $environment["parameter"][1]) {
     $environment["parameter"][1] = $_POST["amt_wechseln"];
 }
 // form options holen
 $form_options = form_options("katauszug");
 $person_data = array("surname", "forename", "strasse", "plz", "ort", "tel", "email");
 foreach ($person_data as $value) {
     $ausgaben[$value] = strip_tags($_POST["person"][$value]);
 }
 $ausgaben["sonder"] = strip_tags($_POST["sonder"]);
 $ausgaben["versand_adresse"] = strip_tags($_POST["versand_adresse"]);
 // dienststellen-dropdown
 $sql = "SELECT *\n                      FROM " . $cfg["katauszug"]["db"]["amt"]["entries"] . "\n                     WHERE " . $cfg["katauszug"]["db"]["amt"]["kate"] . " IN ('3','4')\n                  ORDER BY " . $cfg["katauszug"]["db"]["amt"]["order"];
 if ($debugging["sql_enable"]) {
     $debugging["ausgabe"] .= "sql (amt-dropdown): " . $sql . $debugging["char"];
 }
 $result = $db->query($sql);
 $amtkennzahl = "";
 while ($data = $db->fetch_array($result, 1)) {
     if ($data[$cfg["katauszug"]["db"]["amt"]["akz"]] == $environment["parameter"][1]) {
}

if ( $environment["parameter"][2] == "search" ) {
    if ( $HTTP_POST_VARS["search"] != "" ) {
        $search_value = $HTTP_POST_VARS["search"];
    } else {
        $search_value = $environment["parameter"][3];
    }
    $parameter = ",search,".$search_value;
    $where = " WHERE (abnamra LIKE '%".$search_value."%' OR abnamvor LIKE '%".$search_value."%')";
}
*/
$form_values = $HTTP_POST_VARS;
// form options holen
#$form_options = form_options(crc32($environment[ebene]).".".$environment[kategorie]);
$form_options = form_options(crc32($environment[ebene]) . ".list");
// form elememte bauen
$element = form_elements($cfg["db"]["entries"], $HTTP_POST_VARS);
//datumsfeld von und bis leeren (wach 2508)
$pos = strrpos($element["ivon"], "value");
$element["ivon"] = substr($element["ivon"], 0, $pos - 1) . ">";
$pos = strrpos($element["ibis"], "value");
$element["ibis"] = substr($element["ibis"], 0, $pos - 1) . ">";
#$ausgaben["form_aktion"] = $cfg["basis"]."/".$cfg["ebene"]["zwei"]."/list,".$position.",esearch.html";
$ausgaben["form_aktion"] = $cfg["basis"] . "/" . $cfg["ebene"]["zwei"] . ",0,esearch.html";
//  Suche (wa 2208)
// ***
#if ( $environment[parameter][2] == "esearch" ) {
if ($environment[parameter][2] == "esearch" || $HTTP_GET_VARS["esearch"] == true) {
    if ($HTTP_GET_VARS["esearch"] == true) {
        $kick = array("image_x", "image_y", "esearch");
Exemplo n.º 12
0
      <form action="index.php" method="post">
        <b>Status:</b>
        <select name="status">
          <option value="">-- ALL --</option>
          <?php 
$statuses = array(STATUS_UNCONFIRMED, STATUS_NEW, STATUS_ACTIVE, STATUS_AUTOSTOPPED, STATUS_DISABLED);
echo form_options($statuses, $_REQUEST['status']);
?>
        </select>

        <b style="margin-left: 15px;">Group:</b>
        <select name="group">
          <option value="">-- ALL --</option>
          <?php 
$groups = array_map('trim', file(FILE_GROUPS));
echo form_options($groups, $_REQUEST['group']);
?>
        </select>

        <b style="margin-left: 15px;">Category:</b>
        <select name="category">
          <option value="">-- ALL --</option>
          <?php 
$categories = array_map('trim', file(FILE_CATEGORIES));
echo form_options_multi($categories, $_REQUEST['category']);
?>
        </select>

        <input type="submit" value="Submit" style="margin-left: 15px;">
        <input type="hidden" name="r" value="_xStatsOverallShow">
      </form>
Exemplo n.º 13
0
                  <label class="short">End:</label>
                  <span>
                    <select name="end_day[]">
                      <?php 
    echo form_options_hash($days, $scheme['end_day']);
    ?>
                    </select>
                    at
                    <select name="end_hour[]">
                      <?php 
    echo form_options($hours, $scheme['end_hour']);
    ?>
                    </select> :
                    <select name="end_minute[]">
                      <?php 
    echo form_options($minutes, $scheme['end_minute']);
    ?>
                    </select>
                  </span>
                </div>

              </fieldset>
              <?php 
}
?>

            </div>
          </div>


Exemplo n.º 14
0
function form_uninstall()
{
    form_output('uninstall');
    $form_options = form_options();
    delete_option('form_log');
    foreach ($form_options as $value) {
        delete_option($value['id']);
    }
    delete_option('form_key');
    delete_option("form_log");
    delete_option("form_ftp_user");
    // legacy
    delete_option("form_ftp_password");
    // legacy
    delete_option("form_version");
    delete_option('form-support-us');
}
Exemplo n.º 15
0
                <?php 
for ($i = 0; $i < count($item['req_field']); $i++) {
    ?>
                  <div style="margin: 2px 0px;">
                    <select name="req_field[]">
                      <option value=""></option>
                      <?php 
    echo form_options_hash($sorters, $item['req_field'][$i]);
    ?>
                    </select>

                    <select name="req_operator[]">
                      <option value=""></option>
                      <?php 
    $operators = array('>', '>=', '<', '<=');
    echo form_options($operators, $original['req_operator'][$i]);
    ?>
                    </select>

                    <input type="text" name="req_value[]" size="10" value="<?php 
    echo $item['req_value'][$i];
    ?>
"/>

                    <img src="images/add-16x16.png" border="0" width="16" height="16" class="c-click" style="margin-left: 8px;">
                    <img src="images/remove-16x16.png" border="0" width="16" height="16" class="c-click" style="margin-left: 8px;">
                  </div>
                <?php 
}
?>
                </div>
Exemplo n.º 16
0
function create_form(&$data)
{
    foreach ($data as $element) {
        if (is_array($element)) {
            switch ($element[2]) {
                case 0:
                    form_input($element[0], $element[1], $element[3]);
                    break;
                case 1:
                    form_alb_list_box($element[0], $element[1]);
                    break;
                case 2:
                    form_textarea($element[0], $element[1], $element[3]);
                    break;
                case 3:
                    form_pic_info($element[0]);
                    break;
                case 4:
                    form_options();
                    break;
                default:
                    cpg_die(CRITICAL_ERROR, 'Invalid action for form creation', __FILE__, __LINE__);
            }
            // switch
        } else {
            form_label($element);
        }
    }
}
Exemplo n.º 17
0
                  </span>
                </div>

              </fieldset>


              <fieldset>
                <legend>Trade Settings</legend>

                <div class="field">
                  <label>Skim Scheme:</label>
                  <span>
                    <select name="skim_scheme" style="width: 80px;">
                      <?php 
$schemes = dir_read_files(DIR_SKIM_SCHEMES_BASE);
echo form_options($schemes, $item['skim_scheme']);
?>
                    </select>
                  </span>
                </div>

                <div class="field">
                  <label>Weight:</label>
                  <span>
                    <input type="text" name="trade_weight" value="<?php 
echo $item['trade_weight'];
?>
" size="5"> %
                  </span>
                </div>
Exemplo n.º 18
0
                <div class="field">
                  <label>E-mail Name:</label>
                  <span><input type="text" size="50" value="<?php 
echo $C['email_name'];
?>
" name="email_name"/></span>
                </div>

                <div class="field">
                  <label>E-mail Method:</label>
                  <span>
                    <select name="email_method">
                      <?php 
require_once 'mailer.php';
$mailers = array(MAILER_METHOD_PHP, MAILER_METHOD_SENDMAIL, MAILER_METHOD_SMTP);
echo form_options($mailers, $C['email_method']);
?>
                    </select>
                  </span>
                </div>

                <div class="field" style="display: none;">
                  <label>Sendmail Path:</label>
                  <span><input type="text" class="mailer-field mailer-sendmail" size="50" value="<?php 
echo $C['sendmail_path'];
?>
" name="sendmail_path"/></span>
                </div>

                <div class="field" style="display: none;">
                  <label>SMTP Hostname:</label>
Exemplo n.º 19
0
    URL: http://www.chaos.de
*/
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if ($cfg["right"] == "" || $rechte[$cfg["right"]] == -1) {
    $ausgaben["thumbnail"] = thumbnail();
    if ($ausgaben["thumbnail"] == "") {
        header("Location: " . $cfg["basis"] . "/list.html");
    }
    // page basics
    // ***
    #if ( count($HTTP_POST_VARS) == 0 ) {
    #} else {
    $form_values = $HTTP_POST_VARS;
    #}
    // form options holen
    $form_options = form_options(crc32($environment["ebene"]) . ".modify");
    // form elememte bauen
    $element = form_elements($cfg["db"]["file"]["entries"], $form_values);
    // form elemente erweitern
    #$element["extension1"] = "";
    #$element["extension2"] = "";
    $element["upload"] = "";
    $element["fid"] = "";
    $element["ffname"] = str_replace("ffname\"", "ffname\" value=\"" . str_replace($_SESSION["uid"] . "_", "", $file) . "\"", $element["ffname"]);
    // +++
    // page basics
    // funktions bereich fuer erweiterungen
    // ***
    ### put your code here ###
    // +++
    // funktions bereich fuer erweiterungen
Exemplo n.º 20
0
    ob_start();
    $GLOBALS["caption{$CURRENT_PIC['pid']}"] = $myts->makeTareaData4Edit($CURRENT_PIC['caption']);
    xoopsCodeTarea("caption{$CURRENT_PIC['pid']}", 37, 8);
    $xoops_codes = ob_get_contents();
    ob_end_clean();
    ob_start();
    xoopsSmilies("caption" . $CURRENT_PIC['pid']);
    $smilies = ob_get_contents();
    ob_end_clean();
    $value_field1 = $myts->makeTboxData4Edit($CURRENT_PIC['user1']);
    $name_field1 = 'user1' . $CURRENT_PIC['pid'];
    $value_field2 = $myts->makeTboxData4Edit($CURRENT_PIC['user2']);
    $name_field2 = 'user2' . $CURRENT_PIC['pid'];
    $value_field3 = $myts->makeTboxData4Edit($CURRENT_PIC['user3']);
    $name_field3 = 'user3' . $CURRENT_PIC['pid'];
    $value_field4 = $myts->makeTboxData4Edit($CURRENT_PIC['user4']);
    $name_field4 = 'user4' . $CURRENT_PIC['pid'];
    form_options();
    $xoopsTpl->append('pics', array('current' => $CURRENT_PIC['pid'], 'filename' => $filename, 'pic_info' => $pic_info, 'thumb_url' => $thumb_url, 'thumb_link' => $thumb_link, 'sel_name' => $sel_name, 'alb_opt' => $alb_opt, 'title_name' => 'title' . $CURRENT_PIC['pid'], 'title_value' => $myts->makeTboxData4Edit($CURRENT_PIC['title']), 'xoops_codes' => $xoops_codes, 'xoops_smilies' => $smilies, 'keywords_value' => $myts->makeTboxData4Edit($CURRENT_PIC['keywords']), 'keywords_name' => 'keywords' . $CURRENT_PIC['pid'], 'name_field1' => $name_field1, 'value_field1' => $value_field1, 'name_field2' => $name_field2, 'value_field2' => $value_field2, 'name_field3' => $name_field3, 'value_field3' => $value_field3, 'name_field4' => $name_field4, 'value_field4' => $value_field4, 'pic_opt' => $pic_opt));
}
// while
$xoopsDB->freeRecordSet($result);
$xoopsTpl->assign('form', $form);
$xoopsTpl->assign('apply', _MD_EDITPICS_APPLY);
user_save_profile();
$xoopsTpl->assign('gallery', $xoopsModule->getVar('name'));
include_once "include/theme_func.php";
main_menu();
//$xoopsTpl->assign('xcgal_footer', pagefooter());
do_footer();
include_once "../../footer.php";
                header("Location: " . $ausgaben["form_referer"]);
            }
        }
    }
} elseif ($environment["parameter"][1] == "edit") {
    if (count($HTTP_POST_VARS) == 0) {
        $sql = "SELECT * FROM " . $cfg["db"]["entries"] . " WHERE " . $cfg["db"]["key"] . "='" . $environment["parameter"][2] . "'";
        $result = $db->query($sql);
        $form_values = $db->fetch_array($result, $nop);
    } else {
        $form_values = $HTTP_POST_VARS;
    }
    // spezielle default values setzen
    $form_values["igeaendert"] = date("Y.m.d G:i:s");
    // form otions holen
    $form_options = form_options("1943315524.modify");
    // form elememte bauen
    $element = form_elements($cfg["db"]["entries"], $form_values);
    // form elemente erweitern
    $ausgaben["ibereich"] = $cfg["ebene"]["zwei"];
    $element["ibereich"] = str_replace("ibereich\"", "ibereich\" value=\"" . $cfg["ebene"]["zwei"] . "\"", $element["ibereich"]);
    #$element["itext"] = $form_values["itext"];
    // ce editor bauen
    $ausgaben["tn"] = makece("modify", "itext", $form_values["itext"]);
    // was anzeigen
    # automatik geht $mapping["main"] = "1943315524.modify";
    #if ( $debugging["html_enable"] ) $debugging["ausgabe"] .= "<font color=\"#FF0000\">ATTENTION: template overwrite -> ".$mapping["main"].".tem.html</font>".$debugging["char"];
    $mapping["navi"] = "leer";
    if ($debugging["html_enable"]) {
        $debugging["ausgabe"] .= "<font color=\"#FF0000\">ATTENTION: template overwrite -> 1943315524. " . $mapping["main"] . ".tem.html</font>" . $debugging["char"];
    }
    $data = $db->fetch_array($result, 1);
    $artikel_check = priv_check($data["check_url"], $cfg["wizard"]["right"]["edit"]);
    $artikel_check_publish = priv_check($data["check_url"], "publish");
}
if ($cfg["wizard"]["right"]["edit"] == "" || priv_check($url, $cfg["wizard"]["right"]["edit"]) || priv_check(tname2path($environment["parameter"][2]), $cfg["wizard"]["right"]["edit"]) || priv_check_old("", $cfg["wizard"]["right"]) || $artikel_check || $rechte["administration"] == -1 || $erlaubnis == -1) {
    // unzugaengliche #(marken) sichtbar machen
    // ***
    if (isset($_GET["edit"])) {
        $ausgaben["inaccessible"] = "inaccessible values:<br />";
        $ausgaben["inaccessible"] .= "# (error_result) #(error_result)<br />";
        $ausgaben["inaccessible"] .= "# (error_dupe) #(error_dupe)<br />";
    } else {
        $ausgaben["inaccessible"] = "";
    }
    // form options holen
    $form_options = form_options(eCRC("/admin/menued") . ".add");
    // fehlermeldungen
    $ausgaben["form_error"] = $_SESSION["form_error"]["desc"];
    if (strstr($_SERVER["HTTP_REFERER"], "auth/login")) {
        $ausgaben["form_referer"] = "/auth/login.html";
    } else {
        $ausgaben["form_referer"] = $_SERVER["HTTP_REFERER"];
    }
    // form elememte bauen
    $element = array_merge(form_elements("site_menu", $form_values), form_elements("site_menu_lang", $form_values));
    // freigabe-test
    if ($specialvars["content_release"] == -1) {
        $hidedata["add_menu"]["hide"] = -1;
    } else {
        $hidedata["add_menu"]["hide"] = "";
    }
 // ***
 $hidedata["edit"]["on"] = "on";
 $hidedata["send_button"]["on"] = "on";
 $ausgaben["priv"] = "";
 if (count($HTTP_POST_VARS) == 0) {
     $sql = "SELECT *\n                      FROM " . $cfg["prived"]["db"]["priv"]["entries"] . "\n                     WHERE " . $cfg["prived"]["db"]["priv"]["key"] . "='" . $environment["parameter"][1] . "'";
     if ($debugging["sql_enable"]) {
         $debugging["ausgabe"] .= "sql: " . $sql . $debugging["char"];
     }
     $result = $db->query($sql);
     $form_values = $db->fetch_array($result, 1);
 } else {
     $form_values = $HTTP_POST_VARS;
 }
 // form options holen
 $form_options = form_options(eCRC($environment["ebene"]) . ".modify");
 // form elememte bauen
 $element = form_elements($cfg["prived"]["db"]["priv"]["entries"], $form_values);
 // form elemente erweitern
 $element["extension1"] = "<input name=\"extension1\" type=\"text\" maxlength=\"5\" size=\"5\">";
 $element["extension2"] = "<input name=\"extension2\" type=\"text\" maxlength=\"5\" size=\"5\">";
 // +++
 // page basics
 // funktions bereich fuer erweiterungen
 // ***
 ### put your code here ###
 // +++
 // funktions bereich fuer erweiterungen
 // page basics
 // ***
 // fehlermeldungen
Exemplo n.º 24
0
    ?>
                      <option value="<?php 
    printf("%02d", $i);
    ?>
"><?php 
    printf("%02d", $i);
    ?>
</option>
                      <?php 
}
?>
                    </select>

                    <select name="to_year">
                      <?php 
echo form_options(range(2009, 2050), date('Y'));
?>
                    </select>
                  </span>
                </div>

                <div class="field">
                  <label>Breakdown:</label>
                  <span>
                    <select name="breakdown">
                      <option value="<?php 
echo STATS_HISTORY_REGEX_REPLACE_DAILY;
?>
">Daily</option>
                      <option value="<?php 
echo STATS_HISTORY_REGEX_REPLACE_MONTHLY;
function form_admin()
{
    global $form_name, $form_shortname;
    require dirname(__FILE__) . '/includes/support-us.inc.php';
    $controlpanelOptions = form_options();
    if (isset($_REQUEST['install'])) {
        echo '<div id="message" class="updated fade"><p><strong>' . $form_name . ' settings updated.</strong></p></div>';
    }
    if (isset($_REQUEST['error'])) {
        echo '<div id="message" class="updated fade"><p>The following error occured: <strong>' . form_sanitize($_REQUEST['error']) . '</strong></p></div>';
    }
    ?>
<div class="wrap">
<?php 
    zing_support_us_top('form-builder', 'form', 'form', FORM_VERSION, false, false, 'Zingiri Form Builder');
    ?>
	<div id="cc-left" style="position: relative; float: left; width: 100%">
		<h2>
			<b><?php 
    echo $form_name;
    ?>
 </b>
		</h2>
		<?php 
    $form_version = get_option("form_version");
    $submit = 'Update';
    ?>
		<form method="post">
		<?php 
    require dirname(__FILE__) . '/includes/cpedit.inc.php';
    ?>

			<p class="submit">
				<input name="install" type="submit" value="<?php 
    echo $submit;
    ?>
" />
				<input type="hidden" name="action" value="install" />
			</p>
		</form>
		<hr />
		<?php 
    if ($form_version && get_option('form_debug')) {
        echo '<h2 style="color: green;">Debug log</h2>';
        echo '<textarea rows=10 cols=80>';
        $r = get_option('form_log');
        if ($r) {
            $v = $r;
            foreach ($v as $m) {
                echo date('H:i:s', $m[0]) . ' ' . $m[1] . chr(13) . chr(10);
                echo $m[2] . chr(13) . chr(10);
            }
        }
        echo '</textarea><hr />';
    }
    ?>
		If you need help, please check out our <a
			href="http://wordpress.org/support/plugin/form"
			target="_blank">forums</a>. <br />Form Builder v
			<?php 
    echo FORM_VERSION;
    ?>
	</div>
	<?php 
    zing_support_us_bottom('form-builder', 'form', 'form', FORM_VERSION, false, false, 'Zingiri Form Builder');
}
 if (count($_POST) == 0) {
     $sql = "SELECT *\n                      FROM " . $cfg["wening"]["db"]["produkte"]["entries"] . "\n                     WHERE " . $cfg["wening"]["db"]["produkte"]["key"] . "='" . $environment["parameter"][1] . "'";
     if ($debugging["sql_enable"]) {
         $debugging["ausgabe"] .= "sql: " . $sql . $debugging["char"];
     }
     $result = $db->query($sql);
     $form_values = $db->fetch_array($result, 1);
 } else {
     $form_values = $_POST;
 }
 if (is_array($_SESSION["file_memo"])) {
     $form_values[$cfg["wening"]["db"]["produkte"]["pic"]] = current($_SESSION["file_memo"]);
     unset($_SESSION["file_memo"]);
 }
 // form options holen
 $form_options = form_options("wening-edit");
 // form elememte bauen
 $element = form_elements($cfg["wening"]["db"]["produkte"]["entries"], $form_values);
 foreach ($cfg["wening"]["db"]["produkte"] as $key => $value) {
     if ($element[$value] != "") {
         $element[$key] = $element[$value];
     }
 }
 // form elemente erweitern
 $element["extension1"] = "<input name=\"extension1\" type=\"text\" maxlength=\"5\" size=\"5\">";
 $element["extension2"] = "<input name=\"extension2\" type=\"text\" maxlength=\"5\" size=\"5\">";
 // +++
 // page basics
 // funktions bereich fuer erweiterungen
 // ***
 // bild holen