Dieser Commit ist enthalten in:
Ursprung
2b21070b1a
Commit
f7a7c71f86
1583 geänderte Dateien mit 454759 neuen und 0 gelöschten Zeilen
27
application/views/scripts/sql-server/get-processlist.phtml
Normale Datei
27
application/views/scripts/sql-server/get-processlist.phtml
Normale Datei
|
|
@ -0,0 +1,27 @@
|
|||
<?php
|
||||
$i = 1;
|
||||
$cycleHelper = $this->getHelper('cycle')->cycle(array('row-even', 'row-odd'));
|
||||
foreach ($this->processes as $process): ?>
|
||||
<tr class="<?php echo $cycleHelper->next()?>">
|
||||
<td>
|
||||
<a href="<?php echo $this->url(array(
|
||||
'controller'=>'sql.server',
|
||||
'action'=>'kill.process',
|
||||
'processId' => $process['Id']));?>">
|
||||
<?php echo $this->getIcon('delete', $this->lang->L_KILL_PROCESS);?>
|
||||
</a>
|
||||
|
||||
</td>
|
||||
<td class="right"><?php echo $i;?>.</td>
|
||||
<td><?php echo $process['Id'];?></td>
|
||||
<td><?php echo $process['User'];?></td>
|
||||
<td><?php echo $process['Host'];?></td>
|
||||
<td><?php echo $process['db'];?></td>
|
||||
<td><?php echo $process['Command'];?></td>
|
||||
<td><?php echo $process['Time'];?></td>
|
||||
<td><?php echo $process['State'];?></td>
|
||||
<td><?php echo $process['Info'];?></td>
|
||||
</tr>
|
||||
<?php
|
||||
++$i;
|
||||
endforeach; ?>
|
||||
63
application/views/scripts/sql-server/head-navi.phtml
Normale Datei
63
application/views/scripts/sql-server/head-navi.phtml
Normale Datei
|
|
@ -0,0 +1,63 @@
|
|||
<?php
|
||||
$showVariablesUrl = $this->url(array('controller'=>'sql.server','action'=>'show.variables'));
|
||||
$showStatusUrl = $this->url(array('controller'=>'sql.server','action'=>'show.status'));
|
||||
$showProcesslistUrl = $this->url(array('controller'=>'sql.server','action'=>'show.processlist'));
|
||||
$showCharsetsUrl = $this->url(array('controller'=>'sql.server','action'=>'show.charsets'));
|
||||
|
||||
// get action name to set the active item in TabBar
|
||||
$actionName = Zend_Controller_Front::getInstance()->getRequest()->getActionName();
|
||||
|
||||
// format action name and escape possible dot in action name
|
||||
$actionName = '"#' . str_replace('.', '\\\.', $actionName) . '"';
|
||||
?>
|
||||
|
||||
<?php $this->jQuery()->javascriptCaptureStart(); ?>
|
||||
|
||||
// set selected tab
|
||||
$(document).ready(function() {
|
||||
$(<?php echo $actionName; ?>).addClass("ui-state-active");
|
||||
$(<?php echo $actionName; ?>).addClass("ui-tabs-selected");
|
||||
});
|
||||
|
||||
<?php $this->jQuery()->javascriptCaptureEnd(); ?>
|
||||
|
||||
<div id="headnavi" 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="show.variables"
|
||||
class="ui-state-default ui-corner-top"
|
||||
onmouseover="tabOver(this)"
|
||||
onmouseout="tabOut(this)">
|
||||
<a href="<?php echo $showVariablesUrl;?>">
|
||||
<?php echo$this->getIcon('Reports', '', 16);?>
|
||||
<?php echo $this->lang->L_MYSQLVARS;?>
|
||||
</a>
|
||||
</li>
|
||||
<li id="show.status"
|
||||
class="ui-state-default ui-corner-top"
|
||||
onmouseover="tabOver(this)"
|
||||
onmouseout="tabOut(this)">
|
||||
<a href="<?php echo $showStatusUrl;?>">
|
||||
<?php echo$this->getIcon('Reports', '', 16);?>
|
||||
<?php echo $this->lang->L_STATUS;?>
|
||||
</a>
|
||||
</li>
|
||||
<li id="show.processlist"
|
||||
class="ui-state-default ui-corner-top"
|
||||
onmouseover="tabOver(this)"
|
||||
onmouseout="tabOut(this)">
|
||||
<a href="<?php echo $showProcesslistUrl;?>">
|
||||
<?php echo$this->getIcon('Reports', '', 16);?>
|
||||
<?php echo $this->lang->L_PROZESSE;?>
|
||||
</a>
|
||||
</li>
|
||||
<li id="show.charsets"
|
||||
class="ui-state-default ui-corner-top"
|
||||
onmouseover="tabOver(this)"
|
||||
onmouseout="tabOut(this)">
|
||||
<a href="<?php echo $showCharsetsUrl;?>">
|
||||
<?php echo$this->getIcon('Reports', '', 16);?>
|
||||
<?php echo $this->lang->L_CHARSETS;?>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
4
application/views/scripts/sql-server/index.phtml
Normale Datei
4
application/views/scripts/sql-server/index.phtml
Normale Datei
|
|
@ -0,0 +1,4 @@
|
|||
<div id="content">
|
||||
<h2><?php echo $this->lang->L_SQL_SERVER;?></h2>
|
||||
<?php echo $this->render('sql-server/head-navi.phtml');?>
|
||||
</div>
|
||||
50
application/views/scripts/sql-server/show-charsets.phtml
Normale Datei
50
application/views/scripts/sql-server/show-charsets.phtml
Normale Datei
|
|
@ -0,0 +1,50 @@
|
|||
<div id="content">
|
||||
<h2><?php echo $this->lang->L_CHARSETS;?></h2>
|
||||
<?php echo $this->render('sql-server/head-navi.phtml'); ?>
|
||||
<table class="bdr" summary="Show possible character sets">
|
||||
<tr class="thead">
|
||||
<th class="right">#</th>
|
||||
<th class="head"><?php echo $this->lang->L_DESCRIPTION;?></th>
|
||||
<th class="head"><?php echo $this->lang->L_CHARSET;?></th>
|
||||
<th class="head">
|
||||
<span class="tooltip explain" title="<?php echo $this->lang->L_MAXIMUM_LENGTH_EXPLAIN;?>">
|
||||
<?php echo $this->lang->L_MAXIMUM_LENGTH;?>
|
||||
</span>
|
||||
</th>
|
||||
<th class="head"><?php echo $this->lang->L_DEFAULT_COLLATION_NAME;?></th>
|
||||
<th class="head">
|
||||
<span class="tooltip explain" title="<?php echo $this->lang->L_POSSIBLE_COLLATIONS_EXPLAIN;?>">
|
||||
<?php echo $this->lang->L_POSSIBLE_COLLATIONS;?>
|
||||
</span>
|
||||
</th>
|
||||
</tr>
|
||||
<?php
|
||||
$i = 1;
|
||||
$cycleHelper = $this->getHelper('cycle')->cycle(array('row-even', 'row-odd'));
|
||||
foreach ($this->charsets as $set) {
|
||||
$collations = $this->collations[$set['CHARACTER_SET_NAME']];
|
||||
?>
|
||||
<tr class="<?php echo $cycleHelper->next()?>">
|
||||
<td class="small right"><?php echo $i;?>.</td>
|
||||
<td class="small"><?php echo $this->escape($set['DESCRIPTION']);?></td>
|
||||
<td class="small"><?php echo $this->escape($set['CHARACTER_SET_NAME']);?></td>
|
||||
<td class="small"><?php echo $this->escape($set['MAXLEN']);?></td>
|
||||
<td class="small"><?php echo $this->escape($set['DEFAULT_COLLATE_NAME']);?></td>
|
||||
<td class="small"><?php echo $this->out($collations[0]);?></td>
|
||||
</tr>
|
||||
<?php
|
||||
unset($collations[0]);
|
||||
foreach ($collations as $collation) { ?>
|
||||
<tr class="<?php echo $cycleHelper->next()?>">
|
||||
<td class="small" colspan="4"> </td>
|
||||
<td class="small"> </td>
|
||||
<td class="small"><?php echo $this->escape($collation);?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
$i++;
|
||||
};
|
||||
?>
|
||||
</table>
|
||||
<br /><br /><br />
|
||||
</div>
|
||||
79
application/views/scripts/sql-server/show-processlist.phtml
Normale Datei
79
application/views/scripts/sql-server/show-processlist.phtml
Normale Datei
|
|
@ -0,0 +1,79 @@
|
|||
<div id="content">
|
||||
<h2><?php echo $this->lang->L_STATUS;?></h2>
|
||||
<?php echo $this->render('sql-server/head-navi.phtml'); ?>
|
||||
<div style="height:20px;">
|
||||
<div style="width:32px;float: left">
|
||||
|
||||
<span id="loader" class="invisible"><?php echo $this->getIcon('ajax-loader');?>
|
||||
</span>
|
||||
</div>
|
||||
<div style="padding-top:2px;">
|
||||
<?php echo $this->lang->L_REFRESHTIME .': <span id="refreshTime">'.$this->interval.'</span> '.$this->lang->L_SECONDS;?>
|
||||
</div>
|
||||
</div>
|
||||
<div id="processlist-table">
|
||||
<table class="bdr">
|
||||
<thead>
|
||||
<tr class="thead">
|
||||
<th><?php echo $this->lang->L_ACTION;?></th>
|
||||
<th>#</th>
|
||||
<th><?php echo $this->lang->L_PROCESS_ID;?></th>
|
||||
<th><?php echo $this->lang->L_DB_USER;?></th>
|
||||
<th><?php echo $this->lang->L_DB_HOST;?></th>
|
||||
<th><?php echo $this->lang->L_DB;?></th>
|
||||
<th><?php echo $this->lang->L_COMMAND;?></th>
|
||||
<th><?php echo $this->lang->L_TIME;?></th>
|
||||
<th><?php echo $this->lang->L_STATUS;?></th>
|
||||
<th><?php echo $this->lang->L_INFO;?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="processlist">
|
||||
<tr>
|
||||
<td colspan="10"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
<?php
|
||||
$getProcesslistUrl = $this->url(array(
|
||||
'controller'=>'sql.server',
|
||||
'action'=>'get.processlist')
|
||||
);
|
||||
?>
|
||||
function refreshProcesslist() {
|
||||
setOpacity('#processlist-table', 0.5);
|
||||
$('#loader').show();
|
||||
$.ajax({
|
||||
url: '<?php echo $getProcesslistUrl;?>',
|
||||
cache: false,
|
||||
success: function (data) {
|
||||
$('#loader').hide();
|
||||
$('#processlist').html(data);
|
||||
setOpacity('#processlist-table', 1);
|
||||
$('#refreshTime').html(<?php echo $this->interval;?>);
|
||||
window.setTimeout("refreshTimer()", 1000);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function refreshTimer()
|
||||
{
|
||||
var seconds = $('#refreshTime').html();
|
||||
seconds--;
|
||||
if (seconds <= 0){
|
||||
$('#refreshTime').html(0);
|
||||
refreshProcesslist();
|
||||
seconds = <?php echo $this->interval;?>;
|
||||
} else {
|
||||
window.setTimeout("refreshTimer()", 1000);
|
||||
$('#refreshTime').html(seconds);
|
||||
}
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
refreshProcesslist();
|
||||
});
|
||||
</script>
|
||||
<br /><br /><br />
|
||||
</div>
|
||||
38
application/views/scripts/sql-server/show-status.phtml
Normale Datei
38
application/views/scripts/sql-server/show-status.phtml
Normale Datei
|
|
@ -0,0 +1,38 @@
|
|||
<div id="content">
|
||||
<h2><?php echo $this->lang->L_STATUS;?></h2>
|
||||
<?php echo $this->render('sql-server/head-navi.phtml'); ?>
|
||||
<form action="" method="post" id="groupChange">
|
||||
<p>
|
||||
<?php echo $this->lang->L_FILTER_BY; ?>:
|
||||
<select name="group" id="group" onchange="$('#groupChange').submit();">
|
||||
<?php echo $this->groupOptions;?>
|
||||
</select>
|
||||
<button class="Formbutton" onclick="$('#group').val('');$('#groupChange').submit();" type="button">
|
||||
<?php
|
||||
echo $this->getIcon('delete');
|
||||
echo $this->lang->L_DESELECT_ALL;?>
|
||||
</button>
|
||||
</p>
|
||||
</form>
|
||||
<table class="bdr">
|
||||
<tr class="thead">
|
||||
<th class="right">#</th>
|
||||
<th><strong><?php echo $this->lang->L_NAME;?></strong></th>
|
||||
<th><strong><?php echo $this->lang->L_VALUE;?></strong></th>
|
||||
</tr>
|
||||
<?php
|
||||
$i = 1;
|
||||
$cycleHelper = $this->getHelper('cycle')->cycle(array('row-even', 'row-odd'));
|
||||
foreach ($this->variables as $name => $value) : ?>
|
||||
<tr class="<?php echo $cycleHelper->next()?>">
|
||||
<td class="small right"><?php echo $i;?>.</td>
|
||||
<td class="small"><?php echo $this->escape($name);?></td>
|
||||
<td class="small"><?php echo $this->escape($value);?></td>
|
||||
</tr>
|
||||
<?php
|
||||
++$i;
|
||||
endforeach;
|
||||
?>
|
||||
</table>
|
||||
<br /><br /><br />
|
||||
</div>
|
||||
38
application/views/scripts/sql-server/show-variables.phtml
Normale Datei
38
application/views/scripts/sql-server/show-variables.phtml
Normale Datei
|
|
@ -0,0 +1,38 @@
|
|||
<div id="content">
|
||||
<h2><?php echo $this->lang->L_MYSQLVARS;?></h2>
|
||||
<?php echo $this->render('sql-server/head-navi.phtml'); ?>
|
||||
<form action="" method="post" id="groupChange">
|
||||
<p>
|
||||
<?php echo $this->lang->L_FILTER_BY; ?>:
|
||||
<select name="group" id="group" onchange="$('#groupChange').submit();">
|
||||
<?php echo $this->groupOptions;?>
|
||||
</select>
|
||||
<button class="Formbutton" onclick="$('#group').val('');$('#groupChange').submit();" type="button">
|
||||
<?php
|
||||
echo $this->getIcon('delete');
|
||||
echo $this->lang->L_DESELECT_ALL;?>
|
||||
</button>
|
||||
</p>
|
||||
</form>
|
||||
<table class="bdr">
|
||||
<tr class="thead">
|
||||
<th class="right">#</th>
|
||||
<th><strong><?php echo $this->lang->L_NAME;?></strong></th>
|
||||
<th><strong><?php echo $this->lang->L_VALUE;?></strong></th>
|
||||
</tr>
|
||||
<?php
|
||||
$i = 1;
|
||||
$cycleHelper = $this->getHelper('cycle')->cycle(array('row-even', 'row-odd'));
|
||||
foreach ($this->variables as $name => $value) : ?>
|
||||
<tr class="<?php echo $cycleHelper->next()?>">
|
||||
<td class="small right"><?php echo $i;?>.</td>
|
||||
<td class="small"><?php echo $this->escape($name);?></td>
|
||||
<td class="small"><?php echo $this->escape($value);?></td>
|
||||
</tr>
|
||||
<?php
|
||||
++$i;
|
||||
endforeach;
|
||||
?>
|
||||
</table>
|
||||
<br /><br /><br />
|
||||
</div>
|
||||
Laden …
Tabelle hinzufügen
Einen Link hinzufügen
In neuem Issue referenzieren