This repository has been archived by the owner on Jan 25, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
iframe_code.php
64 lines (60 loc) · 2.05 KB
/
iframe_code.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
use \Sizzle\Bacon\Database\{
Organization,
User
};
date_default_timezone_set('America/Chicago');
if (!logged_in()) {
login_then_redirect_back_here();
}
$user = new User($_SESSION['user_id'] ?? '');
if (isset($user->organization_id) && 0 < (int) $user->organization_id) {
$organization = new Organization($user->organization_id);
}
define('TITLE', 'S!zzle - Get iframe Code');
require __DIR__.'/header.php';
?>
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/s/dt/jszip-2.5.0,pdfmake-0.1.18,dt-1.10.10,b-1.1.0,b-flash-1.1.0,b-html5-1.1.0,b-print-1.1.0/datatables.min.css"/>
<link rel="stylesheet" type="text/css" href="/css/datatables.min.css"/>
</head>
<body id="token-listing">
<div>
<?php require __DIR__.'/navbar.php';?>
</div>
<div class="row" id="datatable-div">
<div class="col-sm-offset-2 col-sm-8">
<?php if (isset($organization->long_id)) { ?>
<h2>Embeddable Job Listing Code</h2>
<p style="text-align:left">
Place the iframe code below into the HTML on your website to display
the job listings available for your organization.
</p>
<div style="text-align:left; margin-top:30px;">
<pre>
<iframe
src="<?=APP_URL.'job_listing?id='.$organization->long_id?>"
height="400"
width="100%"
frameborder="0">
</iframe></pre>
</div>
<?php } else { ?>
Please contact <a href="mailto:[email protected]?subject=iframe">Robbie Zettler</a>
to have this feature set up for you.
<?php }?>
</div>
</div>
<?php require __DIR__.'/footer.php';?>
<script type="text/javascript" src="https://cdn.datatables.net/s/dt/jszip-2.5.0,pdfmake-0.1.18,dt-1.10.10,b-1.1.0,b-flash-1.1.0,b-html5-1.1.0,b-print-1.1.0/datatables.min.js"></script>
<script>
$(document).ready(function() {
var table = $('#responsive-table').DataTable({
dom: 'B<"clear">lfrtip',
buttons: [
'copy', 'csv', 'excel', 'pdf','print'
]
});
});
</script>
</body>
</html>