本文整理汇总了PHP中JFilterOutput::objectHtmlSafe方法的典型用法代码示例。如果您正苦于以下问题:PHP JFilterOutput::objectHtmlSafe方法的具体用法?PHP JFilterOutput::objectHtmlSafe怎么用?PHP JFilterOutput::objectHtmlSafe使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JFilterOutput
的用法示例。
在下文中一共展示了JFilterOutput::objectHtmlSafe方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: count
</tr>
</thead>
<tfoot>
<tr>
<td colspan="12"><?php
echo $page->getListFooter();
?>
</td>
</tr>
</tfoot>
<?php
$count = count($services);
if ($count > 0) {
for ($i = 0; $i < $count; $i++) {
$item = $services[$i];
JFilterOutput::objectHtmlSafe($item);
$title = JText::_('EDIT_SERVICES_') . " ID: " . $item->id;
$linkEdit = sprintf($viewLink, 'edit', $item->id, $i);
$deleted = $item->ws_core || $item->ws_default ? 0 : 1;
$core = $item->ws_core ? '<sup style="color:red;">[' . JText::_('CORE') . ']</sub>' : '';
?>
<tr>
<td><?php
echo $page->getRowOffset($i);
?>
</td>
<td>
<input type="radio" id="cb<?php
echo $item->id;
?>
示例2: show
//.........这里部分代码省略.........
echo JText::_('Num Active');
?>
</th>
<th width="5%">
<?php
echo JText::_('Num Trash');
?>
</th>
<?php
}
?>
<th width="1%" nowrap="nowrap">
<?php
echo JHTML::_('grid.sort', 'ID', 'c.id', @$lists['order_Dir'], @$lists['order']);
?>
</th>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="13">
<?php
echo $page->getListFooter();
?>
</td>
</tr>
</tfoot>
<tbody>
<?php
$k = 0;
if (count($rows)) {
for ($i = 0, $n = count($rows); $i < $n; $i++) {
$row =& $rows[$i];
JFilterOutput::objectHtmlSafe($row);
$row->sect_link = JRoute::_('index.php?option=com_sections&task=edit&cid[]=' . $row->section);
$link = 'index.php?option=com_categories§ion=' . $section . '&task=edit&cid[]=' . $row->id . '&type=' . $type;
$access = JHTML::_('grid.access', $row, $i);
$checked = JHTML::_('grid.checkedout', $row, $i);
$published = JHTML::_('grid.published', $row, $i);
?>
<tr class="<?php
echo "row{$k}";
?>
">
<td>
<?php
echo $page->getRowOffset($i);
?>
</td>
<td>
<?php
echo $checked;
?>
</td>
<td>
<span class="editlinktip hasTip" title="<?php
echo JText::_('Title');
?>
::<?php
echo $row->title;
?>
">
<?php
if (JTable::isCheckedOut($user->get('id'), $row->checked_out)) {
echo $row->title;
} else {
示例3:
<th class="title">
<?php
echo JText::_('BLBE_MENTOURN');
?>
</th>
</tr>
</thead>
<tbody>
<?php
$k = 0;
if (count($rows)) {
for ($i = 0, $n = count($rows); $i < $n; $i++) {
$row = $rows[$i];
JFilterOutput::objectHtmlSafe($row);
//$published = JHTML::_('grid.published', $row, $i);
?>
<tr class="<?php
echo "row{$k}";
?>
">
<td>
<?php
echo $i + 1;
?>
</td>
<td>
示例4: explode
$einsatzgebiet = $einsatzgebiet . 'new google.maps.LatLng(' . $areas[0] . ',' . $areas[1] . '),';
}
$areas = explode(',', $alarmareas[0]);
$einsatzgebiet = $einsatzgebiet . 'new google.maps.LatLng(' . $areas[0] . ',' . $areas[1] . '),';
$einsatzgebiet = substr($einsatzgebiet, 0, strlen($einsatzgebiet) - 1);
$einsatzgebiet = $einsatzgebiet . ' ]';
} else {
$einsatzgebiet = '[[0,0]]';
}
// Einsatzarten als Kategorie setzen
$db = JFactory::getDBO();
$query = 'SELECT COUNT(r.data1) as total,r.data1,rd.marker,rd.marker,rd.icon,rd.title as einsatzart FROM #__eiko_einsatzberichte r JOIN #__eiko_einsatzarten rd ON r.data1 = rd.id WHERE r.state = "1" AND rd.state = "1" GROUP BY r.data1';
$db->setQuery($query);
$pie = $db->loadObjectList();
//print_r ($pie);
JFilterOutput::objectHtmlSafe($pie);
$catinit = '';
$cat_count = '';
$catbox = '';
$i = 0;
while ($i < count($pie)) {
$catinit .= 'show("' . $pie[$i]->data1 . '");';
$cat_count .= 'cat_count("' . $pie[$i]->data1 . '");';
//$catbox .= '<span class="label"><input type="checkbox" id="'.$pie[$i]->data1.'box" onClick="boxclick(this,''.$pie[$i]->data1.'')" /> <img src="'.JURI::base().$pie[$i]->icon.'" width="16px" height="16px" /><strong>'.$pie[$i]->data1.'</strong> </span> ';
//$catbox .= '<div class="btn-group btn-group-xs eiko_gmap_toolbar"><label for="'.$pie[$i]->data1.'box"><button type="button" class="btn btn-default btn-xs " onClick="boxclick(''.$pie[$i]->data1.'')" id="div_'.$pie[$i]->data1.'"><input type="checkbox" class="eiko_gmap_checkbox" id="'.$pie[$i]->data1.'box" /><img src="'.JURI::base().$pie[$i]->icon.'" width="32px" height="32px" /> '.$pie[$i]->einsatzart.'<span class="pull-right" style ="font-size:9px;" ><span class="eiko_gmap_count" id="'.$pie[$i]->data1.'count"></span> / '.$pie[$i]->total.' Einsätze</span></button></label></div>';
$catbox .= '<div class="eiko_gmap_toolbar"><label for="' . $pie[$i]->data1 . 'box"><button type="button" class="btn btn-default btn-xs eiko_gmap_toolbar_button" onClick="boxclick('' . $pie[$i]->data1 . '')" id="div_' . $pie[$i]->data1 . '"><input type="checkbox" class="eiko_gmap_checkbox" id="' . $pie[$i]->data1 . 'box" /><img src="' . JURI::base() . $pie[$i]->icon . '" class="eiko_gmap_toolbar_icon" /> ' . $pie[$i]->einsatzart . '<span class="pull-right" style ="font-size:8px;" ><span class="eiko_gmap_count" id="' . $pie[$i]->data1 . 'count"></span> / ' . $pie[$i]->total . ' Einsätze</span></button></label></div>';
$i++;
}
if ($this->params->get('display_einsatzkarte_einsatzgebiet', '1')) {
$catbox .= '<div class="eiko_gmap_toolbar"><label for="area"><button type="button" class="btn btn-default btn-xs eiko_gmap_toolbar_button" onClick="togglearea()" id="div_area"><input type="checkbox" class="eiko_gmap_checkbox" id="area" onClick="togglearea()" checked/> <img src="' . JURI::base() . 'images/com_einsatzkomponente/images/map/icons/' . $this->params->get('einsatzkarte_orga_image', 'haus_rot.png') . '" class="eiko_gmap_toolbar_icon" />Einsatzgebiet anzeigen</button></label></div>';
}