|
<?php |
|
|
|
/* |
|
* Load WordPress Environment |
|
*/ |
|
define('WP_PATH', '../'); |
|
define('WP_USE_THEMES', false); |
|
require(WP_PATH . 'wp-load.php'); |
|
/** |
|
* Load Formidable Forms plugin functions |
|
* Display Form: index.php?frm_action=add&form_id=7 |
|
* Display Form Entries: index.php?frm_action=list&form_id=7 |
|
* Display Form Entries with Search Filter: index.php?frm_action=list&form_id=7&search=JIO 20-01 |
|
* Display Single Entry: index.php?frm_action=view&entry_id=35 |
|
* Edit an Existing Entry: index.php?frm_action=edit&form_id=7&entry=23 |
|
*/ |
|
require_once("formidable_functions.php"); |
|
$response = route_formidable_requests(); |
|
?> |
|
<!DOCTYPE html> |
|
<html> |
|
<head> |
|
<meta charset="utf-8"> |
|
<meta http-equiv="X-UA-Compatible" content="IE=edge"> |
|
<meta name="viewport" content="width=device-width, initial-scale=1"> |
|
<title>Formidable Records</title> |
|
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700|Quicksand:300,400,500,700" rel="stylesheet"> |
|
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"> |
|
</head> |
|
|
|
<body> |
|
<section> |
|
<p><?php echo $response['table'];?></p> |
|
</section> |
|
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Raleway" /> |
|
<link href="https://fonts.googleapis.com/css?family=Arvo" rel="stylesheet"> |
|
<link rel="stylesheet" type="text/css" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" /> |
|
<link rel="stylesheet" href="styles.css"> <!-- --> |
|
<link rel="stylesheet" type="text/css" href="//cdn.datatables.net/1.10.22/css/jquery.dataTables.min.css" /> |
|
<link rel="stylesheet" type="text/css" href="//cdn.datatables.net/responsive/2.2.6/css/responsive.dataTables.min.css" /> |
|
<link rel="stylesheet" type="text/css" href="https://learn.norma.cloud/wp-content/plugins/formidable/css/formidableforms.css?ver=12181836" /> |
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> |
|
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script> |
|
<script src="//cdn.datatables.net/1.10.22/js/jquery.dataTables.min.js"></script> |
|
<script src="//cdn.datatables.net/responsive/2.2.6/js/dataTables.responsive.min.js"></script> |
|
<script> |
|
function $_GET(param){ |
|
const queryString = window.location.search; //console.log(queryString); |
|
const urlParams = new URLSearchParams(queryString); |
|
return urlParams.get(param); |
|
} |
|
$(document).ready( function () { |
|
$('table.form_results').addClass( "responsive" ); //Make table responsive |
|
var table = $('table.form_results').DataTable({ |
|
responsive: true |
|
}); |
|
if($_GET("search")) table.search( $_GET("search") ).draw(); |
|
}); |
|
</script> |
|
</body> |
|
</html> |