本文整理汇总了PHP中FSS_Helper::encode方法的典型用法代码示例。如果您正苦于以下问题:PHP FSS_Helper::encode方法的具体用法?PHP FSS_Helper::encode怎么用?PHP FSS_Helper::encode使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FSS_Helper
的用法示例。
在下文中一共展示了FSS_Helper::encode方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Input
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);
}
示例2:
<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
示例3:
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'];