Location: PHPKode > projects > Spam free PHP GuestBook > Spam free PHP GuestBook-1.2beta/gb/admin/include/editpost.php
<?php
/*
Copyright (c) 2008 http://ramui.com. All right reserved.
This product is protected by copyright and distributed under licenses restricting copying, distribution. Permission is granted to the public to download and use this script provided that this Notice and any statement of authorship are reproduced in every page on all copies of the script.
*/
$hmenu='<ul><li><a href="javascript:fwPublish()"><span id="fw_block">'.(($row['publish']=='Y')? 'Block' : 'Publish').'</span></a></li>';
$hmenu.='<li><a href="javascript:fwLock()"><span id="fw_lock">'.(($row['locked']=='Y')? 'Unlock' : 'Lock').'</span></a></li></li>';
$hmenu.='<li><a href="javascript:fwDelete()">Delete</a></li>';
$hmenu.='<li style="border:none;"><ul><li><a href="index.php?qur=2M">Post list</a></li>';
$hmenu.='<li><a href="index.php?qur=3M7M'.$row['uid'].'">User : '.$row['user'].'</a></li>';
$hmenu.=((empty($row['c']))? '<li>View all comments('.$row['c'].') of this post</li>':'<li><a href="index.php?qur=9M6M1M0M'.$post_id.'M0M0">View all comments('.$row['c'].') of this post</a></li>');
$hmenu.='</ul></li></ul>';
?>
<div id="setPreviewWindow"></div>
<form name="frmedit" id="frmedit" onsubmit="return false;">
<div id="hmenu"><?php echo $hmenu;?></div>
<table id="fw_addcomment">
<tr><td style="padding: 10px 0;width:80px;"><b>*Title:</b></td><td>
<input value="<?php echo $row['title']; ?>" class="text" style="width: 480px; height:24px;margin-top:5px;" type="text" name="title" size="20"></td></tr>
<tr><td style="padding: 10px 0;"><b>Description:</b></td><td>
<textarea class="text" style="width:480px; height:60px;margin-top:5px;" name="description"><?php echo $row['description']; ?></textarea></td></tr>
<tr><td colspan="2" id="feedback"></td></tr>
<tr><td style="padding: 10px 0;"><b>*Detail:</b></td><td id="division" style="padding: 5px 0;"></td></tr>
<tr><td style="padding: 10px 0;"><b>Tags:</b></td><td>
<input value="<?php echo $row['keywords']; ?>" type="text" class="text" style="width: 480px; height:24px;margin-top:5px;" name="keywords" id="keywords" size="20"><br /> 5 words <u>space seperated</u></td></tr>
<tr><td colspan="2" style="padding:25px 0 0 20px;">
<input type="reset" class="fw_button" value="Reset" name="B1" onclick="resetForm()" />&nbsp;&nbsp;
<input type="button" class="fw_button" value="Submit" onClick="fwEdit(<?php echo $submit;?>)" />&nbsp;&nbsp;
<input class="fw_button" type="button" name="preview" value="Preview" onclick="fwPreview(<?php echo $preview;?>)" />&nbsp;&nbsp;
<input style="width:15px; border:none; margin:0;" type="checkbox" name="fw_parseurls" id="fw_parseurls"<?php if($row['autolink']=='Y'){echo ' checked ';}?> /> automatically parse URLs</td></tr></table>
</form>
<script type="text/javascript">
var pid=<?php echo $post_id;?>;
<?php if(!empty($row['content'])){echo 'var bbCodeValue="'.fw_php2javascript($row['content']).'";';}?>
addBBcode("division",480,150);
fwSetPreview('setPreviewWindow');
</script>
</div>
Return current item: Spam free PHP GuestBook