Advertisement
Guest User

Untitled

a guest
Nov 27th, 2014
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.37 KB | None | 0 0
  1. <div class="modal fade" id="student_information_modal">
  2. <div class="modal-dialog">
  3. <div class="modal-content">
  4. <div class="modal-header">
  5. <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
  6. <h4 class="modal-title" id="myModalLabel">Modal header 1</h4></div>
  7. <div class="modal-body text-center"></div>
  8. <!-- <input type="text" id="std_grno" value=""/> -->
  9. <div class="inner-spacer" role="content">
  10.  
  11. <!--Profile-->
  12. <div class="user-profile">
  13. <div class="user-profile-info">
  14. <div class="tabs-white">
  15. <ul id="myTab" class="nav nav-tabs nav-justified">
  16. <li class="active"><a href="#home" data-toggle="tab">About</a></li>
  17. <li class=""><a href="#followers" data-toggle="tab">Siblings</a></li>
  18. <!-- <li class=""><a href="#activity" data-toggle="tab">Attendance</a></li>
  19. <li class=""><a href="#blog" data-toggle="tab"></a></li>
  20. <li class=""><a href="#chat" data-toggle="tab"></a></li> -->
  21. </ul>
  22. <div id="myTabContent" class="tab-content">
  23. <div class="tab-pane active" id="home">
  24. <div class="profile-header"></div>
  25. <p><center>
  26. <img id="std_father_img" class="img-circle" src="" alt="User Picture">
  27. <img id="student_img" class="img-circle" src="http://placehold.it/150x150" alt="User Picture">
  28. <img id="std_mother_img" class="img-circle" src="http://placehold.it/150x150" alt="User Picture">
  29. </center>
  30. </p>
  31. <table class="table">
  32. <tbody><tr>
  33. <td><strong></strong></td>
  34. <td></td>
  35. <td><strong></strong></td>
  36. <td></td>
  37. </tr>
  38. <tr>
  39. <td><strong></strong></td>
  40. <td></td>
  41. <td><strong></strong></td>
  42. <td></td>
  43. </tr>
  44. <tr>
  45. <td><strong></strong></td>
  46. <td></td>
  47. <td><strong></strong></td>
  48. <td></td>
  49. </tr>
  50. <tr>
  51. <td><strong></strong></td>
  52. <td></td>
  53. <td><strong></strong></td>
  54. <td></td>
  55. </tr>
  56. <tr>
  57. <td><strong></strong></td>
  58. <td></td>
  59. <td><strong></strong></td>
  60. <td></td>
  61. </tr>
  62. </tbody></table>
  63. </div> etc. etc.
  64.  
  65. $(document).on("click", ".show_student_information", function (e) {
  66.  
  67. e.preventDefault();
  68.  
  69. var _self = $(this);
  70.  
  71. var GR_No = _self.data('id');
  72. var Father_img = '<?php echo base_url() . $this->data['stdf_150_photo_path'];?>'+GR_No+'<?php echo "." . $this->data['photo_file'];?>';
  73. var Student_img = '<?php echo base_url() . $this->data['student_150_photo_path'];?>'+GR_No+'<?php echo "." . $this->data['photo_file'];?>';
  74. var Mother_img = '<?php echo base_url() . $this->data['stdm_150_photo_path'];?>'+GR_No+'<?php echo "." . $this->data['photo_file'];?>';
  75.  
  76.  
  77. $("#std_grno").val(GR_No);
  78. $("#myModalLabel").text("Official Name");
  79. $("#profile-header").text("Official Name");
  80. $("#abridged_name").text(GR_No);
  81. $("#std_father_img").attr('src', Father_img);
  82. $("#student_img").attr('src', Student_img);
  83. $("#std_mother_img").attr('src', Mother_img);
  84.  
  85. $.post('face_view/?grno='+GR_No, function(data) {
  86. $('#abridged_name').text(data);
  87. });
  88.  
  89.  
  90. $("#student_information_modal").modal('show');
  91. });
  92.  
  93. echo $this_grno['grno'];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement