Project

General

Profile

« Previous | Next » 

Revision 1079

Added by Matthias over 15 years ago

- Again added some & to news and form to get more valid output (Thanks to Luisehahne)

-Fixed wrong set </form> tag to get valid output (Thanks to Luisehahne)

View differences:

trunk/CHANGELOG
12 12

  
13 13
------------------------------------- 2.8.0 -------------------------------------
14 14
18-July 2009 Matthias Gallas
15
#	Again added some &amp; to news and form to get more valid output (Thanks to Luisehahne)
16
#	Fixed wrong set </form> tag to get valid output (Thanks to Luisehahne)
15 17
!	Replaced in some alt tags hardcoded signs with language variables (Thanks to argos)
16 18
!	Updated Dutch language File (Thanks to argos)
17 19
!	Updated French language File (Thanks to mylesk42)
trunk/wb/modules/form/modify.php
31 31
// Must include code to stop this file being access directly
32 32
if(!defined('WB_PATH')) { exit("Cannot access this file directly"); }
33 33

  
34
//overwrite php.ini on Apache servers for valid SESSION ID Separator
35
if(function_exists('ini_set')) {
36
	ini_set('arg_separator.output', '&amp;');
37
}
38

  
34 39
//Delete all form fields with no title
35 40
$database->query("DELETE FROM ".TABLE_PREFIX."mod_form_fields  WHERE page_id = '$page_id' and section_id = '$section_id' and title=''");
36 41

  
......
38 43
<table cellpadding="0" cellspacing="0" border="0" width="100%">
39 44
<tr>
40 45
	<td align="left" width="33%">
41
		<input type="button" value="<?php echo $TEXT['ADD'].' '.$TEXT['FIELD']; ?>" onclick="javascript: window.location = '<?php echo WB_URL; ?>/modules/form/add_field.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section_id; ?>';" style="width: 100%;" />
46
		<input type="button" value="<?php echo $TEXT['ADD'].' '.$TEXT['FIELD']; ?>" onclick="javascript: window.location = '<?php echo WB_URL; ?>/modules/form/add_field.php?page_id=<?php echo $page_id; ?>&amp;section_id=<?php echo $section_id; ?>';" style="width: 100%;" />
42 47
	</td>
43 48
	<td align="right" width="33%">
44
		<input type="button" value="<?php echo $TEXT['SETTINGS']; ?>" onclick="javascript: window.location = '<?php echo WB_URL; ?>/modules/form/modify_settings.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section_id; ?>';" style="width: 100%;" />
49
		<input type="button" value="<?php echo $TEXT['SETTINGS']; ?>" onclick="javascript: window.location = '<?php echo WB_URL; ?>/modules/form/modify_settings.php?page_id=<?php echo $page_id; ?>&amp;section_id=<?php echo $section_id; ?>';" style="width: 100%;" />
45 50
	</td>
46 51
</tr>
47 52
</table>
trunk/wb/modules/news/modify_settings.php
191 191
	<table cellpadding="0" cellspacing="0" border="0" width="100%">
192 192
		<tr>
193 193
			<td align="left">
194
				<input name="save" type="submit" value="<?php echo $TEXT['SAVE']; ?>" style="width: 100px; margin-top: 5px;"></form>
194
				<input name="save" type="submit" value="<?php echo $TEXT['SAVE']; ?>" style="width: 100px; margin-top: 5px;">
195 195
			</td>
196 196
			<td align="right">
197 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 198
			</td>
199 199
		</tr>
200 200
	</table>
201
</form>
201 202

  
202

  
203 203
<?php
204 204

  
205 205
// Print admin footer
trunk/wb/modules/news/modify.php
28 28
$database->query("DELETE FROM ".TABLE_PREFIX."mod_news_posts  WHERE page_id = '$page_id' and section_id = '$section_id' and title=''"); 
29 29
$database->query("DELETE FROM ".TABLE_PREFIX."mod_news_groups  WHERE page_id = '$page_id' and section_id = '$section_id' and title=''"); 
30 30

  
31
//overwrite php.ini on Apache servers for valid SESSION ID Separator
32
if(function_exists('ini_set')) {
33
	ini_set('arg_separator.output', '&amp;');
34
}
35

  
31 36
?>
32 37
<table cellpadding="0" cellspacing="0" border="0" width="100%">
33 38
<tr>
34 39
	<td align="left" width="33%">
35
		<input type="button" value="<?php echo $TEXT['ADD'].' '.$TEXT['POST']; ?>" onclick="javascript: window.location = '<?php echo WB_URL; ?>/modules/news/add_post.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section_id; ?>';" style="width: 100%;" />
40
		<input type="button" value="<?php echo $TEXT['ADD'].' '.$TEXT['POST']; ?>" onclick="javascript: window.location = '<?php echo WB_URL; ?>/modules/news/add_post.php?page_id=<?php echo $page_id; ?>&amp;section_id=<?php echo $section_id; ?>';" style="width: 100%;" />
36 41
	</td>
37 42
	<td align="left" width="33%">
38
		<input type="button" value="<?php echo $TEXT['ADD'].' '.$TEXT['GROUP']; ?>" onclick="javascript: window.location = '<?php echo WB_URL; ?>/modules/news/add_group.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section_id; ?>';" style="width: 100%;" />
43
		<input type="button" value="<?php echo $TEXT['ADD'].' '.$TEXT['GROUP']; ?>" onclick="javascript: window.location = '<?php echo WB_URL; ?>/modules/news/add_group.php?page_id=<?php echo $page_id; ?>&amp;section_id=<?php echo $section_id; ?>';" style="width: 100%;" />
39 44
	</td>
40 45
	<td align="right" width="33%">
41
		<input type="button" value="<?php echo $TEXT['SETTINGS']; ?>" onclick="javascript: window.location = '<?php echo WB_URL; ?>/modules/news/modify_settings.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section_id; ?>';" style="width: 100%;" />
46
		<input type="button" value="<?php echo $TEXT['SETTINGS']; ?>" onclick="javascript: window.location = '<?php echo WB_URL; ?>/modules/news/modify_settings.php?page_id=<?php echo $page_id; ?>&amp;section_id=<?php echo $section_id; ?>';" style="width: 100%;" />
42 47
	</td>
43 48
</tr>
44 49
</table>
......
61 66
		?>
62 67
		<tr class="row_<?php echo $row; ?>">
63 68
			<td width="20" style="padding-left: 5px;">
64
				<a href="<?php echo WB_URL; ?>/modules/news/modify_post.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section_id; ?>&post_id=<?php echo $post['post_id']; ?>" title="<?php echo $TEXT['MODIFY']; ?>">
69
				<a href="<?php echo WB_URL; ?>/modules/news/modify_post.php?page_id=<?php echo $page_id; ?>&amp;section_id=<?php echo $section_id; ?>&amp;post_id=<?php echo $post['post_id']; ?>" title="<?php echo $TEXT['MODIFY']; ?>">
65 70
					<img src="<?php echo THEME_URL; ?>/images/modify_16.png" border="0" alt="Modify - " />
66 71
				</a>
67 72
			</td>
68 73
			<td>
69
				<a href="<?php echo WB_URL; ?>/modules/news/modify_post.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section_id; ?>&post_id=<?php echo $post['post_id']; ?>">
74
				<a href="<?php echo WB_URL; ?>/modules/news/modify_post.php?page_id=<?php echo $page_id; ?>&amp;section_id=<?php echo $section_id; ?>&amp;post_id=<?php echo $post['post_id']; ?>">
70 75
					<?php echo ($post['title']); ?>
71 76
				</a>
72 77
			</td>
......
105 110
			else
106 111
				$icon=THEME_URL.'/images/clock_red_16.png';
107 112
			?>
108
			<a href="<?php echo WB_URL; ?>/modules/news/modify_post.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section_id; ?>&post_id=<?php echo $post['post_id']; ?>" title="<?php echo $TEXT['MODIFY']; ?>">
113
			<a href="<?php echo WB_URL; ?>/modules/news/modify_post.php?page_id=<?php echo $page_id; ?>&amp;section_id=<?php echo $section_id; ?>&amp;post_id=<?php echo $post['post_id']; ?>" title="<?php echo $TEXT['MODIFY']; ?>">
109 114
				<img src="<?php echo $icon; ?>" border="0" alt="" />
110 115
			</a>
111 116
			</td>
112 117
			<td width="20">
113 118
			<?php if($post['position'] != $num_posts) { ?>
114
				<a href="<?php echo WB_URL; ?>/modules/news/move_down.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section_id; ?>&post_id=<?php echo $post['post_id']; ?>" title="<?php echo $TEXT['MOVE_UP']; ?>">
119
				<a href="<?php echo WB_URL; ?>/modules/news/move_down.php?page_id=<?php echo $page_id; ?>&amp;section_id=<?php echo $section_id; ?>&amp;post_id=<?php echo $post['post_id']; ?>" title="<?php echo $TEXT['MOVE_UP']; ?>">
115 120
					<img src="<?php echo THEME_URL; ?>/images/up_16.png" border="0" alt="^" />
116 121
				</a>
117 122
			<?php } ?>
118 123
			</td>
119 124
			<td width="20">
120 125
			<?php if($post['position'] != 1) { ?>
121
				<a href="<?php echo WB_URL; ?>/modules/news/move_up.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section_id; ?>&post_id=<?php echo $post['post_id']; ?>" title="<?php echo $TEXT['MOVE_DOWN']; ?>">
126
				<a href="<?php echo WB_URL; ?>/modules/news/move_up.php?page_id=<?php echo $page_id; ?>&amp;section_id=<?php echo $section_id; ?>&amp;post_id=<?php echo $post['post_id']; ?>" title="<?php echo $TEXT['MOVE_DOWN']; ?>">
122 127
					<img src="<?php echo THEME_URL; ?>/images/down_16.png" border="0" alt="v" />
123 128
				</a>
124 129
			<?php } ?>
125 130
			</td>
126 131
			<td width="20">
127
				<a href="javascript: confirm_link('<?php echo $TEXT['ARE_YOU_SURE']; ?>', '<?php echo WB_URL; ?>/modules/news/delete_post.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section_id; ?>&post_id=<?php echo $post['post_id']; ?>');" title="<?php echo $TEXT['DELETE']; ?>">
132
				<a href="javascript: confirm_link('<?php echo $TEXT['ARE_YOU_SURE']; ?>', '<?php echo WB_URL; ?>/modules/news/delete_post.php?page_id=<?php echo $page_id; ?>&amp;section_id=<?php echo $section_id; ?>&amp;post_id=<?php echo $post['post_id']; ?>');" title="<?php echo $TEXT['DELETE']; ?>">
128 133
					<img src="<?php echo THEME_URL; ?>/images/delete_16.png" border="0" alt="X" />
129 134
				</a>
130 135
			</td>
......
162 167
		?>
163 168
		<tr class="row_<?php echo $row; ?>">
164 169
			<td width="20" style="padding-left: 5px;">
165
				<a href="<?php echo WB_URL; ?>/modules/news/modify_group.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section_id; ?>&group_id=<?php echo $group['group_id']; ?>" title="<?php echo $TEXT['MODIFY']; ?>">
170
				<a href="<?php echo WB_URL; ?>/modules/news/modify_group.php?page_id=<?php echo $page_id; ?>&amp;section_id=<?php echo $section_id; ?>&amp;group_id=<?php echo $group['group_id']; ?>" title="<?php echo $TEXT['MODIFY']; ?>">
166 171
					<img src="<?php echo THEME_URL; ?>/images/modify_16.png" border="0" alt="Modify - " />
167 172
				</a>
168 173
			</td>		
169 174
			<td>
170
				<a href="<?php echo WB_URL; ?>/modules/news/modify_group.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section_id; ?>&group_id=<?php echo $group['group_id']; ?>">
175
				<a href="<?php echo WB_URL; ?>/modules/news/modify_group.php?page_id=<?php echo $page_id; ?>&amp;section_id=<?php echo $section_id; ?>&amp;group_id=<?php echo $group['group_id']; ?>">
171 176
					<?php echo $group['title']; ?>
172 177
				</a>
173 178
			</td>
......
176 181
			</td>
177 182
			<td width="20">
178 183
			<?php if($group['position'] != 1) { ?>
179
				<a href="<?php echo WB_URL; ?>/modules/news/move_up.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section_id; ?>&group_id=<?php echo $group['group_id']; ?>" title="<?php echo $TEXT['MOVE_UP']; ?>">
184
				<a href="<?php echo WB_URL; ?>/modules/news/move_up.php?page_id=<?php echo $page_id; ?>&amp;section_id=<?php echo $section_id; ?>&amp;group_id=<?php echo $group['group_id']; ?>" title="<?php echo $TEXT['MOVE_UP']; ?>">
180 185
					<img src="<?php echo THEME_URL; ?>/images/up_16.png" border="0" alt="^" />
181 186
				</a>
182 187
			<?php } ?>
183 188
			</td>
184 189
			<td width="20">
185 190
			<?php if($group['position'] != $num_groups) { ?>
186
				<a href="<?php echo WB_URL; ?>/modules/news/move_down.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section_id; ?>&group_id=<?php echo $group['group_id']; ?>" title="<?php echo $TEXT['MOVE_DOWN']; ?>">
191
				<a href="<?php echo WB_URL; ?>/modules/news/move_down.php?page_id=<?php echo $page_id; ?>&amp;section_id=<?php echo $section_id; ?>&amp;group_id=<?php echo $group['group_id']; ?>" title="<?php echo $TEXT['MOVE_DOWN']; ?>">
187 192
					<img src="<?php echo THEME_URL; ?>/images/down_16.png" border="0" alt="v" />
188 193
				</a>
189 194
			<?php } ?>
190 195
			</td>
191 196
			<td width="20">
192
				<a href="javascript: confirm_link('<?php echo $TEXT['ARE_YOU_SURE']; ?>', '<?php echo WB_URL; ?>/modules/news/delete_group.php?page_id=<?php echo $page_id; ?>&group_id=<?php echo $group['group_id']; ?>');" title="<?php echo $TEXT['DELETE']; ?>">
197
				<a href="javascript: confirm_link('<?php echo $TEXT['ARE_YOU_SURE']; ?>', '<?php echo WB_URL; ?>/modules/news/delete_group.php?page_id=<?php echo $page_id; ?>&amp;group_id=<?php echo $group['group_id']; ?>');" title="<?php echo $TEXT['DELETE']; ?>">
193 198
					<img src="<?php echo THEME_URL; ?>/images/delete_16.png" border="0" alt="X" />
194 199
				</a>
195 200
			</td>

Also available in: Unified diff