<?php /** * Mod Visforms Form * * @author Aicha Vack * @package Joomla.Site * @subpackage mod_visforms * @link http://www.vi-solutions.de * @license GNU General Public License version 2 or later; see license.txt * @copyright 2012 vi-solutions * @since Joomla 1.6 */ // no direct access defined('_JEXEC') or die('Restricted access'); JHTMLVisforms::includeScriptsOnlyOnce(); if ($visforms->published != '1') { return; } //retrieve helper variables from params $nbFields = $params->get('nbFields'); $required = $params->get('required'); $upload = $params->get('upload'); $textareaRequired = $params->get('textareaRequired'); $hasHTMLEditor = $params->get('hasHTMLEditor'); //helper, used to set focus on first visible field $firstControl = true; ?> <form action="<?php echo JRoute::_($formLink);
* Visforms bootstrap default view for Visforms * * @author Aicha Vack * @package Joomla.Site * @subpackage com_visforms * @link http://www.vi-solutions.de * @license GNU General Public License version 2 or later; see license.txt * @copyright 2012 vi-solutions * @since Joomla 1.6 */ // no direct access defined('_JEXEC') or die('Restricted access'); if ($this->visforms->published != '1') { return; } JHTMLVisforms::includeScriptsOnlyOnce(array('visforms' => false, 'bootstrapform' => $this->visforms->usebootstrapcss)); ?> <form action="<?php echo JRoute::_($this->formLink); ?> " method="post" name="visform" id="visform<?php echo $this->visforms->id; ?> " class="visform <?php echo $this->visforms->formCSSclass; echo $this->visforms->formlayout == "bthorizontal" ? " form-horizontal " : ""; ?> "<?php if ($this->upload == true) { ?>