string cannot be translated, is used by check procedure
[eventlist:hektos-el16.git] / component / admin / views / event / tmpl / default.php
1 <?php
2 /**
3  * @version 1.0 $Id$
4  * @package Joomla
5  * @subpackage EventList
6  * @copyright (C) 2005 - 2009 Christoph Lukes
7  * @license GNU/GPL, see LICENSE.php
8  * EventList is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License 2
10  * as published by the Free Software Foundation.
11
12  * EventList is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16
17  * You should have received a copy of the GNU General Public License
18  * along with EventList; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
20  */
21
22 defined('_JEXEC') or die('Restricted access');
23 ?>
24
25 <script language="javascript" type="text/javascript">
26         function submitbutton(task)
27         {
28
29                 var form = document.adminForm;
30                 var datdescription = <?php echo $this->editor->getContent( 'datdescription' ); ?>
31
32                 if (task == 'cancel') {
33                         submitform( task );
34                 } else if (form.dates.value == ""){
35                         alert( "<?php echo JText::_( 'COM_EVENTLIST_ADD_DATE'); ?>" );
36                 } else if (form.title.value == ""){
37                         alert( "<?php echo JText::_( 'COM_EVENTLIST_ADD_TITLE'); ?>" );
38                         form.title.focus();
39                 } else if (!form.dates.value.match(/[0-9]{4}-[0-1][0-9]-[0-3][0-9]/gi)) {
40                         alert("<?php echo JText::_( 'COM_EVENTLIST_DATE_WRONG'); ?>");
41                 } else if (form.enddates.value !="" && !form.enddates.value.match(/[0-9]{4}-[0-1][0-9]-[0-3][0-9]/gi)) {
42                         alert("<?php echo JText::_( 'COM_EVENTLIST_ENDDATE_WRONG'); ?>");
43                 } else if (form.times.value == "" && form.endtimes.value != "") {
44                         alert("<?php echo JText::_( 'COM_EVENTLIST_ADD_TIME'); ?>");
45                         form.times.focus();
46                 } else if (form.times.value != "" && !form.times.value.match(/[0-2][0-9]:[0-5][0-9]/gi)) {
47                         alert("<?php echo JText::_( 'COM_EVENTLIST_TIME_WRONG'); ?>");
48                         form.times.focus();
49                 } else if (form.endtimes.value != "" && !form.endtimes.value.match(/[0-2][0-9]:[0-5][0-9]/gi)) {
50                         alert("<?php echo JText::_( 'COM_EVENTLIST_TIME_WRONG'); ?>");
51                         form.endtimes.focus();
52                 } else if (form.catsid.value == "0"){
53                         alert( "<?php echo JText::_( 'COM_EVENTLIST_CHOOSE_CATEGORY'); ?>" );
54                 } else if (form.locid.value == ""){
55                         alert( "<?php echo JText::_( 'COM_EVENTLIST_CHOOSE_VENUE'); ?>" );
56                 } else {
57                         <?php
58                         echo $this->editor->save( 'datdescription' );
59                         ?>
60                         $("meta_keywords").value = $keywords;
61                         $("meta_description").value = $description;
62                         submit_unlimited();
63
64                         submitform( task );
65                 }
66         }
67 </script>
68
69 <form action="index.php" method="post" name="adminForm" id="adminForm">
70
71 <table cellspacing="0" cellpadding="0" border="0" width="100%" class="adminform">
72         <tr>
73                 <td valign="top">
74                         <table class="adminform">
75                                 <tr>
76                                         <td>
77                                                 <label for="title">
78                                                         <?php echo JText::_( 'COM_EVENTLIST_EVENT_TITLE' ).':'; ?>
79                                                 </label>
80                                         </td>
81                                         <td>
82                                                 <input class="inputbox" name="title" value="<?php echo $this->row->title; ?>" size="50" maxlength="100" id="title" />
83                                         </td>
84                                         <td>
85                                                 <label for="published">
86                                                         <?php echo JText::_( 'COM_EVENTLIST_PUBLISHED' ).':'; ?>
87                                                 </label>
88                                         </td>
89                                         <td>
90                                                 <?php
91                                                 $html = JHTML::_('select.booleanlist', 'published', '', $this->row->published );
92                                                 echo $html;
93                                                 ?>
94                                         </td>
95                                 </tr>
96                                 <tr>
97                                         <td>
98                                                 <label for="alias">
99                                                         <?php echo JText::_( 'Alias' ).':'; ?>
100                                                 </label>
101                                         </td>
102                                         <td colspan="3">
103                                                 <input class="inputbox" type="text" name="alias" id="alias" size="50" maxlength="100" value="<?php echo $this->row->alias; ?>" />
104                                         </td>
105                                 </tr>
106                                 <tr>
107                                         <td>
108                                                 <label for="venueid">
109                                                         <?php echo JText::_( 'COM_EVENTLIST_VENUE' ).':'; ?>
110                                                 </label>
111                                         </td>
112                                         <td>
113                                                 <?php
114                                                 echo $this->venueselect;
115                                                 ?>
116                                         </td>
117                                         <td>
118                                                 <label for="catid">
119                                                         <?php echo JText::_( 'COM_EVENTLIST_CATEGORY' ).':'; ?>
120                                                 </label>
121                                         </td>
122                                         <td>
123                                                 <?php
124                                                 echo $this->Lists['category']
125                                                 ?>
126                                         </td>
127                                 </tr>
128                         </table>
129
130                         <table class="adminform">
131                                 <tr>
132                                         <td>
133                                                 <?php
134                                                 // parameters : areaname, content, hidden field, width, height, rows, cols, buttons
135                                                 echo $this->editor->display( 'datdescription',  $this->row->datdescription, '100%;', '550', '75', '20', array('pagebreak', 'readmore') ) ;
136                                                 ?>
137                                         </td>
138                                 </tr>
139                         </table>
140                 </td>
141                 <td valign="top" width="320px" style="padding: 7px 0 0 5px">
142                         <?php
143                         $title = JText::_( 'COM_EVENTLIST_DETAILS' );
144                         echo $this->pane->startPane("det-pane");
145                         echo $this->pane->startPanel( $title, 'date' );
146
147                         //Set the info image
148                         $infoimage = JHTML::image('components/com_eventlist/assets/images/icon-16-hint.png', JText::_( 'COM_EVENTLIST_NOTES' ) );
149                         ?>
150                         <table>
151                                 <tr>
152                                         <td>
153                                                 <label for="dates">
154                                                         <?php echo JText::_( 'COM_EVENTLIST_DATE' ).':'; ?>
155                                                 </label>
156                                         </td>
157                                         <td>
158                                                 <?php echo JHTML::_('calendar', $this->row->dates, "dates", "dates"); ?>
159                                 </td>
160                         <td>
161                                 <span class="editlinktip hasTip" title="<?php echo JText::_( 'COM_EVENTLIST_NOTES' ); ?>::<?php echo JText::_('COM_EVENTLIST_FORMAT_DATE'); ?>">
162                                                         <?php echo $infoimage; ?>
163                                                 </span>
164                                         </td>
165                                 </tr>
166                                 <tr>
167                                         <td>
168                                                 <label for="enddates">
169                                                 <?php echo JText::_( 'COM_EVENTLIST_ENDDATE' ).':'; ?>
170                                                 </label>
171                                         </td>
172                                         <td>
173                                                 <?php echo JHTML::_('calendar', $this->row->enddates, "enddates", "enddates"); ?>
174                                 </td>
175                                 <td>
176                                                 <span class="editlinktip hasTip" title="<?php echo JText::_( 'COM_EVENTLIST_NOTES' ); ?>::<?php echo JText::_('COM_EVENTLIST_FORMAT_DATE'); ?>">
177                                                         <?php echo $infoimage; ?>
178                                                 </span>
179                                         </td>
180                                 </tr>
181                                 <tr>
182                                         <td>
183                                                 <label for="times">
184                                                         <?php echo JText::_( 'COM_EVENTLIST_EVENT_TIME' ).':'; ?>
185                                                 </label>
186                                         </td>
187                                         <td>
188                                                 <?php
189                                                 if ($this->row->times) {
190                                                         $this->row->times = substr($this->row->times, 0, 5);
191                                                 }
192                                                 ?>
193                                                 <input class="inputbox" name="times" value="<?php echo $this->row->times; ?>" size="15" maxlength="8" id="times" />
194                                         </td>
195                                         <td>
196                                                 <?php if ( $this->elsettings->showtime == 1 ) { ?>
197                                                         <span class="editlinktip hasTip" title="<?php echo JText::_( 'COM_EVENTLIST_NOTES' ); ?>::<?php echo JText::_('COM_EVENTLIST_FORMAT_TIME'); ?>">
198                                                                 <?php echo $infoimage; ?>
199                                                         </span>
200                                                 <?php } else { ?>
201                                                         <span class="editlinktip hasTip" title="<?php echo JText::_( 'COM_EVENTLIST_NOTES' ); ?>::<?php echo JText::_('COM_EVENTLIST_FORMAT_TIME_OPTIONAL'); ?>">
202                                                                 <?php echo $infoimage; ?>
203                                                         </span>
204                                                 <?php } ?>
205                                         </td>
206                                 </tr>
207                                 <tr>
208                                         <td>
209                                                 <label for="endtimes">
210                                                         <?php echo JText::_( 'COM_EVENTLIST_END_TIME' ).':'; ?>
211                                                 </label>
212                                         </td>
213                                         <td>
214                                                 <?php
215                                                 if ($this->row->endtimes) {
216                                                         $this->row->endtimes = substr($this->row->endtimes, 0, 5);
217                                                 }
218                                                 ?>
219                                                 <input class="inputbox" name="endtimes" value="<?php echo $this->row->endtimes; ?>" size="15" maxlength="8" id="endtimes" />
220                                         </td>
221                                         <td>
222                                                 <span class="editlinktip hasTip" title="<?php echo JText::_( 'COM_EVENTLIST_NOTES' ); ?>::<?php echo JText::_('COM_EVENTLIST_FORMAT_TIME_OPTIONAL'); ?>">
223                                                         <?php echo $infoimage; ?>
224                                                 </span>
225                                         </td>
226                                 </tr>
227                         </table>
228                         <?php
229                         $title = JText::_( 'COM_EVENTLIST_REGISTRATION' );
230                         echo $this->pane->endPanel();
231                         echo $this->pane->startPanel( $title, 'registra' );
232                         ?>
233                         <table>
234                                 <tr>
235                                         <td>
236                                                 <label for="registra">
237                                                         <?php echo JText::_( 'COM_EVENTLIST_ENABLE_REGISTRATION' ).':'; ?>
238                                                 </label>
239                                         </td>
240                                         <td>
241                                                 <?php
242                                                 $html = JHTML::_('select.booleanlist', 'registra', '', $this->row->registra );
243                                                 echo $html;
244                                                 ?>
245                                         </td>
246                                 </tr>
247                                 <tr>
248                                         <td>
249                                                 <label for="unregistra">
250                                                         <?php echo JText::_( 'COM_EVENTLIST_ENABLE_UNREGISTRATION' ).':'; ?>
251                                                 </label>
252                                         </td>
253                                         <td>
254                                                 <?php
255                                                 $html = JHTML::_('select.booleanlist', 'unregistra', '', $this->row->unregistra );
256                                                 echo $html;
257                                                 ?>
258                                         </td>
259                                 </tr>
260                         </table>
261                         <?php
262                         $title = JText::_( 'COM_EVENTLIST_IMAGE' );
263                         echo $this->pane->endPanel();
264                         echo $this->pane->startPanel( $title, 'image' );
265                         ?>
266                         <table>
267                                 <tr>
268                                         <td>
269                                                 <label for="image">
270                                                         <?php echo JText::_( 'COM_EVENTLIST_CHOOSE_IMAGE' ).':'; ?>
271                                                 </label>
272                                         </td>
273                                         <td>
274                                                 <?php echo $this->imageselect; ?>
275                                         </td>
276                                 </tr>
277                                 <tr>
278                                         <td>&nbsp;</td>
279                                         <td>
280                                                 <img src="../images/M_images/blank.png" name="imagelib" id="imagelib" width="80" height="80" border="2" alt="Preview" />
281                                                 <script language="javascript" type="text/javascript">
282                                                 if (document.forms[0].a_imagename.value!=''){
283                                                         var imname = document.forms[0].a_imagename.value;
284                                                         jsimg='../images/eventlist/events/' + imname;
285                                                         document.getElementById('imagelib').src= jsimg;
286                                                 }
287                                                 </script>
288
289                                                 <br />
290                                         </td>
291                                 </tr>
292                         </table>
293                         <?php
294                         $title = JText::_( 'COM_EVENTLIST_RECURRING_EVENTS' );
295                         echo $this->pane->endPanel();
296                         echo $this->pane->startPanel( $title, 'recurrence' );
297                         ?>
298
299
300                                 <table width="100%">
301                                         <tr>
302                                                 <td width="40%"><?php echo JText::_( 'COM_EVENTLIST_RECURRENCE' ); ?>:</td>
303                                                 <td width="60%">
304                                                   <select id="recurrence_select" name="recurrence_select" size="1">
305                                                     <option value="0"><?php echo JText::_( 'COM_EVENTLIST_NOTHING' ); ?></option>
306                                                     <option value="1"><?php echo JText::_( 'COM_EVENTLIST_DAYLY' ); ?></option>
307                                                     <option value="2"><?php echo JText::_( 'COM_EVENTLIST_WEEKLY' ); ?></option>
308                                                     <option value="3"><?php echo JText::_( 'COM_EVENTLIST_MONTHLY' ); ?></option>
309                                                     <option value="4"><?php echo JText::_( 'COM_EVENTLIST_WEEKDAY' ); ?></option>
310                                                   </select>
311                                                 </td>
312                                         </tr>
313                                         <tr>
314                                                 <td colspan="2" id="recurrence_output">&nbsp;</td>
315                                         </tr>
316                                         <tr id="counter_row" style="display:none;">
317                                                 <td><?php echo JText::_( 'COM_EVENTLIST_RECURRENCECOUNTER' ); ?>:</td>
318                                                 <td>
319                                                 <?php echo JHTML::_('calendar', ($this->row->recurrence_counter <> 0000-00-00)? $this->row->recurrence_counter: JText::_( 'UNLIMITED' ), "recurrence_counter", "recurrence_counter"); ?><a href="#" onclick="include_unlimited('<?php echo JText::_( 'UNLIMITED' ); ?>'); return false;"><img src="../components/com_eventlist/assets/images/unlimited.png" width="16" height="16" alt="<?php echo JText::_( 'UNLIMITED' ); ?>" /></a>
320                                                 </td>
321                                         <tr>
322                                         <tr>
323                                                 <td><br/><br/></td>
324                                         </tr>
325                                 </table>
326                         <br/>
327                         <input type="hidden" name="recurrence_number" id="recurrence_number" value="<?php echo $this->row->recurrence_number; ?>" />
328                         <input type="hidden" name="recurrence_type" id="recurrence_type" value="<?php echo $this->row->recurrence_type; ?>" />
329                         <script type="text/javascript">
330                         <!--
331                                 var $select_output = new Array();
332                                 $select_output[1] = "<?php echo JText::_( 'COM_EVENTLIST_OUTPUT_DAY' ); ?>";
333                                 $select_output[2] = "<?php echo JText::_( 'COM_EVENTLIST_OUTPUT_WEEK' ); ?>";
334                                 $select_output[3] = "<?php echo JText::_( 'COM_EVENTLIST_OUTPUT_MONTH' ); ?>";
335                                 $select_output[4] = "<?php echo JText::_( 'COM_EVENTLIST_OUTPUT_WEEKDAY' ); ?>";
336
337                                 var $weekday = new Array();
338                                 $weekday[0] = "<?php echo JText::_( 'COM_EVENTLIST_MONDAY' ); ?>";
339                                 $weekday[1] = "<?php echo JText::_( 'COM_EVENTLIST_TUESDAY' ); ?>";
340                                 $weekday[2] = "<?php echo JText::_( 'COM_EVENTLIST_WEDNESDAY' ); ?>";
341                                 $weekday[3] = "<?php echo JText::_( 'COM_EVENTLIST_THURSDAY' ); ?>";
342                                 $weekday[4] = "<?php echo JText::_( 'COM_EVENTLIST_FRIDAY' ); ?>";
343                                 $weekday[5] = "<?php echo JText::_( 'COM_EVENTLIST_SATURDAY' ); ?>";
344                                 $weekday[6] = "<?php echo JText::_( 'COM_EVENTLIST_SUNDAY' ); ?>";
345
346                                 var $before_last = "<?php echo JText::_( 'COM_EVENTLIST_BEFORE_LAST_' ); ?>";
347                                 var $last = "<?php echo JText::_( 'COM_EVENTLIST_LAST_' ); ?>";
348
349                                 start_recurrencescript();
350                         -->
351                         </script>
352                         <?php
353                         $title = JText::_( 'COM_EVENTLIST_METADATA_INFORMATION' );
354                         echo $this->pane->endPanel();
355                         echo $this->pane->startPanel( $title, 'meta' );
356                         ?>
357                         <table>
358                                 <tr>
359                                         <td>
360                                                 <input class="inputbox" type="button" onclick="insert_keyword('[title]')" value="<?php echo JText::_( 'COM_EVENTLIST_EVENT_TITLE' ); ?>" />
361                                                 <input class="inputbox" type="button" onclick="insert_keyword('[a_name]')" value="<?php echo JText::_( 'COM_EVENTLIST_VENUE' ); ?>" />
362                                                 <input class="inputbox" type="button" onclick="insert_keyword('[catsid]')" value="<?php echo JText::_( 'COM_EVENTLIST_CATEGORY' ); ?>" />
363                                                 <input class="inputbox" type="button" onclick="insert_keyword('[dates]')" value="<?php echo JText::_( 'COM_EVENTLIST_DATE' ); ?>" />
364                                                 <p><input class="inputbox" type="button" onclick="insert_keyword('[times]')" value="<?php echo JText::_( 'COM_EVENTLIST_EVENT_TIME' ); ?>" />
365                                                 <input class="inputbox" type="button" onclick="insert_keyword('[enddates]')" value="<?php echo JText::_( 'COM_EVENTLIST_ENDDATE' ); ?>" />
366                                                 <input class="inputbox" type="button" onclick="insert_keyword('[endtimes]')" value="<?php echo JText::_( 'COM_EVENTLIST_END_TIME' ); ?>" /></p>
367                                                 <br/>
368                                                 <label for="meta_keywords">
369                                                         <?php echo JText::_( 'COM_EVENTLIST_META_KEYWORDS' ).':'; ?>
370                                                 </label>
371                                                 <br />
372
373                                                 <?php
374                                                 if (!empty($this->row->meta_keywords)) {
375                                                         $meta_keywords = $this->row->meta_keywords;
376                                                 } else {
377                                                         $meta_keywords = $this->elsettings->meta_keywords;
378                                                 }
379                                                 ?>
380
381                                                 <textarea class="inputbox" name="meta_keywords" id="meta_keywords" rows="5" cols="40" maxlength="150" onfocus="get_inputbox('meta_keywords')" onblur="change_metatags()"><?php echo $meta_keywords; ?></textarea>
382                                 </td>
383                         <tr>
384                         <tr>
385                                 <td>
386                                         <label for="meta_description">
387                                                 <?php echo JText::_( 'COM_EVENTLIST_META_DESCRIPTION' ).':'; ?>
388                                         </label>
389                                         <br />
390                                         <?php
391                                         if (!empty($this->row->meta_description)) {
392                                                 $meta_description = $this->row->meta_description;
393                                         } else {
394                                                 $meta_description = $this->elsettings->meta_description;
395                                         }
396                                         ?>
397
398                                         <textarea class="inputbox" name="meta_description" id="meta_description" rows="5" cols="40" maxlength="200" onfocus="get_inputbox('meta_description')" onblur="change_metatags()"><?php echo $meta_description; ?></textarea>
399                                 </td>
400                         <tr>
401                         <!-- include the metatags end-->
402                 </table>
403                 <script type="text/javascript">
404                 <!--
405                         starter("<?php echo JText::_( 'COM_EVENTLIST_META_ERROR' ); ?>");       // da window.onload schon belegt wurde, wird die Funktion 'manuell' aufgerufen
406                 -->
407                 </script>
408                 <?php
409                 echo $this->pane->endPanel();
410                 echo $this->pane->endPane(); ?>
411                 </td>
412         </tr>
413 </table>
414
415 <?php echo JHTML::_( 'form.token' ); ?>
416 <input type="hidden" name="option" value="com_eventlist" />
417 <input type="hidden" name="controller" value="events" />
418 <input type="hidden" name="view" value="event" />
419 <input type="hidden" name="task" value="" />
420 <?php if ($this->task == 'copy') { ?>
421         <input type="hidden" name="id" value="" />
422         <input type="hidden" name="created" value="" />
423         <input type="hidden" name="author_ip" value="" />
424         <input type="hidden" name="created_by" value="" />
425 <?php } else { ?>
426         <input type="hidden" name="id" value="<?php echo $this->row->id; ?>" />
427         <input type="hidden" name="created" value="<?php echo $this->row->created; ?>" />
428         <input type="hidden" name="author_ip" value="<?php echo $this->row->author_ip; ?>" />
429         <input type="hidden" name="created_by" value="<?php echo $this->row->created_by; ?>" />
430 <?php } ?>
431 </form>
432
433 <p class="copyright">
434         <?php echo ELAdmin::footer( ); ?>
435 </p>
436
437 <?php
438 //keep session alive while editing
439 JHTML::_('behavior.keepalive');
440 ?>