revert to old tinder

This commit is contained in:
/jedi/ 2018-12-28 20:05:34 +01:00
parent 9579bc1098
commit 4ce3ea8962
5 changed files with 174 additions and 24 deletions

7
ajax.php Normal file
View file

@ -0,0 +1,7 @@
<?php
/**
* Created by PhpStorm.
* User: jedi
* Date: 12/28/18
* Time: 6:13 PM
*/

84
templates/neo-tinder.php Normal file
View file

@ -0,0 +1,84 @@
<?php
/**
* Created by PhpStorm.
* User: jedi
* Date: 12/27/18
* Time: 1:49 PM
*/
?>
<div class="container-fluid">
<!-- Breadcrumbs-->
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a href="#">Dashboard</a>
</li>
<li class="breadcrumb-item">Matches</li>
<li class="breadcrumb-item active">Add</li>
</ol>
<!-- Area Chart Example-->
<div class="card mb-3">
<div class="card-header">
<i class="fas fa-plus"></i>
Insert Item into DB
</div>
<div class="card-body">
<form method="POST" action="action.php?action=tinder">
<p>
<select class="form-control" placeholder="FUND-ID" name="found" >
<?php
foreach (get_founditems(true) as $item)
{
?>
<option value="<?php echo $item["id"]; ?>"><?php echo $item["was"]; ?></option>
<?php
}
?>
</select>
</p>
<p>
<select class="form-control" placeholder="SUCH-ID" name="lost" >
<?php
foreach (get_lostitems(true) as $item)
{
?>
<option value="<?php echo $item["id"]; ?>"><?php echo $item["was"]; ?></option>
<?php
}
?>
</select>
</p>
<p><input type="submit" class="form-control"></p>
</form>
</div>
<div class="card-footer small text-muted">Updated yesterday at 11:59 PM</div>
</div>
</div>
<!-- /.container-fluid -->
<!-- /.content-wrapper -->
<!-- Bootstrap core JavaScript-->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- Core plugin JavaScript-->
<script src="vendor/jquery-easing/jquery.easing.min.js"></script>
<!-- Page level plugin JavaScript-->
<script src="vendor/chart.js/Chart.min.js"></script>
<!-- Custom scripts for all pages-->
<script src="js/sb-admin.min.js"></script>
<!-- Demo scripts for this page-->
<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>

75
templates/request.php Normal file
View file

@ -0,0 +1,75 @@
<?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>
<li class="breadcrumb-item">Lost</li>
<li class="breadcrumb-item active">Add</li>
</ol>
<!-- Area Chart Example-->
<div class="card mb-3">
<div class="card-header">
<i class="fas fa-plus"></i>
Insert Item into DB
</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>
</form>
</div>
<div class="card-footer small text-muted">Updated yesterday at 11:59 PM</div>
</div>
</div>
<!-- /.container-fluid -->
<script>
function testajax(){
$.post( "ajax.php?action=add_lost", $( "#lost_form" ).serialize() ).done(function( data ) {
alert( "Data Loaded: " + data );
});
/*$.post( "ajax.php", { name: "John", time: "2pm" } ).done(function( data ) {
alert( "Data Loaded: " + data );
});*/
}
</script>
<!-- Bootstrap core JavaScript-->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- Core plugin JavaScript-->
<script src="vendor/jquery-easing/jquery.easing.min.js"></script>
<!-- Page level plugin JavaScript-->
<script src="vendor/chart.js/Chart.min.js"></script>
<!-- Custom scripts for all pages-->
<script src="js/sb-admin.min.js"></script>
<!-- Demo scripts for this page-->
<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>

View file

@ -76,4 +76,10 @@
<i class="fas fa-fw fa-table"></i> <i class="fas fa-fw fa-table"></i>
<span>Tables</span></a> <span>Tables</span></a>
</li--> </li-->
<!--li class="nav-item">
<a class="nav-link" href="/?page=request">
<i class="fas fa-fw fa-comments"></i>
<span>Feature Requests</span>
</a>
</li-->
</ul> </ul>

View file

@ -27,30 +27,8 @@
</div> </div>
<div class="card-body"> <div class="card-body">
<form method="POST" action="action.php?action=tinder"> <form method="POST" action="action.php?action=tinder">
<p> <p><input type="text" class="form-control" placeholder="FUND-ID" name="found"></p>
<select class="form-control" placeholder="FUND-ID" name="found" > <p><input type="text" class="form-control" placeholder="SUCH-ID" name="lost"></p>
<?php
foreach (get_founditems(true) as $item)
{
?>
<option value="<?php echo $item["id"]; ?>"><?php echo $item["was"]; ?></option>
<?php
}
?>
</select>
</p>
<p>
<select class="form-control" placeholder="SUCH-ID" name="lost" >
<?php
foreach (get_lostitems(true) as $item)
{
?>
<option value="<?php echo $item["id"]; ?>"><?php echo $item["was"]; ?></option>
<?php
}
?>
</select>
</p>
<p><input type="submit" class="form-control"></p> <p><input type="submit" class="form-control"></p>
</form> </form>
</div> </div>