* @package zanode * @version $Id$ * @link http://www.zentao.net */ ?> getModuleRoot() . 'common/view/header.html.php'; ?> zanode->confirmDelete) ?> zanode->confirmBoot) ?> zanode->confirmReboot) ?> zanode->confirmShutdown) ?> zanode->actionSuccess) ?>
' data-module='zanode'>
recTotal}&recPerPage={$pager->recPerPage}"; ?>

zanode->empty; ?> ' . $lang->zanode->create, '', 'class="btn btn-info"'); ?>

idAB); ?> zanode->name); ?> zanode->extranet); ?> zanode->cpuCores); ?> zanode->memory); ?> zanode->diskSize); ?> zanode->osName); ?> zanode->status); ?> zanode->hostName); ?> actions ?>
id; ?> inlink('view', "id=$node->id"), $node->name, '', ""); ?> extranet; ?> zanode->os->cpuCores, $node->cpuCores); ?> memory . $this->lang->zahost->unitList['GB']; ?> diskSize . $this->lang->zahost->unitList['GB']; ?> osName; ?> zanode->statusList, $node->status); ?> hostName; ?> zanode->suspend}' target='hiddenwin'"; $suspendAttr .= $node->type == 'physics' || $node->status != 'running' ? ' class="btn disabled"' : "class='btn' target='hiddenwin' onclick='if(confirm(\"{$lang->zanode->confirmSuspend}\")==false) return false;'"; $resumeAttr = "title='{$lang->zanode->resume}' target='hiddenwin'"; $resumeAttr .= $node->type == 'physics' || $node->status == 'running' || $node->status == 'wait' ? ' class="btn disabled"' : "class='btn' target='hiddenwin' onclick='if(confirm(\"{$lang->zanode->confirmResume}\")==false) return false;'"; $rebootAttr = "title='{$lang->zanode->reboot}' target='hiddenwin'"; $rebootAttr .= $node->type == 'physics' || $node->status == 'shutoff' || $node->status == 'wait' ? ' class="btn disabled"' : "class='btn' target='hiddenwin' onclick='if(confirm(\"{$lang->zanode->confirmReboot}\")==false) return false;'"; $closeAttr = "title='{$lang->zanode->shutdown}'"; $closeAttr .= $node->type == 'physics' || $node->status == 'wait' ? ' class="btn disabled"' : ' class="btn iframe"'; $startAttr = "title='{$lang->zanode->boot}'"; $startAttr .= $node->type == 'physics' || $node->status == 'wait' ? ' class="btn disabled"' : ' class="btn iframe"'; $snapshotAttr = "title='{$lang->zanode->createSnapshot}'"; $snapshotAttr .= $node->type == 'physics' || $node->status != 'running' ? ' class="btn disabled"' : ' class="btn iframe"'; $imageAttr = $node->status != 'running' ? ' class="btn btn-action iframe createImage disabled"' : ' class="btn btn-action iframe createImage"'; common::printLink('zanode', 'getVNC', "id={$node->id}", " ", (in_array($node->status ,array('running', 'launch', 'wait')) ? '_blank' : ''), "title='{$lang->zanode->getVNC}' class='btn desktop " . (in_array($node->status ,array('running', 'launch', 'wait')) ? '':'disabled') . "'", ''); if($node->status == "suspend") { common::printLink('zanode', 'resume', "zanodeID={$node->id}", " ", '', $resumeAttr); } else { common::printLink('zanode', 'suspend', "zanodeID={$node->id}", " ", '', $suspendAttr); } if($node->status == "shutoff") { common::printLink('zanode', 'start', "zanodeID={$node->id}", " ", '', $startAttr); } else { common::printLink('zanode', 'close', "zanodeID={$node->id}", " ", '', $closeAttr); } common::printLink('zanode', 'reboot', "zanodeID={$node->id}", " ", '', $rebootAttr); common::printLink('zanode', 'createSnapshot', "zanodeID={$node->id}", " ", '', $snapshotAttr, true, true); if(common::hasPriv('zanode', 'createImage') or common::hasPriv('zanode', 'destroy')) { echo "
"; echo ""; echo ""; echo "
"; } ?>
getModuleRoot() . 'common/view/footer.html.php'; ?>