uninstallWizard.php 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <?php require_once "./head.inc" ?>
  2. <html>
  3. <head>
  4. <title id="pageTitleId"><?php echo $RES['page.title'] ?></title>
  5. <!-- CSS -->
  6. <link type="text/css" rel="stylesheet" href="../yui-3.5.1/build/cssreset/cssreset-min.css">
  7. <link type="text/css" rel="stylesheet" href="../css/bootstrap.css" media="screen"/>
  8. <link type="text/css" rel="stylesheet" href="../css/common.css" media="screen"/>
  9. <link type="text/css" rel="stylesheet" href="../css/common2.css" media="screen"/>
  10. <link type="text/css" rel="stylesheet" href="../css/common3.css" media="screen"/>
  11. <link type="text/css" rel="stylesheet" href="../css/selectHosts.css" media="screen"/>
  12. <link rel="shortcut icon" href="../images/logo-micro.gif">
  13. <!-- End CSS -->
  14. </head>
  15. <body class="yui3-skin-sam">
  16. <?php require "./topnav.htmli"; ?>
  17. <?php
  18. include_once ("../php/util/clusterState.php");
  19. // $clusterName = "m4v1";
  20. // $clusterState = needWipeOut($clusterName);
  21. ?>
  22. <div id="ContentDivId">
  23. <!-- Uninstallation Wizard -->
  24. <div id="installationWizardDivId" style="display:block">
  25. <?php require "./utils.htmli"; ?>
  26. <div class="pageSummary">
  27. <h2><?php echo $RES['uninstallWizard.pageSummary.header'] ?></h2>
  28. <p><?php echo $RES['uninstallWizard.pageSummary.body'] ?></p>
  29. </div>
  30. <div id="installationMainFormsDivId">
  31. <div id="formStatusDivId" class="alert alert-error" style="display:none">
  32. </div>
  33. <div id="addNodesCoreDivId" style="display:block">
  34. <fieldset>
  35. <form id="addNodesFilesFormId" enctype="multipart/form-data" method="post">
  36. <label for="clusterDeployUserId"><?php echo $RES['common.sshUsername.label'] ?></label>
  37. <input type="text" name="ClusterDeployUser" id="clusterDeployUserId" value="root" placeholder="">
  38. <div class="separator"></div>
  39. <label for="clusterDeployUserIdentityFileId"><?php echo $RES['common.sshPrivateKeyFile.label'] ?></label>
  40. <input type="file" name="clusterDeployUserIdentityFile" id="clusterDeployUserIdentityFileId" value="" placeholder="">
  41. <div class="separator"></div>
  42. <div id="fileUploadWrapperDivId">
  43. <iframe name="fileUploadTarget" id="fileUploadTargetId" src="about:blank" style="display:none"></iframe>
  44. </div>
  45. <div class="separator"></div>
  46. <div id="confirmWipeOutDivId">
  47. <label class="checkbox" for="confirmWipeOutId"><?php echo $RES['uninstallWizard.wipeout.label'] ?>
  48. <input type="checkbox" id="confirmWipeOutCheckId" value="false">
  49. </label>
  50. </div>
  51. <div class="separator"></div>
  52. <input type="button" class="btn btn-large" id="addNodesSubmitButtonId" value="<?php echo $RES['uninstallWizard.submit.label'] ?>">
  53. </fieldset>
  54. </div>
  55. <?php require "./txnUtils.htmli"; ?>
  56. </div>
  57. </div>
  58. <!-- End of Uninstallation Wizard -->
  59. </div>
  60. <?php require "./footer.htmli"; ?>
  61. <!-- Javascript Scaffolding -->
  62. <script type="text/javascript">
  63. var freshInstall = false;
  64. var nodesAction = "uninstall";
  65. var clusterName = "<?php echo $_GET['clusterName']; ?>";
  66. var InstallationWizard = {
  67. AddNodes:
  68. {},
  69. AddNodesProgress:
  70. {}
  71. };
  72. var jsFilesToLoad = [
  73. '../js/utils.js',
  74. '../js/txnUtils.js',
  75. '../js/uninstall.js',
  76. '../js/uninstallProgress.js',
  77. ];
  78. </script>
  79. <?php require "./bootstrapJs.htmli"; ?>
  80. <!-- End of Javascript Scaffolding -->
  81. </body>
  82. </html>