More work on web setup form
This commit is contained in:
parent
63e51f7c7c
commit
6838694a8b
2 changed files with 32 additions and 160 deletions
|
@ -1,30 +1,49 @@
|
|||
<?php
|
||||
|
||||
foreach($_POST as $e) {
|
||||
echo $e;
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<html style="background-color:#111141;">
|
||||
<head>
|
||||
<link rel="stylesheet" type="text/css" href="css/bootstrap-3.3.1.min.css">
|
||||
<script type="text/javascript" src="js/libs/jquery-1.8.3.min.js"></script>
|
||||
</head>
|
||||
<body style="background-color:#111141;color:white;padding: 2em 0; min-width: 400px; width: 30%; text-align: center; margin: 3em auto;">
|
||||
<body style="background-color: #111141; color: white; padding: 2em 0; min-width: 400px; width: 30%; text-align: center; margin: 3em auto;">
|
||||
<img src="css/images/airtime_logo_jp.png" style="margin-bottom: .5em;" /><br/>
|
||||
<form role="form" style="margin-top: 2em;">
|
||||
<h2>Database Settings</h2>
|
||||
<div class="form-group col-xs-6">
|
||||
<form action="#" role="form" style="width: 50%; margin: auto;" id="dbSettingsForm">
|
||||
<h3 style="margin: 1em 0;">Database Settings</h3>
|
||||
<div class="form-group">
|
||||
<label class="sr-only" for="dbUser">Database Username</label>
|
||||
<input class="form-control" type="text" id="dbUser" placeholder="Username"/>
|
||||
<input required class="form-control" type="text" id="dbUser" placeholder="Username"/>
|
||||
</div>
|
||||
<div class="form-group col-xs-6">
|
||||
<div class="form-group">
|
||||
<label class="sr-only" for="dbPass">Database Password</label>
|
||||
<input class="form-control" type="password" id="dbPass" placeholder="Password"/>
|
||||
<input required class="form-control" type="password" id="dbPass" placeholder="Password"/>
|
||||
</div>
|
||||
<div class="form-group col-xs-6">
|
||||
<div class="form-group">
|
||||
<label class="sr-only" for="dbName">Database Name</label>
|
||||
<input class="form-control" type="text" id="dbName" placeholder="Name"/>
|
||||
<input required class="form-control" type="text" id="dbName" placeholder="Name"/>
|
||||
</div>
|
||||
<div class="form-group col-xs-6">
|
||||
<div class="form-group">
|
||||
<label class="sr-only" for="dbHost">Database Host</label>
|
||||
<input class="form-control" type="text" id="dbHost" placeholder="Host" value="localhost"/>
|
||||
<input required class="form-control" type="text" id="dbHost" placeholder="Host" value="localhost"/>
|
||||
</div>
|
||||
<input type="submit" class="btn btn-default"/>
|
||||
</form>
|
||||
<div class="form-group">
|
||||
<input type="submit" class="btn btn-default"/>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<script>
|
||||
$("#dbSettingsForm").submit(function(e) {
|
||||
e.preventDefault();
|
||||
|
||||
$.post('#', $('form').serialize(), function(data) {
|
||||
console.log(data);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue