$id = str_replace('**', ',', $id); $tmpquery1 = 'DELETE FROM ' . $tableCollab['bookmarks'] . ' WHERE id IN(' . $id . ')'; connectSql($tmpquery1); header('Location: ../bookmarks/listbookmarks.php?view=my&msg=delete'); exit; } //--- header --- $breadcrumbs[] = buildLink('../bookmarks/listbookmarks.php?view=all', $strings['bookmarks'], LINK_INSIDE); $breadcrumbs[] = $strings['delete_bookmarks']; $pageSection = 'bookmarks'; require_once '../themes/' . THEME . '/header.php'; //--- content ------ $block1 = new block(); $block1->form = 'saP'; $block1->openForm('../bookmarks/deletebookmarks.php?action=delete&id=' . $id); $block1->headingForm($strings['delete_bookmarks']); $block1->openContent(); $block1->contentTitle($strings['delete_following']); $id = str_replace('**', ',', $id); $tmpquery = 'WHERE boo.id IN(' . $id . ') ORDER BY boo.name'; $listBookmarks = new request(); $listBookmarks->openBookmarks($tmpquery); $comptListBookmarks = count($listBookmarks->boo_id); for ($i = 0; $i < $comptListBookmarks; $i++) { $block1->contentRow('#' . $listBookmarks->boo_id[$i], $listBookmarks->boo_name[$i]); } $block1->contentRow('', '<input type="submit" name="delete" value="' . $strings['delete'] . '"> <input type="button" name="cancel" value="' . $strings['cancel'] . '" onClick="history.back();">'); $block1->closeContent(); $block1->headingForm_close(); $block1->closeForm(); require_once '../themes/' . THEME . '/footer.php';
// $block1->cellRow($status[$idStatus]); $block1->cellRow('<img src="../themes/' . THEME . '/gfx_status/' . $idStatus . '.gif" alt="' . $status[$idStatus] . '"> ' . $status[$idStatus], '', true); $block1->cellRow(buildLink($listProjects->pro_mem_email_work[$i], $listProjects->pro_mem_login[$i], LINK_MAIL)); if ($sitePublish == "true") { if ($listProjects->pro_published[$i] == "1") { $block1->cellRow("<" . buildLink("../projects/addprojectsite.php?id=" . $listProjects->pro_id[$i], $strings["create"] . "...", LINK_INSIDE) . ">"); } else { $block1->cellRow("<" . buildLink("../projects/viewprojectsite.php?id=" . $listProjects->pro_id[$i], $strings["details"], LINK_INSIDE) . ">"); } } $block1->closeRow(); } $block1->closeResults(); $block1->bornesFooter("1", $blockPage->bornesNumber, "", "searchfor={$searchfor}&heading={$heading}"); $block1->closeToggle(); $block3->headingForm_close(); $block1->closeFormResults(); $block1->openPaletteScript(); $block1->paletteScript(0, "export", "../projects/exportproject.php?languageSession=" . $_SESSION['languageSession'] . "&type=project", "false,true,false", $strings["export"]); $block1->closePaletteScript($comptListProjects, $listProjects->pro_id); } if ($comptListTasks != "0") { $block2->form = "TaskForm"; $block2->openForm("../search/resultssearch.php?searchfor={$searchfor}&heading={$heading}#" . $block2->form . "Anchor"); $block2->headingForm($strings["search_results"] . " : " . $strings["tasks"] . " ({$block2->recordsTotal})"); /*$block2->openPaletteIcon(); $block2->paletteIcon(0,"export",$strings["export"]); $block2->closePaletteIcon();*/ $block2->openResults();