/lenasys/0.1

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/lenasys/0.1

« back to all changes in this revision

Viewing changes to trunk/DuggaSys/quizSystem/pageframe.html.php

  • Committer: Henrik G.
  • Date: 2013-03-26 23:22:55 UTC
  • Revision ID: henrik.gustavsson@his.se-20130326232255-ik6snyatlbkf3zs1
First seed of Lenasys ... Needs to be Organized Further

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<html>
 
2
        <head>
 
3
                <meta charset="utf-8" />
 
4
                <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 
5
                <link href="css/base.css" rel="stylesheet" type="text/css" />
 
6
                <link href="css/app.css" rel="stylesheet" type="text/css" />
 
7
                <script type="text/javascript" src="js/jquery-1.8.0.min.js"></script>
 
8
                <title><?php $pagetitle ?></title>
 
9
                <script type="text/javascript">
 
10
                        $(document).ready(function() {
 
11
                                /* $('form').find(':input[type=submit]').focus(function() {
 
12
                                        target = this;
 
13
                                        alert("1:"+target);
 
14
                                });*/
 
15
                                $('form').submit(function() { 
 
16
                                        //alert("2:"+target);
 
17
                                        //alert("form submitted "+$(document).scrollTop()+" "+$(this).find("#scrolly").val());
 
18
                                        $(this).find("#scrolly").val($(document).scrollTop());
 
19
                                        //var val = $("input[type=submit][clicked=true]").val()
 
20
                                });
 
21
                                $('.confirm').click(function(){
 
22
                                        var answer = confirm('Are you sure?');
 
23
                                        return answer // answer is a boolean
 
24
                                });  
 
25
                                <?php 
 
26
                                if(isset($_POST['scrolly'])){ 
 
27
                                        echo '$(document).scrollTop('.$_POST['scrolly'].');';
 
28
                                        //echo 'alert("setting scrolly");';
 
29
                                }       
 
30
                                ?>
 
31
                        });
 
32
                        
 
33
                
 
34
                </script>
 
35
        </head>
 
36
        <body>
 
37
        <div id="wrapper">
 
38
 
 
39
            <div id="menu">
 
40
                <?php include "menu.php"; ?>
 
41
                                
 
42
            </div>
 
43
                        <?php
 
44
                        echo '<div id="messages"';
 
45
                        
 
46
                if (isset($errorMsg) && $errorMsg != "") {
 
47
                   echo " class='errorMsg'>".$errorMsg." ";
 
48
                } else if (isset($userMsg) && $userMsg != "") {
 
49
                   echo " class='userMsg'>".$userMsg." ";
 
50
                } else {
 
51
                                        echo "class='hiddenMsg'>";
 
52
                                }
 
53
                        
 
54
                        echo '</div>';
 
55
            ?>
 
56
                        <div id="content">
 
57
               
 
58
                
 
59
                <?php
 
60
                // DEBUG //////
 
61
                                /*echo "<pre>";
 
62
                print_r($_POST);
 
63
                                //print_r($_SESSION);
 
64
                echo "</pre>";*/
 
65
                                ///////////////
 
66
                ?>
 
67
                <?php include $content; ?>
 
68
            </div>
 
69
            <div id="footer">
 
70
                <p>Page footer</p>
 
71
                                 <?php
 
72
                // DEBUG //////
 
73
                                echo "<pre>";
 
74
                print_r($_POST);
 
75
                                //print_r($_SESSION);
 
76
                echo "</pre>";
 
77
                                ///////////////
 
78
                ?>
 
79
            </div>
 
80
        </div>  
 
81
    </body>
 
82
</html>