Advertisement
Guest User

TBootStrap-Alert-Error

a guest
Mar 18th, 2014
529
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 4.37 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3.   <head>
  4.     <meta charset="utf-8">
  5.     <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6.     <meta name="viewport" content="width=device-width, initial-scale=1">
  7.     <meta name="description" content="">
  8.     <meta name="author" content="">
  9.     <link rel="shortcut icon" href="../../assets/ico/favicon.ico">
  10.  
  11.     <title>Theme Template for Bootstrap</title>
  12.  
  13.     <!-- Bootstrap core CSS -->
  14.     <link href="../bootstrap.min.css" rel="stylesheet">
  15.     <link href="../bootstrap-theme.min.css" rel="stylesheet">
  16.     <style>
  17.         HR {
  18.             page-break-before: always;
  19.             padding-bottom: 10px;
  20.         }
  21.     </style>
  22.     <!-- Bootstrap theme -->
  23.     <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
  24.     <!--[if lt IE 9]>
  25.      <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
  26.      <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
  27.    <![endif]-->
  28.   </head>
  29.  
  30.   <body role="document">
  31.  
  32.     <!-- Fixed navbar -->
  33.     <div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
  34.       <div class="container">
  35.         <div class="navbar-header">
  36.           <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
  37.             <span class="sr-only">Toggle navigation</span>
  38.             <span class="icon-bar"></span>
  39.             <span class="icon-bar"></span>
  40.             <span class="icon-bar"></span>
  41.           </button>
  42.           <a class="navbar-brand" href="#">VZControlPanel</a>
  43.         </div>
  44.         <div class="navbar-collapse collapse">
  45.           <ul class="nav navbar-nav">
  46.             <li class="active"><a href="#">Admin</a></li>
  47.             <li><a href="login.php">Home</a></li>
  48.             <li><a href="#contact">Contact</a></li>
  49.             <li class="dropdown">
  50.               <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
  51.               <ul class="dropdown-menu">
  52.                 <li><a href="#">Action</a></li>
  53.                 <li><a href="#">Another action</a></li>
  54.                 <li><a href="#">Something else here</a></li>
  55.                 <li class="divider"></li>
  56.                 <li class="dropdown-header">Nav header</li>
  57.                 <li><a href="#">Separated link</a></li>
  58.                 <li><a href="#">One more separated link</a></li>
  59.               </ul>
  60.             </li>
  61.           </ul>
  62.         </div><!--/.nav-collapse -->
  63.       </div>
  64.     </div>
  65.  
  66.     <div class="container theme-showcase" role="main">
  67.  
  68.       <!-- Main jumbotron for a primary marketing message or call to action -->
  69.       <div class="jumbotron">
  70.         <h1>Admin Summary</h1>
  71.         <p>NODE STATUS: <?php echo nodeStatus(); ?> nodes online.</p>
  72.       </div>
  73.  
  74.     <?php
  75.       if($success===1) {
  76.       echo '<div class="alert alert-success">';
  77.        echo '<strong>SUCCESS:</strong> Action completed successfully!';
  78.        echo '<a class="close" data-dismiss="alert">×</a>';
  79.        echo '</div>';
  80.       } else if($success===0) {
  81.        echo '<div class="alert alert-error">';
  82.        echo "<strong>FAILED:</strong> Action didn't complete successfully!";
  83.        echo '<a class="close" data-dismiss="alert">×</a>';
  84.        echo '</div>';
  85.  
  86.       }
  87.     ?>
  88.     <hr>
  89.         <h2>Create VM</h2>
  90.         <form action="admin.php" method="get">
  91.             <input name="action" value="create" type="hidden">
  92.             VMID: <input name="id" type="text"><br>
  93.             IP: <input name="ip" type="text"><br>
  94.             OS Template: <input name="os" type="text"><br>
  95.             NodeID: <input name="nid" type="text"><br>
  96.             Assign To: <input name="user" type="text"><br>
  97.             <input name="submit" value="Create VM" type="submit">
  98.         </form>
  99.     <hr>
  100.         <h2>Destroy VM</h2>
  101.         <form action="admin.php" method="get">
  102.             <input name="action" value="destroy" type="hidden">
  103.             VMID: <input name="id" type="text"><br>
  104.             NodeID: <input name="nid" type="number" maxlength="3"><br>
  105.             <input name="submit" type="submit" value="Destroy VM">
  106.         </form>
  107.     </div> <!-- /container -->
  108.     <!-- Bootstrap core JavaScript
  109.    ================================================== -->
  110.     <!-- Placed at the end of the document so the pages load faster -->
  111.     <script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
  112.     <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
  113.   </body>
  114. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement