Revision 317
Added by stefan over 19 years ago
| modify_group.php | ||
|---|---|---|
| 1 | 1 |
<?php |
| 2 | 2 |
|
| 3 | 3 |
// $Id$ |
| 4 |
|
|
| 4 |
|
|
| 5 | 5 |
/* |
| 6 | 6 |
|
| 7 | 7 |
Website Baker Project <http://www.websitebaker.org/> |
| ... | ... | |
| 22 | 22 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 23 | 23 |
|
| 24 | 24 |
*/ |
| 25 |
|
|
| 26 |
require('../../config.php');
|
|
| 27 | 25 |
|
| 26 |
require('../../config.php');
|
|
| 27 |
|
|
| 28 | 28 |
// Get id |
| 29 | 29 |
if(!isset($_GET['group_id']) OR !is_numeric($_GET['group_id'])) {
|
| 30 | 30 |
header("Location: ".ADMIN_URL."/pages/index.php");
|
| ... | ... | |
| 36 | 36 |
// Include WB admin wrapper script |
| 37 | 37 |
require(WB_PATH.'/modules/admin.php'); |
| 38 | 38 |
|
| 39 |
// Get header and footer
|
|
| 40 |
$query_content = $database->query("SELECT * FROM ".TABLE_PREFIX."mod_news_groups WHERE group_id = '$group_id'");
|
|
| 39 |
// Get header and footer |
|
| 40 |
$query_content = $database->query("SELECT * FROM ".TABLE_PREFIX."mod_news_groups WHERE group_id = '$group_id'");
|
|
| 41 | 41 |
$fetch_content = $query_content->fetchRow(); |
| 42 | 42 |
|
| 43 |
?>
|
|
| 44 |
|
|
| 45 |
<form name="modify" action="<?php echo WB_URL; ?>/modules/news/save_group.php" method="post" enctype="multipart/form-data" style="margin: 0;">
|
|
| 46 |
|
|
| 43 |
?> |
|
| 44 |
|
|
| 45 |
<form name="modify" action="<?php echo WB_URL; ?>/modules/news/save_group.php" method="post" enctype="multipart/form-data" style="margin: 0;"> |
|
| 46 |
|
|
| 47 | 47 |
<input type="hidden" name="section_id" value="<?php echo $section_id; ?>"> |
| 48 | 48 |
<input type="hidden" name="page_id" value="<?php echo $page_id; ?>"> |
| 49 |
<input type="hidden" name="group_id" value="<?php echo $group_id; ?>">
|
|
| 49 |
<input type="hidden" name="group_id" value="<?php echo $group_id; ?>"> |
|
| 50 | 50 |
|
| 51 | 51 |
<table cellpadding="4" cellspacing="0" border="0" width="100%"> |
| 52 | 52 |
<tr> |
| ... | ... | |
| 88 | 88 |
|
| 89 | 89 |
<table cellpadding="0" cellspacing="0" border="0" width="100%"> |
| 90 | 90 |
<tr> |
| 91 |
<td align="left">
|
|
| 91 |
<td align="left"> |
|
| 92 | 92 |
<input name="save" type="submit" value="<?php echo $TEXT['SAVE']; ?>" style="width: 200px; margin-top: 5px;"></form> |
| 93 | 93 |
</td> |
| 94 |
<td align="right">
|
|
| 94 |
<td align="right"> |
|
| 95 | 95 |
<input type="button" value="<?php echo $TEXT['CANCEL']; ?>" onclick="javascript: window.location = '<?php echo ADMIN_URL; ?>/pages/modify.php?page_id=<?php echo $page_id; ?>';" style="width: 100px; margin-top: 5px;" /> |
| 96 | 96 |
</td> |
| 97 | 97 |
</tr> |
Also available in: Unified diff
Changed all line endings to Unix stlye