function struct_levellist($struct, $key, $counter, $copy_article_content, $cut_article_content, $copy_id, $copy_article, $cut_id, $forbid_cut, $forbid_copy, $listmode, $cut_article, $count_row, $dbcon) { global $BL; $page_val = $listmode ? "do=admin&p=6" : "do=articles"; $child_count = get_root_childcount($struct[$key]["acat_id"], $dbcon); $child_sort = ($child_count + 1) * 10; $forbid_cut = $struct[$key]["acat_struct"] == $cut_id || $forbid_cut ? 1 : 0; $forbid_copy = $struct[$key]["acat_struct"] == $copy_id || $forbid_copy ? 1 : 0; $an = html($struct[$key]["acat_name"]); $a = "<tr onmouseover=\"this.bgColor='#CCFF00';\" onmouseout=\"this.bgColor='#FFFFFF';\">\n"; $a .= '<td width="461">'; $a .= "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" summary=\"\">\n<tr>\n"; $a .= '<td nowrap="nowrap"><img src="img/leer.gif" width="' . (14 + 14 * ($counter - 1)) . "\" height=\"1\" alt=\"\" />"; //14 $a .= $child_count ? "<a href=\"phpwcms.php?" . $page_val . "&open=" . rawurlencode($struct[$key]["acat_id"] . ":" . (!empty($_SESSION["structure"][$struct[$key]["acat_id"]]) ? 0 : 1)) . "\">" : ""; $a .= "<img src=\"img/symbole/plus_" . ($child_count ? !empty($_SESSION["structure"][$struct[$key]["acat_id"]]) ? "close" : "open" : "empty"); $a .= ".gif\" width=\"15\" height=\"15\" border=\"0\" alt=\"\" />" . ($child_count ? "</a>" : ""); $a .= "<img src=\"img/symbole/page_" . (!$struct[$key]["acat_hidden"] ? 1 : 7); if ($struct[$key]["acat_regonly"]) { $a .= '_locked'; } $a .= ".gif\" width=\"11\" height=\"15\" "; $info = 'ID: <b>' . $struct[$key]["acat_id"] . '</b><br />'; $info .= $BL['be_alias'] . ': ' . html($struct[$key]["acat_alias"]) . '<br />'; $info .= $BL['be_cnt_sortvalue'] . ': ' . $struct[$key]["acat_sort"]; $info .= '<br>' . $BL['be_admin_struct_template'] . ': '; if (empty($struct[$key]['template_trash'])) { $info .= html($struct[$key]["template_name"]); if ($struct[$key]["template_default"]) { $info .= ' (' . $BL['be_admin_tmpl_default'] . ')'; } } else { $info .= $BL['be_admin_tmpl_default']; } $a .= 'onmouseover="Tip(\'' . $info . '\');" onmouseout="UnTip()" alt=""'; $a .= "></td>\n"; $a .= "<td><img src=\"img/leer.gif\" width=\"2\" height=\"15\" alt=\"\" /></td>\n"; $a .= '<td class="dir" width="95%"><strong><a href="'; $a .= rel_url(array('phpwcms-preview' => 1), array(), empty($struct[$key]["acat_alias"]) ? 'id=' . $struct[$key]["acat_id"] : $struct[$key]["acat_alias"]); $a .= '" target="_blank" title="' . $BL['be_func_struct_preview'] . ': ' . $an . '">'; $a .= $an . "</a></strong></td>\n</tr>\n</table></td>\n<td width=\"77\" nowrap=\"nowrap\">"; $a .= listmode_edits($listmode, $struct, $key, $an, $copy_article_content, $cut_article_content, $copy_article, $copy_id, $cut_article, $cut_id, $forbid_cut, $forbid_copy, $count_row, $child_sort); $a .= "</td>\n</tr>\n"; echo $a; if (isset($_SESSION["structure"][$struct[$key]["acat_id"]]) && $_SESSION["structure"][$struct[$key]["acat_id"]]) { if (!$listmode) { struct_articlelist($struct[$key]["acat_id"], $counter, $copy_article_content, $cut_article_content, $copy_article, $cut_article, $struct[$key]["acat_order"]); } struct_list($struct[$key]["acat_id"], $dbcon, $copy_article_content, $cut_article_content, $copy_id, $copy_article, $cut_id, $cut_article, $listmode, $forbid_cut, $forbid_copy, $counter); } }
} //31-03-2005 Fernando Batista start--------------------------------------------------------------------------- $cut_article_content = isset($_GET["accut"]) ? intval($_GET["accut"]) : 0; $copy_article_content = isset($_GET["accopy"]) ? intval($_GET["accopy"]) : 0; if (isset($_GET["opena"])) { list($open_id, $open_value) = explode(":", $_GET["opena"]); $open_id = intval($open_id); if (empty($open_value)) { unset($_SESSION["structure"]["article"][$open_id]); } else { $_SESSION["structure"]["article"][$open_id] = $open_value; } mysql_query("UPDATE " . DB_PREPEND . "phpwcms_user SET usr_var_structure=" . _dbEscape(serialize($_SESSION["structure"])) . " WHERE usr_id=" . aporeplace($_SESSION["wcs_user_id"]), $db); } //31-03-2005 Fernando Batista end------------------- $child_count = get_root_childcount(0, $db); //$an = $BL['be_admin_struct_index']; $an = $indexpage['acat_name']; $a = "<tr onMouseOver=\"this.bgColor='#CCFF00';\" onMouseOut=\"this.bgColor='#FFFFFF';\">\n"; $a .= '<td width="461">'; $a .= "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" summary=\"\">\n<tr>\n"; $a .= '<td nowrap="nowrap">'; $a .= $child_count ? "<a href=\"phpwcms.php?do=articles&open=0:" . ($_SESSION["structure"][0] ? 0 : 1) . "\">" : ""; $a .= "<img src=\"img/symbole/plus_" . ($child_count ? $_SESSION["structure"][0] ? "close" : "open" : "empty"); $a .= ".gif\" width=\"15\" height=\"15\" border=\"0\" alt=\"\">" . ($child_count ? "</a>" : ""); $a .= "<img src=\"img/symbole/page_1.gif\" width=\"11\" height=\"15\" "; $info = 'ID: <b>0</b><br />'; $info .= 'ALIAS: ' . html($indexpage["acat_alias"]); $a .= 'onmouseover="Tip(\'' . $info . '\');" onmouseout="UnTip()" alt="" />'; $a .= "</td>\n"; $a .= "<td><img src=\"img/leer.gif\" width=\"2\" height=\"15\" alt=\"\" /></td>\n";