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


PHP inhalt_selector函数代码示例

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


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

示例1: WHERE

     if ($where != "") {
         $ausgaben["result"] = "Ihre Erweiterte Suche nach " . $suchergebnis . " hat";
         $where = " WHERE (" . $where . ")";
     }
 }
 // +++
 // Erweiterte Suche (mor 2404)
 //checkbox lokale suche bauen
 // ***
 $ausgaben["check"] = "<input type=\"checkbox\" name=\"lokal\" value=\"on\"" . $lokalcheck . ">";
 // +++
 //checkbox lokale suche bauen
 // Sql Query
 $sql = "SELECT abid, abbnet, abcnet, abanrede, abnamra, abnamvor, abpasswort, adkate, adststelle, adstbfd, abdstemail, abdsttel, abdststelle FROM " . $cfg["db"]["entries"] . " INNER JOIN db_adrd ON abdststelle=adid" . $where . " ORDER by " . $cfg["db"]["order"];
 // Inhalt Selector erstellen und SQL modifizieren
 $inhalt_selector = inhalt_selector($sql, $position, $cfg["db"]["rows"], $parameter, 1, $cfg["db"]["selects"], $getvalues);
 # neu mit get
 $ausgaben["inhalt_selector"] .= $inhalt_selector[0];
 $sql = $inhalt_selector[1];
 $ausgaben["gesamt"] = $inhalt_selector[2];
 // Daten holen und ausgeben
 $result = $db->query($sql);
 if ($db->num_rows($result) == 0) {
     $ausgaben["result"] .= " keine Einträge gefunden.<br><br>";
 } else {
     // nur erweitern wenn bereits was drin steht
     if ($ausgaben["result"]) {
         $ausgaben["result"] .= " folgende Einträge gefunden.<br><br>";
     } else {
         $ausgaben["result"] = "";
     }
开发者ID:BackupTheBerlios,项目名称:ewebuki-svn,代码行数:31,代码来源:beschaeftigte-list.inc.php

示例2: inhalt_selector

    86343 Königsbrunn

    URL: http://www.chaos.de
*/
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if ($cfg["right"] == "" || $rechte[$cfg["right"]] == -1) {
    // funktions bereich
    // ***
    ### put your code here ###
    /* z.B. db query */
    $sql = "SELECT * FROM " . $cfg["db"]["info"]["entries"];
    if ($debugging["sql_enable"]) {
        $debugging["ausgabe"] .= "sql: " . $sql . $debugging["char"];
    }
    // seiten umschalter
    $inhalt_selector = inhalt_selector($sql, $environment["parameter"][1], $cfg["db"]["info"]["rows"], $parameter, 1, 3, $getvalues);
    $ausgaben["inhalt_selector"] = $inhalt_selector[0] . "<br />";
    $sql = $inhalt_selector[1];
    $ausgaben["anzahl"] = $inhalt_selector[2];
    $result = $db->query($sql);
    while ($data = $db->fetch_array($result, 1)) {
        $dataloop["liste"][] = array("titel" => $data[$cfg["db"]["info"]["titel"]], "teaser" => tagremove($data[$cfg["db"]["info"]["teaser"]]), "datum" => substr($data[$cfg["db"]["info"]["datum_von"]], 8, 2) . "." . substr($data[$cfg["db"]["info"]["datum_von"]], 5, 2) . "." . substr($data[$cfg["db"]["info"]["datum_von"]], 0, 4), "link" => $cfg["basis"] . "/details," . $data[$cfg["db"]["info"]["key"]] . ".html");
    }
    // +++
    // funktions bereich
    // page basics
    // ***
    // fehlermeldungen
    if ($HTTP_GET_VARS["error"] != "") {
        if ($HTTP_GET_VARS["error"] == 1) {
            $ausgaben["form_error"] = "#(error1)";
开发者ID:BackupTheBerlios,项目名称:ewebuki-bvv-svn,代码行数:31,代码来源:info-list.inc.php

示例3: inhalt_selector

 $position = $environment["parameter"][1] + 0;
 // Suche
 $ausgaben["form_aktion"] = $environment["basis"] . "/list," . $position . ",search.html";
 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 bproject LIKE '%" . $search_value . "%' OR bsign LIKE '%" . $search_value . "%' OR bshort LIKE '%" . $search_value . "%' OR bdetail LIKE '%" . $search_value . "%'";
 }
 // Sql Query
 $sql = "SELECT * FROM " . $data_entries . $where . " ORDER by username";
 // Inhalt Selector erstellen und SQL modifizieren
 $inhalt_selector = inhalt_selector($sql, $position, $data_rows, $parameter);
 $ausgaben["inhalt_selector"] .= $inhalt_selector[0];
 $sql = $inhalt_selector[1];
 // Daten holen und ausgeben
 $ausgaben["output"] .= "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">";
 $ausgaben["output"] .= "<tr>";
 $class = " class=\"lines\"";
 $ausgaben["output"] .= "<td" . $class . " colspan=\"14\"><img src=\"" . $cfg["iconpath"] . "/pos.png\" alt=\"\" width=\"1\" height=\"1\"></td>";
 $ausgaben["output"] .= "</tr>";
 $class = " class=\"contenthead\"";
 #$size  = " width=\"30\" height=\"20\"";
 #$ausgaben["output"] .= "<td".$class.$size.">&nbsp;</td>";
 #$ausgaben["output"] .= "<td".$class.">&nbsp;</td>";
 $size = " width=\"30\"";
 $ausgaben["output"] .= "<td" . $class . ">Login</td>";
 $ausgaben["output"] .= "<td" . $class . $size . ">&nbsp;</td>";
开发者ID:BackupTheBerlios,项目名称:ewebuki,代码行数:31,代码来源:usered.inc.php

示例4: inhalt_selector

 } else {
     $ausgaben["result"] = "";
 }
 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 neintrag LIKE '%" . $search_value . "%' OR nbeschreibung LIKE '%" . $search_value . "%'";
 }
 // Sql Query
 $sql = "SELECT * FROM " . $db_entries . $where . " ORDER by " . $db_entries_order;
 // Inhalt Selector erstellen und SQL modifizieren
 $inhalt_selector = inhalt_selector($sql, $position, $db_rows, $parameter, 1, 10);
 $ausgaben["inhalt_selector"] .= $inhalt_selector[0];
 $sql = $inhalt_selector[1];
 $ausgaben["gesamt"] = $inhalt_selector[2];
 // Daten holen und ausgeben
 $ausgaben["output"] .= "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">";
 $ausgaben["output"] .= "<tr>";
 $class = " class=\"lines\"";
 $ausgaben["output"] .= "<td" . $class . " colspan=\"8\"><img src=\"" . $pathvars["images"] . "/pos.png\" alt=\"\" width=\"1\" height=\"1\"></td>";
 $ausgaben["output"] .= "</tr>";
 $class = " class=\"contenthead\"";
 #$size  = " width=\"30\" height=\"20\"";
 #$ausgaben["output"] .= "<td".$class.$size.">&nbsp;</td>";
 #$ausgaben["output"] .= "<td".$class.">&nbsp;</td>";
 $size = " width=\"5\"";
 $ausgaben["output"] .= "<td" . $class . ">Datum</td>";
开发者ID:BackupTheBerlios,项目名称:ewebuki-svn,代码行数:31,代码来源:neues.inc.php

示例5: while

     while ($data = $db->fetch_array($result, 1)) {
         if ($data["referer"] != "") {
             $referer = $data["referer"];
         } else {
             $referer = "(direkter Aufruf)";
         }
         $dataloop["referer"][] = array("referer" => $referer, "hits" => $data["count"]);
     }
 } else {
     $hidedata["list"] = array();
     $sql = "SELECT sum(count) as count, site_file.fid, ffname, funder, fdesc\n                          FROM db_count_files\n                          JOIN site_file\n                            ON (db_count_files.fid=site_file.fid)\n                      GROUP BY site_file.fid,ffname, funder, fdesc\n                      ORDER BY count DESC";
     if ($debugging["sql_enable"]) {
         $debugging["ausgabe"] .= "sql: " . $sql . $debugging["char"];
     }
     // seiten umschalter
     $inhalt_selector = inhalt_selector($sql, $environment["parameter"][1], 20, $parameter, 1, 3, $getvalues);
     $ausgaben["inhalt_selector"] = $inhalt_selector[0] . "<br />";
     $sql = $inhalt_selector[1];
     $ausgaben["anzahl"] = $inhalt_selector[2];
     $result = $db->query($sql);
     $i = 0;
     while ($data = $db->fetch_array($result, 1)) {
         foreach ($data as $key => $value) {
             $dataloop["count"][$i][$key] = $value;
         }
         $dataloop["count"][$i]["pos"] = $i;
         $dataloop["count"][$i]["link"] = "?fid=" . $data["fid"];
         $i++;
     }
 }
 $mapping["main"] = "file_handling_tem";
开发者ID:BackupTheBerlios,项目名称:ewebuki-bvv-svn,代码行数:31,代码来源:file_handling.inc.php

示例6: show_blog


//.........这里部分代码省略.........
            if ($cfg["bloged"]["blogs"][$url]["ext_sort"] == "") {
                $where .= " AND Cast(SUBSTRING(content,POSITION('[" . $cfg["bloged"]["blogs"][$url]["sort"][0] . "]' IN content)+" . $sort_len . ",POSITION('[/" . $cfg["bloged"]["blogs"][$url]["sort"][0] . "]' IN content)-POSITION('[" . $cfg["bloged"]["blogs"][$url]["sort"][0] . "]' IN content)-" . $sort_len . ") as DATETIME) < '" . $environment["parameter"][4] . "-" . $month1 . "-" . $day1 . " 23:59:59' AND Cast(SUBSTRING(content,POSITION('[" . $cfg["bloged"]["blogs"][$url]["sort"][0] . "]' IN content)+" . $sort_len . ",POSITION('[/" . $cfg["bloged"]["blogs"][$url]["sort"][0] . "]' IN content)-POSITION('[" . $cfg["bloged"]["blogs"][$url]["sort"][0] . "]' IN content)-" . $sort_len . ") as DATETIME) > '" . $environment["parameter"][4] . "-" . $month2 . "-" . $day2 . " 00:00:00'";
            } else {
                $where .= " AND (( Cast(SUBSTRING(content,POSITION('[" . $cfg["bloged"]["blogs"][$url]["sort"][0] . "]' IN content)+" . $sort_len . ",POSITION('[/" . $cfg["bloged"]["blogs"][$url]["sort"][0] . "]' IN content)-POSITION('[" . $cfg["bloged"]["blogs"][$url]["sort"][0] . "]' IN content)-" . $sort_len . ") as DATETIME) < '" . $environment["parameter"][4] . "-" . $month1 . "-" . $day1 . " 23:59:59' AND Cast(SUBSTRING(content,POSITION('[" . $cfg["bloged"]["blogs"][$url]["sort"][0] . "]' IN content)+" . $sort_len . ",POSITION('[/" . $cfg["bloged"]["blogs"][$url]["sort"][0] . "]' IN content)-POSITION('[" . $cfg["bloged"]["blogs"][$url]["sort"][0] . "]' IN content)-" . $sort_len . ") as DATETIME) >= '" . $environment["parameter"][4] . "-" . $month2 . "-" . $day2 . " 00:00:00')";
                $sort_len2 = strlen($cfg["bloged"]["blogs"][$url]["ext_sort"]) + 2;
                $where .= " OR ( Cast(SUBSTRING(content,POSITION('[" . $cfg["bloged"]["blogs"][$url]["sort"][0] . "]' IN content)+" . $sort_len . ",POSITION('[/" . $cfg["bloged"]["blogs"][$url]["sort"][0] . "]' IN content)-POSITION('[" . $cfg["bloged"]["blogs"][$url]["sort"][0] . "]' IN content)-" . $sort_len . ") as DATETIME) <= '" . $environment["parameter"][4] . "-" . $month1 . "-" . $day2 . " 00:00:00' AND  Cast(SUBSTRING(content,POSITION('[" . $cfg["bloged"]["blogs"][$url]["ext_sort"] . "]' IN content)+" . $sort_len2 . ",POSITION('[/" . $cfg["bloged"]["blogs"][$url]["ext_sort"] . "]' IN content)-POSITION('[" . $cfg["bloged"]["blogs"][$url]["ext_sort"] . "]' IN content)-" . $sort_len2 . ") as DATETIME) >= '" . $environment["parameter"][4] . "-" . $month2 . "-" . $day2 . " 00:00:00'))";
            }
        }
    }
    //
    // erster test einer suchanfrage per kalender
    // falls kategorie , werden nur diese angezeigt
    if ($kategorie != "") {
        $cat_len = strlen($cfg["bloged"]["blogs"][$url]["category"]) + 2;
        $where .= "  AND SUBSTRING(content,POSITION('[" . $cfg["bloged"]["blogs"][$url]["category"] . "]' IN content),POSITION('[/" . $cfg["bloged"]["blogs"][$url]["category"] . "]' IN content)-POSITION('[" . $cfg["bloged"]["blogs"][$url]["category"] . "]' IN content)) ='[" . $cfg["bloged"]["blogs"][$url]["category"] . "]" . $kategorie . "'";
    }
    if ($future == -1) {
        $where .= " AND Cast(SUBSTRING(content,POSITION('[" . $cfg["bloged"]["blogs"][$url]["sort"][0] . "]' IN content)+" . $sort_len . ",POSITION('[/" . $cfg["bloged"]["blogs"][$url]["sort"][0] . "]' IN content)-POSITION('[" . $cfg["bloged"]["blogs"][$url]["sort"][0] . "]' IN content)-" . $sort_len . ") as DATETIME) < '" . date('Y-m-d') . " 23:59:59'";
    }
    $tname = eCRC($url) . ".%";
    // falls parameter 2 gesetzt, wird nur dieser content geholt
    if ($environment["parameter"][2] != "" && $environment["ebene"] != "/wizard") {
        $tname = eCRC($url) . "." . $environment["parameter"][2];
    }
    // falls sort auf -1 wird anstatt ein datum ein integer als sortiermerkmal gesetzt um ein manuelles sortieren zu ermoeglichen
    if ($cfg["bloged"]["blogs"][$url]["sort"][1] == "-1") {
        $art = "SIGNED";
    } else {
        $art = "DATETIME";
    }
    // hier der endgueltige sql !!
    $sql = "SELECT Cast(SUBSTRING(content,POSITION('[" . $cfg["bloged"]["blogs"][$url]["sort"][0] . "]' IN content)+" . $sort_len . ",POSITION('[/" . $cfg["bloged"]["blogs"][$url]["sort"][0] . "]' IN content)-POSITION('[" . $cfg["bloged"]["blogs"][$url]["sort"][0] . "]' IN content)-" . $sort_len . ") AS " . $art . ") AS date,status,content,tname from site_text WHERE " . $status . " AND tname like '" . $tname . "'" . $where . " order by date" . $order . " DESC";
    // damit kann man beliebig viele blogs manuell holen
    $ausgaben["inhalt_selector"] = "";
    if (strpos($limit, ",")) {
        $sql = $sql . " LIMIT " . $limit;
    } else {
        if ($limit != "") {
            $hidedata["inhalt_selector"]["on"] = "on";
            $p = $environment["parameter"][1] + 0;
            // seiten umschalter
            $inhalt_selector = inhalt_selector($sql, $p, $limit, $parameter, 1, 10, $getvalues);
            $ausgaben["inhalt_selector"] = $inhalt_selector[0] . "<br />";
            $sql = $inhalt_selector[1];
            $ausgaben["anzahl"] = $inhalt_selector[2];
            $ausgaben["sel_hit"] = $inhalt_selector[3];
        }
    }
    $counter = 0;
    $result = $db->query($sql);
    $preg1 = "\\.([0-9]*)\$";
    // evtl wizard einbinden
    if ($cfg["bloged"]["blogs"][$url]["wizard"] != "") {
        $editlink = "/wizard/show,";
    } else {
        $editlink = "/admin/contented/edit,";
    }
    while ($data = $db->fetch_array($result, 1)) {
        $tag_parameter = "";
        $counter++;
        // im wizard wird der content aus der SESSION-Variablen genommen
        if ($_SESSION["wizard_content"][DATABASE . "," . $data["tname"] . ",inhalt"] && $environment["ebene"] == "/wizard") {
            $test = preg_replace("|\r\n|", "\\r\\n", $_SESSION["wizard_content"][DATABASE . "," . $data["tname"] . ",inhalt"]);
        } else {
            $test = preg_replace("|\r\n|", "\\r\\n", $data["content"]);
        }
开发者ID:BackupTheBerlios,项目名称:ewebuki-svn,代码行数:67,代码来源:function_show_blog.inc.php

示例7: inhalt_selector

     }
 }
 // +++
 // funktions bereich ( auswertung )
 // funktions bereich
 // ***
 // db query
 $sql = "SELECT *\n                  FROM " . $cfg["fileed"]["db"]["file"]["entries"] . "\n                  " . $where . "\n              ORDER BY " . $cfg["fileed"]["db"]["file"]["order"];
 if ($debugging["sql_enable"]) {
     $debugging["ausgabe"] .= "sql: " . $sql . $debugging["char"];
 }
 // seiten umschalter
 if ($environment["parameter"][1] != "") {
     $_SESSION["fileed_position"] = $environment["parameter"][1];
 }
 $inhalt_selector = inhalt_selector($sql, $_SESSION["fileed_position"], $cfg["fileed"]["db"]["file"]["rows"], Null, 1, 3, Null);
 $ausgaben["inhalt_selector"] = $inhalt_selector[0];
 $sql = $inhalt_selector[1];
 $ausgaben["anzahl"] = $inhalt_selector[2];
 $result = $db->query($sql);
 $i = 0;
 if ($debugging["sql_enable"]) {
     $debugging["ausgabe"] .= "sql: " . $sql . $debugging["char"];
 }
 if ($db->num_rows($result) == 0) {
     #$ausgaben["result"] .= " keine Eintr�ge gefunden.";
     $ausgaben["result"] .= " #(answerc_no)";
 } else {
     // nur erweitern wenn bereits was drin steht
     if ($ausgaben["result"]) {
         #$ausgaben["result"] .= " folgende Eintr�ge gefunden.";
开发者ID:BackupTheBerlios,项目名称:ewebuki-svn,代码行数:31,代码来源:fileed-list.inc.php

示例8: inhalt_selector

 $position = $environment[parameter][1] + 0;
 // Suche
 $ausgaben[form_aktion] = $environment[basis] . "/list," . $position . ",search.html";
 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 lentry LIKE '%" . $search_value . "%' OR ldetail LIKE '%" . $search_value . "%'";
 }
 // Sql Query
 $sql = "SELECT * FROM " . $logbuch_entries . $where . " ORDER by ldate";
 // Inhalt Selector erstellen und SQL modifizieren
 $inhalt_selector = inhalt_selector($sql, $position, $logbuch_rows, $parameter);
 $ausgaben[inhalt_selector] .= $inhalt_selector[0];
 $sql = $inhalt_selector[1];
 // Daten holen und ausgeben
 $ausgaben[output] .= "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">";
 $ausgaben[output] .= "<tr>";
 $class = " class=\"lines\"";
 $ausgaben[output] .= "<td" . $class . " colspan=\"14\"><img src=\"" . $pathvars[images] . "/pos.png\" alt=\"\" width=\"1\" height=\"1\"></td>";
 $ausgaben[output] .= "</tr>";
 $class = " class=\"contenthead\"";
 #$size  = " width=\"30\" height=\"20\"";
 #$ausgaben[output] .= "<td".$class.$size.">&nbsp;</td>";
 #$ausgaben[output] .= "<td".$class.">&nbsp;</td>";
 $size = " width=\"5\"";
 $ausgaben[output] .= "<td" . $class . ">Datum</td>";
 $ausgaben[output] .= "<td" . $class . $size . ">&nbsp;</td>";
开发者ID:BackupTheBerlios,项目名称:ewebuki-svn,代码行数:31,代码来源:logbuch.inc.php

示例9: addslashes

        $search_strings = $_GET["wsearch"];
    } else {
        $search_strings = addslashes($_GET["wsearch"]);
    }
    $where = " AND titel LIKE '" . $search_strings . "%'";
    $ausgaben["result"] = " #(for) <b>" . $ausgaben["wsearch"] . "</b>";
}
/* z.B. db query */
$sql = "SELECT *\n                  FROM " . $cfg["wening"]["db"]["produkte"]["entries"] . "\n                 WHERE " . $cfg["wening"]["db"]["produkte"]["typ"] . "='wening'" . $where . "\n              ORDER BY " . $cfg["wening"]["db"]["produkte"]["order"];
// echo "<pre>$sql</pre>";
if ($debugging["sql_enable"]) {
    $debugging["ausgabe"] .= "sql: " . $sql . $debugging["char"];
}
// seiten umschalter
$get_vars = trim(str_replace("ajax=update", "", $_SERVER["QUERY_STRING"]), "& ");
$inhalt_selector = inhalt_selector($sql, $environment["parameter"][1], $cfg["wening"]["db"]["produkte"]["rows"], $parameter, 1, 5, $get_vars);
$ausgaben["inhalt_selector"] = $inhalt_selector[0] . "<br />";
$sql = $inhalt_selector[1];
$ausgaben["anzahl"] = $inhalt_selector[2];
$ausgaben["inhalt_selected"] = $inhalt_selector[3];
$result = $db->query($sql);
while ($data = $db->fetch_array($result, 1)) {
    // abgabe-format
    if (strstr($data[$cfg["wening"]["db"]["produkte"]["desc"]], "Doppelblatt")) {
        $abgabe = "Doppelblatt";
    } elseif (strstr($data[$cfg["wening"]["db"]["produkte"]["desc"]], "Dreifachblatt")) {
        $abgabe = "Dreifachblatt";
    } else {
        $abgabe = "Normalblatt";
    }
    // bild holen
开发者ID:BackupTheBerlios,项目名称:ewebuki-bvv-svn,代码行数:31,代码来源:wening-list.inc.php

示例10: implode

     $ausgaben["result"] = "#(answera) <b>\"" . implode("\"</b> und <b>\"", $filters) . "\"</b> #(answerb) ";
 }
 // +++
 // funktions bereich ( auswertung )
 // funktions bereich
 // ***
 // db query
 $sql = "SELECT *\n                  FROM " . $cfg["fileed"]["db"]["file"]["entries"] . "\n                  " . $where . "\n              ORDER BY " . $cfg["fileed"]["db"]["file"]["order"];
 if ($debugging["sql_enable"]) {
     $debugging["ausgabe"] .= "sql: " . $sql . $debugging["char"];
 }
 // seiten umschalter
 if ($environment["parameter"][1] != "") {
     $_SESSION["fileed_position"] = $environment["parameter"][1];
 }
 $inhalt_selector = inhalt_selector($sql, $environment["parameter"][1], $cfg["fileed"]["db"]["file"]["rows"], "," . $environment["parameter"][2] . "," . $environment["parameter"][3] . "," . $view_mode . "," . $environment["parameter"][5], 1, 5, Null);
 $ausgaben["inhalt_selector"] = $inhalt_selector[0];
 $ausgaben["inhalt_selected"] = $inhalt_selector[3];
 $sql = $inhalt_selector[1];
 $ausgaben["anzahl"] = $inhalt_selector[2];
 $result = $db->query($sql);
 $i = 0;
 if ($debugging["sql_enable"]) {
     $debugging["ausgabe"] .= "sql: " . $sql . $debugging["char"];
 }
 if ($db->num_rows($result) == 0) {
     #$ausgaben["result"] .= " keine Eintr�ge gefunden.";
     $ausgaben["result"] .= " #(answerc_no)";
     $hidedata["empty_search"]["search"] = "<b>\"" . implode("\"</b> und <b>\"", $filters) . "\"</b>";
     $hidedata["file"]["display"] = "none";
 } else {
开发者ID:BackupTheBerlios,项目名称:ewebuki-svn,代码行数:31,代码来源:fileed2-list.inc.php

示例11: max

 $ausgaben["diff"] = "";
 $ausgaben["rows"] = $cfg["contented"]["history_rows"];
 // hoechste und niedrigste versionsnummer rausfinden
 $sql = "SELECT max(version), min(version)\n                  FROM site_text\n                 WHERE tname='" . $tname . "'\n                   AND label='" . $label . "'";
 $result = $db->query($sql);
 $data = $db->fetch_array($result, 1);
 $last_version = $data["max"];
 $first_version = $data["min"];
 $sql = "SELECT *\n                  FROM site_text\n                 WHERE tname='" . $tname . "'\n                   AND label='" . $label . "'\n              ORDER BY version DESC";
 if ($debugging["sql_enable"]) {
     $debugging["ausgabe"] .= "sql: " . $sql . $debugging["char"];
 }
 $result = $db->query($sql);
 // Inhalt Selector erstellen und SQL modifizieren
 $parameter = "," . $tname . "," . $label . "," . $old . "," . $new . "," . $environment["parameter"][6] . "," . $environment["parameter"][7];
 $inhalt_selector = inhalt_selector($sql, $position, $cfg["contented"]["history_rows"], $parameter);
 $ausgaben["inhalt_selector"] .= $inhalt_selector[0];
 $sql = $inhalt_selector[1];
 $ausgaben["gesamt"] = $inhalt_selector[2];
 $result = $db->query($sql);
 $counter = "";
 while ($form_values = $db->fetch_array($result, 1)) {
     $counter++;
     $selected_new = "";
     if ($new == "" && $counter == 1 || $new == $form_values["version"]) {
         $selected_new = " checked=\"checked\"";
         $ausgaben["new_sel_id"] = $form_values["version"];
     }
     $selected_old = "";
     if ($old == "" && $counter == 2 || $old == $form_values["version"]) {
         $selected_old = " checked=\"checked\"";
开发者ID:BackupTheBerlios,项目名称:ewebuki-svn,代码行数:31,代码来源:contented-history.inc.php

示例12: elseif

    // unzugaengliche #(marken) sichtbar machen
    if (isset($HTTP_GET_VARS["edit"])) {
        $ausgaben["inaccessible"] = "inaccessible values:<br />";
        #$ausgaben["inaccessible"] .= "# (error_?) #(error_?)<br />";
    } else {
        $ausgaben["inaccessible"] = "";
    }
    // wohin schicken
    #n/a
    //
    // Liste anzeigen
    //
} elseif ($environment["kategorie"] == "list" && $rechte[$cfg["right"]] == -1) {
    // inhalt selector init
    $sql = "SELECT * FROM " . $cfg["db"]["level"]["entries"] . $where . " ORDER by level";
    $inhalt_selector = inhalt_selector($sql, $environment["parameter"][1], $cfg["rows"], $parameter);
    $ausgaben["inhalt_selector"] .= $inhalt_selector[0];
    $sql = $inhalt_selector[1];
    // tabellen spiel
    $ausgaben["output"] .= "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">";
    $ausgaben["output"] .= "<tr>";
    $class = " class=\"lines\"";
    $ausgaben["output"] .= "<td" . $class . " colspan=\"14\"><img src=\"" . $pathvars["images"] . "/pos.png\" alt=\"\" width=\"1\" height=\"1\"></td>";
    $ausgaben["output"] .= "</tr>";
    $class = " class=\"contenthead\"";
    $size = " width=\"30\"";
    $ausgaben["output"] .= "<td" . $class . ">#(level)</td>\n";
    $ausgaben["output"] .= "<td" . $class . $size . ">&nbsp;</td>\n";
    $ausgaben["output"] .= "<td" . $class . ">#(beschreibung)</td>\n";
    $ausgaben["output"] .= "<td" . $class . $size . ">&nbsp;</td>\n";
    $ausgaben["output"] .= "<td" . $class . ">#(modify)</td>\n";
开发者ID:BackupTheBerlios,项目名称:ewebuki,代码行数:31,代码来源:leveled.inc.php

示例13: inhalt_selector

$where .= $whereb;
/*
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 bproject LIKE '%".$search_value."%' OR bsign LIKE '%".$search_value."%' OR bshort LIKE '%".$search_value."%' OR bdetail LIKE '%".$search_value."%'";
}
*/
// Sql Query
$sql = "SELECT abid, abbnet, abcnet, abnamra, abnamvor, abnamkurz, abdststelle, adkate, adststelle FROM " . $cfg["db"]["entries"] . " INNER JOIN db_adrd ON abdststelle=adid" . $where . " ORDER by " . $cfg["db"]["order"];
// Inhalt Selector erstellen und SQL modifizieren
$inhalt_selector = inhalt_selector($sql, $position, $cfg["db"]["rows"], $parameter);
$ausgaben["inhalt_selector"] .= $inhalt_selector[0];
$sql = $inhalt_selector[1];
$ausgaben["gesamt"] = $inhalt_selector[2];
// Daten holen und ausgeben
$ausgaben["output"] .= "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">";
$ausgaben["output"] .= "<tr>";
$class = " class=\"lines\"";
$ausgaben["output"] .= "<td" . $class . " colspan=\"14\"><img src=\"" . $pathvars["images"] . "/pos.png\" alt=\"\" width=\"1\" height=\"1\"></td>";
$ausgaben["output"] .= "</tr>";
$class = " class=\"contenthead\"";
$size = " width=\"5\"";
$ausgaben["output"] .= "<td" . $class . ">Namenskürzel</td>";
$ausgaben["output"] .= "<td" . $class . $size . ">&nbsp;</td>";
$ausgaben["output"] .= "<td" . $class . ">Nachname</td>";
$ausgaben["output"] .= "<td" . $class . $size . ">&nbsp;</td>";
开发者ID:BackupTheBerlios,项目名称:ewebuki-svn,代码行数:31,代码来源:usered-list.inc.php


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