Ik kan het helaas niet aanpassen via de admin panel.
En ik zie dan ook geen andere optie dan de hele code te plaatsen, aangezien ik niet precies weet, of eigenlijk geen idee heb waar ik wijzigingen zou moeten doen.
De code is als volgt:
<?php
/**
* @package Jr_questionnaire
* @subpackage com_jr_questionnaire
* @version 2.0
* @license GNU/GPL
* @author Dimon
* @author mail joomlaru.org - at - yandex.ru
* @website
http://layout.in.ua
*
*/
defined('_JEXEC') or die('Restricted access');
JHTML::_('behavior.tooltip');
// Save registration
$blank_count = $_POST['blank_count'];
$quest_blank = '';
$quest_name = '';
$quest_email = '';
for ($i=1;$i<=$blank_count;$i++) {
$quest_blank .= $_POST['blank_title'.$i];
$quest_blank .= ': ';
$quest_blank .= $_POST['blank'.$i];
$quest_blank .= '<br/>';
if ($_POST['blank_type'.$i] == '3') { $quest_email = $_POST['blank'.$i]; }
if ($_POST['blank_type'.$i] == '4') { $quest_name = $_POST['blank'.$i]; }
}
// Get questions
$database =& JFactory::getDBO();
$database->setQuery("SELECT * FROM #__jr_questionnaire_quests WHERE questtest = $id AND published = 1 ORDER BY ordering ASC");
$questions = $database->loadObjectList();
$quest_i = 1;
foreach ($questions as $quest_item):
?> <span class="step" id="step<?php echo $quest_i; ?>"> <?php
if ($quest_item->answer_type == 0) { ?>
<label for="quest<?php echo $quest_i; ?>" <?php if ($quest_item->questdesc != '') { echo 'class="hasTip" title="' . $quest_item->questdesc . '"'; } ?>><?php echo $quest_item->questname; ?></label>
<input type="hidden" name="title<?php echo $quest_i; ?>" id="title<?php echo $quest_i; ?>" value="<?php echo $quest_item->id; ?>"/>
<input type="hidden" name="type<?php echo $quest_i; ?>" id="type<?php echo $quest_i; ?>" value="<?php echo $quest_item->answer_type; ?>"/>
<select class="input_field_12em <?php if ($quest_item->questreq == 1) {echo 'required';} ?>" name="quest<?php echo $quest_i; ?>" id="quest<?php echo $quest_i; ?>">
<option value=""><?php echo JText::_( 'Take_an_option' ); ?></option>
<?php for ($option_i=1;$option_i<=7;$option_i++) {
if ($quest_item->{'answer_'.$option_i} !="") {
?>
<option value="<?php echo $option_i; ?>"><?php echo $quest_item->{'answer_'.$option_i} ?></option>
<?php } } ?>
</select><br /><br />
<?php
}
if ($quest_item->answer_type == 1) { ?>
<label <?php if ($quest_item->questdesc != '') { echo 'class="hasTip" title="' . $quest_item->questdesc . '"'; } ?>><?php echo $quest_item->questname; ?></label>
<input type="hidden" name="title<?php echo $quest_i; ?>" id="title<?php echo $quest_i; ?>" value="<?php echo $quest_item->id; ?>"/>
<input type="hidden" name="type<?php echo $quest_i; ?>" id="type<?php echo $quest_i; ?>" value="<?php echo $quest_item->answer_type; ?>"/>
<?php for ($option_i=1;$option_i<=7;$option_i++) {
if ($quest_item->{'answer_'.$option_i} !="") {
?>
<br /><br /><input type="radio" class="input_field_radio <?php if ($quest_item->questreq == 1) {echo 'required';} ?>" name="quest<?php echo $quest_i; ?>" value="<?php echo $option_i; ?>"/><?php echo $quest_item->{'answer_'.$option_i} ?><br />
<?php } } ?>
<br /><br />
<?php
}
if ($quest_item->answer_type == 2) { ?>
<label for="quest<?php echo $quest_i; ?>" <?php if ($quest_item->questdesc != '') { echo 'class="hasTip" title="' . $quest_item->questdesc . '"'; } ?>><?php echo $quest_item->questname; ?></label>
<input type="hidden" name="title<?php echo $quest_i; ?>" id="title<?php echo $quest_i; ?>" value="<?php echo $quest_item->id; ?>"/>
<input type="hidden" name="type<?php echo $quest_i; ?>" id="type<?php echo $quest_i; ?>" value="<?php echo $quest_item->answer_type; ?>"/>
<?php for ($option_i=1;$option_i<=7;$option_i++) {
if ($quest_item->{'answer_'.$option_i} !="") {
?>
<br /><br /><input type="checkbox" class="input_field_box <?php if ($quest_item->questreq == 1) {echo 'required';} ?>" name="quest<?php echo $quest_i; ?>_<?php echo $option_i; ?>" id="quest<?php echo $quest_i; ?>_<?php echo $option_i; ?>" value="<?php echo $option_i; ?>"/><?php echo $quest_item->{'answer_'.$option_i} ?><br />
<?php } } ?>
<br /><br />
<?php
}
$quest_i++;
?> </span> <?php
endforeach;
?>
-Edit-
Sorry voor deze manier van plaatsen maar hij maakt er automatisch zo'n bericht van!