Guest User

Untitled

a guest
Jul 21st, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.84 KB | None | 0 0
  1. <script type="text/javascript">
  2. var baseUrl = "<?php echo $this->baseUrl(); ?>";
  3. $(document).ready(function(){
  4. $('.jbutton').button();
  5. });
  6. $(document).ready(function() {
  7. $('#example').dataTable();
  8. } );
  9. </script>
  10. <span id="edit-doctor" class="jbutton floatright marr5">
  11. <a href="<?php
  12. echo $this->url(
  13. array(
  14. 'controller' => 'patients',
  15. 'action' => 'edit',
  16. 'id' => $this->patientId
  17. ), 'default', true
  18. );
  19. ?>">Edit Patient</a>
  20. </span>
  21. <div class="clear"></div>
  22. <?php $user = $this->user; ?>
  23. <h1 class="title"><?php echo $user['name']; ?></h1>
  24. <div class="underling-green"></div>
  25. <div class="profile">
  26. <div class="p-image">
  27. <img src="<?php echo $this->baseUrl() . '/images/users/' . $user['image']; ?>"/>
  28. </div>
  29. <div class="category mart50">
  30. <div class="sub-title">Personal Details</div>
  31. <table>
  32. <tbody>
  33. <tr>
  34. <td class="p-title">Email</td>
  35. <td class="p-body">
  36. <span class="p-seperate">:</span>
  37. <?php echo $user['email']; ?>
  38. </td>
  39. </tr>
  40. <tr>
  41. <td class="p-title">Birth Day</td>
  42. <td class="p-body">
  43. <span class="p-seperate">:</span>
  44. <?php echo $user['bday']; ?>
  45. </td>
  46. </tr>
  47. <tr>
  48. <td class="p-title">Telephone</td>
  49. <td class="p-body">
  50. <span class="p-seperate">:</span>
  51. <?php echo $user['telno']; ?>
  52. </td>
  53. </tr>
  54. <tr>
  55. <td class="p-title">Address</td>
  56. <td class="p-body">
  57. <span class="p-seperate">:</span>
  58. <?php echo $user['address']; ?>
  59. </td>
  60. </tr>
  61. </tbody>
  62. </table>
  63. <table id="example">
  64. <thead>
  65. <tr>
  66. <th>Column 1</th>
  67. <th>Column 2</th>
  68. <th>etc</th>
  69. </tr>
  70. </thead>
  71. <tbody>
  72. <tr>
  73. <td>Row 1 Data 1</td>
  74. <td>Row 1 Data 2</td>
  75. <td>etc</td>
  76. </tr>
  77. <tr>
  78. <td>Row 2 Data 1</td>
  79. <td>Row 2 Data 2</td>
  80. <td>etc</td>
  81. </tr>
  82. </tbody>
  83. </table>
  84. </div>
  85. </div>
  86. <div class="clear"></div>
  87.  
  88. $this->headScript()->prependFile($this->baseUrl('/js/jquery-version.js'));
  89. $this->headScript()->appendFile($this->baseUrl('/js/datatableLib.js'));
  90.  
  91. echo $this->headScript();
Add Comment
Please, Sign In to add comment