YaWK  24.1
Yet another WebKit
tourdates.php
Go to the documentation of this file.
1 <?php
2 // check if language is set
3 if (!isset($language) || (!isset($lang)))
4 { // inject (add) language tags to core $lang array
5  $lang = \YAWK\language::inject(@$lang, "../system/plugins/tourdates/language/");
6 }
7 /* draw Title on top */
8 \YAWK\backend::getTitle($lang['TOUR_DATES'], $lang['TOUR_DATES_SUBTEXT']);
9 if (isset($_GET['addpage']))
10 { // add HTML page for that plugin
11  if ($_GET['addpage']==='1'){
12  if (\YAWK\plugin::createPluginPage($db, "tourdates", "tourdates") === true)
13  {
14  \YAWK\alert::draw("success", "Success!", "Pluginpage created successfully!", "", 5000);
15  }
16  else
17  {
18  \YAWK\alert::draw("danger", "ERROR!", "Could not create plugin page!", "", 5000);
19  }
20  }
21 }
22 ?>
23 <script type="text/javascript">
24  $(document).ready(function () {
25  $('#table-sort').dataTable({
26  "bPaginate": false,
27  "bLengthChange": false,
28  "bFilter": true,
29  "bSort": true,
30  "bInfo": true,
31  "bAutoWidth": false
32  });
33  });
34 </script>
35 <?php
36 // TEMPLATE WRAPPER - HEADER & breadcrumbs
37 echo "
38  <!-- Content Wrapper. Contains page content -->
39  <div class=\"content-wrapper\" id=\"content-FX\">
40  <!-- Content Header (Page header) -->
41  <section class=\"content-header\">";
42 /* draw Title on top */
43 echo \YAWK\backend::getTitle($lang['TOUR_DATES'], $lang['TOUR_DATES_SUBTEXT']);
44 echo"<ol class=\"breadcrumb\">
45  <li><a href=\"index.php\" title=\"$lang[DASHBOARD]\"><i class=\"fa fa-dashboard\"></i> $lang[DASHBOARD]</a></li>
46  <li><a href=\"index.php?page=plugins\" title=\"$lang[PLUGINS]\"> $lang[PLUGINS]</a></li>
47  <li class=\"active\"><a href=\"index.php?plugin=tourdates\" title=\"$lang[TOUR_DATES]\"> $lang[TOUR_DATES]</a></li>
48  </ol>
49  </section>
50  <!-- Main content -->
51  <section class=\"content\">";
52 /* page content start here */
53 ?>
54 <div class="box box-default">
55  <div class="box-body">
56 
57 <!-- btn -->
58 <a class="btn btn-default pull-right" href="index.php?plugin=tourdates&addpage=1">
59  <i class="glyphicon glyphicon-wrench"></i> &nbsp;<?php print $lang['PAGE_ADD_BTN']; ?></a>
60 <!-- btn -->
61 <a class="btn btn-success" href="index.php?plugin=tourdates&pluginpage=tourdates-new" style="float:right;">
62  <i class="glyphicon glyphicon-plus"></i> &nbsp;<?php print $lang['TOUR+']; ?></a>
63 
64 <table width="100%" cellpadding="4" cellspacing="0" border="0" class="table table-hover" id="table-sort">
65  <thead>
66  <tr>
67  <td width="6%"><strong>&nbsp;</strong></td>
68  <td width="10%"><strong><i class="fa fa-caret-down"></i> <?php print $lang['TOUR_DATE']; ?></strong></td>
69  <td width="36%" class="text-left"><strong><i class="fa fa-caret-down"></i> <?php print $lang['TOUR_BAND']; ?></strong></td>
70  <td width="5%" class="text-left"><strong><?php print $lang['TOUR_TIME']; ?></strong></td>
71  <td width="24%" class="text-left"><strong><?php print $lang['TOUR_VENUE']; ?></strong></td>
72  <td width="4%" class="text-center"><strong><?php print $lang['FACEBOOK']; ?></strong></td>
73  <td width="10%" class="text-center"><strong><?php print $lang['ACTIONS']; ?></strong></td>
74  </tr>
75  </thead>
76  <tbody>
77 
78  <?php
79  include '../system/plugins/tourdates/classes/tourdates.php';
80  $tourdates = new \YAWK\PLUGINS\TOURDATES\tourdates();
81  print $tourdates->getBackendTable($db, $lang);
82  ?>
83  </tbody>
84 </table>
85 
86  </div>
87 </div>
print $lang['PAGE_ADD_BTN']
Definition: tourdates.php:43
$tourdates
Definition: tourdates.php:80
static draw($type, $title, $text, $redirect, $delay)
Definition: alert.php:30
static getTitle($title, $subtext)
Header title on top of every page.
Definition: backend.php:79
static inject(array $lang, string $pathToFile)
allow plugins to inject language tags to $lang array
Definition: language.php:439
function a
Definition: browser.js:14
type
Definition: menu-new.php:35
This class serves methods to create backup from files.
Definition: AdminLTE.php:2
print $_GET['id']
Definition: page-edit.php:357
function i(e, t)
Definition: plyr.js:1
<!-- backend language -->< h3 >< i class="fa fa-language"></i > & nbsp
document ready(function() { $('a[data-confirm]').click(function(ev) { modal='#dataConfirmModal';var href=$(this).attr('href');var title=$(this).attr('title');var icon=$(this).attr('data-icon');if(!icon) { icon='fa fa-trash-o';} if(!$(modal).length) { $('body').append('< div id="dataConfirmModal" class="modal fade" role="dialog" aria-labelledby="dataConfirmLabel" aria-hidden="true">< div class="modal-dialog">< div class="modal-content">< div class="modal-header">< button type="button" class="close" data-dismiss="modal" aria-hidden="true">< i class="fa fa-times"></i ></button >< br >< div class="col-md-1">< h3 class="modal-title">< i class="'+icon+'"></i ></h3 ></div >< div class="col-md-11">< h3 class="modal-title" id="dataConfirmLabel">'+title+'</h3 ></div ></h3 ></div >< div class="modal-body"></div >< div class="modal-footer">< button type="button" class="btn btn-default" data-dismiss="modal" aria-hidden="true">Abbrechen</button >< a type="button" class="btn btn-danger" id="dataConfirmOK">< i class="'+icon+'"></i > L &ouml;schen</a ></div ></div ></div ></div >');} $(modal).find('.modal-body').text($(this).attr('data-confirm'));$('#dataConfirmOK').attr('href', href);$(modal).modal({show:true});return false;});$('#terminateUser').click(function() { var terminate=window.confirm("ACHTUNG!\nDas wird Deinen Account permanent deaktivieren.\n"+"Bist Du Dir sicher, dass Du das tun willst?");if(terminate===true) { var terminateUser=window.confirm("Bist Du Dir wirklich ganz sicher?\n"+"Diese Aktion kann nicht rueckgaengig gemacht werden.");if(terminateUser===true) { $.get('system/templates/YaWK-bootstrap3/js/terminate-user.php', function(data) { if(data==="true") { setTimeout("window.location='logout.html'", 0);} else { alert("Fehler: "+data);} });} } });function dismissNotifications() { $.ajax({ url:'js/dismiss-notifications.php', type:'POST', success:function(data) { if(!data) { alert('Something went wrong!');return false;} } });$("#bell-label").fadeOut();$('#notification-header').html('You have 0 notifications');$('#notification-menu').fadeOut();} $("#dismiss").click(function() { dismissNotifications();});function disableButtons(delay) { $('#loginButton').removeClass().addClass('btn btn-success disabled').attr('id', 'LOGIN_FORBIDDEN');$('#resetPasswordButton').removeClass().addClass('btn btn-danger disabled');setTimeout(function() { $('#LOGIN_FORBIDDEN').attr('id', 'loginButton').removeClass().addClass('btn btn-success');$('#resetPasswordButton').removeClass().addClass('btn btn-danger');}, delay);} $("#loginButton").click(function(){ if($('#loginButton').length > 0) { if($('#loginButton').hasClass('btn') &&$('#loginButton').hasClass('btn-success') &&$('#loginButton').hasClass('disabled')) { } else { $("#loginForm").submit();disableButtons(10000);} } else if($('#LOGIN_FORBIDDEN').length > 0) { if($('#LOGIN_FORBIDDEN').hasClass('btn') &&$('#LOGIN_FORBIDDEN').hasClass('btn-success') &&$('#LOGIN_FORBIDDEN').hasClass('disabled')) { } else { } } });$("#blockedBtn").hover(function() { $("#blockedBtn").hide();$("#askBtn").fadeIn(820);});})