61 lines
2.7 KiB
PHP
61 lines
2.7 KiB
PHP
<!-- Icon Box Start -->
|
|
<div class="ui-widget">
|
|
<div class="p2 ui-widget-header ui-corner-top">
|
|
<?php echo Kohana::lang('common.icon-box-header'); ?>
|
|
</div>
|
|
<div class="p4 ui-widget-content ui-corner-bottom" >
|
|
<?php
|
|
$qsa = pnp::addToUri(['start' => $this->start, 'end' => $this->end, 'view' => $this->view], false);
|
|
if ($this->config->conf['use_calendar']) {
|
|
echo '<a title="' . Kohana::lang('common.title-calendar-link') . '" href="#" id="button"><img class="icon" src="' . url::base() . 'media/images/calendar.png"></a>';
|
|
}
|
|
if ($this->config->conf['use_fpdf'] == 1 && ( $position == 'graph' || $position == 'special')) {
|
|
echo '<a title="' . Kohana::lang('common.title-pdf-link') .
|
|
'" href="' . url::base(true) . 'pdf' . $qsa .
|
|
'"><img class="icon" src="' . url::base() .
|
|
"media/images/pdf.png\"></a>\n";
|
|
}
|
|
if ($this->config->conf['use_fpdf'] == 1 && $position == 'basket') {
|
|
echo '<a title="' . Kohana::lang('common.title-pdf-link') .
|
|
'" href="' . url::base(true) . 'pdf/basket/' . $qsa .
|
|
'"><img class="icon" src="' . url::base() .
|
|
"media/images/pdf.png\"></a>\n";
|
|
}
|
|
if ($this->config->conf['use_fpdf'] == 1 && $position == 'page') {
|
|
echo '<a title="' . Kohana::lang('common.title-pdf-link') .
|
|
'" href="' . url::base(true) . 'pdf/page/' . $this->page .
|
|
$qsa . '"><img class="icon" src="' . url::base() .
|
|
"media/images/pdf.png\"></a>\n";
|
|
}
|
|
if ($this->config->conf['show_xml_icon'] == 1 && $position == 'graph' && $xml_icon == true) {
|
|
$qsa = pnp::addToUri([], false);
|
|
echo '<a title="' . Kohana::lang('common.title-xml-link') .
|
|
'" href="' . url::base(true) . 'xml' . $qsa .
|
|
'"><img class="icon" src="' . url::base() .
|
|
"media/images/xml.png\"></a>\n";
|
|
}
|
|
if ($this->data->getFirstPage() && $this->isAuthorizedFor('pages')) {
|
|
echo '<a title="' . Kohana::lang('common.title-pages-link') .
|
|
'" href="' . url::base(true) . 'page"><img class="icon" src="' .
|
|
url::base() . "media/images/pages.png\"></a>\n";
|
|
}
|
|
|
|
echo '<a title="' . Kohana::lang('common.title-statistics-link') .
|
|
'" href="' . url::base(true) .
|
|
'graph?host=.pnp-internal&srv=runtime"><img class="icon" src="' .
|
|
url::base() . "media/images/stats.png\"></a>\n";
|
|
|
|
if ($this->data->getFirstSpecialTemplate()) {
|
|
echo '<a title="' . Kohana::lang('common.title-special-templates-link') .
|
|
'" href="' . url::base(true) . 'special"><img class="icon" src="' . url::base() .
|
|
"media/images/special.png\"></a>\n";
|
|
}
|
|
|
|
echo '<a title="' . Kohana::lang('common.title-docs-link') .
|
|
'" href="' . url::base(true) . 'docs"><img class="icon" src="' .
|
|
url::base() . "media/images/docs.png\"></a>\n";
|
|
?>
|
|
</div>
|
|
</div><p>
|
|
<!-- Icon Box End -->
|