Advertisement
Guest User

Untitled

a guest
Mar 10th, 2014
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.19 KB | None | 0 0
  1. <a href="#popupMessage" data-rel="popup" data-position-to="window" data-role="button" data-mini="true" data-inline="true" data-icon="grid" data-theme="a" data-transition="pop">Send Message</a>
  2. <div data-role="popup" id="popupMessage" data-overlay-theme="a" data-theme="a" class="ui-corner-all">
  3.     <form id="messageform">
  4.     <div style="padding:10px 20px;">
  5.     <h3>Please Select Class<br /></h3>
  6.     <span id="messageerror" class="invalid"></span>
  7.     <label for="selectclass" class="select">Select Class:</label>
  8.     <select name="selectclass" id="selectclass" data-native-menu="false" onchange="showUser(this.value)">
  9.         <option value='default'>Select Class:</option>
  10.         <?php
  11.         $query = "SELECT * FROM enrollment WHERE s_id = $s_id";
  12.         $data = mysqli_query($dbc, $query);
  13.         while($row = mysqli_fetch_assoc($data)) {
  14.             $c_id = $row['c_id'];
  15.             echo "<option value='$c_id'>$c_id</option>";
  16.         }
  17.         ?>
  18.     </select>
  19.                    
  20.     <div id="usersField"></div>
  21.                                                    
  22.     <button type="button" data-theme="b" data-icon="check" data-inline="true">Send Message</button>
  23.     <button type="reset" data-theme="f" data-icon="delete" data-inline="true">Reset</button>
  24.     </div>
  25.     </form>
  26. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement