当前位置: 首页>>代码示例>>PHP>>正文


PHP form_elements函数代码示例

本文整理汇总了PHP中form_elements函数的典型用法代码示例。如果您正苦于以下问题:PHP form_elements函数的具体用法?PHP form_elements怎么用?PHP form_elements使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了form_elements函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: form_options

 // page basics
 // ***
 if (count($HTTP_POST_VARS) == 0) {
     $sql = "SELECT *\n                      FROM " . $cfg["bloged"]["db"]["bloged"]["entries"] . "\n                     WHERE " . $cfg["bloged"]["db"]["bloged"]["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"]) . "." . $environment["kategorie"]);
 // form elememte bauen
 $element = form_elements($cfg["bloged"]["db"]["bloged"]["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
 $ausgaben["form_error"] = "";
 // navigation erstellen
开发者ID:BackupTheBerlios,项目名称:ewebuki-svn,代码行数:31,代码来源:bloged-edit.inc.php

示例2: form_options

    86343 Königsbrunn

    URL: http://www.chaos.de
*/
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
// Suchmaske anzeigen
//
if ($environment["kategorie"] == "mask") {
    #$form_values = $HTTP_POST_VARS;
    $position = $environment["parameter"][1] + 0;
    // form options holen
    $form_options = form_options(crc32($environment["ebene"]) . "." . $environment["kategorie"]);
    // form elememte bauen
    $element = form_elements($cfg["db"]["entries"], $nop);
    // dropdown Kategorie erstellen (schae 1504)
    // ***
    $sql = "SELECT DISTINCT adkate FROM db_adrd ORDER BY adkate";
    $result = $db->query($sql);
    $formularobject = "<select class=\"" . $form_defaults["class"]["dropdown"] . "\" name=\"adkate\">\n";
    $formularobject .= "<option value=\"\"></option>\n";
    while ($data = $db->fetch_array($result, $nop)) {
        if ($form_values["adkate"] == $data["adkate"]) {
            $selected = " selected";
        } else {
            $selected = "";
        }
        $formularobject .= "<option value=\"" . $data["adkate"] . "\"" . $selected . ">" . $data["adkate"] . "</option>\n";
    }
    foreach ($element as $name => $value) {
开发者ID:BackupTheBerlios,项目名称:ewebuki-svn,代码行数:30,代码来源:dienststellen-mask.inc.php

示例3: locate

 $positionArray["nop"] = "nop";
 $_SESSION["menued_id"] = $environment["parameter"][1];
 locate($_SESSION["menued_id"]);
 // page basics
 // ***
 if (count($HTTP_POST_VARS) == 0) {
     $sql = "SELECT * FROM " . $cfg["menued"]["db"]["menu"]["entries"] . " WHERE " . $cfg["menued"]["db"]["menu"]["key"] . "='" . $environment["parameter"][2] . "'";
     $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"]) . "." . $environment["kategorie"]);
 // form elememte bauen
 $element = form_elements($cfg["menued"]["db"]["menu"]["entries"], $form_values);
 // form elemente erweitern
 #$element["new_lang"] = "<input name=\"new_lang\" type=\"text\" maxlength=\"5\" size=\"5\">";
 // +++
 // page basics
 #if ( $_GET["id"] != "" ) {
 #    locate($HTTP_GET_VARS["id"]);
 #} else {
 #    $positionArray[] = "nop";
 #}
 $ausgaben["show_menu"] .= sitemap(0, "menued", "select", "");
 // page basics
 // ***
 // design
 $ausgaben["design"] = "";
 // fehlermeldungen
开发者ID:BackupTheBerlios,项目名称:ewebuki-svn,代码行数:31,代码来源:menued2-move.inc.php

示例4: form_options

 // page basics
 // ***
 if (count($HTTP_POST_VARS) == 0) {
     $sql = "SELECT *\n                      FROM " . $cfg["db"]["leer"]["entries"] . "\n                     WHERE " . $cfg["db"]["leer"]["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(crc32($environment["ebene"]) . "." . $environment["kategorie"]);
 // form elememte bauen
 $element = form_elements($cfg["db"]["leer"]["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
 $ausgaben["form_error"] = "";
 // navigation erstellen
开发者ID:BackupTheBerlios,项目名称:ewebuki,代码行数:31,代码来源:leer-edit.inc.php

示例5: form_options

     $debugging["ausgabe"] .= "Warnung: register_globals in der php.ini steht auf on, evtl werden interne Variablen ueberschrieben!" . $debugging["char"];
 }
 // path fuer die schaltflaechen anpassen
 if ($cfg["autoform"]["iconpath"] == "") {
     $cfg["autoform"]["iconpath"] = "/images/default/";
 }
 // label bearbeitung aktivieren
 if (isset($HTTP_GET_VARS["edit"])) {
     $specialvars["editlock"] = 0;
 } else {
     $specialvars["editlock"] = -1;
 }
 // form options holen
 $form_options = form_options(eCRC($environment["ebene"]) . "." . $environment["kategorie"]);
 // form elememte bauen
 $element = form_elements($cfg["autoform"]["location"][$environment["ebene"]]["db"], $_POST);
 // +++
 // page basics
 // funktions bereich
 // ***
 // captcha - bild erzeugen
 if ($cfg["autoform"]["location"][$environment["ebene"]]["captcha"]) {
     // zufaellige zeichen erzeugen
     $captcha_text = captcha_randomize($cfg["autoform"]["captcha"]["length"], $cfg["autoform"]["captcha"]);
     // bild erzeugen
     captcha_create($captcha_text, $cfg["autoform"]["captcha"]);
     // captcha-info erzeugen
     $captcha_crc = crc32($captcha_text . $cfg["autoform"]["captcha"]["randomize"]);
     $captcha_name = "captcha-" . $captcha_crc . ".png";
     $captcha_path_web = $cfg["file"]["base"]["webdir"] . $cfg["file"]["base"]["new"];
     $captcha_path_srv = $cfg["file"]["base"]["maindir"] . $cfg["file"]["base"]["new"];
开发者ID:BackupTheBerlios,项目名称:ewebuki-svn,代码行数:31,代码来源:autoform-list.inc.php

示例6: header

             header("Location: " . $ausgaben["form_referer"]);
             #header("Location: ".$environment["basis"]."/list.html");
         }
     }
 } elseif ($environment["parameter"][1] == "edit") {
     if (count($HTTP_POST_VARS) == 0) {
         $sql = "SELECT * FROM " . $db_entries . " WHERE " . $db_entries_key . "='" . $environment["parameter"][2] . "'";
         $result = $db->query($sql);
         $form_values = $db->fetch_array($result, $nop);
     } else {
         $form_values = $HTTP_POST_VARS;
     }
     // form otions holen
     $form_options = form_options(crc32($environment["ebene"]) . "." . $environment["kategorie"]);
     // form elememte bauen
     $element = form_elements($db_entries, $form_values);
     // was anzeigen
     $mapping["main"] = crc32($environment["ebene"]) . ".modify";
     // wohin schicken
     $ausgaben["form_error"] = "";
     $ausgaben["form_aktion"] = $environment["basis"] . "/modify,edit," . $environment["parameter"][2] . ",verify.html";
     // referer im form mit hidden element mitschleppen
     if ($HTTP_POST_VARS["form_referer"] == "") {
         $ausgaben["form_referer"] = $_SERVER["HTTP_REFERER"];
         $ausgaben["form_break"] = $ausgaben["form_referer"];
     } else {
         $ausgaben["form_referer"] = $HTTP_POST_VARS["form_referer"];
         $ausgaben["form_break"] = $ausgaben["form_referer"];
     }
     if ($environment["parameter"][3] == "verify") {
         // form eigaben prüfen
开发者ID:BackupTheBerlios,项目名称:ewebuki-svn,代码行数:31,代码来源:neues.inc.php

示例7: form_options

     $cfg["kontakt"]["iconpath"] = "/images/default/";
 }
 // label bearbeitung aktivieren
 if (isset($HTTP_GET_VARS["edit"])) {
     $specialvars["editlock"] = 0;
 } else {
     $specialvars["editlock"] = -1;
 }
 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["register"]["db"][$environment["kategorie"]]["entries"], $form_values);
 $hidedata["form"] = array();
 // +++
 // page basics
 // funktions bereich
 // ***
 if (is_array($cfg["register"]["captcha"])) {
     // zufaellige zeichen erzeugen
     $captcha_text = captcha_randomize($cfg["register"]["captcha"]["length"], $cfg["register"]["captcha"]);
     // bild erzeugen
     captcha_create($captcha_text, $cfg["register"]["captcha"]);
     // captcha-info erzeugen
     $captcha_crc = crc32($captcha_text . $cfg["register"]["captcha"]["randomize"]);
     $captcha_name = "captcha-" . $captcha_crc . ".png";
     $captcha_path_web = $cfg["file"]["base"]["webdir"] . $cfg["file"]["base"]["new"];
     $captcha_path_srv = $cfg["file"]["base"]["maindir"] . $cfg["file"]["base"]["new"];
开发者ID:BackupTheBerlios,项目名称:ewebuki-bvv-svn,代码行数:31,代码来源:register.inc.php

示例8: thumbnail

////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if ($cfg["fileed"]["right"] == "" || $rechte[$cfg["fileed"]["right"]] == -1) {
    $ausgaben["thumbnail"] = thumbnail();
    if ($ausgaben["thumbnail"] == "") {
        header("Location: " . $cfg["fileed"]["basis"] . "/list.html");
    }
    // page basics
    // ***
    #if ( count($HTTP_POST_VARS) == 0 ) {
    #} else {
    $form_values = $HTTP_POST_VARS;
    #}
    // form options holen
    $form_options = form_options(eCRC($environment["ebene"]) . ".modify");
    // form elememte bauen
    $element = form_elements($cfg["fileed"]["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
    // page basics
    // ***
开发者ID:BackupTheBerlios,项目名称:ewebuki-svn,代码行数:31,代码来源:fileed-add.inc.php

示例9: const_champs

function const_champs($modules_name, $tables_module_table, $tables_name, $tables_champs, $language, $champs_param_display_form = 0, $champs_param_elements = 0, $champs_param_required_field = 0, $option = 0)
{
    //print_r($champs_param_display_form);
    $text = '';
    //Compte le nombre de champs
    $champs = explode("|", $tables_champs);
    $nb_champs = count($champs);
    //Recupere les donnees
    if ($option == 0) {
        //Creation du constructor
        for ($i = 0; $i < $nb_champs; $i++) {
            $structure = explode(":", $champs[$i]);
            if ($structure[1] == 'int' || $structure[1] == 'tinyint' || $structure[1] == 'smallint' || $structure[1] == 'decimal') {
                $text .= '$this->initVar("' . $structure[0] . '",XOBJ_DTYPE_INT,null,false,' . $structure[2] . ');
			';
            } elseif ($structure[1] == 'varchar') {
                $text .= '$this->initVar("' . $structure[0] . '",XOBJ_DTYPE_TXTBOX,null,false);
			';
            } elseif ($structure[1] == 'text' || $structure[1] == 'longtext') {
                $text .= ' $this->initVar("' . $structure[0] . '",XOBJ_DTYPE_TXTAREA, null, false);
			';
            }
        }
    } else {
        if ($option == 1) {
            //Creation formulaire
            for ($i = 0; $i < $nb_champs; $i++) {
                if ($i != 0) {
                    $structure = explode(":", $champs[$i]);
                    $language_form = '' . $language . strtoupper($structure[0]) . '';
                    $form = form_elements($i, $modules_name, $tables_module_table, $tables_name, $champs_param_elements, $champs_param_required_field, $language_form, $structure[0]);
                    $text .= '' . $form . '';
                }
            }
        } else {
            if ($option == 2) {
                //Creation du fichier mysql.sql
                $text .= '#
# Table structure for table `' . strtolower($tables_module_table) . '`
#
		
CREATE TABLE  `' . strtolower($tables_module_table) . '` (
';
                $j = 0;
                for ($i = 0; $i < $nb_champs; $i++) {
                    $structure = explode(":", $champs[$i]);
                    //Probleme avec le type text (pas de valeur)
                    if ($structure[1] != 'text') {
                        $type = '' . $structure[1] . ' (' . $structure[2] . ')';
                    } else {
                        $type = '' . $structure[1] . '';
                    }
                    //Debut
                    if ($structure[0] != ' ') {
                        if (empty($structure[5])) {
                            $default = "default '" . $structure[5] . "'";
                        } else {
                            $default = "";
                        }
                        if ($i == 0) {
                            $virgule[$j] = 'PRIMARY KEY (`' . $structure[0] . '`)';
                            $j++;
                            $text .= '`' . $structure[0] . '` ' . $type . ' ' . $structure[3] . ' ' . $structure[4] . '  auto_increment,
';
                        } else {
                            if ($structure[6] == 'unique' || $structure[6] == 'index' || $structure[6] == 'fulltext') {
                                if ($structure[6] == 'unique') {
                                    $text .= '`' . $structure[0] . '` ' . $type . ' ' . $structure[3] . ' ' . $structure[4] . ' ' . $default . ',
';
                                    $virgule[$j] = 'KEY `' . $structure[0] . '` (`' . $structure[0] . '`)';
                                } else {
                                    if ($structure[6] == 'index') {
                                        $text .= '`' . $structure[0] . '` ' . $type . ' ' . $structure[3] . ' ' . $structure[4] . ' ' . $default . ',
';
                                        $virgule[$j] = 'INDEX (`' . $structure[0] . '`)';
                                    } else {
                                        if ($structure[6] == 'fulltext') {
                                            $text .= '`' . $structure[0] . '` ' . $type . ' ' . $structure[3] . ' ' . $structure[4] . ' ' . $default . ',
';
                                            $virgule[$j] = 'FULLTEXT KEY `' . $structure[0] . '` (`' . $structure[0] . '`)';
                                        }
                                    }
                                }
                                $j++;
                            } else {
                                $text .= '`' . $structure[0] . '` ' . $type . ' ' . $structure[3] . ' ' . $structure[4] . ' ' . $default . ',
';
                            }
                        }
                    }
                }
                //Probleme virgule
                $key = '';
                for ($i = 0; $i < $j; $i++) {
                    if ($i != $j - 1) {
                        $key .= '' . $virgule[$i] . ',
';
                    } else {
                        $key .= '' . $virgule[$i] . '
';
//.........这里部分代码省略.........
开发者ID:severnaya99,项目名称:Sg-2010,代码行数:101,代码来源:functions_const.php

示例10: form_options

     $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"] = "";
 }
 //wohin schicken
 $ausgaben["form_aktion"] = $pathvars["virtual"] . "/wizard/delete,devel0," . $environment["parameter"][2] . ",inhalt.html";
 $ausgaben["refid"] = $point["mid"];
 $url = $pathvars["virtual"] . tname2path($environment["parameter"][2]);
 $sql = "SELECT *\n                FROM " . SITETEXT . "\n                WHERE lang = '" . $environment["language"] . "'\n                AND label ='" . $environment["parameter"][3] . "'\n                AND tname ='" . $environment["parameter"][2] . "'\n            ORDER BY version ASC";
 $result = $db->query($sql);
 $security = "";
 while ($data = $db->fetch_array($result, 0)) {
     if ($data["status"] == -2) {
开发者ID:BackupTheBerlios,项目名称:ewebuki-svn,代码行数:31,代码来源:wizard-delete.inc.php

示例11: header

             #}
             header("Location: " . $environment[basis] . ".html");
         }
     }
 } elseif ($environment[parameter][1] == "edit") {
     if (count($HTTP_POST_VARS) == 0) {
         $sql = "SELECT * FROM " . $logbuch_entries . " WHERE lid='" . $environment[parameter][2] . "'";
         $result = $db->query($sql);
         $form_values = $db->fetch_array($result, $nop);
     } else {
         $form_values = $HTTP_POST_VARS;
     }
     // form otions holen
     $form_options = form_options(crc32($environment[ebene]) . "." . $environment[kategorie]);
     // form elememte bauen
     $element = form_elements($logbuch_entries, $form_values);
     // was anzeigen
     $mapping[main] = crc32($environment[ebene]) . ".modify";
     // wohin schicken
     $ausgaben[form_error] = "";
     $ausgaben[form_aktion] = $environment[basis] . "/modify,edit," . $environment[parameter][2] . ",verify.html";
     $ausgaben[form_break] = $_SERVER["HTTP_REFERER"];
     if ($environment[parameter][3] == "verify") {
         // form eigaben prüfen
         form_errors($form_options, $HTTP_POST_VARS);
         // ohne fehler sql bauen und ausfuehren
         if ($ausgaben[form_error] == "") {
             $kick = array("PHPSESSID", "ldate", "submit");
             foreach ($HTTP_POST_VARS as $name => $value) {
                 if (!in_array($name, $kick)) {
                     if ($sqla != "") {
开发者ID:BackupTheBerlios,项目名称:ewebuki-svn,代码行数:31,代码来源:logbuch.inc.php

示例12: header

                }
            }
            if ($errorcode == 0) {
                header("Location: " . $environment[basis] . ".html");
            }
        }
    }
    //
    // datei verarbeitung
    //
} elseif ($environment[kategorie] == "file") {
    if ($environment[parameter][1] == "new") {
        // form otions holen
        $form_options = form_options(crc32($environment[ebene]) . "." . $environment[kategorie]);
        // form elememte bauen
        $element = form_elements($data_entries_file, $HTTP_POST_VARS);
        // form elemente erweitern
        if ($HTTP_POST_VARS[frefid] == "") {
            $element[frefid] = str_replace("frefid\" ", "frefid\" value=\"" . $environment[parameter][2] . "\"", $element[frefid]);
        }
        // was anzeigen
        $mapping[main] = crc32($environment[ebene]) . ".file";
        // wohin schicken
        $ausgaben[form_error] = "";
        $ausgaben[form_aktion] = $environment[basis] . "/file,new,verify.html";
        $ausgaben[form_break] = $_SERVER["HTTP_REFERER"];
        if ($environment[parameter][2] == "verify") {
            // datei verwaltung/save begin
            // ***
            $valid = array("zip", "pdf");
            $file = file_verarbeitung($file_path, "ffname", 4000000, $valid);
开发者ID:BackupTheBerlios,项目名称:ewebuki-svn,代码行数:31,代码来源:brainstorm.inc.php

示例13: form_options

     $form_values = $HTTP_POST_VARS;
 }
 // form otions holen
 $form_options = form_options(crc32($environment["ebene"]) . "." . $environment["kategorie"]);
 // form elememte bauen
 $element = form_elements($db_entries, $form_values);
 // form elemente erweitern
 $element["new_lang"] = "<input name=\"new_lang\" type=\"text\" maxlength=\"3\" size=\"3\">";
 // lang management form elemente begin
 // ***
 $ausgaben["langtabelle"] = "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n";
 $ausgaben["langtabelle"] .= "<tr><td>#-(lang)</td><td>#-(label)</td><td>#-(exturl)</td><td>&nbsp;</td></tr>\n";
 $sql = "SELECT * FROM " . $db_entries_lang . " where mid=" . $environment["parameter"][2] . " ORDER by lang";
 $result = $db->query($sql);
 while ($lang = $db->fetch_array($result, 1)) {
     $element_lang = form_elements($db_entries_lang, $lang);
     $ausgaben["langtabelle"] .= "<tr>";
     $ausgaben["langtabelle"] .= "<td>" . str_replace("name=\"", "name=\"" . $lang["mlid"] . ")", $element_lang["lang"]) . "</td>";
     $ausgaben["langtabelle"] .= "<td>" . str_replace("name=\"", "name=\"" . $lang["mlid"] . ")", $element_lang["label"]) . "</td>";
     $ausgaben["langtabelle"] .= "<td>" . str_replace("name=\"", "name=\"" . $lang["mlid"] . ")", $element_lang["exturl"]) . "</td>";
     $ausgaben["langtabelle"] .= "<td>";
     $ausgaben["langtabelle"] .= "<input name=\"edit\" type=\"image\" src=\"" . $pathvars["images"] . "edit.png\" width=\"24\" height=\"18\" border=\"0\" value=\"" . $lang["mlid"] . "\">";
     $ausgaben["langtabelle"] .= "<input name=\"delete\" type=\"image\" src=\"" . $pathvars["images"] . "delete.png\" width=\"24\" height=\"18\" border=\"0\" value=\"" . $lang["mlid"] . "\">";
     $ausgaben["langtabelle"] .= "</td></tr>";
 }
 $ausgaben["langtabelle"] .= "</table>";
 // +++
 // lang management form elemente end
 // was anzeigen
 $mapping["main"] = crc32($environment["ebene"]) . ".modify";
 // wohin schicken
开发者ID:BackupTheBerlios,项目名称:ewebuki-svn,代码行数:31,代码来源:menued.inc.php

示例14: count

////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if ($cfg["menued"]["modify"]["add"][2] == "" || priv_check(make_ebene($environment["parameter"][1]), $cfg["menued"]["modify"]["add"][2]) || $cfg["auth"]["menu"]["menued"][2] == -1 && priv_check('', $cfg["menued"]["modify"]["add"][2], $specialvars["dyndb"])) {
    // page basics
    // ***
    #if ( count($_POST) == 0 ) {
    #    $sql = "SELECT * FROM ".$cfg["menued"]["db"]["menu"]["entries"]." WHERE ".$cfg["menued"]["db"]["menu"]["key"]."='".$environment["parameter"][2]."'";            $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 elememte bauen
    $element = form_elements($cfg["menued"]["db"]["menu"]["entries"], $form_values);
    // form elemente erweitern
    $element = array_merge($element, form_elements($cfg["menued"]["db"]["lang"]["entries"], $form_values));
    if ($_POST["refid"] == "") {
        $value = $environment["parameter"][1];
    } else {
        $value = $_POST["refid"];
    }
    $element["refid"] = str_replace("refid\"", "refid\" value=\"" . $value . "\" readonly", $element["refid"]);
    $element["new_lang"] = "<input name=\"new_lang\" type=\"text\" maxlength=\"5\" size=\"3\" value=\"n/a\" readonly>";
    // +++
    // page basics
    /*
    // lang management form elemente begin
    // ***
    $element_lang = form_elements( $cfg["menued"]["db"]["lang"]["entries"], $_POST );
    $element_lang["lang"] = str_replace("lang\"","lang\" value=\"".$environment["language"]."\"",$element_lang["lang"]);
    
开发者ID:BackupTheBerlios,项目名称:ewebuki-svn,代码行数:30,代码来源:menued2-add.inc.php

示例15: while

     #echo $sql;
     $result = $db->query($sql);
     while ($ans = $db->fetch_array($result, 1)) {
         $element_ans[$ans["kaid"]] = form_elements($cfg["db"]["entries_ans"], $ans);
     }
 } else {
     foreach ($form_values as $key => $value) {
         if (strstr($key, ")")) {
             $felder = explode(")", $key, 2);
             $ans[$felder[0]][$felder[1]] = $value;
         }
     }
     if (is_array($ans)) {
         foreach ($ans as $key => $value) {
             $form_options[$key . ")kaemail"] = $form_options["akemail"];
             $element_ans[$key] = form_elements($cfg["db"]["entries_ans"], $value);
         }
     }
 }
 $ausgaben["ansprechpartner"] = "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n";
 if (is_array($element_ans)) {
     $ausgaben["ansprechpartner"] .= "<tr class=\"hervorgehoben\"><td>Abteilung</td><td>Name Vorname</td><td>Telefon</td><td>E-Mail</td></tr>";
     $ausgaben["ansprechpartner"] .= "<tr><td colspan=\"4\"><img src=\"" . $pathvars["images"] . "/kart-linie.gif\" width=\"600\" height=\"11\"></td></tr>\n";
     foreach ($element_ans as $key => $value) {
         $ausgaben["ansprechpartner"] .= "<tr><td>" . str_replace("name=\"", "name=\"" . $key . ")", $value["kanam"]) . "</td>";
         $ausgaben["ansprechpartner"] .= "<td>" . str_replace("name=\"", "name=\"" . $key . ")", $value["kavor"]) . "</td>";
         $ausgaben["ansprechpartner"] .= "<td>" . str_replace("name=\"", "name=\"" . $key . ")", $value["katel"]) . "</td>";
         $ausgaben["ansprechpartner"] .= "<td>" . str_replace("name=\"", "name=\"" . $key . ")", $value["kaemail"]) . "</td><td></td><td></td><td></td>";
         #$ausgaben["ansprechpartner"] .= "<input name=\"edit\" type=\"image\" src=\"".$pathvars["images"]."/edit.gif\" width=\"24\" height=\"18\" border=\"0\" value=\"".$ans["kaid"]."\">";
         $ausgaben["ansprechpartner"] .= "<td align=\"right\"><input name=\"delete\" type=\"image\" src=\"" . $pathvars["images"] . "delete.png\" width=\"24\" height=\"18\" border=\"0\" value=\"" . $key . "\"></td></tr>";
         #$ausgaben["ansprechpartner"] .= "<tr>$counter</tr>";
开发者ID:BackupTheBerlios,项目名称:ewebuki-svn,代码行数:31,代码来源:kunden-modify.inc.php


注:本文中的form_elements函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。