Project

General

Profile

« Previous | Next » 

Revision 1289

Added by kweitzel almost 15 years ago

Branch 2.8.1 merged back into Trunk

View differences:

modify_settings.php
1 1
<?php
2
/**
3
 *
4
 * @category        modules
5
 * @package         news
6
 * @author          WebsiteBaker Project
7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2010, Website Baker Org. e.V.
9
 * @link			http://www.websitebaker2.org/
10
 * @license         http://www.gnu.org/licenses/gpl.html
11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 4.3.4 and higher
13
 * @version         $Id$
14
 * @filesource		$HeadURL$
15
 * @lastmodified    $Date$
16
 *
17
 */
2 18

  
3
// $Id$
4

  
5
/*
6

  
7
 Website Baker Project <http://www.websitebaker.org/>
8
 Copyright (C) 2004-2009, Ryan Djurovich
9

  
10
 Website Baker is free software; you can redistribute it and/or modify
11
 it under the terms of the GNU General Public License as published by
12
 the Free Software Foundation; either version 2 of the License, or
13
 (at your option) any later version.
14

  
15
 Website Baker is distributed in the hope that it will be useful,
16
 but WITHOUT ANY WARRANTY; without even the implied warranty of
17
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
 GNU General Public License for more details.
19

  
20
 You should have received a copy of the GNU General Public License
21
 along with Website Baker; if not, write to the Free Software
22
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23

  
24
*/
25

  
26 19
require('../../config.php');
27 20

  
28 21
// Include WB admin wrapper script
......
61 54
// include the button to edit the optional module CSS files (function added with WB 2.7)
62 55
// Note: CSS styles for the button are defined in backend.css (div class="mod_moduledirectory_edit_css")
63 56
// Place this call outside of any <form></form> construct!!!
64
if(function_exists('edit_module_css')) {
57
if(function_exists('edit_module_css'))
58
{
65 59
	edit_module_css('news');
66 60
}
67 61
?>
68 62

  
69 63
<form name="modify" action="<?php echo WB_URL; ?>/modules/news/save_settings.php" method="post" style="margin: 0;">
70 64

  
71
	<input type="hidden" name="section_id" value="<?php echo $section_id; ?>">
72
	<input type="hidden" name="page_id" value="<?php echo $page_id; ?>">
65
	<input type="hidden" name="section_id" value="<?php echo $section_id; ?>" />
66
	<input type="hidden" name="page_id" value="<?php echo $page_id; ?>" />
73 67

  
74
	<table class="row_a" cellpadding="2" cellspacing="0" border="0" width="100%">
68
	<table class="row_a" cellpadding="2" cellspacing="0" width="100%">
75 69
		<tr>
76 70
			<td colspan="2"><strong><?php echo $HEADING['GENERAL_SETTINGS']; ?></strong></td>
71
		</tr>
77 72
		<tr>
78 73
			<td class="setting_name"><?php echo $TEXT['HEADER']; ?>:</td>
79 74
			<td class="setting_value">
......
111 106
					<option value=""><?php echo $TEXT['UNLIMITED']; ?></option>
112 107
					<?php
113 108
					for($i = 1; $i <= 20; $i++) {
114
						if($fetch_content['posts_per_page'] == ($i*5)) { $selected = ' selected'; } else { $selected = ''; }
109
						if($fetch_content['posts_per_page'] == ($i*5)) { $selected = ' selected="selected"'; } else { $selected = ''; }
115 110
						echo '<option value="'.($i*5).'"'.$selected.'>'.($i*5).'</option>';
116 111
					}
117 112
					?>
......
119 114
			</td>
120 115
		</tr>
121 116
	</table>
122
	<table class="row_a" cellpadding="2" cellspacing="0" border="0" width="100%" style="margin-top: 3px;">
117
	<table class="row_a" cellpadding="2" cellspacing="0" width="100%" style="margin-top: 3px;">
123 118
		<tr>
124 119
			<td colspan="2"><strong><?php echo $TEXT['COMMENTS']; ?></strong></td>
125 120
		</tr>
......
128 123
			<td class="setting_value">
129 124
				<select name="commenting" style="width: 98%;">
130 125
					<option value="none"><?php echo $TEXT['DISABLED']; ?></option>
131
					<option value="public" <?php if($fetch_content['commenting'] == 'public') { echo 'selected'; } ?>><?php echo $TEXT['PUBLIC']; ?></option>
132
					<option value="private" <?php if($fetch_content['commenting'] == 'private') { echo 'selected'; } ?>><?php echo $TEXT['PRIVATE']; ?></option>
126
					<option value="public" <?php if($fetch_content['commenting'] == 'public') { echo ' selected="selected"'; } ?>><?php echo $TEXT['PUBLIC']; ?></option>
127
					<option value="private" <?php if($fetch_content['commenting'] == 'private') { echo 'selected="selected"'; } ?>><?php echo $TEXT['PRIVATE']; ?></option>
133 128
				</select>
134 129
			</td>
135 130
		</tr>
......
155 150
					$SIZES['125'] = '125x125px';
156 151
					$SIZES['150'] = '150x150px';
157 152
					foreach($SIZES AS $size => $size_name) {
158
						if($fetch_content['resize'] == $size) { $selected = ' selected'; } else { $selected = ''; }
153
						if($fetch_content['resize'] == $size) { $selected = ' selected="selected"'; } else { $selected = ''; }
159 154
						echo '<option value="'.$size.'"'.$selected.'>'.$size_name.'</option>';
160 155
					}
161 156
					?>
......
190 185
	</table>
191 186
	<table cellpadding="0" cellspacing="0" border="0" width="100%">
192 187
		<tr>
193
			<td align="left">
188
			<td class="left">
194 189
				<input name="save" type="submit" value="<?php echo $TEXT['SAVE']; ?>" style="width: 100px; margin-top: 5px;" />
195 190
			</td>
196
			<td align="right">
191
			<td class="right">
197 192
				<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;" />
198 193
			</td>
199 194
		</tr>
200 195

  

Also available in: Unified diff