{*
  Output of search results/browselist
  $Id: list_pronostics.tpl,v 1.00 2007/01/24 22:00:00
*}
{assign var=pronosticslistcolumns value="1"}



<div id="docpart_list_target">

<div id="docpart_list_target_loading">
Loading...
</div>

<div id="content">

{counter start=0 print=false name=membercount}
{foreach item=bettable from=$list}

{if $bettable.title}
	{if $count == 0}
		{cycle values="listeven,listodd" assign=CLASS print=false}

	   <div class="{$CLASS}" style="top:0px; margin:0; padding:0;">
	{/if}
		<table width="100%" border="0" cellpadding="2" cellspacing="0">			
				<tr>
					<td><a href="mkbet.php?id={$bettable.id}"><b>{$bettable.title}</b></a></td>
					{if $editable}
					<form action="edit_bettable.php" method="get">
					<td rowspan="2" style="width:22px; vertical-align:middle; text-align:center;">
						<input type="hidden" name="id" value="{$bettable.id}">
						<input type="image" src="images/edit.gif" value="{$lang.edit}">
					</td>
					</form>
					<form action="edit_betlist.php" method="get">
					<td rowspan="2" style="width:22px; vertical-align:middle; text-align:center;">
						<input type="hidden" name="id" value="{$bettable.id}">
						<input type="image" src="images/edit_file.gif" value="{$lang.edit_betlist}">
					</td>
					</form>
					<form action="delete.php" method="post">
					<td rowspan="2" style="width:22px; vertical-align:middle; text-align:center;">
						<input type="hidden" name="id" value="{$bettable.id}">
						<input type="hidden" name="cat" value="12"/>
						<input type="image" src="images/delete.gif" value="{$lang.del}" onclick="return(confirm('{$bettable.title|escape:javascript}: {$lang.msg_really_del}?'))"/>
					</td>
					</form>
					{/if}
				</tr>
				<tr>
					{assign var="month1" value=$bettable.date_fin_bet|date_format:"%m"} {assign var="month" value='month'|cat:$month1}
					{assign var="day1" value=$bettable.date_fin_bet|date_format:"%w"} {assign var="day" value='day'|cat:$day1}
					<td>{$lang[$day]} {$bettable.date_fin_bet|date_format:"%d"} {$lang[$month]} {$bettable.date_fin_bet|date_format:"%Y"} {$bettable.date_fin_bet|date_format:"%H:%M"} ({if $bettable.datediff}{$bettable.datediff} {$lang.days}{else}{$bettable.timediff} {$lang.hours}{/if})</td>
				</tr>
		</table>			
{/if}		
{counter assign=count name=membercount}
{if $count == $pronosticslistcolumns}
    {counter start=0 print=false name=membercount}
    </div>
{/if}
{php}flush();{/php}
{/foreach}


</div>
<!-- /content -->

</div>