Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <p>Folgend findest du die Liste aller Termine, die für diese Route hinterlegt sind.</p>
- <?php if (!empty($dates)):?>
- <script>
- jQuery(function() {
- jQuery(".witchroute_delete_btn").click(function(){
- var id = jQuery(this).attr('date-id');
- var deleteData = { id: id,
- action: "remove_date_from_route",
- security: '<?php print wp_create_nonce("adsfadsfasdfadsfd"); ?>'
- };
- var r2 = jQuery.ajax({
- url: ajaxurl,
- type: "POST",
- data: deleteData,
- dataType: "html"
- });
- r2.done(function(msg) {
- //jQuery("#witchroute_date_display_body").html(msg);
- alert(msg);
- });
- });
- });
- </script>
- <table id="witchroute_date_display" cellspacing="5" cellpadding="5" border="0" style="width:97%; text-align:left;">
- <thead>
- <tr id="witchroute_date_display_heading">
- <th>Start</th>
- <th>Ende</th>
- <th>Preis</th>
- <th>Plätze frei</th>
- <th>Plätze Verfügbar</th>
- <th>Actions</th>
- </tr>
- </thead>
- <tbody id="witchroute_date_display_body">
- <?php include('date-display-table.html'); ?>
- </tbody>
- </table>
- <?php else:?>
- <p>
- <strong>Zur Zeit sind keine Termine festgelegt!</strong>
- </p>
- <?php endif;?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement