Revision 317
Added by stefan over 18 years ago
modify_settings.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 |
// Include WB admin wrapper script |
29 | 29 |
require(WB_PATH.'/modules/admin.php'); |
30 | 30 |
|
31 |
// Get header and footer
|
|
32 |
$query_content = $database->query("SELECT * FROM ".TABLE_PREFIX."mod_news_settings WHERE section_id = '$section_id'");
|
|
31 |
// Get header and footer |
|
32 |
$query_content = $database->query("SELECT * FROM ".TABLE_PREFIX."mod_news_settings WHERE section_id = '$section_id'"); |
|
33 | 33 |
$fetch_content = $query_content->fetchRow(); |
34 | 34 |
|
35 | 35 |
// Set raw html <'s and >'s to be replace by friendly html code |
... | ... | |
42 | 42 |
.setting_name { |
43 | 43 |
vertical-align: top; |
44 | 44 |
} |
45 |
</style>
|
|
46 |
|
|
47 |
<form name="modify" action="<?php echo WB_URL; ?>/modules/news/save_settings.php" method="post" style="margin: 0;">
|
|
48 |
|
|
45 |
</style> |
|
46 |
|
|
47 |
<form name="modify" action="<?php echo WB_URL; ?>/modules/news/save_settings.php" method="post" style="margin: 0;"> |
|
48 |
|
|
49 | 49 |
<input type="hidden" name="section_id" value="<?php echo $section_id; ?>"> |
50 |
<input type="hidden" name="page_id" value="<?php echo $page_id; ?>">
|
|
50 |
<input type="hidden" name="page_id" value="<?php echo $page_id; ?>"> |
|
51 | 51 |
|
52 | 52 |
<table cellpadding="2" cellspacing="0" border="0" width="100%"> |
53 | 53 |
<tr> |
... | ... | |
164 | 164 |
<table cellpadding="0" cellspacing="0" border="0" width="100%"> |
165 | 165 |
<tr> |
166 | 166 |
<td width="105"> </td> |
167 |
<td align="left">
|
|
167 |
<td align="left"> |
|
168 | 168 |
<input name="save" type="submit" value="<?php echo $TEXT['SAVE'].' '.$TEXT['SETTINGS']; ?>" style="width: 200px; margin-top: 5px;"></form> |
169 | 169 |
</td> |
170 |
<td align="right">
|
|
170 |
<td align="right"> |
|
171 | 171 |
<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;" /> |
172 | 172 |
</td> |
173 | 173 |
</tr> |
Also available in: Unified diff
Changed all line endings to Unix stlye