Revision 1289
Added by kweitzel almost 15 years ago
modify_post.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 |
// Get id |
... | ... | |
46 | 39 |
} |
47 | 40 |
} else { |
48 | 41 |
$id_list=array("short","long"); |
49 |
require(WB_PATH.'/modules/'.WYSIWYG_EDITOR.'/include.php');
|
|
42 |
require(WB_PATH.'/modules/'.WYSIWYG_EDITOR.'/include.php'); |
|
50 | 43 |
} |
51 | 44 |
|
52 | 45 |
// include jscalendar-setup |
... | ... | |
62 | 55 |
<input type="hidden" name="post_id" value="<?php echo $post_id; ?>" /> |
63 | 56 |
<input type="hidden" name="link" value="<?php echo $fetch_content['link']; ?>" /> |
64 | 57 |
|
65 |
<table class="row_a" cellpadding="2" cellspacing="0" border="0" width="100%">
|
|
58 |
<table class="row_a" cellpadding="2" cellspacing="0" width="100%"> |
|
66 | 59 |
<tr> |
67 | 60 |
<td><?php echo $TEXT['TITLE']; ?>:</td> |
68 | 61 |
<td width="80%"> |
... | ... | |
80 | 73 |
// Loop through groups |
81 | 74 |
while($group = $query->fetchRow()) { |
82 | 75 |
?> |
83 |
<option value="<?php echo $group['group_id']; ?>"<?php if($fetch_content['group_id'] == $group['group_id']) { echo ' selected'; } ?>><?php echo $group['title']; ?></option> |
|
76 |
<option value="<?php echo $group['group_id']; ?>"<?php if($fetch_content['group_id'] == $group['group_id']) { echo ' selected="selected"'; } ?>><?php echo $group['title']; ?></option>
|
|
84 | 77 |
<?php |
85 | 78 |
} |
86 | 79 |
} |
... | ... | |
93 | 86 |
<td> |
94 | 87 |
<select name="commenting" style="width: 100%;"> |
95 | 88 |
<option value="none"><?php echo $TEXT['DISABLED']; ?></option> |
96 |
<option value="public" <?php if($fetch_content['commenting'] == 'public') { echo 'selected'; } ?>><?php echo $TEXT['PUBLIC']; ?></option>
|
|
97 |
<option value="private" <?php if($fetch_content['commenting'] == 'private') { echo 'selected'; } ?>><?php echo $TEXT['PRIVATE']; ?></option>
|
|
89 |
<option value="public" <?php if($fetch_content['commenting'] == 'public') { echo ' selected="selected"'; } ?>><?php echo $TEXT['PUBLIC']; ?></option>
|
|
90 |
<option value="private" <?php if($fetch_content['commenting'] == 'private') { echo ' selected="selected"'; } ?>><?php echo $TEXT['PRIVATE']; ?></option>
|
|
98 | 91 |
</select> |
99 | 92 |
</td> |
100 | 93 |
</tr> |
... | ... | |
137 | 130 |
<tr> |
138 | 131 |
<td> |
139 | 132 |
<?php |
140 |
show_wysiwyg_editor("short","short",htmlspecialchars($fetch_content['content_short']),"100%","135px");
|
|
133 |
show_wysiwyg_editor("short","short",htmlspecialchars($fetch_content['content_short']),"100%","200px");
|
|
141 | 134 |
?> |
142 | 135 |
</td> |
143 | 136 |
</tr> |
... | ... | |
147 | 140 |
<tr> |
148 | 141 |
<td> |
149 | 142 |
<?php |
150 |
show_wysiwyg_editor("long","long",htmlspecialchars($fetch_content['content_long']),"100%","300px");
|
|
143 |
show_wysiwyg_editor("long","long",htmlspecialchars($fetch_content['content_long']),"100%","650px");
|
|
151 | 144 |
?> |
152 | 145 |
</td> |
153 | 146 |
</tr> |
... | ... | |
172 | 165 |
ifFormat : "<?php echo $jscal_ifformat ?>", |
173 | 166 |
button : "publishdate_trigger", |
174 | 167 |
firstDay : <?php echo $jscal_firstday ?>, |
175 |
<?php if(isset($jscal_use_time) && $jscal_use_time==TRUE) { ?> |
|
168 |
<?php if(isset($jscal_use_time) && $jscal_use_time==TRUE) |
|
169 |
{ ?> |
|
176 | 170 |
showsTime : "true", |
177 | 171 |
timeFormat : "24", |
178 |
<?php } ?> |
|
172 |
<?php |
|
173 |
} ?> |
|
179 | 174 |
date : "<?php echo $jscal_today ?>", |
180 | 175 |
range : [1970, 2037], |
181 | 176 |
step : 1 |
... | ... | |
187 | 182 |
ifFormat : "<?php echo $jscal_ifformat ?>", |
188 | 183 |
button : "enddate_trigger", |
189 | 184 |
firstDay : <?php echo $jscal_firstday ?>, |
190 |
<?php if(isset($jscal_use_time) && $jscal_use_time==TRUE) { ?> |
|
185 |
<?php if(isset($jscal_use_time) && $jscal_use_time==TRUE) |
|
186 |
{ ?> |
|
191 | 187 |
showsTime : "true", |
192 | 188 |
timeFormat : "24", |
193 |
<?php } ?> |
|
189 |
<?php |
|
190 |
} ?> |
|
194 | 191 |
date : "<?php echo $jscal_today ?>", |
195 | 192 |
range : [1970, 2037], |
196 | 193 |
step : 1 |
... | ... | |
215 | 212 |
?> |
216 | 213 |
<tr class="row_<?php echo $row; ?>" > |
217 | 214 |
<td width="20" style="padding-left: 5px;"> |
218 |
<a href="<?php echo WB_URL; ?>/modules/news/modify_comment.php?page_id=<?php echo $page_id; ?>§ion_id=<?php echo $section_id; ?>&comment_id=<?php echo $comment['comment_id']; ?>" title="<?php echo $TEXT['MODIFY']; ?>">
|
|
215 |
<a href="<?php echo WB_URL; ?>/modules/news/modify_comment.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section_id; ?>&comment_id=<?php echo $comment['comment_id']; ?>" title="<?php echo $TEXT['MODIFY']; ?>">
|
|
219 | 216 |
<img src="<?php echo THEME_URL; ?>/images/modify_16.png" border="0" alt="^" /> |
220 | 217 |
</a> |
221 | 218 |
</td> |
222 | 219 |
<td> |
223 |
<a href="<?php echo WB_URL; ?>/modules/news/modify_comment.php?page_id=<?php echo $page_id; ?>§ion_id=<?php echo $section_id; ?>&comment_id=<?php echo $comment['comment_id']; ?>">
|
|
220 |
<a href="<?php echo WB_URL; ?>/modules/news/modify_comment.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section_id; ?>&comment_id=<?php echo $comment['comment_id']; ?>">
|
|
224 | 221 |
<?php echo $comment['title']; ?> |
225 | 222 |
</a> |
226 | 223 |
</td> |
227 | 224 |
<td width="20"> |
228 |
<a href="javascript: confirm_link('<?php echo $TEXT['ARE_YOU_SURE']; ?>', '<?php echo WB_URL; ?>/modules/news/delete_comment.php?page_id=<?php echo $page_id; ?>§ion_id=<?php echo $section_id; ?>&post_id=<?php echo $post_id; ?>&comment_id=<?php echo $comment['comment_id']; ?>');" title="<?php echo $TEXT['DELETE']; ?>">
|
|
225 |
<a href="javascript: confirm_link('<?php echo $TEXT['ARE_YOU_SURE']; ?>', '<?php echo WB_URL; ?>/modules/news/delete_comment.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section_id; ?>&post_id=<?php echo $post_id; ?>&comment_id=<?php echo $comment['comment_id']; ?>');" title="<?php echo $TEXT['DELETE']; ?>">
|
|
229 | 226 |
<img src="<?php echo THEME_URL; ?>/images/delete_16.png" border="0" alt="X" /> |
230 | 227 |
</a> |
231 | 228 |
</td> |
... | ... | |
245 | 242 |
echo $TEXT['NONE_FOUND']; |
246 | 243 |
} |
247 | 244 |
|
248 |
?> |
|
249 | 245 |
|
250 |
|
|
251 |
|
|
252 |
<?php |
|
253 |
|
|
254 | 246 |
// Print admin footer |
255 | 247 |
$admin->print_footer(); |
256 | 248 |
|
257 | 249 |
Also available in: Unified diff
Branch 2.8.1 merged back into Trunk