{*
  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">

<table id="tableshow" width="100%" border="0" cellpadding="0" cellspacing="0">
{counter start=0 print=false name=membercount}
{foreach item=bettable from=$list}

{if $count == 0}
    {cycle values="listeven,listodd" assign=CLASS print=false}
{/if}
{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}
			
			<tr class="{$CLASS}">
				<td id="member"><a href="mkbet.php?id={$bettable.id}">{$bettable.title}</a><br>
				{$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>
            {if $editable}
			<form action="edit_bettable.php" method="get">
                <td style="vertical-align:middle; text-align:center;">
					<input type="hidden" name="id" value="{$bettable.id}">
					<input class="onglet" type="submit" value="{$lang.edit}">
				</td>
			</form>
			<form action="edit_betlist.php" method="get">
                <td style="vertical-align:middle; text-align:center;">
					<input type="hidden" name="id" value="{$bettable.id}">
					<input class="onglet" type="submit" value="{$lang.edit_betlist}">
				</td>
			</form>
			<form action="delete.php" method="post">
                <td style="vertical-align:middle; text-align:center;">
					<input type="hidden" name="id" value="{$bettable.id}">
					<input type="hidden" name="cat" value="12"/>
					<input type="submit" value="{$lang.del}" onclick="return(confirm('{$bettable.title|escape:javascript}: {$lang.msg_really_del}?'))" class="onglet"/>
				</td>
			</form>	
            {/if}
			</tr>
			
		
{counter assign=count name=membercount}
{if $count == $pronosticslistcolumns}
    {counter start=0 print=false name=membercount}
{/if}
{php}flush();{/php}
{/foreach}


{if $count != 0}
    {section name="columnLoop" start=$count loop=$pronosticslistcolumns}
        <td class="{$CLASS}">&nbsp;</td>
    {/section}
    </tr>
{/if}
</table>

