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


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

<div id="pagecontent">
<form action="edit_bettable.php" id="edi" name="edi" method="post">
  <input type="hidden" name="id" value="{$id}" />
  <input type="hidden" name="save" value="1" />
  <input type="hidden" name="asbepayed" value="{$bettable.paybet}" />
<table id="tableshow" width="100%" border="0" style="position:relative;" cellspacing="0" cellpadding="5">
<!-- content begin -->

  <tr>
    <td class="lineeven">{$lang.title}</td>
	<td class="lineeven" colspan="3"><input type="text" name="title" value="{$bettable.title}" size="60"></td>
  </tr>
  <tr>
      <td class="lineodd">{$lang.date_fin} {$lang.bet}</td>
	  <td class="lineodd"><input type="text" name="date_fin_bet" id="date_fin_bet" value="{$bettable.date_fin_bet}" size="8">
	  <span class="onglet">
	  <input type="button" value="{$lang.calendar}" onclick="javascript:void(lookupCalendar(document.edi.date_fin_bet.value,'date_fin_bet'))">
	  </span>
	  </td>
	  <td class="lineodd" colspan="2"><input type="text" name="hour_fin_bet" value="{$bettable.myhour_fin_bet}" size="5"> hh:mm</td>
  </tr>
  <tr>
      <td class="lineeven">{$lang.date_deb} <small>(JJMMYYYY)</small></td>
	  <td class="lineeven">
		<input type="text" name="date_deb" id="date_deb" value="{$bettable.date_deb}" size="8">
	  <span class="onglet">
	  <input type="button" value="{$lang.calendar}" onclick="javascript:void(lookupCalendar(document.edi.date_deb.value,'date_deb'))">
	  </span>
	  </td>
	  <td class="lineeven" colspan="2">&nbsp;</td>
  </tr>
  <tr>
  	  <td class="lineodd">{$lang.date_fin} <small>(JJMMYYYY)</small></td>
	  <td class="lineodd">
      <input type="text" name="date_fin" id="date_fin" value="{$bettable.date_fin}" size="8">
	  <span class="onglet">
	  <input type="button" value="{$lang.calendar}" onclick="javascript:void(lookupCalendar(document.edi.date_fin.value,'date_fin'))">
	  </span>
      </td>
	  <td class="lineodd" colspan="2">&nbsp;</td>
  </tr>
  <tr>
      <td class="lineeven">{$lang.nbr_prono}</td>
	  <td class="lineeven"><input type="text" name="nbr_prono" value="{$bettable.nbr_prono}" size="2"></td>
	  <td class="lineeven">{$lang.bettable_cost}</td>
	  <td class="lineeven"><input type="text" name="cost" value="{$bettable.cost}" size="5"></td>
  </tr>
  <tr>
      <td class="lineodd">{$lang.winrank}</td>
	  <td class="lineodd"><input type="text" name="winrank" value="{$bettable.winrank}" size="2"></td>
      <td class="lineodd">{$lang.rankpercent}</td>
	  <td class="lineodd"><input type="text" name="rankpercent" value="{$bettable.rankpercent}" size="2">%</td>
  </tr>
  <tr>
      <td class="lineeven">{$lang.winprize}</td>
	  <td class="lineeven" colspan="3"><input type="text" name="winprize" value="{$bettable.winprize}" size="6"></td>
  </tr>

{*  
  <tr>
      <td class="lineodd">{$lang.paybet}</td>
	  <td class="lineodd" colspan="4"><input type="checkbox" name="paybet" value="1"{if $bettable.paybet == 1} checked{/if}{if $today > $date_paybet} DISABLED{/if}></td>
  </tr>
*}
  <tr>
      <td class="lineodd">{$lang.paybet}</td>
	  <td class="lineodd" colspan="4"><input type="checkbox" name="paybet" value="1"{if $bettable.paybet == 1} checked{/if}></td>
  </tr>
  
  <tr>
	<td class="lineeven" colspan="4" align="center">	
		<span class="onglet">
			<input type="submit" value="{$lang.save}" id="savebutton" accesskey="s" />
		</span>
		<span class="onglet">
			<input type="button" value="{$lang.back}" id="backbutton" onclick="javascript:history.go(-1);" accesskey="s" />
		</span>
	</td>
	</tr>
 
</table></form> 
</div>
<!-- /showheader -->


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