Project

General

Profile

1
<?php
2
/**
3
 *
4
 * @category        modules
5
 * @package         news
6
 * @author          WebsiteBaker Project
7
 * @copyright       2009-2011, Website Baker Org. e.V.
8
 * @link			http://www.websitebaker2.org/
9
 * @license         http://www.gnu.org/licenses/gpl.html
10
 * @platform        WebsiteBaker 2.8.x
11
 * @requirements    PHP 5.2.2 and higher
12
 * @version         $Id: modify_comment.php 1538 2011-12-10 15:06:15Z Luisehahne $
13
 * @filesource		$HeadURL: svn://isteam.dynxs.de/wb-archiv/branches/2.8.x/wb/modules/news/modify_comment.php $
14
 * @lastmodified    $Date: 2011-12-10 16:06:15 +0100 (Sat, 10 Dec 2011) $
15
 *
16
 */
17

    
18
require('../../config.php');
19

    
20
// Include WB admin wrapper script
21
require(WB_PATH.'/modules/admin.php');
22

    
23
$comment_id = $admin->checkIDKEY('comment_id', false, 'GET');
24
if (!$comment_id) {
25
	$admin->print_error($MESSAGE['GENERIC_SECURITY_ACCESS'],  ADMIN_URL.'/pages/modify.php?page_id='.$page_id );
26
}
27

    
28
// Get header and footer
29
$query_content = $database->query("SELECT post_id,title,comment FROM ".TABLE_PREFIX."mod_news_comments WHERE comment_id = '$comment_id'");
30
$fetch_content = $query_content->fetchRow();
31
?>
32

    
33
<h2><?php echo $TEXT['MODIFY'].' '.$TEXT['COMMENT']; ?></h2>
34

    
35
<form name="modify" action="<?php echo WB_URL; ?>/modules/news/save_comment.php" method="post" style="margin: 0;">
36

    
37
<input type="hidden" name="section_id" value="<?php echo $section_id; ?>" />
38
<input type="hidden" name="page_id" value="<?php echo $page_id; ?>" />
39
<input type="hidden" name="post_id" value="<?php echo $fetch_content['post_id']; ?>" />
40
<input type="hidden" name="comment_id" value="<?php echo $comment_id; ?>" />
41
<?php echo $admin->getFTAN(); ?>
42
<table class="row_a" cellpadding="2" cellspacing="0" border="0" width="100%">
43
<tr>
44
	<td width="80"><?php echo $TEXT['TITLE']; ?>:</td>
45
	<td>
46
		<input type="text" name="title" value="<?php echo (htmlspecialchars($fetch_content['title'])); ?>" style="width: 98%;" maxlength="255" />
47
	</td>
48
</tr>
49
<tr>
50
	<td valign="top"><?php echo $TEXT['COMMENT']; ?>:</td>
51
	<td>
52
		<textarea name="comment" rows="10" cols="1" style="width: 98%; height: 150px;"><?php echo (htmlspecialchars($fetch_content['comment'])); ?></textarea>
53
	</td>
54
</tr>
55
</table>
56

    
57
<table cellpadding="0" cellspacing="0" border="0" width="100%">
58
<tr>
59
	<td align="left">
60
		<input name="save" type="submit" value="<?php echo $TEXT['SAVE']; ?>" style="width: 100px; margin-top: 5px;" />
61
	</td>
62
	<td align="right">
63
		<input type="button" value="<?php echo $TEXT['CANCEL']; ?>" onclick="javascript: window.location = '<?php
64
			echo WB_URL; ?>/modules/news/modify_post.php?page_id=<?php
65
			echo $page_id; ?>&amp;section_id=<?php echo $section_id; ?>&amp;post_id=<?php
66
			echo $admin->getIDKEY($fetch_content['post_id']); ?>';" style="width: 100px; margin-top: 5px;" />
67
	</td>
68
</tr>
69
</table>
70
</form>
71

    
72
<?php
73

    
74
// Print admin footer
75
$admin->print_footer();
(19-19/34)