Location: PHPKode > scripts > Lightweight Club Calendar > lc-calendar-0.9.4/designs/default/note_view.tpl
{*
Note displaying

This Template displays all notes for a event

Variables assigned by the core:
  $data         Two dimensional array, first level is each note, second level is notes data
*}

{if !$data}
	<div class="all_notes">
		{#lcc_view_notes_nonotes#}
	</div>
{else}
	<div class="all_notes">
	{foreach from=$data item=note_data}
		<div class="note_meta">
			<div class="note_options">
				{if $LCC_CORE->checkRight('note_mod') || ($LCC_CORE->checkRight('note_mod_own') && $note_data.author == $LCC_AUTHED_USER)}<a href="{$smarty.server.SCRIPT_NAME}?lcc_action=edit_note&lcc_id={$note_data.id}&lcc_eventid={$note_data.event_id}">{#lcc_link_editthisnote#}</a><br>{/if}
				{if $LCC_CORE->checkRight('note_del') || ($LCC_CORE->checkRight('note_del_own') && $note_data.author == $LCC_AUTHED_USER)}<a href="{$smarty.server.SCRIPT_NAME}?lcc_action=delete_note&lcc_id={$note_data.id}&lcc_eventid={$note_data.event_id}">{#lcc_link_deletethisnote#}</a><br>{/if}
			</div>
			<div class="metafield" style="float:right"><span>{#lcc_note_desc_created#}:</span> {$note_data.created|convertDate} {$note_data.created|convertTime}</div>
			<div class="metafield"><span>{#lcc_note_desc_author#}:</span> {$note_data.author}</div>
			<div class="metafield" style="float:right"><span>{#lcc_note_desc_last_modified#}:</span>{$note_data.last_modified|convertDate} {$note_data.last_modified|convertTime}</div>
			<div class="metafield"><span>{#lcc_note_desc_last_modified_author#}:</span>{$note_data.last_modified_author}</div>
		</div>
		<div class="note_text">
			{$note_data.text}
		</div>
	{/foreach}
	</div>
{/if}
Return current item: Lightweight Club Calendar