Dieser Commit ist enthalten in:
Ursprung
2b21070b1a
Commit
f7a7c71f86
1583 geänderte Dateien mit 454759 neuen und 0 gelöschten Zeilen
53
application/views/scripts/log/ajax.phtml
Normale Datei
53
application/views/scripts/log/ajax.phtml
Normale Datei
|
|
@ -0,0 +1,53 @@
|
|||
<a onclick="getLog('<?php echo $this->url(array('action' => 'ajax', 'log' => $this->log, 'reverse' => $this->reverse, 'offset' => null))?>');"
|
||||
href="#" class="Formbutton" accesskey="s">
|
||||
<?php
|
||||
if ($this->reverse == 0) {
|
||||
echo $this->getIcon('ArrowUp', '', 16);
|
||||
} else {
|
||||
echo $this->getIcon('ArrowDown', '', 16);
|
||||
}
|
||||
?>
|
||||
<?php echo$this->sortIcon;?></a>
|
||||
<?php echo$this->paginagion;?>
|
||||
<?php echo $this->paginationControl($this->logEntries,
|
||||
'Sliding',
|
||||
'log/paginator.phtml',
|
||||
array($this->x)); ?>
|
||||
|
||||
<a class="Formbutton" href="<?php echo $this->url(array('controller' => 'log', 'action' => 'index', 'offset' => null, 'delete' => 1))?>"
|
||||
onclick="if(!(confirm('<?php echo $this->jsEscape(sprintf($this->lang->L_CONFIRM_DELETE_FILE, $this->log), true); ?>'))) return false;">
|
||||
<?php echo $this->getIcon('DustbinFull', '', 16);?>
|
||||
<?php echo $this->lang->L_DELETE.' '.$this->log;?>
|
||||
</a>
|
||||
<br />
|
||||
<table id="table_log" class="bdr" summary="Show log file data">
|
||||
<tr class="thead">
|
||||
<th class="left">#</th>
|
||||
<th class="left"><?php echo$this->lang->L_TIMESTAMP?></th>
|
||||
<th class="left"><?php echo$this->lang->L_MESSAGE?></th>
|
||||
</tr>
|
||||
<?php
|
||||
$i=1;
|
||||
if ($this->page>0) {
|
||||
$i=(($this->page-1) * $this->entriesPerPage)+1;
|
||||
}
|
||||
foreach ($this->logEntries as $line) :
|
||||
$data=explode(' ', $line, 2);
|
||||
?>
|
||||
<tr class="<?php echo$this->cycle(array('row-even', 'row-odd'))->next();?>">
|
||||
<td class="small right"><?php echo $i;?>.</td>
|
||||
<td class="small nowrap">
|
||||
<?php
|
||||
echo $this->timeToDate($data[0]);
|
||||
?></td>
|
||||
<td class="small">
|
||||
<?php
|
||||
if (!empty($data[1])) {
|
||||
echo $data[1];
|
||||
}
|
||||
?></td>
|
||||
</tr>
|
||||
<?php
|
||||
$i++;
|
||||
endforeach; ?>
|
||||
</table>
|
||||
132
application/views/scripts/log/index.phtml
Normale Datei
132
application/views/scripts/log/index.phtml
Normale Datei
|
|
@ -0,0 +1,132 @@
|
|||
<?php
|
||||
$phpLogUrl = $this->url(array('controller' => 'log',
|
||||
'action' => 'index',
|
||||
'log' => Msd_Log::PHP,
|
||||
'revers' => $this->revers),
|
||||
'default',
|
||||
TRUE);
|
||||
|
||||
$errorLogUrl = $this->url(array('controller' => 'log',
|
||||
'action' => 'index',
|
||||
'log' => Msd_Log::ERROR,
|
||||
'revers' => $this->revers),
|
||||
'default',
|
||||
TRUE);
|
||||
|
||||
$perlLogUrl = $this->url(array('controller' => 'log',
|
||||
'action' => 'index',
|
||||
'log' => Msd_Log::PERL,
|
||||
'revers' => $this->revers),
|
||||
'default',
|
||||
TRUE);
|
||||
|
||||
$perlCompleteLogUrl = $this->url(array('controller' => 'log',
|
||||
'action' => 'index',
|
||||
'log' => Msd_Log::PERL_COMPLETE,
|
||||
'revers' => $this->revers),
|
||||
'default',
|
||||
TRUE);
|
||||
|
||||
// get log param to set the active item in TabBar
|
||||
$activeLog = Zend_Controller_Front::getInstance()->getRequest()->getParam('log', '');
|
||||
|
||||
// format action name and escape possible dot in action name
|
||||
if (!empty($activeLog)) {
|
||||
$activeLog = '"#' . str_replace('.', '\\\.', $activeLog) . '"';
|
||||
} else {
|
||||
$activeLog = '"#PHP-Log"'; // default
|
||||
}
|
||||
?>
|
||||
|
||||
<?php $this->jQuery()->javascriptCaptureStart(); ?>
|
||||
|
||||
// set selected tab
|
||||
$(document).ready(function() {
|
||||
$(<?php echo $activeLog; ?>).addClass("ui-tabs-selected");
|
||||
});
|
||||
|
||||
<?php $this->jQuery()->javascriptCaptureEnd(); ?>
|
||||
|
||||
|
||||
<div id="content">
|
||||
<h2><?php echo $this->lang->L_LOG; ?></h2>
|
||||
|
||||
<div id="logButtonBar" class="ui-tabs ui-widget ui-widget-content ui-corner-all">
|
||||
<ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all">
|
||||
<li id="PHP-Log" class="ui-state-default ui-corner-top" onmouseover="tabOver(this)" onmouseout="tabOut(this)">
|
||||
<a href="<?php echo $phpLogUrl; ?>">
|
||||
<?php echo $this->getIcon('Info', '', 16);?>
|
||||
<?php echo $this->lang->L_PHP_LOG; ?>
|
||||
</a>
|
||||
</li>
|
||||
<li id="Error-Log" class="ui-state-default ui-corner-top" onmouseover="tabOver(this)" onmouseout="tabOut(this)">
|
||||
<a href="<?php echo $errorLogUrl; ?>">
|
||||
<?php echo $this->getIcon('Info', '', 16);?>
|
||||
<?php echo $this->lang->L_ERROR_LOG?>
|
||||
</a>
|
||||
</li>
|
||||
<li id="PERL-Log" class="ui-state-default ui-corner-top" onmouseover="tabOver(this)" onmouseout="tabOut(this)">
|
||||
<a href="<?php echo $perlLogUrl; ?>">
|
||||
<?php echo $this->getIcon('Info', '', 16);?>
|
||||
<?php echo $this->lang->L_PERL_LOG?>
|
||||
</a>
|
||||
</li>
|
||||
<li id="PERL-Complete-Log" class="ui-state-default ui-corner-top" onmouseover="tabOver(this)" onmouseout="tabOut(this)">
|
||||
<a href="<?php echo $perlCompleteLogUrl;?>">
|
||||
<?php echo $this->getIcon('Info', '', 16);?>
|
||||
<?php echo $this->lang->L_PERL_COMPLETELOG?>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="left">
|
||||
<br />
|
||||
<table class="bdr" summary="Show log file sizes">
|
||||
<tr class="thead">
|
||||
<th><?php echo $this->lang->L_NAME?></th>
|
||||
<th class="right"><?php echo $this->lang->L_FILESIZE?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo Msd_Log::PHP;?></td>
|
||||
<td class="right">
|
||||
<?php echo $this->filesize($this->log->getFile(Msd_Log::PHP));?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo Msd_Log::ERROR;?></td>
|
||||
<td class="right">
|
||||
<?php echo $this->filesize($this->log->getFile(Msd_Log::ERROR));?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo Msd_Log::PERL;?></td>
|
||||
<td class="right">
|
||||
<?php echo $this->filesize($this->log->getFile(Msd_Log::PERL));?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo Msd_Log::PERL_COMPLETE;?></td>
|
||||
<td class="right">
|
||||
<?php echo $this->filesize($this->log->getFile(Msd_Log::PERL_COMPLETE));?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
</div>
|
||||
|
||||
<div class="left" style="width: 100%">
|
||||
<h3><?php echo $this->lang->L_LOG?> "<?php echo $this->activeLog?>": <img alt="Loading..." title="Loading..." style="display: none;"
|
||||
class="ajax-reload" src="<?php echo $this->baseUrl();?>/css/msd/icons/ajax-loader.gif" /></h3>
|
||||
|
||||
<script type="text/javascript">
|
||||
/*<![CDATA[*/
|
||||
$(document).ready(function() {
|
||||
getLog('<?php echo $this->url(array('controller' => 'log', 'action'=>'ajax','log'=>$this->activeLog,'revers'=>$this->revers, 'offset'=>$this->offset))?>');
|
||||
});
|
||||
/*]]>*/
|
||||
</script>
|
||||
<div id="ilog" class="small"></div>
|
||||
</div>
|
||||
</div>
|
||||
50
application/views/scripts/log/paginator.phtml
Normale Datei
50
application/views/scripts/log/paginator.phtml
Normale Datei
|
|
@ -0,0 +1,50 @@
|
|||
<?php
|
||||
$this->lang = Msd_Language::getInstance();
|
||||
if ($this->pageCount): ?>
|
||||
<a href="#" <?php if($this->current>1): ?>
|
||||
onclick="getLog('<?php echo $this->url(array('action'=>'ajax','offset'=>$this->first)) ?>');"
|
||||
accesskey="f" class="Formbutton"><?php echo $this->getIcon('First', '', 16);?>
|
||||
<?php else: ?>
|
||||
disabled="disabled" class="Formbutton"><?php echo $this->getIcon('FirstDisabled', '', 16);?>
|
||||
<?php endif; ?>
|
||||
</a>
|
||||
|
||||
<a href="#" <?php if($this->previous != null): ?>
|
||||
onclick="return getLog('<?php echo $this->url(array('action'=>'ajax','offset'=>$this->previous)) ?>');"
|
||||
accesskey="c" class="Formbutton">
|
||||
<?php echo $this->getIcon('Back', '', 16);?>
|
||||
<?php else: ?>
|
||||
disabled="disabled" class="Formbutton"><?php echo $this->getIcon('BackDisabled', '', 16);?>
|
||||
<?php endif; ?>
|
||||
</a>
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
$( "#combobox" ).combobox();
|
||||
$( "#toggle" ).click(function() {
|
||||
$( "#combobox" ).toggle();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<select id="combobox">
|
||||
<?php for($i=1; $i <= $this->pageCount; $i++) { ?>
|
||||
<option <?php if ($i == $this->current) echo 'selected="selected"'; ?>><?php echo $i; ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
|
||||
<a href="#" <?php if($this->next != null): ?>
|
||||
onclick="return getLog('<?php echo $this->url(array('action'=>'ajax','offset'=>$this->next)) ?>');"
|
||||
accesskey="v" class="Formbutton"><?php echo $this->getIcon('Forward', '', 16);?>
|
||||
<?php else: ?>
|
||||
disabled="disabled"
|
||||
class="Formbutton"><?php echo $this->getIcon('ForwardDisabled', '', 16);?>
|
||||
<?php endif; ?>
|
||||
</a>
|
||||
<a href="#" <?php if($this->current<$this->last): ?>
|
||||
onclick="getLog('<?php echo $this->url(array('action'=>'ajax','offset'=>$this->last)) ?>');"
|
||||
accesskey="f" class="Formbutton"><?php echo $this->getIcon('Last', '', 16);?>
|
||||
<?php else: ?>
|
||||
disabled="disabled" class="Formbutton"><?php echo $this->getIcon('LastDisabled', '', 16);?>
|
||||
<?php endif; ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
Laden …
Tabelle hinzufügen
Einen Link hinzufügen
In neuem Issue referenzieren