Beispiel #1
0
		<div class="form_input">
			<!--   Password 1st   -->
			<input id="password" name="password" type="password" onblur="tiendaCheckPassword( 'message-password', this.form, 'password', <?php 
echo $min_length;
?>
, <?php 
echo $req_num;
?>
, <?php 
echo $req_alpha;
?>
, <?php 
echo $req_spec;
?>
  );" class="inputbox_required" size="30" value="" />
		</div>
		<div class="form_message" id="message-password"></div>
	</div>
	<div class="form_item">
		<div class="form_key">
			<?php 
echo JText::_('COM_TIENDA_VERIFY_PASSWORD') . ': ' . TiendaGrid::required();
?>
		</div>
		<div class="form_input">
			<!--   Password 2nd   -->
			<input id="password2" name="password2" type="password" onblur="tiendaCheckPassword2( 'message-password2', this.form, 'password', 'password2' );" class="inputbox_required" size="30" value="" />			
		</div>
		<div class="form_message" id="message-password2"></div>
	</div>
</div>
Beispiel #2
0
 /**
  * Basic methods for a form
  * @param $tpl
  * @return unknown_type
  */
 function _form($tpl = '')
 {
     Tienda::load('TiendaSelect', 'library.select');
     Tienda::load('TiendaGrid', 'library.grid');
     $model = $this->getModel();
     if (isset($this->row)) {
         JFilterOutput::objectHTMLSafe($this->row);
     } else {
         $row = $model->getItem();
         JFilterOutput::objectHTMLSafe($row);
         $this->assign('row', $row);
     }
     // form
     $form = array();
     $controller = strtolower($this->get('_controller', JRequest::getVar('controller', JRequest::getVar('view'))));
     $view = strtolower($this->get('_view', JRequest::getVar('view')));
     $task = strtolower($this->get('_task', 'edit'));
     $form['action'] = $this->get('_action', "index.php?option=com_tienda&controller={$controller}&view={$view}&task={$task}&id=" . $model->getId());
     $form['validation'] = $this->get('_validation', "index.php?option=com_tienda&controller={$controller}&view={$view}&task=validate&format=raw");
     $form['validate'] = "<input type='hidden' name='" . JUtility::getToken() . "' value='1' />";
     $form['id'] = $model->getId();
     $this->assign('form', $form);
     // set the required image
     // TODO Fix this
     $required = new stdClass();
     $required->text = JText::_('COM_TIENDA_REQUIRED');
     $required->image = TiendaGrid::required($required->text);
     $this->assign('required', $required);
 }
Beispiel #3
0
	<?php 
if ($elements['phone'][0]) {
    ?>
	<div>
		<label class="key" name="<?php 
    echo $this->form_prefix;
    ?>
phone_1">
			<?php 
    echo JText::_('COM_TIENDA_PHONE');
    ?>
			<?php 
    if ($elements['phone'][1]) {
        ?>
				<?php 
        echo TiendaGrid::required();
        ?>
			<?php 
    }
    ?>
		</label>
		<input name="<?php 
    echo $this->form_prefix;
    ?>
phone_1" id="<?php 
    echo $this->form_prefix;
    ?>
phone_1" class="inputbox" type="text" size="25" maxlength="250" data-required="<?php 
    echo $elements['phone'][1] ? 'true' : false;
    ?>
" />