<form target="_blank" method="post" action="">
	<div style="overflow: hidden; width: 90px; float: left;">
		<input type="hidden" name="bbb" value="{$bbb_meeting|escape}"/>
		<input type="image" name="join" src="{$bbb_image|escape}" title="{tr}Join{/tr}"/>
	</div>

	<h2>{$bbb_meeting|escape}</h2>
	
	{permission type=bigbluebutton object=$bbb_meeting name=tiki_p_assign_perm_bigbluebutton}
		{button href="tiki-objectpermissions.php?objectId=`$bbb_meeting|escape:'url'`&amp;objectName=`$bbb_meeting|escape:'url'`&amp;objectType=bigbluebutton&amp;permType=bigbluebutton"	_text="{tr}Permissions{/tr}"}
	{/permission}

	{if ! $user}
		<div>
			{tr}Name:{/tr} 
			<input type="text" name="bbb_name"/>
			<input type="submit" value="{tr}Join{/tr}"/>
		</div>
	{else}
		<div>
			<input type="submit" value="{tr}Join{/tr}"/>
		</div>
	{/if}

	<div class="clear"></div>

	{if $bbb_attendees}
		<div>
			<p>{tr}Current attendees:{/tr}</p>
			<ol>
				{foreach from=$bbb_attendees item=att}
					<li>{$att.fullName|escape} ({$att.role|escape})</li>
				{/foreach}
			</ol>
		</div>
	{else}
		<p>{tr}No attendees at this time.{/tr}</p>
	{/if}

	{if $bbb_recordings}
		<p>{tr}Current recordings:{/tr}</p>
		<ol>
			{foreach from=$bbb_recordings item=recording}
				<li>
					{tr _0=$recording.startTime|tiki_long_date _1=$recording.startTime|tiki_short_time _2=$recording.endTime|tiki_short_time}On %0 from %1 to %2{/tr}
					<ul>
						{foreach from=$recording.playback key=type item=url}
							<a href="{$url|escape}">{$type|escape}</a>
						{/foreach}
					</ul>
				</li>
			{/foreach}
		</ol>
	{/if}

</form>
