本文整理匯總了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'];