<?php 
    }
}
?>

	<tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="6" /></td></tr>
	<tr><td colspan="2"><img src="img/lines/line-bluelight.gif" alt="" width="538" height="1" /></td></tr>
	<tr bgcolor="#F5F8F9"><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="6" /></td></tr>
	<?php 
//Auswahlliste vordefinierte Keywörter
$sql = "SELECT * FROM " . DB_PREPEND . "phpwcms_filecat WHERE fcat_deleted=0 ORDER BY fcat_sort, fcat_name";
if ($result = mysql_query($sql, $db) or die("error while browsing file categories for selecting keywords")) {
    $k = "";
    while ($row = mysql_fetch_array($result)) {
        if (get_filecat_childcount($row["fcat_id"], $db)) {
            $ke = empty($file_error["keywords"][$row["fcat_id"]]) ? '' : "<img src=\"img/symbole/error.gif\" width=\"8\" height=\"9\">&nbsp;";
            $k .= "<tr>\n<td class=\"f10b\">" . $ke . html($row["fcat_name"]) . ":&nbsp;</td>\n";
            $k .= "<td><select name=\"file_keywords[" . $row["fcat_id"] . "]\" class=\"width300\">\n";
            $k .= "<option value=\"" . ($row["fcat_needed"] ? "0_" . $row["fcat_needed"] . "\">" . $BL['be_ftptakeover_needed'] : '0">' . $BL['be_ftptakeover_optional']) . "</option>\n";
            $ksql = "SELECT * FROM " . DB_PREPEND . "phpwcms_filekey WHERE fkey_deleted=0 AND fkey_cid=" . $row["fcat_id"] . " ORDER BY fkey_name";
            if ($kresult = mysql_query($ksql, $db) or die("error while listing file keywords")) {
                while ($krow = mysql_fetch_array($kresult)) {
                    $k .= "<option value=\"" . $krow["fkey_id"] . "\"";
                    $k .= isset($file_keywords[$row["fcat_id"]]) && $file_keywords[$row["fcat_id"]] == $krow["fkey_id"] ? " selected" : "";
                    $k .= ">" . html($krow["fkey_name"]) . "</option>\n";
                }
                mysql_free_result($kresult);
            }
            $k .= "</select></td>\n</tr>\n";
            $k .= "<tr>\n<td colspan=\"2\"><img src=\"img/leer.gif\" width=\"1\" height=\"2\"></td>\n</tr>\n";
Ejemplo n.º 2
0
		  </form>
<?php 
}
//Ende Anzeige Key Name Formular
?>
          <tr><td colspan="2"><img src="img/lines/l538_70.gif" alt="" width="538" height="1" /></td>
    </tr>
          <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td>
    </tr>
		  <?php 
$sql = "SELECT * FROM " . DB_PREPEND . "phpwcms_filecat WHERE fcat_deleted=0 ORDER BY fcat_sort, fcat_name";
if ($result = mysql_query($sql, $db) or die("error while browsing file categories")) {
    while ($row = mysql_fetch_array($result)) {
        echo "<tr onmouseover=\"this.bgColor='#CCFF00';\" onMouseOut=\"this.bgColor='#FFFFFF';\">\n";
        echo "<td width=\"483\"><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tr>\n";
        $child_count = get_filecat_childcount($row["fcat_id"], $db);
        echo "<td>";
        echo $child_count ? "<a href=\"phpwcms.php?do=admin&p=7&open=" . $row["fcat_id"] . ":" . (empty($_SESSION["fcatlist"][$row["fcat_id"]]) ? 1 : 0) . "\">" : "";
        echo "<img src=\"img/symbole/plus_" . ($child_count ? empty($_SESSION["fcatlist"][$row["fcat_id"]]) ? "open" : "close" : "empty");
        echo ".gif\" width=\"15\" height=\"15\" border=\"0\">" . ($child_count ? "</a>" : "") . "</td>\n";
        echo "<td><img src=\"img/leer.gif\" width=\"2\" height=\"15\"></td>\n";
        echo "<td><strong" . ($row["fcat_needed"] ? " style=\"color:#FF3300\"" : "") . ">" . html($row["fcat_name"]) . "</strong> [" . $row["fcat_sort"] . "]</td>\n";
        echo "</tr>\n</table></td>" . LF;
        echo "<td width=\"55\">";
        echo "<a href=\"phpwcms.php?do=admin&p=7&fkeyid=0&cid=" . $row["fcat_id"] . "\" title=\"" . $BL['be_admin_fcat_addkey'] . "\">";
        echo "<img src=\"img/button/add_11x11.gif\" width=\"11\" height=\"11\" border=\"0\"></a>";
        echo "<a href=\"phpwcms.php?do=admin&p=7&fcatid=" . $row["fcat_id"] . "\" title =\"" . $BL['be_admin_fcat_editcat'] . "\">";
        echo "<img src=\"img/button/edit_22x11.gif\" width=\"22\" height=\"11\" border=\"0\"></a>";
        echo "<a href=\"include/inc_act/act_filecat.php?do=1," . $row["fcat_id"] . "," . ($row["fcat_aktiv"] ? 0 : 1) . "\" title =\"" . $BL['be_fprivfunc_cactivefile'] . "\">";
        echo "<img src=\"img/button/active_11x11_" . $row["fcat_aktiv"] . ".gif\" width=\"11\" height=\"11\" border=\"0\"></a>";
        echo "<a href=\"include/inc_act/act_filecat.php?do=8," . $row["fcat_id"] . "\" title =\"" . $BL['be_admin_fcat_delcat'] . "\" ";