function Input($current, $params, $context, $id) { $params = $this->parseParams($params); $output = array(); $checked = array(); $posted = FSS_Input::getInt("custom_{$id}_count"); if ($posted) { for ($i = 1; $i <= $posted; $i++) { $val = FSS_Input::getString("custom_{$id}_{$i}"); if ($val) { $checked[$val] = $val; } } } $i = 0; foreach ($params->entries as $entry) { $i++; $output[] = '<label class="checkbox-inline">'; $output[] = '<input type="checkbox" id="custom_$id_' . $i . '" name="custom_' . $id . '_' . $i . '" value="' . FSS_Helper::encode($entry) . '" '; if (array_key_exists($entry, $checked)) { $output[] = " checked='checked' "; } $output[] = '>'; $output[] = $entry; $output[] = '</label>'; } $output[] = "<input type='hidden' name='custom_{$id}_count' value='{$i}' />"; return implode("\n", $output); }
<tr> <td width="135" align="right" class="key"> <label for="longdesc"> <?php echo JText::_("ALTERNATE_WORDS"); ?> : </label> </td> <td> <div><?php echo JText::_("ALTERNATE_WORDS_HELP"); ?> </div> <textarea name="altwords" cols="80" rows="6" style="width:100%"><?php echo FSS_Helper::encode($this->glossary->altwords); ?> </textarea> </td> </tr> <tr> <td width="135" align="right" class="key"> <label for="description"> <?php echo JText::_("DESCRIPTION"); ?> : </label> </td> <td> <?php
echo FSSRoute::_('&what=savereply', false); // FIX LINK ?> " method="post" enctype="multipart/form-data" class="form-horizontal form-condensed"> <div class="control-group <?php echo $this->errors['subject'] ? 'error' : ''; ?> "> <label class="control-label"><?php echo JText::_("SUBJECT"); ?> </label> <div class="controls"> <input type="text" class="input-xlarge" name="subject" id="subject" size="35" value="Re: <?php echo FSS_Helper::encode($this->ticket['title']); ?> " required=""> <span class="help-inline"><?php echo $this->errors['subject']; ?> </span> </div> </div> <?php if ($this->errors['body']) { ?> <div class="control-group error"> <span class='help-inline' id='error_subject'><?php echo $this->errors['body'];