<?php defined('_JEXEC') or die('Restricted access'); ?>
<?php JHTML::_('behavior.tooltip');
JHTML::_('behavior.calendar');
?>
<?php
JToolBarHelper::title( JText::_( 'Player' ).": <small><small>[".JText::_( $this->task )."]</small></small>", 'plugin.png' );
JToolBarHelper::save();
JToolBarHelper::apply();
JToolBarHelper::cancel();
JToolBarHelper::help( 'screen.plugins' );
?>
<form action="index.php" method="post" name="adminForm" id="adminForm">
<fieldset class="adminForm">
<legend><?php echo JText::_( "Details" )?></legend>
<table class="admintable">
<?php
if($this->task=="edit"){ ?>
<tr>
<td width="100" align="right" class="key">
<?php echo JText::_( "ID" )?>:
</td>
<td>
<?php echo $this->row->id;?>
</td>
</tr>
<?php }?>
<tr>
<td width="100" align="right" class="key">
<?php echo JText::_( "NRLICENCE" )?>:
</td>
<td>
<input class="text_area" type="text" name="nroLicence" id="nroLicence" size="10" maxlength="10" value="<?php echo $this->row->nroLicence;?>"/>
</td>
</tr>
<tr>
<td width="100" align="right" class="key">
<?php echo JText::_( "UCI CODE" )?>:
</td>
<td>
<input class="text_area" type="text" name="codUCI" id="codUCI" size="15" maxlength="15" value="<?php echo $this->row->codUCI;?>"/>
</td>
</tr>
<tr>
<td width="100" align="right" class="key">
<?php echo JText::_( "Name" )?>:
</td>
<td>
<input class="text_area" type="text" name="name" id="name" size="100" maxlength="256" value="<?php echo $this->row->name;?>"/>
</td>
</tr>
<tr>
<td width="100" align="right" class="key">
<?php echo JText::_( "Surname" )?>:
</td>
<td>
<input class="text_area" type="text" name="surname" id="surname" size="100" maxlength="256" value="<?php echo $this->row->surname;?>"/>
</td>
</tr>
<tr>
<td width="100" align="right" class="key">
<?php echo JText::_( "Birthday" )?>:
</td>
<td>
<?php echo JText::_('day'); ?>
<select name="birthday" id="com_chalange_birthday">
<?php
for($i=1;$i<=31;$i++){
$selected='';
if(strftime("%e",strtotime($this->row->birthday))==$i) $selected='selected';
echo "<option value=$i $selected> $i </option>";
}
?>
</select>
<?php echo JText::_('month'); ?>
<select name="birthmonth" id="com_chalange_birthmonth">
<?php
for($i=1;$i<=12;$i++){
$selected='';
if(strftime("%m",strtotime($this->row->birthday))==$i) $selected='selected';
echo "<option value=$i $selected> $i </option>";
}
?>
</select>
<?php echo JText::_('year'); ?></label>
<select name="birthyear" id="com_chalange_birthyear">
<?php
for($i=2000;$i>=1930;$i--){
$selected='';
if(strftime("%Y",strtotime($this->row->birthday))==$i) $selected='selected';
echo "<option value=$i $selected> $i </option>";
}
?>
</select>
</td>
</tr>
<tr>
<td width="100" align="right" class="key">
<?php echo JText::_( "Address" )?>:
</td>
<td>
<input class="text_area" type="text" name="address" id="address" size="100" maxlength="256" value="<?php echo $this->row->address;?>"/>
</td>
</tr>
<tr>
<td width="100" align="right" class="key">
<?php echo JText::_( "province" )?>:
</td>
<td>
<input class="text_area" type="text" name="province" id="province" size="50" maxlength="128" value="<?php echo $this->row->province;?>"/>
</td>
</tr>
<tr>
<td width="100" align="right" class="key">
<?php echo JText::_( "Country" )?>:
</td>
<td>
<input class="text_area" type="text" name="country" id="country" size="50" maxlength="128" value="<?php echo $this->row->country;?>"/>
</td>
</tr>
<tr>
<td width="100" align="right" class="key">
<?php echo JText::_( "telephone" )?>:
</td>
<td>
<input class="text_area" type="text" name="telephone" id="telephone" size="15" maxlength="15" value="<?php echo $this->row->telephone;?>"/>
</td>
</tr>
<tr>
<td width="100" align="right" class="key">
<?php echo JText::_( "email" )?>:
</td>
<td>
<input class="text_area" type="text" name="email" id="email" size="50" maxlength="256" value="<?php echo $this->row->email;?>"/>
</td>
</tr>
<tr>
<td width="100" align="right" class="key">
<?php echo JText::_( "category" )?>:
</td>
<td>
<?php echo JHTML::_('select.genericList',$this->categoriesList,'idcategory','class="inputbox" '. '','value','text',$this->row->idcategory); ?>
</td>
</tr>
<tr>
<td width="100" align="right" class="key">
<?php echo JText::_( "club" )?>:
</td>
<td>
<input class="text_area" type="club" name="club" id="email" size="50" maxlength="256" value="<?php echo $this->row->club;?>"/>
</td>
</tr>
<tr>
<td width="100" align="right" class="key">
<?php echo JText::_( "sponsor" )?>:
</td>
<td>
<input class="text_area" type="sponsor" name="sponsor" id="email" size="50" maxlength="256" value="<?php echo $this->row->sponsor;?>"/>
</td>
</tr>
</table>
</fieldset>
<input type="hidden" name="id" value="<?php echo $this->row->id;?>"/>
<input type="hidden" name="option" value="com_chalange"/>
<input type="hidden" name="task" value=""/>
<input type="hidden" name="boxchecked" value="0"/>
<input type="hidden" name="controller" value="player"/>
</form>