{*
  Template for the club detailview
  $Id: show_stadiums.tpl,v 1.00 2006/10/25 20:14:18
*}

<!-- {$smarty.template} -->
{assign var="namenextyear" value="`$nameseason.season+1`"}
<div id="title"><a href="show_betlist.php?id={$id}">{$bettable.title}</a></div>

<div id="actions">
    <div id="barre-onglet">
		<form action="pronostics.php" name="editform">
			<input type="hidden" name="id" value="{$competition}"/>
			<input type="hidden" name="action" value="card"/>
			<input type="submit" class="{if $action=='card'}onglet-on{else}onglet{/if}" value="{$lang.listing}" />
		</form>
	</div>
	
{if $editable}
	<form action="edit_bettable.php" name="editform" method="post">
	<table border="0" cellpadding="0" cellspacing="0" width="100%">
	<tr>
		<td id="barre-season">
		<input type="submit" value="{$lang.newdata}" class="onglet"/>
		</td>
	</tr>
	</table>
	</form>	
{/if}
</div>


<script language="JavaScript" type="text/javascript" src="javascript/look.js"></script>

<div id="pagecontent">

<table width="100%" border="0" style="border:0px solid #000000;" cellspacing="0" cellpadding="5">
<!-- content begin -->
<form action="edit_bettable.php" id="edi" name="edi" method="post">
  <input type="hidden" name="id" id="id" value="{$id}" />
  <input type="hidden" name="save" id="save" value="1" />
  <tr>
      <td class="td-opt">{$lang.title}</td><td class="td-value" colspan="3"><input type="text" name="title" value="{$bettable.title}" size="60"></td>
  </tr>
  <tr>
      <td class="td-opt">{$lang.date_fin} {$lang.bet}</td>
	  <td class="td-value" colspan="3"><input type="text" name="date_fin_bet" value="{$bettable.date_fin_bet}" size="20">
	  <a href="javascript:void(lookupCalendar(document.edi.date_fin_bet.value,'date_fin_bet'))">Calendar</a>
	  </td>
  </tr>
  <tr>
      <td class="td-opt">{$lang.date_deb} <small>(JJMMYYYY)</small></td>
	  <td class="td-value"><input type="text" name="date_deb" value="{$bettable.date_deb}" size="20">
	  <a href="javascript:void(lookupCalendar(document.edi.date_deb.value,'date_deb'))">Calendar</a>
	  </td>
  	  <td class="td-opt">{$lang.date_fin} <small>(JJMMYYYY)</small></td>
	  <td class="td-value"><input type="text" name="date_fin" value="{$bettable.date_fin}" size="20">
	  <a href="javascript:void(lookupCalendar(document.edi.date_fin.value,'date_fin'))">Calendar</a>
	  </td>
  </tr>
  <tr>
      <td class="td-opt">{$lang.nbr_prono}</td><td class="td-value"><input type="text" name="nbr_prono" value="{$bettable.nbr_prono}" size="2"></td>
      <td class="td-opt">{$lang.bettable_cost}</td><td class="td-value"><input type="text" name="cost" value="{$bettable.cost}" size="5"></td>
  </tr>
  <tr>
      <td class="td-opt">{$lang.winrank}</td><td class="td-value"><input type="text" name="winrank" value="{$bettable.winrank}" size="2"></td>
      <td class="td-opt">{$lang.rankpercent}</td><td class="td-value"><input type="text" name="rankpercent" value="{$bettable.rankpercent}" size="2"></td>
  </tr>
  <tr>
      <td class="td-opt">{$lang.winprize}</td><td class="td-value"><input type="text" name="winprize" value="{$bettable.winprize}" size="6"></td>
      <td class="td-opt">{$lang.paybet}</td><td class="td-value"><input type="checkbox" name="paybet" value="1"{if $bettable.paybet == 1}checked{/if}></td>
  </tr>
  <tr>
	<td class="td-value" colspan="4">	
		<div id="barre-season">
		  <input style="width:100%;" type="submit" class="btn-search" value="{$lang.save}" id="savebutton" accesskey="s" />
		</div>
	</td>
	</tr>  
</table>
</div>
<!-- /showheader -->
</form>

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