diff options
| author | root | 2014-12-04 17:10:49 +0100 |
|---|---|---|
| committer | root | 2014-12-04 17:10:49 +0100 |
| commit | bf3847219714d71e59bfa04569089ab52f852960 (patch) | |
| tree | 1eaa8255ea1a522c16f7267cf3639bb1681279c9 /down/view/templ-noscript.php | |
| parent | bbe481a7fa159db107c7005f8b024bf4657c0bd6 (diff) | |
| download | tools.iamfabulous.de-bf3847219714d71e59bfa04569089ab52f852960.tar.gz | |
Finished tool for checking downtime
Diffstat (limited to 'down/view/templ-noscript.php')
| -rw-r--r-- | down/view/templ-noscript.php | 87 |
1 files changed, 87 insertions, 0 deletions
diff --git a/down/view/templ-noscript.php b/down/view/templ-noscript.php new file mode 100644 index 0000000..d15b665 --- /dev/null +++ b/down/view/templ-noscript.php @@ -0,0 +1,87 @@ +<!doctype html> +<html> +<head> + <meta charset="utf-8"> + <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"> + <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> + <style> + <?php echo file_get_contents("../tools/style.css"); ?> + </style> + <noscript><style>.navbar{margin-bottom:0;}</style></noscript> + <title>Is it down? | iamfabulous.de</title> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <link rel='shortcut icon' href='../tools/favicon.ico' type='image/x-icon'> +</head> +<body> + <?php require("../tools/navbar.php"); ?> +<div class="container"> + <div class="text-center"> + <div class="row"> + + + <h1>Uptime is the game</h1> + <h4>Is your favourite website down?</h4> + <hr> + + <?php + if($json["data"] == 1){ + ?> + <div class="alert alert-success" role="alert"> + <?php + } else { + ?> + <div class="alert alert-danger" role="alert"> + <?php + } + ?> + <h1><?php echo htmlentities($json["host"]); ?></h1> + <h4><?php echo htmlentities($json["status"]); ?></h4> + </div> + + <form id="theform" class="form-horizontal"> + <fieldset> + + <!-- Form Name --> + <legend> + <h1>Check another one</h1> + </legend> + + <!-- Text input--> + <div class="form-group"> + <label class="col-md-4 control-label" for="url">Check if up: </label> + <div class="col-md-4"> + <input id="url" name="url" placeholder="kernel.org" class="form-control input-md" required="" type="text" autofocus> + </div> + </div> + + <!-- Multiple Radios (inline) --> + <div class="form-group"> + <label class="col-md-4 control-label" for="action">Check Type:</label> + <div class="col-md-4 text-left"> + <label class="radio-inline" for="action-0"> + <input name="action" id="action-0" value="ping" checked="checked" type="radio"> + Ping + </label> + <label class="radio-inline" for="action-1"> + <input name="action" id="action-1" value="http" type="radio"> + HTTP + </label> + </div> + </div> + + <!-- Button --> + <div class="form-group"> + <label class="col-md-4 control-label" for="submit"></label> + <div class="col-md-4"> + <button type="submit" id="submit" name="" value="" class="btn btn-success">Check it</button> + </div> + </div> + + </fieldset> + </form> + + </div> + </div> +</div> + + <?php require("../tools/footer.php"); ?> |
