* @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->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->status == 'running' ? ' 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->status != 'running' ? ' class="btn disabled"' : "class='btn' target='hiddenwin' onclick='if(confirm(\"{$lang->zanode->confirmReboot}\")==false) return false;'"; if($node->status == "suspend") { if(common::hasPriv('zahost', 'resume')) common::printLink('zanode', 'resume', "zanodeID={$node->id}", " ", '', $resumeAttr); } else { if(common::hasPriv('zahost', 'suspend')) common::printLink('zanode', 'suspend', "zanodeID={$node->id}", " ", '', $suspendAttr); } if(common::hasPriv('zahost', 'reboot')) common::printLink('zanode', 'reboot', "zanodeID={$node->id}", " ", '', $rebootAttr); if(common::hasPriv('zahost', 'createImage')) common::printLink('zanode', 'createImage', "zanodeID={$node->id}", " ", '', "class='btn iframe' title='{$lang->zanode->createImage}' data-width='50%'", '', true); if(common::hasPriv('zahost', 'edit')) common::printIcon('zanode', 'edit', "id={$node->id}", $node, 'list'); if(common::hasPriv('zahost', 'delete')) common::printLink('zanode', 'delete', "zanodeID={$node->id}", " ", '', "title='{$lang->zanode->destroy}' class='btn btn-primary' target='hiddenwin' onclick='if(confirm(\"{$lang->zanode->confirmDelete}\")==false) return false;'"); if(common::hasPriv('zahost', 'init')) common::printIcon('zanode', 'init', "hostID={$node->id}", $node, 'list', 'refresh', '', ' init', false, "data-placement='bottom'", $lang->zanode->init->title); ?>
getModuleRoot() . 'common/view/footer.html.php'; ?>