home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2004 April
/
CMCD0404.ISO
/
Software
/
Freeware
/
Programare
/
groupoffice-com-2.01
/
modules
/
bookmarks
/
index.php
< prev
Wrap
PHP Script
|
2004-03-08
|
2KB
|
55 lines
<?php
/*
Copyright Intermesh 2003
Author: Merijn Schering <mschering@intermesh.nl>
Version: 1.0 Release date: 08 July 2003
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.
*/
require("../../Group-Office.php");
$GO_SECURITY->authenticate();
require($GO_LANGUAGE->get_language_file('bookmarks'));
$GO_MODULES->authenticate('bookmarks');
require($GO_CONFIG->class_path."bookmarks.class.inc");
$bookmarks = new bookmarks();
if (isset($_REQUEST['delete_bookmark']))
{
$bookmarks->delete_bookmark($GO_SECURITY->user_id, $_REQUEST['delete_bookmark']);
}
require($GO_THEME->theme_path."header.inc");
$tabtable = new tabtable('bookmarks_tab', $lang_modules['bookmarks'], '600', '400', '120', '', true);
$tabtable->print_head();
?>
<br />
<a href="bookmark.php" class="normal"><?php echo $cmdAdd; ?></a>
<br /><br />
<table border="0">
<?php
$count = $bookmarks->get_bookmarks($GO_SECURITY->user_id);
if ($count > 0)
{
while($bookmarks->next_record())
{
$target = $bookmarks->f('new_window') == '1' ? '_blank' : '_self';
echo '<tr><td><a target="'.$target.'" class="normal" href="'.$bookmarks->f("URL").'">'.$bookmarks->f("name").'</a></td>';
echo '<td><a class="normal" href="bookmark.php?bookmark_id='.$bookmarks->f("id").'"><img src="'.$GO_THEME->images['edit'].'" border="0"></a></td>';
echo "<td><a href='javascript:confirm_action(\"".$_SERVER['PHP_SELF']."?delete_bookmark=".$bookmarks->f("id")."\",\"".rawurlencode($strDeletePrefix."'".$bookmarks->f("name")."'".$strDeleteSuffix)."\")' title=\"".$strDeleteItem." '".$bookmarks->f("name")."'\"><img src=\"".$GO_THEME->images['delete']."\" border=\"0\"></a></td></tr>";
}
}else
{
echo '<tr><td colspan="2">'.$bm_no_bookmarks.'</td></tr>';
}
?>
</table>
<?php
$tabtable->print_foot();
require($GO_THEME->theme_path."footer.inc");
?>