Location: PHPKode > scripts > eventCreator > eventCreator-2.0/smartyTemplates/eventCreatorMenu.tpl
{*
 * eventCreator
 * 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 generating a menu for editing iCal events form
 *
**}
<!-- menu start -->
{if TRUE === $smarty.const.ECFILEUPLOAD && TRUE !== $smarty.const.ECSINGLEFILE && $showPart == 1}
<div class="eCnorm eCh30">
<form name="eCform2" id="eCform2" method="post" enctype="multipart/form-data" action="{$smarty.const.ECURL}">
<input type="hidden" name="MAX_FILE_SIZE" value="{$smarty.const.ECFILEUPLOADMAXSIZE}"/>
<div style="float:left;"><div class="eC1col eClabel"><label for="uploadFile">{$uploadFilelabel}</label></div></div>
<span><input name="uploadFile" id="uploadFile" type="file"{if (isset($lang))} lang="{$lang}"{/if} size="30"/><input type="submit" value="{$upload_btn}"><input type="hidden" name="v[task]" value="uploadFile"/></span>
</form>
</div>
{/if}
{if $showPart == 1}
<form name="eCform" id="eCform" method="post" action="{$smarty.const.ECURL}">
<table>
{/if}
<tbody class="eCnorm">
<tr class="eCh16">
<td class="eC1col eClabel">
{if TRUE === $smarty.const.ECFILESELECT}
{assign var="labelFor" value=selectFile$showPart}
<label for="{$labelFor}">{$selectFilelabel}</label>
{/if}
</td>
<td width="135px">
{if TRUE === $smarty.const.ECFILESELECT && TRUE !== $smarty.const.ECSINGLEFILE}
{html_options name="v[selectFile$showPart]" id="selectFile$showPart" options=$filelist selected=$filename onChange=" submitForm('selectFile$showPart');"}
{elseif TRUE !== $smarty.const.ECSINGLEFILE}{$filename}{/if}
</td>
<td colspan="2" width="160px" class="eCmsg">
{if 0 < count($ecmsg)}
{foreach key=mix item=messagePart from=$ecmsg}
{if 0 < $mix}<br/>{/if}{$messagePart}
{/foreach}
{/if}
</td>
<td colspan="3" width="190px">
<table>
<tr>
<td width="2px"><img src="images/2px.png"/></td>
<td width="14px">
{if TRUE !== $smarty.const.ECSINGLEEVENT && !empty($previous)}
<a onClick=" submitForm('loadEvent',{$previous});" title="{$backwardlabel}"><img src="images/previous.png" hspace="1px" alt="{$backwardlabel}"/></a>
<br /><a onClick=" submitForm('loadEvent','1');" title="{$firstlabel}"><img src="images/first.png" hspace="1px" alt="{$firstlabel}"/></a>
{else}
<img src="images/2px.png"/><img src="images/10px.png"/><img src="images/2px.png"/>
{/if}
</td>
<td width="40px">
{if TRUE !== $smarty.const.ECSINGLEEVENT && (1 < $eventcnt)}
<select onChange=" submitForm('loadEvent',$F(this));">
{html_options id="eventSelect" options=$eventSelect selected=$eventordno}</select>
{else}
<img src="images/10px.png"/><img src="images/10px.png"/><img src="images/10px.png"/><img src="images/10px.png"/>
{/if}
</td>
<td width="14px">
{if TRUE !== $smarty.const.ECSINGLEEVENT && !empty($next)}
<a onClick=" submitForm('loadEvent',{$next});" title="{$forwardlabel}"><img src="images/next.png" hspace="1px" alt="{$forwardlabel}"/></a>
<br /><a onClick=" submitForm('loadEvent',{$eventcnt});" title="{$lastlabel}"><img src="images/last.png" hspace="1px" alt="{$lastlabel}"/></a>
{else}
<img src="images/2px.png"/><img src="images/10px.png"/><img src="images/2px.png"/>
{/if}
</td>
<td width="4px"><img src="images/2px.png"/><img src="images/2px.png"/></td>
<td width="20px">
{if TRUE !== $smarty.const.ECSINGLEEVENT && TRUE === $smarty.const.ECEVENTCREATE && !empty($filename)}
<a onClick=" submitForm('newEvent');" title="{$newEventlabel}"><img src="images/new.png" alt="{$newEventlabel}"/></a>
{else}
<img src="images/10px.png"/><img src="images/10px.png"/>
{/if}
</td>
<td width="20px">
{if TRUE === $smarty.const.ECEVENTUPDATE && (TRUE !== $smarty.const.ECSINGLEFILE || !empty($filename))}
<a onClick=" if(fieldcheck('iCal')) submitForm('saveEvent');" title="{$updateEventlabel}"><img src="images/save.png" alt="{$updateEventlabel}"/></a>
{else}
<img src="images/10px.png"/><img src="images/10px.png"/>
{/if}
</td>
<td width="20px">
{if TRUE === $smarty.const.ECEVENTDELETE && !empty($filename) && !empty($UID)}
<a onClick=" if ($('uid').present() || 1 < $F('eventcnt')) submitForm('deleteEvent'); else submitForm('deleteFile');" title="{$deleteEventlabel}"><img src="images/trash.png" alt="{$deleteEventlabel}"/></a>
{else}
<img src="images/10px.png"/><img src="images/10px.png"/>
{/if}
</td>
<td width="20px">
{if TRUE === $smarty.const.ECCLOSEWINDOW}
<a onClick=" window.close();"><img src="images/window-close.png" alt="{$smarty.const.ECCLOSEWINDOWTEXT}" title="{$smarty.const.ECCLOSEWINDOWTEXT}"/></a>
{elseif TRUE === $smarty.const.ECREDIRECTONCLOSE}
<a onClick=" location.href={$redirecturl};" title="{$smarty.const.ECREDIRECTONCLOSETEXT}"><img src="images/window-close.png" alt="{$smarty.const.ECREDIRECTONCLOSETEXT}"/></a>
{else}
<img src="images/10px.png"/><img src="images/10px.png"/>
{/if}
</td>
{if TRUE === $smarty.const.ECLANGCHANGE && is_array($flags)}
<td class="nowrap">
{foreach from=$flags item=langflag}
{if $lang <> $langflag}<a onClick=" $('lang').value='{$langflag}'; if ($('uid').present()) submitForm('loadEvent',$F('eventordno')); else submitForm('newEvent');" title="{$langflag}">{/if}<img src="images/flags/png/{$langflag}.png" alt="{$langflag}" title="{$langflag}"/>{if $lang != $langflag}</a>{/if}
{/foreach}
</td>
{/if}
<td width="2px"><img src="images/2px.png"/></td>
</tr></table>
</td></tr>
</tbody>
<!-- menu end -->
Return current item: eventCreator