* Fix issue .

This commit is contained in:
tanghucheng
2022-12-23 10:47:28 +08:00
parent df93462804
commit 49f8a2b2e9
11 changed files with 22 additions and 16 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ $lang->zahost->copied = 'Copy successful';
$lang->zahost->name = 'Name';
$lang->zahost->IP = 'Extranet Address';
$lang->zahost->extranet = 'Extranet Address';
$lang->zahost->cpuCores = 'CPU Cores';
$lang->zahost->cpuCores = 'CPU';
$lang->zahost->memory = 'Memory Size';
$lang->zahost->diskSize = 'Disk Size';
$lang->zahost->desc = 'Description';
+1 -1
View File
@@ -20,7 +20,7 @@ $lang->zahost->copied = 'Copy successful';
$lang->zahost->name = 'Name';
$lang->zahost->IP = 'Extranet Address';
$lang->zahost->extranet = 'Extranet Address';
$lang->zahost->cpuCores = 'CPU Cores';
$lang->zahost->cpuCores = 'CPU';
$lang->zahost->memory = 'Memory Size';
$lang->zahost->diskSize = 'Disk Size';
$lang->zahost->desc = 'Description';
+1 -1
View File
@@ -20,7 +20,7 @@ $lang->zahost->copied = 'Copy successful';
$lang->zahost->name = 'Name';
$lang->zahost->IP = 'Extranet Address';
$lang->zahost->extranet = 'Extranet Address';
$lang->zahost->cpuCores = 'CPU Cores';
$lang->zahost->cpuCores = 'CPU';
$lang->zahost->memory = 'Memory Size';
$lang->zahost->diskSize = 'diskSize Size';
$lang->zahost->desc = 'Description';
+1 -1
View File
@@ -21,7 +21,7 @@ $lang->zahost->name = '名称';
$lang->zahost->IP = 'IP/域名';
$lang->zahost->extranet = 'IP/域名';
$lang->zahost->memory = '内存';
$lang->zahost->cpuCores = 'CPU核心数';
$lang->zahost->cpuCores = 'CPU';
$lang->zahost->diskSize = '硬盘容量';
$lang->zahost->desc = '描述';
$lang->zahost->type = '类型';
+1 -1
View File
@@ -65,7 +65,7 @@
<td><?php echo $host->cpuCores;?></td>
<td><?php echo $host->memory . $lang->zahost->unitList['GB'];?></td>
<td><?php echo $host->diskSize . $lang->zahost->unitList['GB'];?></td>
<td><?php echo $host->vsoft;?></td>
<td><?php echo zget($lang->zahost->softwareList, $host->vsoft);?></td>
<td class="status-<?php echo $host->status;?>"><?php echo zget($lang->host->statusList, $host->status);?></td>
<td><?php echo helper::isZeroDate($host->heartbeat) ? '' : $host->heartbeat;?></td>
<td class='c-actions'>
+1 -2
View File
@@ -4,5 +4,4 @@
.c-cpu, .c-host {width: 100px;}
.c-ip{width: 150px;}
.c-os {width: 120px;}
.c-actions-7{width: 205px;}
.createImage{margin-right: 4px;margin-left: 0px!important;}
.desktop, .createImage{margin-right: 4px;}
+1 -1
View File
@@ -23,7 +23,7 @@ $lang->zanode->hostName = 'Host Name';
$lang->zanode->host = $lang->zanode->hostName;
$lang->zanode->extranet = 'IP/Domain';
$lang->zanode->osArch = 'Arch';
$lang->zanode->cpuCores = 'CPU Cores';
$lang->zanode->cpuCores = 'CPU';
$lang->zanode->memory = 'Memory Size';
$lang->zanode->desc = 'Description';
$lang->zanode->diskSize = 'Disk Size';
+1 -1
View File
@@ -23,7 +23,7 @@ $lang->zanode->hostName = 'Host Name';
$lang->zanode->host = $lang->zanode->hostName;
$lang->zanode->extranet = 'IP/Domain';
$lang->zanode->osArch = 'Arch';
$lang->zanode->cpuCores = 'CPU Cores';
$lang->zanode->cpuCores = 'CPU';
$lang->zanode->memory = 'Memory Size';
$lang->zanode->desc = 'Description';
$lang->zanode->diskSize = 'Disk Size';
+1 -1
View File
@@ -23,7 +23,7 @@ $lang->zanode->hostName = 'Host Name';
$lang->zanode->host = $lang->zanode->hostName;
$lang->zanode->extranet = 'IP/Domain';
$lang->zanode->osArch = 'Arch';
$lang->zanode->cpuCores = 'CPU Cores';
$lang->zanode->cpuCores = 'CPU';
$lang->zanode->memory = 'Memory Size';
$lang->zanode->desc = 'Description';
$lang->zanode->diskSize = 'Disk Size';
+1 -1
View File
@@ -23,7 +23,7 @@ $lang->zanode->hostName = '所属宿主机';
$lang->zanode->host = $lang->zanode->hostName;
$lang->zanode->extranet = 'IP/域名';
$lang->zanode->osArch = '架构';
$lang->zanode->cpuCores = 'CPU核心数';
$lang->zanode->cpuCores = 'CPU';
$lang->zanode->memory = '内存';
$lang->zanode->diskSize = '硬盘';
$lang->zanode->desc = '描述';
+12 -5
View File
@@ -57,7 +57,7 @@
<th class='c-os'><?php common::printOrderLink('t1.osName', $orderBy, $vars, $lang->zanode->osName); ?></th>
<th class='c-status'><?php common::printOrderLink('t1.status', $orderBy, $vars, $lang->zanode->status); ?></th>
<th class='c-host'><?php common::printOrderLink('t2.name', $orderBy, $vars, $lang->zanode->hostName); ?>
<th class='c-actions-7 text-center'><?php echo $lang->actions ?></th>
<th class='c-actions-5 text-center'><?php echo $lang->actions ?></th>
</tr>
</thead>
<tbody>
@@ -83,6 +83,7 @@
$rebootAttr = "title='{$lang->zanode->reboot}' target='hiddenwin'";
$rebootAttr .= $node->status != 'running' ? ' class="btn disabled"' : "class='btn' target='hiddenwin' onclick='if(confirm(\"{$lang->zanode->confirmReboot}\")==false) return false;'";
common::printLink('zanode', 'getVNC', "id={$node->id}", "<i class='icon icon-desktop'></i> ", '_blank', "title='{$lang->zanode->getVNC}' class='btn desktop " . (in_array($node->status ,array('running', 'launch')) ? '':'disabled') . "'", '');
if($node->status == "suspend")
{
common::printLink('zanode', 'resume', "zanodeID={$node->id}", "<i class='icon icon-back'></i> ", '', $resumeAttr);
@@ -91,12 +92,18 @@
{
common::printLink('zanode', 'suspend', "zanodeID={$node->id}", "<i class='icon icon-pause'></i> ", '', $suspendAttr);
}
common::printLink('zanode', 'reboot', "zanodeID={$node->id}", "<i class='icon icon-restart'></i> ", '', $rebootAttr);
common::printLink('zanode', 'getVNC', "id={$node->id}", "<i class='icon icon-desktop'></i> ", '_blank', "title='{$lang->zanode->getVNC}' class='btn " . (in_array($node->status ,array('running', 'launch')) ? '':'disabled') . "'", '');
common::printLink('zanode', 'createImage', "zanodeID={$node->id}", "<i class='icon icon-export'></i> ", '', "class='btn iframe createImage' title='{$lang->zanode->createImage}' data-width='50%'", '', true);
common::printIcon('zanode', 'edit', "id={$node->id}", $node, 'list');
common::printLink('zanode', 'delete', "zanodeID={$node->id}", "<i class='icon icon-trash'></i> ", '', "title='{$lang->zanode->destroy}' class='btn btn-primary' target='hiddenwin'");
common::printIcon('zanode', 'init', "hostID={$node->id}", $node, 'list', 'refresh', '', ' init', false, "data-placement='bottom'", $lang->zanode->init->title);
echo "<div class='btn-group'>";
echo "<button type='button' class='btn dropdown-toggle' data-toggle='context-dropdown' title='{$this->lang->more}'><i class='icon-ellipsis-v'></i></button>";
echo "<ul class='dropdown-menu pull-right text-center' role='menu'>";
common::printLink('zanode', 'createImage', "zanodeID={$node->id}", "<i class='icon icon-export'></i> ", '', "class='btn btn-action iframe createImage' title='{$lang->zanode->createImage}' data-width='50%'", '', true);
common::printIcon('zanode', 'init', "hostID={$node->id}", $node, 'list', 'refresh', '', 'btn btn-action init', false, "data-placement='bottom'", $lang->zanode->init->title);
common::printLink('zanode', 'delete', "zanodeID={$node->id}", "<i class='icon icon-trash'></i> ", '', "title='{$lang->zanode->destroy}' class='btn btn-action' target='hiddenwin'");
echo "</ul>";
echo "</div>";
?>
</td>
</tr>