Project

General

Profile

« Previous | Next » 

Revision 982

Added by Matthias over 15 years ago

Fixed some strange backend layout issues (ticket #722)

View differences:

trunk/CHANGELOG
11 11
! = Update/Change
12 12

  
13 13
------------------------------------- 2.8.0 -------------------------------------
14
21-May-2009 Matthias Gallas
15
#	Fixed some strange backend layout issues (ticket #722)
14 16
09-May-2009 Matthias Gallas
15 17
+	Added index.php to all WB-Theme folders to prevent directory spoofing
16 18
06-May-2009 Matthias Gallas
trunk/wb/templates/classic/theme.css
225 225
}
226 226

  
227 227
.setting_name {
228
 width: 180px;
228
 width: 20%;
229 229
}
230 230

  
231
.setting_value {
232
 width: 80%;
233
}
234

  
231 235
.setting_value input, .setting_value select, .setting_value textarea {
232 236
 width: 100%;
233 237
}
trunk/wb/templates/wb_theme/theme.css
226 226
}
227 227

  
228 228
.setting_name {
229
 width: 180px;
229
 width: 20%;
230 230
}
231 231

  
232
.setting_value {
233
 width: 80%;
234
}
235

  
232 236
.setting_value input, .setting_value select, .setting_value textarea {
233 237
 width: 100%;
234 238
}
trunk/wb/modules/form/modify_settings.php
1
<?php
2

  
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
/*
27
The Website Baker Project would like to thank Rudolph Lartey <www.carbonect.com>
28
for his contributions to this module - adding extra field types
29
*/
30

  
31
require('../../config.php');
32

  
33
// Include WB admin wrapper script
34
require(WB_PATH.'/modules/admin.php');
35

  
36
// include core functions of WB 2.7 to edit the optional module CSS files (frontend.css, backend.css)
37
@include_once(WB_PATH .'/framework/module.functions.php');
38

  
39
// check if module language file exists for the language set by the user (e.g. DE, EN)
40
if(!file_exists(WB_PATH .'/modules/form/languages/'.LANGUAGE .'.php')) {
41
	// no module language file exists for the language set by the user, include default module language file EN.php
42
	require_once(WB_PATH .'/modules/form/languages/EN.php');
43
} else {
44
	// a module language file exists for the language defined by the user, load it
45
	require_once(WB_PATH .'/modules/form/languages/'.LANGUAGE .'.php');
46
}
47

  
48
// Get header and footer
49
$query_content = $database->query("SELECT * FROM ".TABLE_PREFIX."mod_form_settings WHERE section_id = '$section_id'");
50
$setting = $query_content->fetchRow();
51

  
52
// Set raw html <'s and >'s to be replace by friendly html code
53
$raw = array('<', '>');
54
$friendly = array('&lt;', '&gt;');
55

  
56
// check if backend.css file needs to be included into the <body></body> of modify.php
57
if(!method_exists($admin, 'register_backend_modfiles') && file_exists(WB_PATH ."/modules/form/backend.css")) {
58
	echo '<style type="text/css">';
59
	include(WB_PATH .'/modules/form/backend.css');
60
	echo "\n</style>\n";
61
}
62

  
63
?>
64
<h2><?php echo $MOD_FORM['SETTINGS']; ?></h2>
65
<?php
66
// include the button to edit the optional module CSS files
67
// Note: CSS styles for the button are defined in backend.css (div class="mod_moduledirectory_edit_css")
68
// Place this call outside of any <form></form> construct!!!
69
if(function_exists('edit_module_css')) {
70
	edit_module_css('form');
71
}
72
?>
73

  
74
<form name="edit" action="<?php echo WB_URL; ?>/modules/form/save_settings.php" method="post" style="margin: 0;">
75

  
76
<input type="hidden" name="page_id" value="<?php echo $page_id; ?>">
77
<input type="hidden" name="section_id" value="<?php echo $section_id; ?>">
78

  
79
<table class="row_a" cellpadding="2" cellspacing="0" border="0" width="100%">
80
	<tr>
81
		<td colspan="2"><strong><?php echo $HEADING['GENERAL_SETTINGS']; ?></strong></td>
82
	</tr>
83
	<tr>
84
		<td class="setting_name" width="30%"><?php echo $TEXT['CAPTCHA_VERIFICATION']; ?>:</td>
85
		<td>
86
			<input type="radio" name="use_captcha" id="use_captcha_true" value="1"<?php if($setting['use_captcha'] == true) { echo ' checked'; } ?> />
87
			<label for="use_captcha_true"><?php echo $TEXT['ENABLED']; ?></label>
88
			<input type="radio" name="use_captcha" id="use_captcha_false" value="0"<?php if($setting['use_captcha'] == false) { echo ' checked'; } ?> />
89
			<label for="use_captcha_false"><?php echo $TEXT['DISABLED']; ?></label>
90
		</td>
91
	</tr>
92
	<tr>
93
		<td class="setting_name" width="30%"><?php echo $TEXT['MAX_SUBMISSIONS_PER_HOUR']; ?>:</td>
94
		<td class="setting_name">
95
			<input type="text" name="max_submissions" style="width: 30px;" maxlength="255" value="<?php echo str_replace($raw, $friendly, ($setting['max_submissions'])); ?>" />
96
		</td>
97
	</tr>
98
	<tr>
99
		<td class="setting_name"><?php echo $TEXT['SUBMISSIONS_STORED_IN_DATABASE']; ?>:</td>
100
		<td class="setting_name">
101
			<input type="text" name="stored_submissions" style="width: 30px;" maxlength="255" value="<?php echo str_replace($raw, $friendly, ($setting['stored_submissions'])); ?>" />
102
		</td>
103
	</tr>
104
	<tr>
105
		<td class="setting_name"><?php echo $TEXT['HEADER']; ?>:</td>
106
		<td class="setting_name">
107
			<textarea name="header" style="width: 98%; height: 80px;"><?php echo ($setting['header']); ?></textarea>
108
		</td>
109
	</tr>
110
	<tr>
111
		<td class="setting_name"><?php echo $TEXT['FIELD'].' '.$TEXT['LOOP']; ?>:</td>
112
		<td class="setting_name">
113
			<textarea name="field_loop" style="width: 98%; height: 80px;"><?php echo ($setting['field_loop']); ?></textarea>
114
		</td>
115
	</tr>
116
	<tr>
117
		<td class="setting_name"><?php echo $TEXT['FOOTER']; ?>:</td>
118
		<td class="setting_name">
119
			<textarea name="footer" style="width: 98%; height: 80px;"><?php echo str_replace($raw, $friendly, ($setting['footer'])); ?></textarea>
120
		</td>
121
	</tr>
122
</table>	
123

  
124
<table class="row_a" cellpadding="2" cellspacing="0" border="0" width="100%" style="margin-top: 3px;">
125
	<tr>
126
		<td colspan="2"><strong><?php echo $TEXT['EMAIL'].' '.$TEXT['SETTINGS']; ?></strong></td>
127
	</tr>
128
	<tr>
129
		<td class="setting_name" width="30%"><?php echo $TEXT['EMAIL'].' '.$TEXT['TO']; ?>:</td>
130
		<td class="setting_name">
131
			<input type="text" name="email_to" style="width: 98%;" maxlength="255" value="<?php echo str_replace($raw, $friendly, ($setting['email_to'])); ?>" />
132
		</td>
133
	</tr>
134
	<tr>
135
		<td class="setting_name"><?php echo $TEXT['EMAIL'].' '.$TEXT['FROM']; ?>:</td>
136
		<td class="setting_name">
137
			<select name="email_from_field" style="width: 98%;">
138
			<option value="" onclick="javascript: document.getElementById('email_from').style.display = 'block';"><?php echo $TEXT['CUSTOM']; ?>:</option>
139
			<?php
140
			$email_from_value = str_replace($raw, $friendly, ($setting['email_from']));
141
			$query_email_fields = $database->query("SELECT field_id,title FROM ".TABLE_PREFIX."mod_form_fields WHERE section_id = '$section_id' AND ( type = 'textfield' OR  type = 'email' ) ORDER BY position ASC");
142
			if($query_email_fields->numRows() > 0) {
143
				while($field = $query_email_fields->fetchRow()) {
144
					?>
145
					<option value="field<?php echo $field['field_id']; ?>"<?php if($email_from_value == 'field'.$field['field_id']) { echo ' selected'; $selected = true; } ?> onclick="javascript: document.getElementById('email_from').style.display = 'none';">
146
						<?php echo $TEXT['FIELD'].': '.$field['title']; ?>
147
					</option>
148
					<?php
149
				}
150
			}
151
			?>
152
			</select>
153
			<input type="text" name="email_from" id="email_from" style="width: 98%; display: <?php if(isset($selected) AND $selected == true) { echo 'none'; } else { echo 'block'; } ?>;" maxlength="255" value="<?php if(substr($email_from_value, 0, 5) != 'field') { echo $email_from_value; } ?>" />
154
		</td>
155
	</tr>
156
	<tr>
157
		<td class="setting_name"><?php echo $TEXT['EMAIL'].' '.$TEXT['NAME']; ?>:</td>
158
		<td class="setting_name">
159
			<input type="text" name="email_fromname" style="width: 98%;" maxlength="255" value="<?php echo str_replace($raw, $friendly, ($setting['email_fromname'])); ?>" />
160
		</td>
161
	</tr>
162
	<tr>
163
		<td class="setting_name"><?php echo $TEXT['EMAIL'].' '.$TEXT['SUBJECT']; ?>:</td>
164
		<td class="setting_name">
165
			<input type="text" name="email_subject" style="width: 98%;" maxlength="255" value="<?php echo str_replace($raw, $friendly, ($setting['email_subject'])); ?>" />
166
		</td>
167
	</tr>
168
</table>	
169

  
170
<table class="row_a" cellpadding="2" cellspacing="0" border="0" width="100%" style="margin-top: 3px;">
171
	<tr>
172
		<td colspan="2"><strong><?php echo $TEXT['SUCCESS'].' '.$TEXT['SETTINGS']; ?></strong></td>
173
	</tr>
174
	<tr>
175
		<td class="setting_name" width="30%"><?php echo $TEXT['EMAIL'].' '.$TEXT['TO']; ?>:</td>
176
		<td class="setting_name">
177
			<select name="success_email_to" style="width: 98%;">
178
			<option value="" onclick="javascript: document.getElementById('success_email_to').style.display = 'block';"><?php echo $TEXT['NONE']; ?></option>
179
			<?php
180
			$success_email_to = str_replace($raw, $friendly, ($setting['success_email_to']));
181
			$query_email_fields = $database->query("SELECT field_id,title FROM ".TABLE_PREFIX."mod_form_fields WHERE section_id = '$section_id' AND ( type = 'textfield' OR  type = 'email' ) ORDER BY position ASC");
182
			if($query_email_fields->numRows() > 0) {
183
				while($field = $query_email_fields->fetchRow()) {
184
					?>
185
					<option value="field<?php echo $field['field_id']; ?>"<?php if($success_email_to == 'field'.$field['field_id']) { echo ' selected'; $selected = true; } ?> onclick="javascript: document.getElementById('email_from').style.display = 'none';">
186
						<?php echo $TEXT['FIELD'].': '.$field['title']; ?>
187
					</option>
188
					<?php
189
				}
190
			}
191
			?>
192
			</select>
193
		</td>
194
	</tr>
195
	<tr>
196
		<td class="setting_name"><?php echo $TEXT['EMAIL'].' '.$TEXT['FROM']; ?>:</td>
197
		<td class="setting_name">
198
			<input type="text" name="success_email_from" style="width: 98%;" maxlength="255" value="<?php echo str_replace($raw, $friendly, ($setting['success_email_from'])); ?>" />
199
		</td>
200
	</tr>
201
	<tr>
202
		<td class="setting_name"><?php echo $TEXT['EMAIL'].' '.$TEXT['NAME']; ?>:</td>
203
		<td class="setting_name">
204
			<input type="text" name="success_email_fromname" style="width: 98%;" maxlength="255" value="<?php echo str_replace($raw, $friendly, ($setting['success_email_fromname'])); ?>" />
205
		</td>
206
	</tr>
207
	<tr>
208
		<td class="setting_name"><?php echo $TEXT['EMAIL'].' '.$TEXT['SUBJECT']; ?>:</td>
209
		<td class="setting_name">
210
			<input type="text" name="success_email_subject" style="width: 98%;" maxlength="255" value="<?php echo str_replace($raw, $friendly, ($setting['success_email_subject'])); ?>" />
211
		</td>
212
	</tr>
213
	<tr>
214
		<td class="setting_name"><?php echo $TEXT['EMAIL'].' '.$TEXT['TEXT']; ?>:</td>
215
		<td class="setting_name">
216
			<textarea name="success_email_text" style="width: 98%; height: 80px;"><?php echo str_replace($raw, $friendly, ($setting['success_email_text'])); ?></textarea>
217
		</td>
218
	</tr>
219
	<tr>
220
		<td class="newsection"><?php echo $TEXT['SUCCESS'].' '.$TEXT['PAGE']; ?>:</td>
221
		<td class="newsection">
222
			<select name="success_page">
223
			<option value="none"><?php echo $TEXT['NONE']; ?></option>
224
			<?php 
225
			// Get exisiting pages and show the pagenames
226
			$query = $database->query("SELECT * FROM ".TABLE_PREFIX."pages WHERE visibility <> 'deleted'");
227
			while($mail_page = $query->fetchRow()) {
228
				if(!$admin->page_is_visible($mail_page))
229
					continue;
230
				$mail_pagename = $mail_page['menu_title'];		
231
				$success_page = $mail_page['page_id'];
232
				echo $success_page.':'.$setting['success_page'].':';
233
				if($setting['success_page'] == $success_page) {
234
					$selected = ' selected';
235
				} else { 
236
					$selected = '';
237
				}
238
				echo '<option value="'.$success_page.'"'.$selected.'>'.$mail_pagename.'</option>';
239
		 	}
240
			?>
241
			</select>
242
		</td>
243
	</tr>
244
</table>
245

  
246
<table cellpadding="0" cellspacing="0" border="0" width="100%">
247
	<tr>
248
		<td align="left">
249
			<input name="save" type="submit" value="<?php echo $TEXT['SAVE']; ?>" style="width: 100px; margin-top: 5px;"></form>
250
		</td>
251
		<td align="right">
252
			<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;" />
253
		</td>
254
	</tr>
255
</table>
256

  
257
<?php
258

  
259
// Print admin footer
260
$admin->print_footer();
261

  
1
<?php

2

  
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
/*

27
The Website Baker Project would like to thank Rudolph Lartey <www.carbonect.com>

28
for his contributions to this module - adding extra field types

29
*/

30

  
31
require('../../config.php');

32

  
33
// Include WB admin wrapper script

34
require(WB_PATH.'/modules/admin.php');

35

  
36
// include core functions of WB 2.7 to edit the optional module CSS files (frontend.css, backend.css)

37
@include_once(WB_PATH .'/framework/module.functions.php');

38

  
39
// check if module language file exists for the language set by the user (e.g. DE, EN)

40
if(!file_exists(WB_PATH .'/modules/form/languages/'.LANGUAGE .'.php')) {

41
	// no module language file exists for the language set by the user, include default module language file EN.php

42
	require_once(WB_PATH .'/modules/form/languages/EN.php');

43
} else {

44
	// a module language file exists for the language defined by the user, load it

45
	require_once(WB_PATH .'/modules/form/languages/'.LANGUAGE .'.php');

46
}

47

  
48
// Get header and footer

49
$query_content = $database->query("SELECT * FROM ".TABLE_PREFIX."mod_form_settings WHERE section_id = '$section_id'");

50
$setting = $query_content->fetchRow();

51

  
52
// Set raw html <'s and >'s to be replace by friendly html code

53
$raw = array('<', '>');

54
$friendly = array('&lt;', '&gt;');

55

  
56
// check if backend.css file needs to be included into the <body></body> of modify.php

57
if(!method_exists($admin, 'register_backend_modfiles') && file_exists(WB_PATH ."/modules/form/backend.css")) {

58
	echo '<style type="text/css">';

59
	include(WB_PATH .'/modules/form/backend.css');

60
	echo "\n</style>\n";

61
}

62

  
63
?>

64
<h2><?php echo $MOD_FORM['SETTINGS']; ?></h2>

65
<?php

66
// include the button to edit the optional module CSS files

67
// Note: CSS styles for the button are defined in backend.css (div class="mod_moduledirectory_edit_css")

68
// Place this call outside of any <form></form> construct!!!

69
if(function_exists('edit_module_css')) {

70
	edit_module_css('form');

71
}

72
?>

73

  
74
<form name="edit" action="<?php echo WB_URL; ?>/modules/form/save_settings.php" method="post" style="margin: 0;">

75

  
76
<input type="hidden" name="page_id" value="<?php echo $page_id; ?>">

77
<input type="hidden" name="section_id" value="<?php echo $section_id; ?>">

78

  
79
<table class="row_a" cellpadding="2" cellspacing="0" border="0" width="100%">

80
	<tr>

81
		<td colspan="2"><strong><?php echo $HEADING['GENERAL_SETTINGS']; ?></strong></td>

82
	</tr>

83
	<tr>

84
		<td class="setting_name"><?php echo $TEXT['CAPTCHA_VERIFICATION']; ?>:</td>

85
		<td>

86
			<input type="radio" name="use_captcha" id="use_captcha_true" value="1"<?php if($setting['use_captcha'] == true) { echo ' checked'; } ?> />

87
			<label for="use_captcha_true"><?php echo $TEXT['ENABLED']; ?></label>

88
			<input type="radio" name="use_captcha" id="use_captcha_false" value="0"<?php if($setting['use_captcha'] == false) { echo ' checked'; } ?> />

89
			<label for="use_captcha_false"><?php echo $TEXT['DISABLED']; ?></label>

90
		</td>

91
	</tr>

92
	<tr>

93
		<td class="setting_name"><?php echo $TEXT['MAX_SUBMISSIONS_PER_HOUR']; ?>:</td>

94
		<td class="setting_value">

95
			<input type="text" name="max_submissions" style="width: 30px;" maxlength="255" value="<?php echo str_replace($raw, $friendly, ($setting['max_submissions'])); ?>" />

96
		</td>

97
	</tr>

98
	<tr>

99
		<td class="setting_name"><?php echo $TEXT['SUBMISSIONS_STORED_IN_DATABASE']; ?>:</td>

100
		<td class="setting_value">

101
			<input type="text" name="stored_submissions" style="width: 30px;" maxlength="255" value="<?php echo str_replace($raw, $friendly, ($setting['stored_submissions'])); ?>" />

102
		</td>

103
	</tr>

104
	<tr>

105
		<td class="setting_name"><?php echo $TEXT['HEADER']; ?>:</td>

106
		<td class="setting_value">

107
			<textarea name="header" style="width: 98%; height: 80px;"><?php echo ($setting['header']); ?></textarea>

108
		</td>

109
	</tr>

110
	<tr>

111
		<td class="setting_name"><?php echo $TEXT['FIELD'].' '.$TEXT['LOOP']; ?>:</td>

112
		<td class="setting_value">

113
			<textarea name="field_loop" style="width: 98%; height: 80px;"><?php echo ($setting['field_loop']); ?></textarea>

114
		</td>

115
	</tr>

116
	<tr>

117
		<td class="setting_name"><?php echo $TEXT['FOOTER']; ?>:</td>

118
		<td class="setting_value">

119
			<textarea name="footer" style="width: 98%; height: 80px;"><?php echo str_replace($raw, $friendly, ($setting['footer'])); ?></textarea>

120
		</td>

121
	</tr>

122
</table>	

123

  
124
<table class="row_a" cellpadding="2" cellspacing="0" border="0" width="100%" style="margin-top: 3px;">

125
	<tr>

126
		<td colspan="2"><strong><?php echo $TEXT['EMAIL'].' '.$TEXT['SETTINGS']; ?></strong></td>

127
	</tr>

128
	<tr>

129
		<td class="setting_name"><?php echo $TEXT['EMAIL'].' '.$TEXT['TO']; ?>:</td>

130
		<td class="setting_value">

131
			<input type="text" name="email_to" style="width: 98%;" maxlength="255" value="<?php echo str_replace($raw, $friendly, ($setting['email_to'])); ?>" />

132
		</td>

133
	</tr>

134
	<tr>

135
		<td class="setting_name"><?php echo $TEXT['EMAIL'].' '.$TEXT['FROM']; ?>:</td>

136
		<td class="setting_value">

137
			<select name="email_from_field" style="width: 98%;">

138
			<option value="" onclick="javascript: document.getElementById('email_from').style.display = 'block';"><?php echo $TEXT['CUSTOM']; ?>:</option>

139
			<?php

140
			$email_from_value = str_replace($raw, $friendly, ($setting['email_from']));

141
			$query_email_fields = $database->query("SELECT field_id,title FROM ".TABLE_PREFIX."mod_form_fields WHERE section_id = '$section_id' AND ( type = 'textfield' OR  type = 'email' ) ORDER BY position ASC");

142
			if($query_email_fields->numRows() > 0) {

143
				while($field = $query_email_fields->fetchRow()) {

144
					?>

145
					<option value="field<?php echo $field['field_id']; ?>"<?php if($email_from_value == 'field'.$field['field_id']) { echo ' selected'; $selected = true; } ?> onclick="javascript: document.getElementById('email_from').style.display = 'none';">

146
						<?php echo $TEXT['FIELD'].': '.$field['title']; ?>

147
					</option>

148
					<?php

149
				}

150
			}

151
			?>

152
			</select>

153
			<input type="text" name="email_from" id="email_from" style="width: 98%; display: <?php if(isset($selected) AND $selected == true) { echo 'none'; } else { echo 'block'; } ?>;" maxlength="255" value="<?php if(substr($email_from_value, 0, 5) != 'field') { echo $email_from_value; } ?>" />

154
		</td>

155
	</tr>

156
	<tr>

157
		<td class="setting_name"><?php echo $TEXT['EMAIL'].' '.$TEXT['NAME']; ?>:</td>

158
		<td class="setting_value">

159
			<input type="text" name="email_fromname" style="width: 98%;" maxlength="255" value="<?php echo str_replace($raw, $friendly, ($setting['email_fromname'])); ?>" />

160
		</td>

161
	</tr>

162
	<tr>

163
		<td class="setting_name"><?php echo $TEXT['EMAIL'].' '.$TEXT['SUBJECT']; ?>:</td>

164
		<td class="setting_value">

165
			<input type="text" name="email_subject" style="width: 98%;" maxlength="255" value="<?php echo str_replace($raw, $friendly, ($setting['email_subject'])); ?>" />

166
		</td>

167
	</tr>

168
</table>	

169

  
170
<table class="row_a" cellpadding="2" cellspacing="0" border="0" width="100%" style="margin-top: 3px;">

171
	<tr>

172
		<td colspan="2"><strong><?php echo $TEXT['SUCCESS'].' '.$TEXT['SETTINGS']; ?></strong></td>

173
	</tr>

174
	<tr>

175
		<td class="setting_name"><?php echo $TEXT['EMAIL'].' '.$TEXT['TO']; ?>:</td>

176
		<td class="setting_value">

177
			<select name="success_email_to" style="width: 98%;">

178
			<option value="" onclick="javascript: document.getElementById('success_email_to').style.display = 'block';"><?php echo $TEXT['NONE']; ?></option>

179
			<?php

180
			$success_email_to = str_replace($raw, $friendly, ($setting['success_email_to']));

181
			$query_email_fields = $database->query("SELECT field_id,title FROM ".TABLE_PREFIX."mod_form_fields WHERE section_id = '$section_id' AND ( type = 'textfield' OR  type = 'email' ) ORDER BY position ASC");

182
			if($query_email_fields->numRows() > 0) {

183
				while($field = $query_email_fields->fetchRow()) {

184
					?>

185
					<option value="field<?php echo $field['field_id']; ?>"<?php if($success_email_to == 'field'.$field['field_id']) { echo ' selected'; $selected = true; } ?> onclick="javascript: document.getElementById('email_from').style.display = 'none';">

186
						<?php echo $TEXT['FIELD'].': '.$field['title']; ?>

187
					</option>

188
					<?php

189
				}

190
			}

191
			?>

192
			</select>

193
		</td>

194
	</tr>

195
	<tr>

196
		<td class="setting_name"><?php echo $TEXT['EMAIL'].' '.$TEXT['FROM']; ?>:</td>

197
		<td class="setting_value">

198
			<input type="text" name="success_email_from" style="width: 98%;" maxlength="255" value="<?php echo str_replace($raw, $friendly, ($setting['success_email_from'])); ?>" />

199
		</td>

200
	</tr>

201
	<tr>

202
		<td class="setting_name"><?php echo $TEXT['EMAIL'].' '.$TEXT['NAME']; ?>:</td>

203
		<td class="setting_value">

204
			<input type="text" name="success_email_fromname" style="width: 98%;" maxlength="255" value="<?php echo str_replace($raw, $friendly, ($setting['success_email_fromname'])); ?>" />

205
		</td>

206
	</tr>

207
	<tr>

208
		<td class="setting_name"><?php echo $TEXT['EMAIL'].' '.$TEXT['SUBJECT']; ?>:</td>

209
		<td class="setting_value">

210
			<input type="text" name="success_email_subject" style="width: 98%;" maxlength="255" value="<?php echo str_replace($raw, $friendly, ($setting['success_email_subject'])); ?>" />

211
		</td>

212
	</tr>

213
	<tr>

214
		<td class="setting_name"><?php echo $TEXT['EMAIL'].' '.$TEXT['TEXT']; ?>:</td>

215
		<td class="setting_value">

216
			<textarea name="success_email_text" style="width: 98%; height: 80px;"><?php echo str_replace($raw, $friendly, ($setting['success_email_text'])); ?></textarea>

217
		</td>

218
	</tr>

219
	<tr>

220
		<td class="newsection"><?php echo $TEXT['SUCCESS'].' '.$TEXT['PAGE']; ?>:</td>

221
		<td class="newsection">

222
			<select name="success_page">

223
			<option value="none"><?php echo $TEXT['NONE']; ?></option>

224
			<?php 

225
			// Get exisiting pages and show the pagenames

226
			$query = $database->query("SELECT * FROM ".TABLE_PREFIX."pages WHERE visibility <> 'deleted'");

227
			while($mail_page = $query->fetchRow()) {

228
				if(!$admin->page_is_visible($mail_page))

229
					continue;

230
				$mail_pagename = $mail_page['menu_title'];		

231
				$success_page = $mail_page['page_id'];

232
				echo $success_page.':'.$setting['success_page'].':';

233
				if($setting['success_page'] == $success_page) {

234
					$selected = ' selected';

235
				} else { 

236
					$selected = '';

237
				}

238
				echo '<option value="'.$success_page.'"'.$selected.'>'.$mail_pagename.'</option>';

239
		 	}

240
			?>

241
			</select>

242
		</td>

243
	</tr>

244
</table>

245

  
246
<table cellpadding="0" cellspacing="0" border="0" width="100%">

247
	<tr>

248
		<td align="left">

249
			<input name="save" type="submit" value="<?php echo $TEXT['SAVE']; ?>" style="width: 100px; margin-top: 5px;"></form>

250
		</td>

251
		<td align="right">

252
			<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;" />

253
		</td>

254
	</tr>

255
</table>

256

  
257
<?php

258

  
259
// Print admin footer

260
$admin->print_footer();

261

  
262 262
?>
trunk/wb/modules/form/backend.css
1 1
.setting_name {
2 2
	vertical-align: top;
3
	width: 30%;
3 4
}
5
.setting_value {
6
	vertical-align: top;
7
	width: 70%;
8
}
4 9
.newsection {
5 10
	border-top: 1px dashed #fff;
6 11
}
trunk/wb/modules/news/modify_settings.php
1
<?php
2

  
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
require('../../config.php');
27

  
28
// Include WB admin wrapper script
29
require(WB_PATH.'/modules/admin.php');
30

  
31
// include core functions of WB 2.7 to edit the optional module CSS files (frontend.css, backend.css)
32
@include_once(WB_PATH .'/framework/module.functions.php');
33

  
34
// check if module language file exists for the language set by the user (e.g. DE, EN)
35
if(!file_exists(WB_PATH .'/modules/news/languages/'.LANGUAGE .'.php')) {
36
	// no module language file exists for the language set by the user, include default module language file EN.php
37
	require_once(WB_PATH .'/modules/news/languages/EN.php');
38
} else {
39
	// a module language file exists for the language defined by the user, load it
40
	require_once(WB_PATH .'/modules/news/languages/'.LANGUAGE .'.php');
41
}
42

  
43
// Get header and footer
44
$query_content = $database->query("SELECT * FROM ".TABLE_PREFIX."mod_news_settings WHERE section_id = '$section_id'");
45
$fetch_content = $query_content->fetchRow();
46

  
47
// Set raw html <'s and >'s to be replace by friendly html code
48
$raw = array('<', '>');
49
$friendly = array('&lt;', '&gt;');
50

  
51
// check if backend.css file needs to be included into the <body></body> of modify.php
52
if(!method_exists($admin, 'register_backend_modfiles') && file_exists(WB_PATH ."/modules/form/backend.css")) {
53
	echo '<style type="text/css">';
54
	include(WB_PATH .'/modules/form/backend.css');
55
	echo "\n</style>\n";
56
}
57

  
58
?>
59
<h2><?php echo $MOD_NEWS['SETTINGS']; ?></h2>
60
<?php
61
// include the button to edit the optional module CSS files (function added with WB 2.7)
62
// Note: CSS styles for the button are defined in backend.css (div class="mod_moduledirectory_edit_css")
63
// Place this call outside of any <form></form> construct!!!
64
if(function_exists('edit_module_css')) {
65
	edit_module_css('news');
66
}
67
?>
68

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

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

  
74
	<table class="row_a" cellpadding="2" cellspacing="0" border="0" width="100%">
75
		<tr>
76
			<td colspan="2"><strong><?php echo $HEADING['GENERAL_SETTINGS']; ?></strong></td>
77
		<tr>
78
			<td class="setting_name" width="20%"><?php echo $TEXT['HEADER']; ?>:</td>
79
			<td class="setting_name">
80
				<textarea name="header" style="width: 98%; height: 80px;"><?php echo ($fetch_content['header']); ?></textarea>
81
			</td>
82
		</tr>
83
		<tr>
84
			<td class="setting_name"><?php echo $TEXT['POST'].' '.$TEXT['LOOP']; ?>:</td>
85
			<td class="setting_name">
86
				<textarea name="post_loop" style="width: 98%; height: 60px;"><?php echo ($fetch_content['post_loop']); ?></textarea>
87
			</td>
88
		</tr>
89
		<tr>
90
			<td class="setting_name"><?php echo $TEXT['FOOTER']; ?>:</td>
91
			<td class="setting_name">
92
				<textarea name="footer" style="width: 98%; height: 80px;"><?php echo str_replace($raw, $friendly, ($fetch_content['footer'])); ?></textarea>
93
			</td>
94
		</tr>
95
		<tr>
96
			<td class="setting_name"><?php echo $TEXT['POST_HEADER']; ?>:</td>
97
			<td class="setting_name">
98
				<textarea name="post_header" style="width: 98%; height: 60px;"><?php echo str_replace($raw, $friendly, ($fetch_content['post_header'])); ?></textarea>
99
			</td>
100
		</tr>
101
		<tr>
102
			<td class="setting_name"><?php echo $TEXT['POST_FOOTER']; ?>:</td>
103
			<td class="setting_name">
104
				<textarea name="post_footer" style="width: 98%; height: 60px;"><?php echo str_replace($raw, $friendly, ($fetch_content['post_footer'])); ?></textarea>
105
			</td>
106
		</tr>
107
		<tr>
108
			<td class="setting_name"><?php echo $TEXT['POSTS_PER_PAGE']; ?>:</td>
109
			<td class="setting_name">
110
				<select name="posts_per_page" style="width: 98%;">
111
					<option value=""><?php echo $TEXT['UNLIMITED']; ?></option>
112
					<?php
113
					for($i = 1; $i <= 20; $i++) {
114
						if($fetch_content['posts_per_page'] == ($i*5)) { $selected = ' selected'; } else { $selected = ''; }
115
						echo '<option value="'.($i*5).'"'.$selected.'>'.($i*5).'</option>';
116
					}
117
					?>
118
				</select>
119
			</td>
120
		</tr>
121
	</table>
122
	<table class="row_a" cellpadding="2" cellspacing="0" border="0" width="100%" style="margin-top: 3px;">
123
		<tr>
124
			<td colspan="2"><strong><?php echo $TEXT['COMMENTS']; ?></strong></td>
125
		</tr>
126
		<tr>
127
			<td  width="20%"><?php echo $TEXT['COMMENTING']; ?>:</td>
128
			<td>
129
				<select name="commenting" style="width: 98%;">
130
					<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>
133
				</select>
134
			</td>
135
		</tr>
136
		<tr>
137
			<td class="setting_name"><?php echo $TEXT['CAPTCHA_VERIFICATION']; ?>:</td>
138
			<td>
139
				<input type="radio" name="use_captcha" id="use_captcha_true" value="1"<?php if($fetch_content['use_captcha'] == true) { echo ' checked'; } ?> />
140
				<label for="use_captcha_true"><?php echo $TEXT['ENABLED']; ?></label>
141
				<input type="radio" name="use_captcha" id="use_captcha_false" value="0"<?php if($fetch_content['use_captcha'] == false) { echo ' checked'; } ?> />
142
				<label for="use_captcha_false"><?php echo $TEXT['DISABLED']; ?></label>
143
			</td>
144
		</tr>
145
		<?php if(extension_loaded('gd') AND function_exists('imageCreateFromJpeg')) { /* Make's sure GD library is installed */ ?>
146
		<tr>
147
			<td>
148
				<?php echo $TEXT['RESIZE_IMAGE_TO']; ?>:
149
			</td>
150
			<td>
151
				<select name="resize" style="width: 98%;">
152
					<option value=""><?php echo $TEXT['NONE']; ?></option>
153
					<?php
154
					$SIZES['50'] = '50x50px';
155
					$SIZES['75'] = '75x75px';
156
					$SIZES['100'] = '100x100px';
157
					$SIZES['125'] = '125x125px';
158
					$SIZES['150'] = '150x150px';
159
					foreach($SIZES AS $size => $size_name) {
160
						if($fetch_content['resize'] == $size) { $selected = ' selected'; } else { $selected = ''; }
161
						echo '<option value="'.$size.'"'.$selected.'>'.$size_name.'</option>';
162
					}
163
					?>
164
				</select>
165
			</td>
166
		</tr>
167
		<?php } ?>
168
		<tr>
169
			<td class="setting_name"><?php echo $TEXT['COMMENTS'].' '.$TEXT['HEADER']; ?>:</td>
170
			<td class="setting_name">
171
				<textarea name="comments_header" style="width: 98%; height: 60px;"><?php echo str_replace($raw, $friendly, ($fetch_content['comments_header'])); ?></textarea>
172
			</td>
173
		</tr>
174
		<tr>
175
			<td class="setting_name"><?php echo $TEXT['COMMENTS'].' '.$TEXT['LOOP']; ?>:</td>
176
			<td class="setting_name">
177
				<textarea name="comments_loop" style="width: 98%; height: 60px;"><?php echo str_replace($raw, $friendly, ($fetch_content['comments_loop'])); ?></textarea>
178
			</td>
179
		</tr>
180
		<tr>
181
			<td class="setting_name"><?php echo $TEXT['COMMENTS'].' '.$TEXT['FOOTER']; ?>:</td>
182
			<td class="setting_name">
183
				<textarea name="comments_footer" style="width: 98%; height: 60px;"><?php echo str_replace($raw, $friendly, ($fetch_content['comments_footer'])); ?></textarea>
184
			</td>
185
		</tr>
186
		<tr>
187
			<td class="setting_name"><?php echo $TEXT['COMMENTS'].' '.$TEXT['PAGE']; ?>:</td>
188
			<td class="setting_name">
189
				<textarea name="comments_page" style="width: 98%; height: 80px;"><?php echo str_replace($raw, $friendly, ($fetch_content['comments_page'])); ?></textarea>
190
			</td>
191
		</tr>
192
	</table>
193
	<table cellpadding="0" cellspacing="0" border="0" width="100%">
194
		<tr>
195
			<td align="left">
196
				<input name="save" type="submit" value="<?php echo $TEXT['SAVE']; ?>" style="width: 100px; margin-top: 5px;"></form>
197
			</td>
198
			<td align="right">
199
				<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;" />
200
			</td>
201
		</tr>
202
	</table>
203

  
204

  
205
<?php
206

  
207
// Print admin footer
208
$admin->print_footer();
209

  
1
<?php
2

  
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
require('../../config.php');
27

  
28
// Include WB admin wrapper script
29
require(WB_PATH.'/modules/admin.php');
30

  
31
// include core functions of WB 2.7 to edit the optional module CSS files (frontend.css, backend.css)
32
@include_once(WB_PATH .'/framework/module.functions.php');
33

  
34
// check if module language file exists for the language set by the user (e.g. DE, EN)
35
if(!file_exists(WB_PATH .'/modules/news/languages/'.LANGUAGE .'.php')) {
36
	// no module language file exists for the language set by the user, include default module language file EN.php
37
	require_once(WB_PATH .'/modules/news/languages/EN.php');
38
} else {
39
	// a module language file exists for the language defined by the user, load it
40
	require_once(WB_PATH .'/modules/news/languages/'.LANGUAGE .'.php');
41
}
42

  
43
// Get header and footer
44
$query_content = $database->query("SELECT * FROM ".TABLE_PREFIX."mod_news_settings WHERE section_id = '$section_id'");
45
$fetch_content = $query_content->fetchRow();
46

  
47
// Set raw html <'s and >'s to be replace by friendly html code
48
$raw = array('<', '>');
49
$friendly = array('&lt;', '&gt;');
50

  
51
// check if backend.css file needs to be included into the <body></body> of modify.php
52
if(!method_exists($admin, 'register_backend_modfiles') && file_exists(WB_PATH ."/modules/form/backend.css")) {
53
	echo '<style type="text/css">';
54
	include(WB_PATH .'/modules/form/backend.css');
55
	echo "\n</style>\n";
56
}
57

  
58
?>
59
<h2><?php echo $MOD_NEWS['SETTINGS']; ?></h2>
60
<?php
61
// include the button to edit the optional module CSS files (function added with WB 2.7)
62
// Note: CSS styles for the button are defined in backend.css (div class="mod_moduledirectory_edit_css")
63
// Place this call outside of any <form></form> construct!!!
64
if(function_exists('edit_module_css')) {
65
	edit_module_css('news');
66
}
67
?>
68

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

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

  
74
	<table class="row_a" cellpadding="2" cellspacing="0" border="0" width="100%">
75
		<tr>
76
			<td colspan="2"><strong><?php echo $HEADING['GENERAL_SETTINGS']; ?></strong></td>
77
		<tr>
78
			<td class="setting_name"><?php echo $TEXT['HEADER']; ?>:</td>
79
			<td class="setting_value">
80
				<textarea name="header" style="width: 98%; height: 80px;"><?php echo ($fetch_content['header']); ?></textarea>
81
			</td>
82
		</tr>
83
		<tr>
84
			<td class="setting_name"><?php echo $TEXT['POST'].' '.$TEXT['LOOP']; ?>:</td>
85
			<td class="setting_value">
86
				<textarea name="post_loop" style="width: 98%; height: 60px;"><?php echo ($fetch_content['post_loop']); ?></textarea>
87
			</td>
88
		</tr>
89
		<tr>
90
			<td class="setting_name"><?php echo $TEXT['FOOTER']; ?>:</td>
91
			<td class="setting_value">
92
				<textarea name="footer" style="width: 98%; height: 80px;"><?php echo str_replace($raw, $friendly, ($fetch_content['footer'])); ?></textarea>
93
			</td>
94
		</tr>
95
		<tr>
96
			<td class="setting_name"><?php echo $TEXT['POST_HEADER']; ?>:</td>
97
			<td class="setting_value">
98
				<textarea name="post_header" style="width: 98%; height: 60px;"><?php echo str_replace($raw, $friendly, ($fetch_content['post_header'])); ?></textarea>
99
			</td>
100
		</tr>
101
		<tr>
102
			<td class="setting_name"><?php echo $TEXT['POST_FOOTER']; ?>:</td>
103
			<td class="setting_value">
104
				<textarea name="post_footer" style="width: 98%; height: 60px;"><?php echo str_replace($raw, $friendly, ($fetch_content['post_footer'])); ?></textarea>
105
			</td>
106
		</tr>
107
		<tr>
108
			<td class="setting_name"><?php echo $TEXT['POSTS_PER_PAGE']; ?>:</td>
109
			<td class="setting_value">
110
				<select name="posts_per_page" style="width: 98%;">
111
					<option value=""><?php echo $TEXT['UNLIMITED']; ?></option>
112
					<?php
113
					for($i = 1; $i <= 20; $i++) {
114
						if($fetch_content['posts_per_page'] == ($i*5)) { $selected = ' selected'; } else { $selected = ''; }
115
						echo '<option value="'.($i*5).'"'.$selected.'>'.($i*5).'</option>';
116
					}
117
					?>
118
				</select>
119
			</td>
120
		</tr>
121
	</table>
122
	<table class="row_a" cellpadding="2" cellspacing="0" border="0" width="100%" style="margin-top: 3px;">
123
		<tr>
124
			<td colspan="2"><strong><?php echo $TEXT['COMMENTS']; ?></strong></td>
125
		</tr>
126
		<tr>
127
			<td class="setting_name"><?php echo $TEXT['COMMENTING']; ?>:</td>
128
			<td class="setting_value">
129
				<select name="commenting" style="width: 98%;">
130
					<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>
133
				</select>
134
			</td>
135
		</tr>
136
		<tr>
137
			<td class="setting_name"><?php echo $TEXT['CAPTCHA_VERIFICATION']; ?>:</td>
138
			<td >
139
				<input type="radio" name="use_captcha" id="use_captcha_true" value="1"<?php if($fetch_content['use_captcha'] == true) { echo ' checked'; } ?> />
140
				<label for="use_captcha_true"><?php echo $TEXT['ENABLED']; ?></label>
141
				<input type="radio" name="use_captcha" id="use_captcha_false" value="0"<?php if($fetch_content['use_captcha'] == false) { echo ' checked'; } ?> />
142
				<label for="use_captcha_false"><?php echo $TEXT['DISABLED']; ?></label>
143
			</td>
144
		</tr>
145
		<?php if(extension_loaded('gd') AND function_exists('imageCreateFromJpeg')) { /* Make's sure GD library is installed */ ?>
146
		<tr>
147
			<td class="setting_name"><?php echo $TEXT['RESIZE_IMAGE_TO']; ?>:</td>
148
			<td class="setting_value">
149
				<select name="resize" style="width: 98%;">
150
					<option value=""><?php echo $TEXT['NONE']; ?></option>
151
					<?php
152
					$SIZES['50'] = '50x50px';
153
					$SIZES['75'] = '75x75px';
154
					$SIZES['100'] = '100x100px';
155
					$SIZES['125'] = '125x125px';
156
					$SIZES['150'] = '150x150px';
157
					foreach($SIZES AS $size => $size_name) {
158
						if($fetch_content['resize'] == $size) { $selected = ' selected'; } else { $selected = ''; }
159
						echo '<option value="'.$size.'"'.$selected.'>'.$size_name.'</option>';
160
					}
161
					?>
162
				</select>
163
			</td>
164
		</tr>
165
		<?php } ?>
166
		<tr>
167
			<td class="setting_name"><?php echo $TEXT['COMMENTS'].' '.$TEXT['HEADER']; ?>:</td>
168
			<td class="setting_value">
169
				<textarea name="comments_header" style="width: 98%; height: 60px;"><?php echo str_replace($raw, $friendly, ($fetch_content['comments_header'])); ?></textarea>
170
			</td>
171
		</tr>
172
		<tr>
173
			<td class="setting_name"><?php echo $TEXT['COMMENTS'].' '.$TEXT['LOOP']; ?>:</td>
174
			<td class="setting_value">
175
				<textarea name="comments_loop" style="width: 98%; height: 60px;"><?php echo str_replace($raw, $friendly, ($fetch_content['comments_loop'])); ?></textarea>
176
			</td>
177
		</tr>
178
		<tr>
179
			<td class="setting_name"><?php echo $TEXT['COMMENTS'].' '.$TEXT['FOOTER']; ?>:</td>
180
			<td class="setting_value">
181
				<textarea name="comments_footer" style="width: 98%; height: 60px;"><?php echo str_replace($raw, $friendly, ($fetch_content['comments_footer'])); ?></textarea>
182
			</td>
183
		</tr>
184
		<tr>
185
			<td class="setting_name"><?php echo $TEXT['COMMENTS'].' '.$TEXT['PAGE']; ?>:</td>
186
			<td class="setting_value">
187
				<textarea name="comments_page" style="width: 98%; height: 80px;"><?php echo str_replace($raw, $friendly, ($fetch_content['comments_page'])); ?></textarea>
188
			</td>
189
		</tr>
190
	</table>
191
	<table cellpadding="0" cellspacing="0" border="0" width="100%">
192
		<tr>
193
			<td align="left">
194
				<input name="save" type="submit" value="<?php echo $TEXT['SAVE']; ?>" style="width: 100px; margin-top: 5px;"></form>
195
			</td>
196
			<td align="right">
197
				<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
			</td>
199
		</tr>
200
	</table>
201

  
202

  
203
<?php
204

  
205
// Print admin footer
206
$admin->print_footer();
207

  
210 208
?>
trunk/wb/modules/news/backend.css
1 1
.setting_name {
2 2
	vertical-align: top;
3
	width: 20%;
3 4
}
5
.setting_value {
6
	vertical-align: top;
7
	width: 80%;
8
}
4 9

  
5 10
/* 
6 11
  The definitions below provide the style for the edit CSS button 

Also available in: Unified diff