Exemplo n.º 1
0
        ?>
</option>
						<?php 
        foreach ($this->headers as $value => $option) {
            ?>
							<?php 
            $selected = strtolower($option) == strtolower($title) || strtolower($option) == strtolower($name) ? 'selected="selected"' : '';
            ?>
							<option value="<?php 
            echo DemoHelper::htmlEscape($value);
            ?>
" class="required" <?php 
            echo $selected;
            ?>
><?php 
            echo DemoHelper::htmlEscape($option);
            ?>
</option>
						<?php 
        }
        ?>
					</select>
					</div>
				</div>
			<?php 
    }
    ?>
			<div class="form-actions">
				<input class="btn btn-primary" type="button" value="<?php 
    echo JText::_('COM_DEMO_IMPORT_CONTINUE');
    ?>
Exemplo n.º 2
0
 /**
  * Escapes a value for output in a view script.
  *
  * @param   mixed  $var  The output to escape.
  *
  * @return  mixed  The escaped value.
  */
 public function escape($var)
 {
     if (strlen($var) > 30) {
         // use the helper htmlEscape method instead and shorten the string
         return DemoHelper::htmlEscape($var, $this->_charset, true, 30);
     }
     // use the helper htmlEscape method instead.
     return DemoHelper::htmlEscape($var, $this->_charset);
 }