c3lf-system-3/templates/request.php

86 lines
2.8 KiB
PHP
Raw Normal View History

2018-12-28 19:05:34 +00:00
<?php
/**
* Created by PhpStorm.
* User: jedi
* Date: 12/27/18
* Time: 4:46 AM
*/
?>
<div class="container-fluid">
<!-- Breadcrumbs-->
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a href="#">Dashboard</a>
</li>
2018-12-29 19:17:54 +00:00
<li class="breadcrumb-item active">Feature Request</li>
2018-12-28 19:05:34 +00:00
</ol>
2018-12-29 19:17:54 +00:00
<div class="alert alert-danger" role="alert">
This is a danger alert—check it out!
</div>
2018-12-28 19:05:34 +00:00
<!-- Area Chart Example-->
<div class="card mb-3">
<div class="card-header">
<i class="fas fa-plus"></i>
2018-12-29 19:17:54 +00:00
Add Feature Request
2018-12-28 19:05:34 +00:00
</div>
<div class="card-body">
<form id="lost_form" method="POST" action="action.php?action=lost">
2018-12-29 19:17:54 +00:00
<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>
2018-12-28 19:05:34 +00:00
</form>
</div>
2018-12-29 19:17:54 +00:00
<!--div class="card-footer small text-muted">Updated yesterday at 11:59 PM</div-->
2018-12-28 19:05:34 +00:00
</div>
</div>
<!-- /.container-fluid -->
<script>
function testajax(){
$.post( "ajax.php?action=add_lost", $( "#lost_form" ).serialize() ).done(function( data ) {
alert( "Data Loaded: " + data );
2018-12-29 19:17:54 +00:00
}).fail(function() {
alert( "error" );
}).always(function() {
alert( "finished" );
});;
2018-12-28 19:05:34 +00:00
/*$.post( "ajax.php", { name: "John", time: "2pm" } ).done(function( data ) {
alert( "Data Loaded: " + data );
});*/
}
</script>
<!-- Bootstrap core JavaScript-->
2018-12-30 05:38:05 +00:00
<script src="/vendor/jquery/jquery.min.js"></script>
<script src="/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
2018-12-28 19:05:34 +00:00
<!-- Core plugin JavaScript-->
2018-12-30 05:38:05 +00:00
<script src="/vendor/jquery-easing/jquery.easing.min.js"></script>
2018-12-28 19:05:34 +00:00
<!-- Page level plugin JavaScript-->
2018-12-30 05:38:05 +00:00
<script src="/vendor/chart.js/Chart.min.js"></script>
2018-12-28 19:05:34 +00:00
<!-- Custom scripts for all pages-->
2018-12-30 05:38:05 +00:00
<script src="/js/sb-admin.min.js"></script>
2018-12-28 19:05:34 +00:00
<!-- Demo scripts for this page-->
2018-12-30 05:38:05 +00:00
<script src="/js/demo/chart-area-demo.js"></script>
<script src="/js/demo/chart-bar-demo.js"></script>
<script src="/js/demo/chart-pie-demo.js"></script>