stash
This commit is contained in:
parent
943d209fd3
commit
acec8b1120
6 changed files with 75 additions and 23 deletions
|
@ -6,8 +6,6 @@
|
|||
* Time: 4:46 AM
|
||||
*/
|
||||
?>
|
||||
|
||||
|
||||
<div class="container-fluid">
|
||||
|
||||
<!-- Breadcrumbs-->
|
||||
|
@ -15,26 +13,35 @@
|
|||
<li class="breadcrumb-item">
|
||||
<a href="#">Dashboard</a>
|
||||
</li>
|
||||
<li class="breadcrumb-item">Lost</li>
|
||||
<li class="breadcrumb-item active">Add</li>
|
||||
<li class="breadcrumb-item active">Feature Request</li>
|
||||
</ol>
|
||||
|
||||
<div class="alert alert-danger" role="alert">
|
||||
This is a danger alert—check it out!
|
||||
</div>
|
||||
|
||||
<!-- Area Chart Example-->
|
||||
<div class="card mb-3">
|
||||
<div class="card-header">
|
||||
<i class="fas fa-plus"></i>
|
||||
Insert Item into DB
|
||||
Add Feature Request
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<form id="lost_form" method="POST" action="action.php?action=lost">
|
||||
<p><input type="text" class="form-control" placeholder="WANN" name="wann" value="<?php echo date("Y-m-d H:i:s");?>"></p>
|
||||
<p><input type="text" class="form-control" placeholder="WO" name="wo"></p>
|
||||
<p><input type="text" class="form-control" placeholder="WAS" name="was"></p>
|
||||
<p><input type="text" class="form-control" placeholder="KONTAKT" name="contact" autocomplete="off"></p>
|
||||
<p><button type="submit" class="form-control" onclick="testajax(); return false;">Submit</button></p>
|
||||
<div class="form-group">
|
||||
<label for="title_field">Title</label>
|
||||
<input type="text" class="form-control" placeholder="title" name="title" id="title_field">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="desc_field">Description</label>
|
||||
<textarea class="form-control" id="desc_field" name="desc" rows="5"></textarea>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<button type="submit" class="form-control btn btn-primary" placeholder="description" onclick="testajax(); return false;">Submit</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="card-footer small text-muted">Updated yesterday at 11:59 PM</div>
|
||||
<!--div class="card-footer small text-muted">Updated yesterday at 11:59 PM</div-->
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
@ -45,7 +52,11 @@
|
|||
function testajax(){
|
||||
$.post( "ajax.php?action=add_lost", $( "#lost_form" ).serialize() ).done(function( data ) {
|
||||
alert( "Data Loaded: " + data );
|
||||
});
|
||||
}).fail(function() {
|
||||
alert( "error" );
|
||||
}).always(function() {
|
||||
alert( "finished" );
|
||||
});;
|
||||
|
||||
/*$.post( "ajax.php", { name: "John", time: "2pm" } ).done(function( data ) {
|
||||
alert( "Data Loaded: " + data );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue