Location: PHPKode > projects > Ptk-forensics > ptk/lib/modal_edit_bookmark.php
<?
/*
PTK  - DFLabs
Copyright (C) 2008 - DFLabs srl - All rights reserved
hide@address.com
*/
include("check_session.php");
include("check_session_image.php");
include("lib_std.php");
include("sanitize.php");
$token = sanitize(RemoveXSS($_GET['tk']),PARANOID);
$id = sanitize($_GET['id'],INT);
$bm = bookmark_info_from_id($id);
$tag = sanitize_tag(RemoveXSS($_GET['tag']));	
$part_id = preg_replace("/[^0-9\,]/", "",$_GET['part_id']);
?>
<b style="float:left">Edit bookmark</b><img id="close_box" style="float:right; cursor: pointer" src="../img/cancel.png" onclick="closeMessage()">
<br><hr>
<form method="post" name="bookmarkForm" onsubmit="edit_bookmark($(this).serialize(), '<?=urlencode($tag)?>', '<?=$part_id?>','<?=$token?>'); return false;">
	<input type="hidden" name="id" value="<?=$id?>">
	<table class="form">
		<tr><td>Name: </td><td><input type="text" value="<?=$bm['title']?>" readonly style="width:250px; color:grey"></td></tr>
		<tr><td><b>Categories: </b></td><td><input type="text" name="tags" id="tags" style="width:250px" value="<?=stripslashes($bm['tags'])?>"><div id="tag_list" class="autocomplete"></div></td></tr>
		<tr><td style="vertical-align:top">Description: </td><td><textarea class="case" name="description" style="width:250px"><?=stripslashes($bm['description'])?></textarea></td></tr>
		<tr><td></td></tr>
		<tr><td></td></tr>
		<tr><td></td><td style="text-align: right"><input type="submit" value="Save"></td></tr>		
	</table>
</form>

<script type="text/javascript">
new Ajax.Autocompleter('tags', 'tag_list', 'get_tags.php', {tokens: ' '});
document.bookmarkForm.description.focus();
</script>	


Return current item: Ptk-forensics