Location: PHPKode > projects > Chalange > com_chalange/views/playerform/tmpl/default.php
<script LANGUAGE="JavaScript">
<!--
// Nannette Thacker http://www.shiningstar.net
function confirmSubmit() 
{
var agree=confirm("<?php echo JText::_('confirmation register message'); ?>");
if (agree)
	return true ;
else
	return false ;
}
</script>
<h3><?php echo JText::_('Player information'); ?> <?echo $this->raceName; ?></h3>
<p><?php 
	if (empty($this->player)) echo JText::_('new player text'); //si es un nuevo corredor
	else echo JText::_('modify information text'); //si estamos editando
	?>
</p>
<form action="index.php" method="post" name="player" id="form-player">
			<p>
				<label for="modlgn_licenceNumber"><?php echo JText::_('numero licencia'); ?></label>
				<input name="nroLicence" id="com_chalalnge_licenceNumber" type="text" class="inputbox" size="10" value="<?php echo $this->player->nroLicence; echo $this->nroLicence ?>" />
			</p>
			<p>	
				<label for="modlgn_UCIcode"><?php echo JText::_('cod_uci'); ?></label>
				<input name="codUCI" id="com_chalalnge_uciCode" type="text" class="inputbox" size="12"  value="<?php echo $this->player->codUCI ?>" />
			</p>
			<p>	
				<label for="modlgn_category"><?php echo JText::_('category'); ?></label>
				<select name="idcategory" id="com_chalange_category">
				<?php	
					$n=count($this->categories);
					for($i=0; $i<$n; $i++){
						$row =& $this->categories[$i];
						$selected='';
						if($this->player->idcategory==$row->id) $selected='selected';
						echo "<option value=$row->id $selected> $row->description </option>";
					} 
				?>				 
				</select>
			<p>	
				<label for="modlgn_name"><?php echo JText::_('name'); ?></label>
				<input name="name" id="com_chalalnge_name" type="text" class="inputbox" size="30" value="<?php echo $this->player->name ?>"  />
			</p>
			<p>	
				<label for="modlgn_surname"><?php echo JText::_('surname'); ?></label>
				<input name="surname" id="com_chalalnge_surname" type="text" class="inputbox" size="50" value="<?php echo $this->player->surname ?>"  />
			</p>
			<p>	
				<label for="modlgn_addres"><?php echo JText::_('address'); ?></label>
				<input name="address" id="com_chalalnge_address" type="text" class="inputbox" size="50"  value="<?php echo $this->player->address ?>" />
			</p>
			<p>	
				<label for="modlgn_province"><?php echo JText::_('state'); ?></label>
				<input name="province" id="com_chalalnge_province" type="text" class="inputbox" size="15"  value="<?php echo $this->player->province ?>" />
			</p>
			<p>	
				<label for="modlgn_country"><?php echo JText::_('country'); ?></label>
				<input name="country" id="com_chalalnge_country" type="text" class="inputbox" size="15" value="<?php echo $this->player->country ?>"  />
			</p>
			<p>	
				<label for="modlgn_telephone"><?php echo JText::_('telephone'); ?></label>
				<input name="telephone" id="com_chalalnge_telephone" type="text" class="inputbox" size="15" value="<?php echo $this->player->telephone ?>"  />
			</p>
			<p>	
				<label for="modlgn_email"><?php echo JText::_('email'); ?></label>
				<input name="email" id="com_chalalnge_email" type="text" class="inputbox" size="50" value="<?php echo $this->player->email ?>"  />
			</p>
			<p>	
				<label for="modlgn_birthday"><?php echo JText::_('birthday'); ?>: <?php echo JText::_('day'); ?></label>
				<select name="birthday" id="com_chalange_birthday">
				<?php 
					for($i=1;$i<=31;$i++){
						$selected='';
						if(strftime("%e",strtotime($this->player->birthday))==$i) $selected='selected';
						echo "<option value=$i $selected> $i </option>";
					} 
				?>				 
				</select>
				<label for="modlgn_birthmonth"><?php echo JText::_('month'); ?></label>
				<select name="birthmonth" id="com_chalange_birthmonth">
				<?php 
					for($i=1;$i<=12;$i++){
						$selected='';
						if(strftime("%m",strtotime($this->player->birthday))==$i) $selected='selected';
						echo "<option value=$i $selected> $i </option>";					} 
				?>				 
				</select>
				<label for="modlgn_birthyear"><?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->player->birthday))==$i) $selected='selected';
						echo "<option value=$i $selected> $i </option>";
											} 
				?>				 
				</select>
			</p>
			<p>	
				<label for="modlgn_sponsor"><?php echo JText::_('sponsor'); ?></label>
				<input name="sponsor" id="com_chalalnge_sponsor" type="text" class="inputbox" size="25"  value="<?php echo $this->player->sponsor ?>"  />
			</p>
			<p>	
				<label for="modlgn_club"><?php echo JText::_('team'); ?></label>
				<input name="club" id="com_chalalnge_club" type="text" class="inputbox" size="25"  value="<?php echo $this->player->club ?>" />
			</p>
		
				
	
	<input type="submit" value="<?php echo JText::_('register'); ?>" onClick="return confirmSubmit()"/>
	<input type="button" value="<?php echo JText::_('cancel'); ?>" name="cancelar" onClick="window.location='index.php?option=com_chalange&view=registered&idCarrera=<?php echo JRequest::getCmd( 'idCarrera' ); ?>'"/>
	<input type="hidden" name="option" value="com_chalange" />
	<input type="hidden" name="task" value="registerAndRecord" />
	<input type="hidden" name="licenceId" value="<?php echo $this->licenceId;?>" />	
	<input type="hidden" name="idCarrera" value="<?php echo JRequest::getCmd( 'idCarrera' );?>" />
</form>
Return current item: Chalange