本文整理汇总了PHP中JViewLegacy::escape方法的典型用法代码示例。如果您正苦于以下问题:PHP JViewLegacy::escape方法的具体用法?PHP JViewLegacy::escape怎么用?PHP JViewLegacy::escape使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JViewLegacy
的用法示例。
在下文中一共展示了JViewLegacy::escape方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
?>
" method="post" name="adminForm" id="adminForm">
<?php
$ordering = $this->lists['order'] == "ordering";
JHTML::_('behavior.modal');
?>
<div id="editcell">
<table>
<tr>
<td width="100%">
<?php
echo JText::_("FILTER");
?>
:
<input type="text" name="search" id="search" value="<?php
echo JViewLegacy::escape($this->lists['search']);
?>
" class="text_area" onchange="document.adminForm.submit();" title="<?php
echo JText::_("FILTER_BY_TITLE_OR_ENTER_ARTICLE_ID");
?>
"/>
<button onclick="this.form.submit();"><?php
echo JText::_("GO");
?>
</button>
<button onclick="document.getElementById('search').value='';this.form.submit();"><?php
echo JText::_("RESET");
?>
</button>
</td>
<td nowrap="nowrap">
示例2:
?>
</legend>
<table class="admintable">
<tr>
<td width="135" align="right" class="key">
<label for="title">
<?php
echo JText::_("TITLE");
?>
:
</label>
</td>
<td>
<input class="text_area" type="text" name="title" id="title" size="32" maxlength="250" value="<?php
echo JViewLegacy::escape($this->prod->title);
?>
" />
</td>
<td>
<div id="trprev_title"></div>
</td>
</tr>
<?php
FSTAdminHelper::LA_Form($this->prod, true);
?>
<tr>
<td width="135" align="right" class="key">
<label for="image">
<?php
echo JText::_("IMAGE");
示例3:
<form action="<?php
echo FSFRoute::x('index.php?option=com_fsf&view=faqs');
?>
" method="get" name="adminForm">
<input type='hidden' name='option' value='com_fsf' />
<input type='hidden' name='Itemid' value='<?php
echo JRequest::getVar('Itemid');
?>
' />
<input type='hidden' name='view' value='faq' />
<input type='hidden' name='catid' value='<?php
echo $this->curcatid;
?>
' />
<input name='search' value="<?php
echo JViewLegacy::escape($this->search);
?>
">
<input type='submit' class='button' value='<?php
echo JText::_("SEARCH");
?>
' >
</form>
</div>
<div class='faq_category_faqlist'></div>
<?php
}
?>
<div class='fsf_faqs' id='fsf_faqs'>
示例4:
</tr>
<?php
FSFAdminHelper::LA_Form($this->faq);
?>
<tr>
<td width="135" align="right" class="key">
<label for="question">
<?php
echo JText::_("QUESTION");
?>
:
</label>
</td>
<td>
<textarea name="question" id="question" cols="80" rows="4" style="width:544px;"><?php
echo JViewLegacy::escape($this->faq->question);
?>
</textarea>
</td>
</tr>
<tr>
<td width="135" align="right" class="key">
<label for="answer">
<?php
echo JText::_("ANSWER");
?>
:
</label>
</td>
<td>
<?php
示例5:
?>
" />
</td>
</tr>
<tr>
<td width="100" align="right" class="key">
<label for="website">
<?php
echo JText::_("WEBSITE");
?>
:
</label>
</td>
<td>
<input class="text_area" type="text" name="website" id="website" size="32" maxlength="250" value="<?php
echo JViewLegacy::escape($this->test->website);
?>
" />
</td>
</tr>
<tr>
<td width="100" align="right" class="key">
<label for="body">
<?php
echo JText::_("BODY");
?>
:
</label>
</td>
<td>
<textarea id="body" name="body" rows="20" cols="60"><?php
示例6:
?>
</legend>
<table class="admintable">
<tr>
<td width="135" align="right" class="key">
<label for="word">
<?php
echo JText::_("WORD");
?>
:
</label>
</td>
<td>
<input class="text_area" type="text" name="word" id="word" size="32" maxlength="250" value="<?php
echo JViewLegacy::escape($this->glossary->word);
?>
" />
</td>
</tr>
<?php
FSFAdminHelper::LA_Form($this->glossary);
?>
<tr>
<td width="135" align="right" class="key">
<label for="description">
<?php
echo JText::_("DESCRIPTION");
?>
:
</label>
示例7:
?>
</legend>
<table class="admintable">
<tr>
<td width="135" align="right" class="key">
<label for="title">
<?php
echo JText::_("TITLE");
?>
:
</label>
</td>
<td>
<input class="text_area" type="text" name="title" id="title" size="32" maxlength="250" value="<?php
echo JViewLegacy::escape($this->faqcat->title);
?>
" />
</td>
</tr>
<?php
FSFAdminHelper::LA_Form($this->faqcat);
?>
<tr>
<td width="135" align="right" class="key">
<label for="image">
<?php
echo JText::_("IMAGE");
?>
:
</label>
示例8: escape
function escape($var)
{
$jview = new JViewLegacy();
return $jview->escape($var);
}