Location: PHPKode > scripts > eventCreator > eventCreator-2.0/smartyTemplates/eventCreator.tpl
{**
 * eventCreator
 * ver 2.0
 *
 * The iCal file event php-HTML form editor
 *
 * copyright (c) 2007 Kjell-Inge Gustafsson kigkonsult
 * www.kigkonsult.se/iCalcreator/eventCreator/index.php
 * hide@address.com
 * updated 20070703
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 * This is a Smarty template for editing iCal events
 *
**}
{if TRUE === $smarty.const.ECSTANDALONE}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html{if (isset($lang))} lang="{$lang}"{/if}>
<head>
<title>eventCreator 2.0{if TRUE !== $smarty.const.ECSINGLEFILE} - {$filename}{/if}</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="author"      content="kigkonsult - Kjell-Inge Gustafsson"/>
<meta name="copyright"   content="2007 Kjell-Inge Gustafsson kigkonsult"/>
<link href="eCstyle.css" rel="stylesheet" type="text/css"/>
</head>
{if !empty($closeWindow)}
<body onLoad=" window.close();"></body></html>
{else}
<body>
{/if}
{/if}
<div class="eC" id="eC">
{if 'ECJAVASCRIPTDIR' != $smarty.const.ECJAVASCRIPTDIR}
<script type="text/javascript" src="{$smarty.const.ECJAVASCRIPTDIR}/prototype.js"></script>
{/if}
<input type="hidden" id="startts" value="{$DTSTART.timestamp}"/>
<input type="hidden" id="endts"   value="{if !empty($DTEND.timestamp)}{$DTEND.timestamp}{/if}"/>
{if TRUE === $smarty.const.ECHEADERTEXT}
<div class="eCcenter" id="eCheader">{$HEADERtext}</div>
{/if}
{include file='eventCreatorMenu.tpl' showPart='1'}
<tbody class="eCopt">
<tr>
<td class="eCgroup">{$Required}</td>
<td class="eCgroupText" colspan="6">{$RequiredText}</td>
</tr>

<tr>
<td class="eC1col eClabel"><label for="summary">{$SUMMARYlabel}</label></td>
<td colspan="6"><input class="input" type="text" name="v[SUMMARY]" id="summary" value="{$SUMMARY}" size="60"/>
<a onClick=" chgdsp('SUMMARYhelp');" title="{$helptextOnOff}"><img src="images/help.png" alt="{$helptextOnOff}"/></a>
<div id="SUMMARYhelp" class="eChelptext">{$SUMMARYhelptext}</div>
</td>
</tr>

<tr id="DTSTARTcontainer">
<td class="eC1col eClabel">{$DTSTARTlabel}</td>
<td colspan="6">{html_select_date field_array="v[DTSTART]" prefix="" time=$DTSTART.timestamp start_year="-40" end_year="+40" field_order=YMD month_format="%m"}
<span class="eClabel">{$DTtimelabel}</span>
{html_select_time field_array="v[DTSTART]" prefix="" time=$DTSTART.timestamp use_24_hours=true display_seconds=false}
<a onClick=" chgdsp('DTSTARThelp');" title="{$helptextOnOff}"><img src="images/help.png" alt="{$helptextOnOff}"/></a>
<span class="eClabel">{$DTnoendlabel}</span>
<input type="checkbox" name="v[chkb]" id="chkb" value="1" onclick=' if (this.checked) deact(); else act();' {if !isset($DTEND.timestamp) || ($DTEND.timestamp == $DTSTART.timestamp)}checked="checked" {/if}/>
<div id="DTSTARThelp" class="eChelptext">{$DTSTARThelptext}</div>
</td>
</tr>
<tr id="DTENDcontainer">
<td class="eC1col eClabel">{$DTENDlabel}</td>
<td colspan="6">{html_select_date field_array="v[DTEND]" prefix="" time=$DTEND.timestamp start_year="-40" end_year="+40" field_order=YMD month_format="%m"}
<span class="eClabel">{$DTtimelabel}</span>
{html_select_time field_array="v[DTEND]" prefix="" time=$DTEND.timestamp use_24_hours=true display_seconds=false}
<a onClick=" chgdsp('DTENDhelp');" title="{$helptextOnOff}"><img src="images/help.png" alt="{$helptextOnOff}"/></a>
<div id="DTENDhelp" class="eChelptext">{$DTENDhelptext}</div>
<script type="text/javascript"> if (!$F('endts').present()||($F('endts')==$F('startts')) $('DTENDcontainer').style.display = 'none';</script>
</td>
</tr>

<tr>
<td class="eC1col eClabel"><label for="location">{$LOCATIONlabel}</label></td>
<td colspan="6"><input class="input" type="text" name="v[LOCATION]" id="location" value="{$LOCATION}" size="60"/>
<a onClick=" chgdsp('LOCATIONhelp');" title="{$helptextOnOff}"><img src="images/help.png" alt="{$helptextOnOff}"/></a>
<div id="LOCATIONhelp" class="eChelptext">{$LOCATIONhelptext}</div>
</td>
</tr>

<tr>
<td class="eC1col eClabel"><label for="organizer">{$ORGANIZERlabel}</label></td>
<td colspan="6"><input class="input" type="text" name="v[ORGANIZER]" id="organizer" value="{$ORGANIZER}" size="60" onBlur=" if(!emailcheck(this)) this.focus();"/>
<a onClick=" chgdsp('ORGANIZERhelp');" title="{$helptextOnOff}"><img src="images/help.png" alt="{$helptextOnOff}"/></a>
<div id="ORGANIZERhelp" class="eChelptext">{$ORGANIZERhelptext}</div>
</td>
</tr>

<tr>
<td class="eC1col eClabel"><label for="description">{$DESCRIPTIONlabel}</label></td>
<td colspan="6"><textarea name="v[DESCRIPTION]" id="description" cols="50" rows="1">{$DESCRIPTION}</textarea>
<a onClick=" chgdsp('DESCRIPTIONhelp');" title="{$helptextOnOff}"><img src="images/help.png" alt="{$helptextOnOff}"/></a>
<div id="DESCRIPTIONhelp" class="eChelptext">{$DESCRIPTIONhelptext}</div>
</td>
</tr>
</tbody>

<tbody class="eCnorm">
<tr>
<td class="eCgroup">{$Optional}</td>
<td colspan="6">
<table><tr>
{if TRUE === $smarty.const.ECALLOWTRIGGERDISPLAY}
<td width="1*">
 <div class="eClabel nowrap">{$TRIGGERDISPLAYlabel}&nbsp;<a onClick=" chgdsp('TRIGGERDISPLAYhelp');" title="{$helptextOnOff}"><img src="images/help.png" alt="{$helptextOnOff}"/></a></div>
 <div>{html_options name=v[TRIGGERdisplay] id=TRIGGERdisplay options=$TRIGGER_options selected=$TRIGGERdisplay}</div>
 <div id="TRIGGERDISPLAYhelp" class="eChelptext">{$TRIGGERDISPLAYhelptext}</div>
</td>
{/if}
{if TRUE === $smarty.const.ECALLOWTRIGGEREMAIL}
<td width="1*">
 <div class="eClabel nowrap">{$TRIGGEREMAILlabel}&nbsp;<a onClick=" chgdsp('TRIGGEREMAILhelp');" title="{$helptextOnOff}"><img src="images/help.png" alt="{$helptextOnOff}"/></a></div>
 <div>{html_options name=v[TRIGGERemail] id=TRIGGERemail options=$TRIGGER_options selected=$TRIGGERemail}</div>
 <div id="TRIGGEREMAILhelp" class="eChelptext">{$TRIGGEREMAILhelptext}</div>
</td>
{/if}
<td width="1*">
 <div class="eClabel nowrap">{$TRANSPlabel}&nbsp;<a onClick=" chgdsp('TRANSPhelp');" title="{$helptextOnOff}"><img src="images/help.png" alt="{$helptextOnOff}"/></a></div>
 <div>{html_options name=v[TRANSP] options=$TRANSP_options selected=$TRANSP}</div>
 <div id="TRANSPhelp" class="eChelptext">{$TRANSPhelptext}</div>
</td>
<td width="1*">
 <div class="eClabel nowrap">{$CLASSlabel}&nbsp;<a onClick=" chgdsp('CLASShelp');" title="{$helptextOnOff}"><img src="images/help.png" alt="{$helptextOnOff}"/></a></div>
 <div>{html_options name=v[CLASS] id="CLASS" options=$CLASS_options selected=$CLASS}</div>
 <div id="CLASShelp" class="eChelptext">{if TRUE === $smarty.const.ECRSSCALOUTPUT || TRUE === $smarty.const.ECRSS2CALOUTPUT}{$CLASShelptextRSS}{else}{$CLASShelptext}{/if}</div>
</table>
</td>
</tr>
<tr>
<td class="eC1col eClabel"><label for="url">{$URLlabel}</label></td>
<td colspan="6"><input class="input" type="text" name="v[URL]" id="url" value="{$URL}" size="60" onFocus="if( this.value &lt;= '') this.value = 'http://';"/>
<a onClick=" chgdsp('URLhelp');" title="{$helptextOnOff}"><img src="images/help.png" alt="{$helptextOnOff}"/></a>
<div id="URLhelp" class="eChelptext">{if TRUE === $smarty.const.ECRSSCALOUTPUT || TRUE === $smarty.const.ECRSS2CALOUTPUT}{$URLhelptextRSS}{else}{$URLhelptext}{/if}</div>
</td>
</tr>
</tbody>

<tbody class="eCopt">
<tr>
<td class="eCgroup">{$Extra}</td>
<td colspan="2">
<div class="eClabel"><a onClick=" addField('COMMENT', 'textarea', '25', '1');" title="{$CommentsText}"><img src="images/plus.png" alt="{$CommentsText}"/></a><span onClick=" var x=getFormIndex('COMMENTcnt'); document.eCform.elements[x-1].focus();">{$COMMENTlabel}</span>&nbsp;<a onClick=" chgdsp('COMMENThelp');" title="{$helptextOnOff}"><img src="images/help.png" alt="{$helptextOnOff}"/></a></div>
<div id="COMMENThelp" class="eChelptext">{$COMMENThelptext}</div>
<div id="COMMENTbody">
{foreach key=cix item=commentPart from=$COMMENT name=COMMENT}
<span id="COMMENT{$cix}">
<textarea name="v[COMMENT][{$cix}]" id="COMMENTf{$cix}" cols="25" rows="1">{$commentPart}</textarea><a onClick=" remField('COMMENT{$cix}');" title="{$COMMENTdelText}"><img src="images/delete.png" alt="{$COMMENTdelText}"/></a>
</span>
{/foreach}
</div>
<input type="hidden" name="v[COMMENTcnt]"  id="COMMENTcnt"  value="{$smarty.foreach.COMMENT.total}"/>
</td>
<td colspan="4">
<div class="eClabel"><a onClick=" addField('ATTENDEE', 'input', '30', '');" title="{$AttendeeText}"><img src="images/plus.png" alt="{$AttendeeText}"/></a><span onClick=" var x=getFormIndex('ATTENDEEcnt'); document.eCform.elements[x-1].focus();">{$ATTENDEElabel}</span>&nbsp;<a onClick=" chgdsp('ATTENDEEhelp');" title="{$helptextOnOff}"><img src="images/help.png" alt="{$helptextOnOff}"/></a></div>
<div id="ATTENDEEhelp" class="eChelptext">{$ATTENDEEhelptext}</div>
<div id="ATTENDEEbody">
{foreach key=aix item=attendeePart from=$ATTENDEE name=ATTENDEE}
<span id="ATTENDEE{$aix}">
<input type="text" name="v[ATTENDEE][{$aix}]" id="ATTENDEEf{$aix}" value="{$attendeePart}" size="30"/><a onClick=" remField('ATTENDEE{$aix}');" title="{$ATTENDEEdelText}"><img src="images/delete.png" alt="{$ATTENDEEdelText}"/></a>
</span>
{/foreach}
</div>
<input type="hidden" name="v[ATTENDEEcnt]" id="ATTENDEEcnt" value="{$smarty.foreach.ATTENDEE.total}"/>
</td>
</tr>
</tbody>

{if TRUE === $smarty.const.ECLOWERMENU}
{include file='eventCreatorMenu.tpl' showPart='2'}
{/if}
<tbody class="eCnorm">
<tr class="eCh16">
<td class="eCmsg">
<!-- do NOT remove, see GPL licence --><a class="eClabel" onClick=" chgdsp('legalStuff');" title="copyrights">copyright/license</a></td>
<td class="eCmsg" colspan="6">
<!-- do NOT remove, see GPL licence --><a class="eClabel" href="http://www.kigkonsult.se/eventCreator" title="www.kigkonsult.se/eventCreator">{$smarty.const.EVENTCREATOR_VERSION}</a>
{if TRUE === $smarty.const.ECICALOUTPUT}<a class="eClabel" onClick=" if(fieldcheck('iCal')) submitForm('iCal');" title="{$createiCalText}"><img src="images/iCal2.0.png" alt="{$createiCalText}"/></a>{/if}
{if TRUE === $smarty.const.ECXCALOUTPUT}<a class="eClabel" onClick=" if(fieldcheck('xCal')) submitForm('xCal');" title="{$createxCalText}"><img src="images/xCal2.0.png" alt="{$createxCalText}"/></a>{/if}
{if TRUE === $smarty.const.ECRSSCALOUTPUT}<a class="eClabel" onClick=" if(fieldcheck('rssCal')) submitForm('rssCal');" title="{$createrssCalText}"><img src="images/rsscal1.0.png" alt="{$createrssCalText}"/></a>{/if}
{if TRUE === $smarty.const.ECRSS2CALOUTPUT}<a class="eClabel" onClick=" if(fieldcheck('rssCal')) submitForm('rss2Cal');" title="{$createrss2CalText}"><img src="images/rsscal2.0.png" alt="{$createrss2CalText}"/></a>{/if}
</td>
</tr>
<tr>
<td colspan="7">
<table id="legalStuff" class="eChelptext">
<tr><td colspan="4">copyright &copy; 2007 kigkonsult</td></tr>
<tr><td>eventCreator&nbsp;</td><td>&nbsp;2.0&nbsp;</td><td>&nbsp;<a href="http://www.kigkonsult.se/eventCreator/docs/LGPL.txt">GPL</a>&nbsp;</td><td>&nbsp;<a href="http://www.kigkonsult.se/eventCreator">www.kigkonsult.se/eventCreator</a></td></tr>
<tr><td>Flag icons&nbsp;<td>&nbsp;</td><td>&nbsp;free for any use&nbsp;</td><td>&nbsp;<a href="http://www.famfamfam.com">www.famfamfam.com</a></td></tr>
<tr><td>iCalCreator&nbsp;</td><td>&nbsp;2.2&nbsp;</td><td>&nbsp;<a href="http://www.kigkonsult.se/iCalcreator/docs/LGPL.txt">LGPL</a>&nbsp;</td><td>&nbsp;<a href="http://www.kigkonsult.se/iCalcreator">www.kigkonsult.se/iCalcreator</a></td></tr>
<tr><td>prototype.js&nbsp;</td><td>&nbsp;1.5.1&nbsp;</td><td>&nbsp;<a href="http://creativecommons.org/licenses/by-sa/3.0/">CC BY-SA</a>&nbsp;</td><td>&nbsp;<a href="http://www.prototypejs.org/">www.prototypejs.org</a></td></tr>
<tr><td>rsscalCreator&nbsp;</td><td>&nbsp;0.8.5&nbsp;</td><td>&nbsp;<a href="http://www.kigkonsult.se/iCalcreator/docs/LGPL.txt">LGPL</a>&nbsp;</td><td>&nbsp;<a href="http://www.kigkonsult.se/rsscalCreator">www.kigkonsult.se/rsscalCreator</a></td></tr>
</table>
</td>
</tr>
</tbody>
</table>
<input type="hidden"                      id="ecurl"      value="{$smarty.const.ECURL}"/>
<input type="hidden" name="v[filename]"   id="filename"   value="{$filename}"/>
<input type="hidden" name="v[directory]"  id="directory"  value="{$directory}"/>
<input type="hidden" name="v[UID]"        id="uid"        value="{if !empty($UID)}{$UID}{/if}"/>
<input type="hidden" name="v[ordno]"      id="ordno"      value="{$ordno}"/>
<input type="hidden" name="v[eventordno]" id="eventordno" value="{$eventordno}"/>
{if TRUE !== $smarty.const.ECSINGLEEVENTUPDATE}
<input type="hidden" name="v[eventcnt]"   id="eventcnt"   value="{$eventcnt}"/>
<input type="hidden" name="v[previous]"   id="previous"   value="{$previous}"/>
<input type="hidden" name="v[next]"       id="next"       value="{$next}"/>
{/if}
<input type="hidden" name="v[task]"       id="task"       value=""/>
{if 0 < $smarty.const.ECEVENTDURATION}
<input type="hidden"                      id="duration"   value="{$smarty.const.ECEVENTDURATION}"/>
{/if}
{if TRUE === $smarty.const.ECLANGCHANGE && is_array($flags)}
<input type="hidden" name="v[lang]"       id="lang"       value="{$lang}"/>
{/if}
{if is_array($DTSTAMP)}{foreach key=dix item=dtstampPart from=$DTSTAMP}
<input type="hidden" name="v[DTSTAMP][{$dix}]" value="{$dtstampPart}"/>
{/foreach}{/if}
{if is_array($CREATED)}{foreach key=cix item=createdPart from=$CREATED}
<input type="hidden" name="v[CREATED][{$cix}]" value="{$createdPart}"/>
{/foreach}{/if}
{if is_array($LASTMODIFIED)}{foreach key=lix item=lastmodifiedPart from=$LASTMODIFIED}
<input type="hidden" name="v[LASTMODIFIED][{$lix}]" value="{$lastmodifiedPart}"/>
{/foreach}{/if}
</form>
<script type="text/javascript" src="includes/js/eventCreator.js"></script>
<script type="text/javascript"> checkdate(); attendeeArrUpd();</script>
</div>
{if TRUE === $smarty.const.ECSTANDALONE}
</body>
</html>
{/if}
Return current item: eventCreator