Advertisement
Guest User

opties.php

a guest
Nov 19th, 2012
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.63 KB | None | 0 0
  1. <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/themes/redmond/jquery-ui.css" />
  2. <div class="wrap">
  3.     <div id="icon-options-general" class="icon32">
  4.     <br />
  5.     </div>
  6. <h2>Afwezigheid Instellen</h2>
  7.  
  8.  
  9. <?php  
  10.     if($_POST['hidden-check']=='Y') {
  11.     //Form data sent  
  12.     echo '<div class="updated"><p><strong>Instelling opgeslagen</strong></p></div>';
  13.     //echo saved message
  14.     }
  15.    
  16.     else {  
  17.         //Normal page display  
  18.     }  
  19. ?>
  20.  
  21. <form name="afwezigzijn" action="afwezigheid-include.php" method="post">
  22.     <input type="hidden" name="hidden-check" value="Y">
  23.     <input type="radio" id="geenafwezig" name="groep" value="geen-afwezigheid" /> Geen Afwezigheid<br />
  24.     <input type="radio" id="welaanwezig" name="groep" value="data-selecteren"> Data selecteren:<br />
  25.    
  26.     <div id="data">
  27.         <p>Van: <input type="text" class="datepicker" name="datevan" /></p>
  28.         <p>Tot: <input type="text" class="datepicker" name="datetot" /></p>
  29.     </div>
  30.    
  31.     <p class="submit">
  32.     <input type="submit" name="Submit" value="Submit" />
  33.     </p>
  34. </form>
  35.  
  36.     <script src="http://code.jquery.com/jquery-1.8.2.js"></script>
  37.     <script src="http://code.jquery.com/ui/1.9.1/jquery-ui.js"></script>
  38.     <script>
  39.    
  40.     $(function () {
  41.         $('#data').hide();
  42.     });
  43.    
  44.     $(function () {
  45.         $('#geenafwezig').click(function () {                          
  46.             $('#data').hide('fast');
  47.          });
  48.                
  49.     $('#welaanwezig').click(function () {
  50.             $('#data').show('fast');
  51.         });
  52.         });
  53.  
  54.     $(function() {
  55.         $( ".datepicker" ).datepicker();
  56.     });
  57.     </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement