Revision 600
Added by thorn almost 17 years ago
modify_post.php | ||
---|---|---|
50 | 50 |
} |
51 | 51 |
|
52 | 52 |
// include jscalendar-setup |
53 |
$jscal_use_time = false; // whether to use a clock, too
|
|
53 |
$jscal_use_time = true; // whether to use a clock, too
|
|
54 | 54 |
require_once(WB_PATH."/include/jscalendar/wb-setup.php"); |
55 | 55 |
// override some vars: (normally, there is no need to change this) |
56 | 56 |
//$jscal_lang = "en"; //- calendar-language (default: wb-backend-language) |
... | ... | |
121 | 121 |
</td> |
122 | 122 |
</tr> |
123 | 123 |
<tr> |
124 |
<td><?php echo $TEXT['DATE']; ?>:</td> |
|
124 |
<td><?php echo $TEXT['PUBL_START_DATE']; ?>:</td>
|
|
125 | 125 |
<td> |
126 |
<input type="text" id="publishdate" name="publishdate" value="<?php if($fetch_content['published_when']==0) print ""; else print date($jscal_format, $fetch_content['published_when'])?>" style="width: 120px;" /> |
|
127 |
<img src="<?php echo WB_URL ?>/include/jscalendar/img.gif" id="publishdate_trigger" style="cursor: pointer; border: 1px solid red;" title="Calendar" onmouseover="this.style.background='red';" onmouseout="this.style.background=''" /> |
|
126 |
<input type="text" id="publishdate" name="publishdate" value="<?php if($fetch_content['published_when']==0) print date($jscal_format, time()); else print date($jscal_format, $fetch_content['published_when']);?>" style="width: 120px;" /> |
|
127 |
<img src="<?php echo ADMIN_URL ?>/images/clock_16.png" id="publishdate_trigger" style="cursor: pointer;" title="Calendar" onmouseover="this.style.background='lightgrey';" onmouseout="this.style.background=''" /> |
|
128 |
<img src="<?php echo ADMIN_URL ?>/images/clock_del_16.png" style="cursor: pointer;" title="delete date" onmouseover="this.style.background='lightgrey';" onmouseout="this.style.background=''" onclick="document.modify.publishdate.value=''" /> |
|
128 | 129 |
</td> |
129 | 130 |
</tr> |
131 |
<tr> |
|
132 |
<td><?php echo $TEXT['PUBL_END_DATE']; ?>:</td> |
|
133 |
<td> |
|
134 |
<input type="text" id="enddate" name="enddate" value="<?php if($fetch_content['published_until']==0) print ""; else print date($jscal_format, $fetch_content['published_until'])?>" style="width: 120px;" /> |
|
135 |
<img src="<?php echo ADMIN_URL ?>/images/clock_16.png" id="enddate_trigger" style="cursor: pointer;" title="Calendar" onmouseover="this.style.background='lightgrey';" onmouseout="this.style.background=''" /> |
|
136 |
<img src="<?php echo ADMIN_URL ?>/images/clock_del_16.png" style="cursor: pointer;" title="delete date" onmouseover="this.style.background='lightgrey';" onmouseout="this.style.background=''" onclick="document.modify.enddate.value=''" /> |
|
137 |
</td> |
|
138 |
</tr> |
|
130 | 139 |
</table> |
131 | 140 |
|
132 | 141 |
<table class="row_a" cellpadding="2" cellspacing="0" border="0" width="100%"> |
... | ... | |
179 | 188 |
step : 1 |
180 | 189 |
} |
181 | 190 |
); |
191 |
Calendar.setup( |
|
192 |
{ |
|
193 |
inputField : "enddate", |
|
194 |
ifFormat : "<?php echo $jscal_ifformat ?>", |
|
195 |
button : "enddate_trigger", |
|
196 |
firstDay : <?php echo $jscal_firstday ?>, |
|
197 |
<?php if(isset($jscal_use_time) && $jscal_use_time==TRUE) { ?> |
|
198 |
showsTime : "true", |
|
199 |
timeFormat : "24", |
|
200 |
<?php } ?> |
|
201 |
date : "<?php echo $jscal_today ?>", |
|
202 |
range : [1970, 2037], |
|
203 |
step : 1 |
|
204 |
} |
|
205 |
); |
|
182 | 206 |
</script> |
183 | 207 |
|
184 | 208 |
<br /> |
Also available in: Unified diff
module news: added publish_until field to control the visibility of a news-posting by date and time