{*
  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">
{if $list}
	{counter start=0 print=false name=membercount}
	{foreach item=bettable from=$list}
	{cycle values="listeven,listodd" assign=CLASS print=false}
	{if $bettable.title}
	<div style="float: left;">
			<table class="{$CLASS}" width="100%" border="0" cellpadding="1" cellspacing="0">
				{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>
						<td valign="top"><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>
						<td> {if $bettable.paybet}{if isset($bettable.goodprono)}{$bettable.goodprono}/{$bettable.nbr_prono} {if $bettable.goodprono<=1}{$lang.goodprono}{else}{$lang.goodpronos}{/if} - {$lang.prize} : {$bettable.prize} {$lang.web_money}{else}{$lang.youdontplay}{/if}{else}<b>--- {$lang.inwaiting} ---</b>{/if}
						</td>
					</tr>
			</table>
	</div>			
	{/if}		
	{counter assign=count name=membercount}
	{php}flush();{/php}
	{/foreach}
{else}
<table id="tableshow" width="100%" border="0">
	<tr><td>&nbsp;</td><td colspan="a"><b>{$lang.nobet}</b></td></tr>
</table>
{/if}


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

</div>