本文整理汇总了PHP中FSS_Helper::escape方法的典型用法代码示例。如果您正苦于以下问题:PHP FSS_Helper::escape方法的具体用法?PHP FSS_Helper::escape怎么用?PHP FSS_Helper::escape使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FSS_Helper
的用法示例。
在下文中一共展示了FSS_Helper::escape方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
?>
</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 FSS_Helper::escape($this->faqcat->title);
?>
" />
</td>
</tr>
<?php
FSSAdminHelper::LA_Form($this->faqcat);
?>
<tr>
<td width="135" align="right" class="key">
<label for="image">
<?php
echo JText::_("IMAGE");
?>
:
</label>
示例2:
if (substr($product['image'], 0, 1) != "/") {
?>
<img class='media-object' src='<?php
echo JURI::root(true);
?>
/images/fss/products/<?php
echo FSS_Helper::escape($product['image']);
?>
' width='64' height='64'>
<?php
} else {
?>
<img class='media-object' src='<?php
echo JURI::root(true);
echo FSS_Helper::escape($product['image']);
?>
' width='64' height='64'>
<?php
}
?>
</a>
</div>
<?php
}
?>
<div class="media-body accordion-group" style="border:0;padding:0;margin:0">
<div
<?php
if ($this->test_show_prod_mode == "accordian") {
示例3:
}
?>
><?php
echo $pri->title;
?>
</option>
<?php
}
?>
</select>
<?php
} else {
?>
<span style='color:<?php
echo FSS_Helper::escape($this->ticket->pcolor);
?>
'>
<?php
echo FSS_Translate_Helper::TrF('title', $this->ticket->priority, $this->ticket->ptl);
?>
</span>
<?php
}
?>
</td>
<?php
FSS_Table::ColEnd();
}
?>
示例4:
?>
</div>
</td>
</tr>
<tr>
<td align="right" class="key">
<label for="name">
<?php
echo JText::_('CONNECT_STRING_OVERRIDE');
?>
:
</label>
</td>
<td colspan="2">
<input class="text_area" type="text" name="connectstring" id="connectstring" style="width: 100%" size="80" maxlength="250" value="<?php
echo FSS_Helper::escape($this->item->connectstring);
?>
" />
<?php
echo JText::_('DO_NOT_SET_THIS_UNLESS_YOU_KNOW_WHAT_YOU_ARE_DOING');
?>
</td>
</tr>
<tr>
<td align="right" class="key">
<label for="question">
<?php
echo JText::_('Import EMails as HTML');
?>
:
</label>
示例5: strpos
?>
" method="post" name="adminForm" id="adminForm">
<?php
$ordering = strpos($this->lists['order'], "ordering") !== FALSE;
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 FSS_Helper::escape($this->lists['search']);
?>
" class="text_area" onchange="document.adminForm.submit();" title="<?php
echo JText::_("FILTER_BY_TITLE_OR_ENTER_ARTICLE_ID");
?>
"/>
<button class='btn btn-default' onclick="this.form.submit();"><?php
echo JText::_("GO");
?>
</button>
<button class='btn btn-default' onclick="document.getElementById('search').value='';this.form.submit();"><?php
echo JText::_("RESET");
?>
</button>
</td>
<td nowrap="nowrap">
示例6:
</table>
<?php
echo $this->pagination->getListFooter();
?>
<input type="hidden" name="filter_order" value="<?php
echo FSS_Helper::escape($this->lists['order']);
?>
" />
<input type="hidden" name="filter_order_Dir" value="<?php
echo FSS_Helper::escape($this->lists['order_Dir']);
?>
" />
<input type="hidden" name="mode" value="<?php
echo FSS_Helper::escape(FSS_Input::getCmd('mode'));
?>
" />
<input type="hidden" name="ticketid" value="<?php
echo (int) FSS_Input::getInt('ticketid');
?>
" />
</form>
</div>
<div class="modal-footer">
<?php
if ($this->mode == "user") {
?>
示例7:
<div class="controls">
<input type="text" name="admin_create_email" class="inputbox" value="<?php
echo FSS_Helper::escape(FSS_Input::getString('admin_create_email'));
?>
">
</div>
</div>
<div class="control-group">
<label class="control-label"><?php
echo JText::_("NAME");
?>
</label>
<div class="controls">
<input type="text" name="admin_create_name" class="inputbox" value="<?php
echo FSS_Helper::escape(FSS_Input::getString('admin_create_name'));
?>
">
</div>
</div>
<div class="control-group">
<label class="control-label"></label>
<div class="controls">
<input class='btn btn-primary' type="submit" id="new_ticket" value="<?php
echo JText::_("OPEN_TICKET_FOR_USER");
?>
">
<a class='btn btn-default' href="<?php
echo FSSRoute::_('index.php?option=com_fss&view=admin_support');
?>
示例8:
?>
</td>
</tr>
<tr>
<td width="135" align="right" class="key">
<label for="title">
<?php
echo JText::_("TARGET");
?>
:
</label>
</td>
<td>
<input type="text" name="target" id="target" size="32" maxlength="250" value="<?php
echo FSS_Helper::escape($this->mainmenu->target);
?>
" />
</td>
<td><?php
echo JText::_('ONLY_WHEN_LINK');
?>
</td>
</tr>
<?php
//endif;
?>
</table>
</fieldset>
</div>
<div class="clr"></div>
示例9: echo
<div class="pull-left">
<?php
if ($item['icon'] && $this->hideicons == 0) {
?>
<a href='<?php
echo $this->getLink($item);
?>
' class='pull-left' target='<?php
echo $item['target'];
?>
'>
<img src='<?php
echo JURI::base();
?>
images/fss/menu/<?php
echo FSS_Helper::escape($item['icon']);
?>
' width="<?php
echo (int) $this->imagewidth;
?>
" height="<?php
echo (int) $this->imageheight;
?>
" />
</a>
<?php
}
?>
</div>
<div class="media-body">
<h4 class="media-heading">
示例10:
echo FSSCF::FieldHeader($this->field, false, false);
?>
</label>
<div class="controls">
<?php
echo $input;
?>
</div>
</div>
<input type="hidden" name="fieldid" value="<?php
echo FSS_Helper::escape($this->field['id']);
?>
">
<input type="hidden" name="ticketid" value="<?php
echo FSS_Helper::escape($this->ticket->id);
?>
">
</div>
<div class="modal-footer">
<a class="btn btn-primary" href='#' onclick="jQuery('#fssForm').submit();return false;"><?php
echo JText::_("SAVE");
?>
</a>
<a class='btn btn-default' onclick='parent.fss_modal_hide(); return false;'><?php
echo JText::_("CANCEL");
?>
</a>
</div>
示例11: foreach
<?php
if (FSS_Permission::auth("core.create", "com_fss.faq")) {
?>
<div style="display: none;">
<form id="ticket_to_faq" action="<?php
echo JRoute::_("index.php?option=com_fss&view=admin_content&type=faqs&what=new");
?>
" method="POST" target="_blank">
<input name="option" value="com_fss" />
<input name="view" value="admin_content" />
<input name="type" value="faqs" />
<input name="what" value="new" />
<input name="question" value="<?php
echo FSS_Helper::escape($this->ticket->title);
?>
" />
<textarea name="answer"><?php
foreach ($this->ticket->messages as $message) {
if ($message->admin == 3) {
continue;
}
$msg = FSS_Helper::ParseBBCode($message->body, $message);
echo FSS_Helper::escape($msg) . "\n";
//echo "<hr />\n";
}
?>
</textarea>
</form>
</div>
<?php
}
示例12: defined
* @copyright (C) 2013 Freestyle Joomla
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
**/
defined('_JEXEC') or die;
?>
<?php
if (count($this->ticket->tags) == 0) {
?>
<?php
echo JText::_('NONE_');
} else {
?>
<?php
foreach ($this->ticket->tags as $tag) {
?>
<div class="fss_tag label label-info" id="tag_<?php
echo FSS_Helper::escape($tag);
?>
">
<button class="close" onclick="tag_remove('<?php
echo FSS_Helper::escape($tag);
?>
');return false;">×</button>
<?php
echo $tag;
?>
</div>
<?php
}
}
示例13: elseif
?>
" rows="4" class="input-xxlarge" style="height:150px"><?php
echo FSS_Helper::escape($this->item[$field->field]);
?>
</textarea>
<?php
} elseif ($field->type == "tags") {
?>
<textarea name="<?php
echo $field->input_name;
?>
" id="<?php
echo $field->field;
?>
" rows="4" class="input-xxlarge" style="height:150px"><?php
echo FSS_Helper::escape($this->item[$field->field]);
?>
</textarea>
<?php
} elseif ($field->type == "related") {
?>
<p>
<button class="btn btn-default fss_content_related_button" id="relbtn_<?php
echo $field->field;
?>
">
<?php
echo $field->rel_button_txt;
?>
</button>
</p>
示例14: FieldInput
static function FieldInput(&$field, &$errors, $errortype = "ticket", $context = array(), $showhelp = false)
{
$field['min_popup_height'] = 0;
$output = "";
$id = $field['id'];
$userid = 0;
if (array_key_exists('userid', $context)) {
$userid = $context['userid'];
}
$ticketid = 0;
if (array_key_exists('ticketid', $context)) {
$ticketid = $context['ticketid'];
}
// if its a per user field, try to load the value
$current = $field['default'];
if ($field['peruser'] && $errortype == "ticket") {
$uservalues = FSSCF::GetUserValues($userid, $ticketid);
if (array_key_exists($field['id'], $uservalues)) {
$current = $uservalues[$field['id']]['value'];
}
}
$current = FSS_Input::getString("custom_{$id}", $current);
if ($field['type'] == "text") {
$aparams = FSSCF::GetValues($field);
$text_max = $aparams['text_max'];
$text_size = $aparams['text_size'];
$output = "<input type='text' class='input-large custom_" . $field['alias'] . "' name='custom_{$id}' id='custom_{$id}' value=\"" . FSS_Helper::escape($current) . "\" maxlength='{$text_max}' size='{$text_size}' ";
if ($field['required']) {
$output .= " required ";
}
$output .= " placeholder='" . htmlentities($field['description'], ENT_QUOTES, "utf-8") . "' ";
$output .= ">\n";
}
if ($field['type'] == "radio") {
$values = FSSCF::GetValues($field);
$output = "";
if (count($values) > 0) {
foreach ($values as $value) {
$output .= "<input class='custom_" . $field['alias'] . "' type='radio' id='custom_{$id}' name='custom_{$id}' value=\"" . FSS_Helper::escape($value) . "\"";
if ($value == $current) {
$output .= " checked";
}
$output .= ">{$value}<br>\n";
}
}
}
if ($field['type'] == "combo") {
$values = FSSCF::GetValues($field);
$output = "<select class='custom_" . $field['alias'] . "' name='custom_{$id}' id='custom_{$id}'>\n";
$output .= "<option value=''>" . JText::_("PLEASE_SELECT") . "</option>\n";
if (count($values) > 0) {
foreach ($values as $value) {
$output .= "<option value=\"" . FSS_Helper::escape($value) . "\"";
if ($value == $current) {
$output .= " selected";
}
$output .= ">{$value}</option>\n";
}
}
$output .= "</select>";
}
if ($field['type'] == "area") {
$aparams = FSSCF::GetValues($field);
$area_width = $aparams['area_width'];
$area_height = $aparams['area_height'];
$height = $area_height * 15;
$output = "<textarea class='custom_" . $field['alias'] . "' name='custom_{$id}' id='custom_{$id}' cols='{$area_width}' rows='{$area_height}' style='width:95%;height:{$height}px'>{$current}</textarea>\n";
}
if ($field['type'] == "checkbox") {
$output = "<input class='custom_" . $field['alias'] . "' type='checkbox' name='custom_{$id}' id='custom_{$id}'";
if ($current == "on") {
$output .= " checked";
}
$output .= ">\n";
}
if ($field['type'] == "plugin") {
$aparams = FSSCF::GetValues($field);
$plugin = FSSCF::get_plugin($aparams['plugin']);
$field['min_popup_height'] = $plugin->min_popup_height;
$output = $plugin->Input($current, $aparams['plugindata'], $context, $id);
}
$id = "custom_" . $field['id'];
if (array_key_exists($id, $errors)) {
if ($errortype == "ticket") {
$output .= '<span class="help-inline">' . $errors[$id] . '</span>';
} else {
$output .= '</td><td class="fss_must_have_field">' . $errors[$id];
}
} else {
if ($showhelp) {
$output .= '<span class="help-inline">' . $field['helptext'] . '</span>';
}
}
return $output;
}
示例15:
?>
" />
</td>
</tr>
<tr>
<td width="135" align="right" class="key">
<label for="title">
<?php
echo JText::_("DESCRIPTION");
?>
:
</label>
</td>
<td>
<input class="text_area" type="text" name="description" id="description" size="32" maxlength="250" value="<?php
echo FSS_Helper::escape($this->ticketgroup->description);
?>
" />
</td>
</tr>
<tr>
<td width="150" align="right" class="key">
<label for="description">
<?php
echo JText::_("ALL_SEE");
?>
:
</label>
</td>
<td>
<?php