pnp4nagios/share/pnp/application/views/special_templates_box.php
2017-05-20 15:26:21 +02:00

32 lines
835 B
PHP

<?php if (!empty($this->templates) && $this->isAuthorizedFor('service_links') ) { ?>
<div class="ui-widget">
<div class="p2 ui-widget-header ui-corner-top">
<?php echo Kohana::lang('common.special-templates-box-header') ?>
</div>
<?php
$filter = $this->session->get('spfilter');
?>
<div class="p4 ui-widget-content">
<?php
echo "<input type=\"text\" name=\"special-filter\" id=\"special-filter\" value=\"".$filter."\"class=\"textbox\" />"
?>
</div>
<div class="p4 ui-widget-content ui-corner-bottom" id="special-templates">
<?php
foreach($this->templates as $template){
echo "<span id=\"special-".$template."\">";
$path = pnp::addToUri( array('tpl' => $template) );
echo "<a href=\"".$path."\" class=\"multi0\">".
pnp::shorten($template).
"</a><br>\n";
echo "</span>\n";
}
?>
</div>
</div>
<p>
<?php } ?>