summaryrefslogtreecommitdiff
path: root/linkshorter/view/templ-index.php
blob: fe1bd858ba4081c1be689876f9323d8c68bbca6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?php
	$title= "Link Shorter";
	require 'view/templ-head.php';

	if ( $_scheme . $_SERVER["HTTP_HOST"] != __domain_ )
		redirect(__domain_ . "/linkshorter/");
?>
	<div class="container"> 
		<div class="text-center">
			<div class="row center-block vertical-center">
				<form class="form-horizontal " method="POST" action="">
					<fieldset>

					<legend class="text-centered"><h1>Amazing Linkshorter</h1><p>Short your link and use a easy to remembery query string.</p></legend>

					<div class="form-group">
					  <label class="col-md-4 control-label" for="url">Link*</label>  
					  <div class="col-md-5">
					  <input id="url" name="url" placeholder="Enter a URL to shorten..." class="form-control input-md" required="" type="text">
					  </div>
					</div>

					<div class="form-group">
					  <label class="col-md-4 control-label grey" for="short">Query String</label>  
					  <div class="col-md-4">
					  <input id="short" name="short" placeholder="Your own query string here." class="form-control input-md" type="text">
					  </div>
					</div>

					<!-- Password input-->
					<div class="form-group">
					  <label class="col-md-4 control-label grey" for="password">Password</label>
					  <div class="col-md-4">
					    <input id="password" name="password" placeholder="Protect your link with a password." class="form-control input-md" type="password">
					  </div>
					</div>

					<div class="form-group">
					  <label class="col-md-4 control-label grey" for="ttl">Expires</label>  
					  <div class="col-md-3">
					  <input id="ttl" name="ttl" class="form-control input-md" type="number" min="0" value="0">
					  <span class="help-block text-left">How long until the link expires (in seconds, zero means never).</span>
					  </div>
					</div>

					<div class="form-group">
						<h4 class="">Fields marked with a <strong>*</strong> are required.</h4>
					</div>


					<div class="form-group">
					  <label class="col-md-4 control-label" for="singlebutton"></label>
					  <div class="col-md-4">
					    <button id="singlebutton" name="singlebutton" class="btn btn-primary" type="submit">Short!</button>
					  </div>
					</div>

					</fieldset>
				</form>
			</div>
		</div>
	</div>
	<?php require("../tools/footer.php"); ?>