/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 codeigniter/application/views/admin/manage_example.php

  • Committer: galaxyAbstractor
  • Date: 2013-04-10 15:49:32 UTC
  • mto: (19.1.5 lenasys)
  • mto: This revision was merged to the branch mainline in revision 23.
  • Revision ID: galaxyabstractor@gmail.com-20130410154932-4vizlzk0ar5gykvi
* Added an simple admin panel to the codeviewer-cmssy stuff
* Redesigned a bit like the mockups - still stuff to come
* Implemented the codeviewer + admin panel again using the Framework CodeIgniter instead 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE html>
 
2
<html>
 
3
<head>
 
4
        <title>Index</title>
 
5
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
 
6
        <link href="<?php echo base_url();?>css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
 
7
        <link href="<?php echo base_url();?>css/bootstrap-responsive.min.css" rel="stylesheet" type="text/css"/>
 
8
        <link href="<?php echo base_url();?>css/adminstyle.css" rel="stylesheet" type="text/css"/>
 
9
 
 
10
        <script src="<?php echo base_url();?>js/bootstrap.js" type="text/javascript"></script>
 
11
</head>
 
12
<body>
 
13
        <div  id="header">
 
14
                <div class="container">
 
15
                        <div class="row">
 
16
                                <div class="span12" id="nav">
 
17
                                        <div class="row">
 
18
                                                <div class="separator"></div>
 
19
                                                <div id="logo">*Lenasys logo*</div>
 
20
                                                
 
21
                                                <div class="separator"></div>
 
22
                                                
 
23
                                        </div>
 
24
                                </div>
 
25
                        </div>
 
26
                </div>
 
27
        </div>
 
28
        <div class="container">
 
29
                
 
30
                <div class="row">
 
31
                        <div class="span12" id="mainpage">
 
32
                                <div class="row">
 
33
                                        <div class="span3">
 
34
                                                <div id="menu">
 
35
                                                        <div id="menuheader">
 
36
                                                                Dashboard
 
37
                                                        </div>
 
38
                                                        <ul>
 
39
                                                                <li class="active">Courses</li>
 
40
                                                                <li>Examples</li>
 
41
                                                        </ul>
 
42
                                                </div>
 
43
                                        </div>
 
44
                                        <div class="span9">
 
45
                                                
 
46
                                                <div class="span9" id="content">
 
47
                                                        <h2>Manage example -  <?php echo $example ?> - <?php echo $cid ?></h2>
 
48
                                                        <table  class="table table-striped">
 
49
                                                                <thead>
 
50
                                                                        <tr>
 
51
                                                                                <th>Page ID</th>
 
52
                                                                                <th>Manage</th>
 
53
                                                                        </tr>
 
54
                                                                </thead>
 
55
                                                                <tbody>
 
56
                                                                        <?php
 
57
                                                                                foreach ($pages as $item):
 
58
                                                                        ?>
 
59
                                                                        <tr>
 
60
                                                                                <td><?php echo $item->page ?></td>
 
61
                                                                                <td><button class="btn btn-primary" onClick="window.location.href='<?php echo base_url();?>admin/managepage/<?php echo $item->cid ?>/<?php echo $item->example ?>/<?php echo $item->page ?>'"><i class="icon-cog icon-white"></i> Manage</button></td>
 
62
                                                                        </tr>
 
63
                                                                        <?php endforeach;?>
 
64
                                                                </tbody>
 
65
                                                        </table>
 
66
                                                        <button class="btn btn-primary" onClick="window.location.href='<?php echo base_url();?>admin/addpage/<?php echo $cid ?>/<?php echo $example ?>'"><i class="icon-plus-sign icon-white"></i> Add page</button>
 
67
                                                </div>
 
68
                                        </div>
 
69
                                        
 
70
                                </div>
 
71
                        </div>
 
72
 
 
73
                </div>
 
74
        </div>
 
75
</body>
 
76
 
 
77
</html>
 
 
b'\\ No newline at end of file'