/lenasys/trunk

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

« back to all changes in this revision

Viewing changes to CodeViewer/codeviewer.php

  • Committer: galaxyAbstractor
  • Date: 2013-04-11 13:59:06 UTC
  • mto: (23.2.1 lenasys)
  • mto: This revision was merged to the branch mainline in revision 24.
  • Revision ID: galaxyabstractor@gmail.com-20130411135906-tohvazsxmw77otid
Removed codeigniter user guide, shouldn't be in the repo
Added and implemented CKEditor Wysiwyg editor for editing of pages
Made already uploaded code files visible as you edit a page
Implemented Adams dropdown menu in codeviewer

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<!DOCTYPE html>
2
2
<html>
3
3
        <head>
4
 
                <link rel="stylesheet" type="text/css" href="showcode.css">
5
 
                <script type="text/javascript" src="showcode.js"></script>
 
4
                <link rel="stylesheet" type="text/css" href="codeviewer.css">
 
5
                <script type="text/javascript" src="codeviewer.js"></script>
6
6
        </head>
7
 
        <body>
8
 
<?php
9
 
        include("showcode.php");
10
 
        
11
 
        menulayout("innan.php","efter.php","test2.txt","Example 1: Execution of AJAX API","test.txt", "test2.txt");
12
 
        
13
 
        $interestingrows = array(
14
 
                array(1,5,"Ajax function"),
15
 
                array(7,8,"Ajax return function")
16
 
        );
17
 
 
18
 
        $keywords = array(
19
 
                "showCustomer",
20
 
                "ResultCustomer"
21
 
        );
22
 
 
23
 
        $highlight = array(
24
 
                array("{", "highlightnormal"),
25
 
                array("}", "highlightnormal"),
26
 
                array("function", "highlightspecial")
27
 
        );
28
 
 
29
 
        showfile($interestingrows,$keywords,$highlight, "test.txt");
30
 
        menulayoutend();
31
 
?>
32
 
</body>
 
7
        <?php
 
8
                include("codeviewerfunctions.php");
 
9
                
 
10
                menulayout("innan.php", "efter.php", "example_code.txt", "Example 1: Execution of AJAX API", "example_code.txt", "example_code_description.txt");
 
11
                
 
12
                $interestingRows = array(array(6, 9, "Interesting row array"), array(11,14,"Keywords"));
 
13
        
 
14
                $keywords = array("showCustomer", "ResultCustomer");
 
15
        
 
16
                $highlight = array(array("array", "highlightnormal"), array("showfile", "highlightspecial"));
 
17
        
 
18
                showfile($interestingRows, $keywords, $highlight, "example_code.txt");
 
19
                menulayoutEnd();
 
20
        ?>
33
21
</html>