Menu

[r6]: / bookmarks / viewbookmark.php  Maximize  Restore  History

Download this file

118 lines (100 with data), 4.3 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<?php
/*
** Application name: phpCollab
** Last Edit page: 2003-10-23
** Path by root: ../bookmarks/viewbookmark.php
** Authors: Ceam / Fullo
** =============================================================================
**
** phpCollab - Project Managment
**
** -----------------------------------------------------------------------------
** Please refer to license, copyright, and credits in README.TXT
**
** -----------------------------------------------------------------------------
** FILE: viewbookmark.php
**
** DESC: Screen: show bookmark details
**
** HISTORY:
** 2003-10-23 - added new document info
** -----------------------------------------------------------------------------
** TO-DO:
**
**
** =============================================================================
*/
$checkSession = "true";
include_once('../includes/library.php');
if ($action == "publish") {
if ($addToSite == "true") {
$tmpquery1 = "UPDATE ".$tableCollab["notes"]." SET published='0' WHERE id = '$id'";
connectSql("$tmpquery1");
$msg = "addToSite";
}
if ($removeToSite == "true") {
$tmpquery1 = "UPDATE ".$tableCollab["notes"]." SET published='1' WHERE id = '$id'";
connectSql("$tmpquery1");
$msg = "removeToSite";
}
}
$tmpquery = "WHERE boo.id = '$id'";
$bookmarkDetail = new request();
$bookmarkDetail->openBookmarks($tmpquery);
if ($bookmarkDetail->boo_users[0] != "") {
$pieces = explode("|",$bookmarkDetail->boo_users[0]);
$comptPieces = count($pieces);
$private = "false";
for ($i=0;$i<$comptPieces;$i++) {
if ($idSession == $pieces[$i]) {
$private = "true";
}
}
}
if (($bookmarkDetail->boo_users[0] == "" && $bookmarkDetail->boo_owner[0] != $idSession && $bookmarkDetail->boo_shared[0] == "0") || ($private == "false" && $bookmarkDetail->boo_owner[0] != $idSession)) {
headerFunction("../bookmarks/listbookmarks.php?view=my&msg=bookmarkOwner&".session_name()."=".session_id());
}
$setTitle .= " : View Bookmark (" . $bookmarkDetail->boo_name[0] . ")";
include('../themes/'.THEME.'/header.php');
$blockPage = new block();
$blockPage->openBreadcrumbs();
$blockPage->itemBreadcrumbs($blockPage->buildLink("../bookmarks/listbookmarks.php?view=$view",$strings["bookmarks"],in));
$blockPage->itemBreadcrumbs($bookmarkDetail->boo_name[0]);
$blockPage->closeBreadcrumbs();
if ($msg != "") {
include('../includes/messages.php');
$blockPage->messagebox($msgLabel);
}
$block1 = new block();
$block1->form = "tdD";
$block1->openForm("../bookmarks/viewbookmark.php?".session_name()."=".session_id()."#".$block1->form."Anchor");
$block1->heading($strings["bookmark"]." : ".$bookmarkDetail->boo_name[0]);
if ($bookmarkDetail->boo_owner[0] == $idSession) {
$block1->openPaletteIcon();
$block1->paletteIcon(0,"remove",$strings["delete"]);
/*if ($sitePublish == "true") {
$block1->paletteIcon(2,"add_projectsite",$strings["add_project_site"]);
$block1->paletteIcon(3,"remove_projectsite",$strings["remove_project_site"]);
}*/
$block1->paletteIcon(4,"edit",$strings["edit"]);
$block1->closePaletteIcon();
}
$block1->openContent();
$block1->contentTitle($strings["info"]);
$block1->contentRow($strings["name"],$bookmarkDetail->boo_name[0]);
$block1->contentRow($strings["url"],$blockPage->buildLink($bookmarkDetail->boo_url[0],$bookmarkDetail->boo_url[0],out));
$block1->contentRow($strings["description"],nl2br($bookmarkDetail->boo_description[0]));
$block1->closeContent();
$block1->closeForm();
if ($bookmarkDetail->boo_owner[0] == $idSession) {
$block1->openPaletteScript();
$block1->paletteScript(0,"remove","../bookmarks/deletebookmarks.php?id=".$bookmarkDetail->boo_id[0]."","true,true,false",$strings["delete"]);
/*if ($sitePublish == "true") {
$block1->paletteScript(2,"add_projectsite","../bookmarks/viewbookmark.php?addToSite=true&id=".$noteDetail->note_id[0]."&action=publish","true,true,true",$strings["add_project_site"]);
$block1->paletteScript(3,"remove_projectsite","../bookmarks/viewbookmark.php?removeToSite=true&id=".$noteDetail->note_id[0]."&action=publish","true,true,true",$strings["remove_project_site"]);
}*/
$block1->paletteScript(4,"edit","../bookmarks/editbookmark.php?id=".$bookmarkDetail->boo_id[0]."","true,true,false",$strings["edit"]);
$block1->closePaletteScript("","");
}
include('../themes/'.THEME.'/footer.php');
?>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.