Guest User

Untitled

a guest
Aug 21st, 2013
1,366
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. <?php
  2. error_reporting(E_ALL);
  3. $username = "Swapnesh";
  4. $initial_result = 0;
  5. if(!$initial_result)
  6. $status = "fail";
  7. else
  8. $status = "pass";
  9. ?>
  10. <!DOCTYPE html>
  11. <html>
  12. <head>
  13. <title>This plays SCORM</title>
  14. <link rel="stylesheet" type="text/css" href="style.css" />
  15. <script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
  16. <script type="text/javascript">
  17. jQuery(document).ready(function(){
  18. jQuery("#click-button").on('click',function(){
  19. //alert('yup');
  20. var name = 'swapnesh';
  21. var url = "http://MYSITEURL.COM/system/player.php?name="+name;
  22. window.open( url,"_blank");
  23. });
  24. });
  25. </script>
  26. </head>
  27. <body>
  28. <div class="mydiv">
  29. Click to play a SCORM course. <button id="click-button">Click</button>
  30. </div>
  31. <div class="mydiv">
  32. This is a div to show user info.
  33. Name = <?php echo $username ?>
  34. </div>
  35. <div class="mydiv">
  36. This is a div to track user info.
  37. Current result = <span class="<?php echo $status; ?>"><?php echo ucwords($status) ?></span>
  38. </div>
  39. </body>
  40. </html>
Advertisement
Add Comment
Please, Sign In to add comment