Location: PHPKode > projects > Chalange > com_chalange/administrator/views/raceadmin/tmpl/default.php
<?php defined('_JEXEC') or die('Restricted access'); ?>

<?php 
	JHTML::_('behavior.tooltip'); 
	JHTML::_('behavior.calendar'); 
	
?>

<?php
	JToolBarHelper::title( JText::_( 'Race' ).": <small><small>[".JText::_( $this->task )."]</small></small>", 'plugin.png' );
	JToolBarHelper::save();
	JToolBarHelper::apply();
	JToolBarHelper::cancel();
	JToolBarHelper::divider();
	JToolBarHelper::publish('download',JText::_('Descargar preinscritos'));
//	JToolBarHelper::help( 'screen.plugins' );
	$dest = JPATH_COMPONENT . DS . "uploads";
	echo $this->chalangeId;

?>
<form action="index.php" method="post" name="adminForm" id="adminForm" enctype="multipart/form-data">
	<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::_( "fecha" )?>:
					</td>
					<td>
						<input class="inputbox" type="text" name="fecha" id="fecha" size="11" maxlength="11" value="<?php echo strftime(JText::_("DATE_FORMET_LC5"),strtotime($this->row->fecha));?>"/>	
						<input type="reset" class="button" value="..." onclick="return showCalendar('fecha','<?php echo JText::_("DATE_FORMET_LC5")?>');"/>	
						<?php echo JText::_('time'); ?>
						<select name="hour" id="com_chalange_hour">
						<?php 
							for($i=0;$i<=24;$i++){
								$selected='';
								if(strftime("%H",strtotime($this->row->fecha))==$i) $selected='selected';
								echo "<option value=$i $selected> $i </option>";
							} 
						?>				 
						</select>
						:
						<select name="minute" id="com_chalange_minute">
						<?php 
							for($i=0;$i<=55;$i+=5){
								$selected='';
								if(strftime("%M",strtotime($this->row->fecha))==$i) $selected='selected';
								echo "<option value=$i $selected> $i </option>";					
							} 
						?>				 
						</select>							
					</td>
				</tr>
				<tr>
					<td width="100" align="right" class="key">
						<?php echo JText::_( "nombre" )?>:
					</td>
					<td>
						<input class="text_area" type="text" name="nombre" id="nombre" size="100" maxlength="256" value="<?php echo $this->row->nombre;?>"/>
					</td>
				</tr>
				<tr>
					<td width="100" align="right" class="key">
						<?php echo JText::_( "descripcion" )?>:
					</td>
					<td>
						<input class="text_area" type="text" name="descripcion" id="descripcion" size="100" maxlength="256" value="<?php echo $this->row->descripcion;?>"/>
					</td>
				</tr>
				<tr>
					<td width="100" align="right" class="key">
						<?php echo JText::_( "ubicacion" )?>:
					</td>

					<td>
						<input class="text_area" type="text" name="ubicacion" id="ubicacion" size="100" maxlength="256" value="<?php echo $this->row->ubicacion;?>"/>
					</td>
				</tr>
				<tr>
					<td width="100" align="right" class="key">
						<?php echo JText::_( "tipo carrera" )?>:
					</td>
					<td>
						<?php echo JHTML::_('select.genericList',$this->raceTypesList,'idTipoCarrera','class="inputbox" '. '','value','text',$this->row->idTipoCarrera);    ?>
					</td>
				</tr>
				<tr>
					<td width="100" align="right" class="key">
						<?php echo JText::_( "Categorias" )?>:
					</td>
					<td>
						<ul class="col3">
						<?php foreach ($this->categories as $v){ ?>
							<li><input class="checkbox" type="checkbox" name="<?php echo $v['name'];?>" id="<?php echo $v['name'];?>" <?php if($v['checked']==true) echo "checked";?>/><?php echo $v['description'];?></li>	
						<?php }?>
						</ul>
					</td>
				</tr>
				
				<tr>
					<td width="100" align="right" class="key">
						<?php echo JText::_( "Apertura de inscripciones" )?>:
					</td>
					<td>
						<input class="inputbox" type="text" name="registerDataStart" id="registerDataStart" size="10" maxlength="10" value="<?php echo strftime(JText::_("DATE_FORMET_LC5"),strtotime($this->row->registerDataStart));?>"/>	
						<input type="reset" class="button" value="..." onclick="return showCalendar('registerDataStart','<?php echo JText::_("DATE_FORMET_LC5")?>');"/>	
						<?php echo JText::_('time'); ?>
						<select name="registerHourStart" id="com_chalange_hourStart">
						<?php 
							for($i=0;$i<=24;$i++){
								$selected='';
								if(strftime("%H",strtotime($this->row->registerDataStart))==$i) $selected='selected';
								echo "<option value=$i $selected> $i </option>";
							} 
						?>				 
						</select>
						:
						<select name="registerMinuteStart" id="com_chalange_minuteStart">
						<?php 
							for($i=0;$i<=55;$i+=5){
								$selected='';
								if(strftime("%M",strtotime($this->row->registerDataStart))==$i) $selected='selected';
								echo "<option value=$i $selected> $i </option>";					
							} 
						?>				 
						</select>										
					</td>
				</tr>
				<tr>
					<td width="100" align="right" class="key">
						<?php echo JText::_( "cierre de inscripciones" )?>:
					</td>
					<td>
						<input class="inputbox" type="text" name="registerDataEnd" id="registerDataEnd" size="10" maxlength="10" value="<?php echo strftime(JText::_("DATE_FORMET_LC5"),strtotime($this->row->registerDataEnd));?>"/>	
						<input type="reset" class="button" value="..." onclick="return showCalendar('registerDataEnd','<?php echo JText::_("DATE_FORMET_LC5")?>');"/>					
						<?php echo JText::_('time'); ?>
						<select name="registerHourEnd" id="com_chalange_hourEnd">
						<?php 
							for($i=0;$i<=24;$i++){
								$selected='';
								if(strftime("%H",strtotime($this->row->registerDataEnd))==$i) $selected='selected';
								echo "<option value=$i $selected> $i </option>";
							} 
						?>				 
						</select>
						:
						<select name="registerMinuteEnd" id="com_chalange_minuteEnd">
						<?php 
							for($i=0;$i<=55;$i+=5){
								$selected='';
								if(strftime("%M",strtotime($this->row->registerDataEnd))==$i) $selected='selected';
								echo "<option value=$i $selected> $i </option>";					
							} 
						?>				 
						</select>
					</td>
				</tr>
				<tr>
					<td width="100" align="right" class="key">
						<?php echo JText::_( "clasificaciones" )?>:
					</td>
					<td>
						<a href="<?php echo JURI::root()."components". DS ."com_chalange". DS . "uploads" . DS . $this->row->resultsfilelocation;?>"><?php echo $this->row->resultsfilelocation;?></a>
						<input name="raceResults" type="file" id="raceResults" size="30" maxlength="50"/>
						
					</td>
				</tr>

	</table>
	</fieldset>
	<input type="hidden" name="id" value="<?php echo $this->row->id;?>"/> 
	<input type="hidden" name="chalangeId" value="<?php echo $this->chalangeId;?>"/> 
	<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="race"/> 
</form>
Return current item: Chalange