/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: b11johgu
  • Date: 2013-05-14 12:30:38 UTC
  • mto: This revision was merged to the branch mainline in revision 65.
  • Revision ID: b11johgu@student.his.se-20130514123038-rthxj3f34o32gpxy
ExamplesController:
- Added expand/collapse arrows for categories/subcategories.
- Added category positioning (incomplete).

more general changes made.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
                <div class="container">
4
4
                        <div class="row">
5
5
                                <div class="span12" id="nav">
 
6
                                        <div class="row">
 
7
                                                <div class="separator"></div>
 
8
                                                <div id="logo">*Lenasys logo*</div>
 
9
                                                
 
10
                                                <div class="separator"></div>
 
11
                                                
 
12
                                        </div>
6
13
                                </div>
7
14
                        </div>
8
15
                </div>
12
19
                <div class="row">
13
20
                        <div class="span12" id="mainpage">
14
21
                                <div class="row">
15
 
                                        <div class="span6">
16
 
                                                <h3>Managing example - <?php echo $example?> </h3>
17
 
                                                <div id="dropbox">
18
 
                                                        <span class="message"><i>Drop files here to upload</i></span>
19
 
                                                        <div class="progressHolder">
20
 
                                                                <div class="progress"></div>
 
22
                                        <div class="span3">
 
23
                                                <div id="menu">
 
24
                                                        <div id="menuheader">
 
25
                                                                Dashboard
21
26
                                                        </div>
22
 
                                                </div>
23
 
                                                <div id="filelist">
24
 
                                                </div>
25
 
                                                <?php 
26
 
                                                        echo form_open(base_url().'admin/manageexample');
27
 
                                                        echo form_label('Documentation', 'documentation');
28
 
                                                        echo form_textarea(array('name' => 'documentation',  'class' => 'ckeditor'/*, 'value' => $documentation*/));
29
 
                                                        echo form_hidden('cid',$cid); 
30
 
                                                        echo form_hidden('example',$example); 
31
 
                                                        echo form_hidden('category',$category);
32
 
                                                        echo form_hidden('subcategory',$subcategory); 
33
 
                                                        echo form_hidden('files'); 
34
 
                                                        echo form_hidden('baseurl', base_url()); 
35
 
                                                        echo "<br>";
36
 
                                                        echo form_submit(array('name' => 'submit', 'value' => 'Update example', "class" => "btn btn-primary")); 
37
 
                                                        echo form_close(); 
38
 
                                                        
39
 
                                                 ?>
 
27
                                                        <ul>
 
28
                                                                <li class="active">Courses</li>
 
29
                                                                <li>Examples</li>
 
30
                                                        </ul>
 
31
                                                </div>
40
32
                                        </div>
41
 
                                        <div class="span6">
42
 
                                                <?php 
43
 
                                                        echo $editors;
44
 
                                                ?>
 
33
                                        <div class="span9">
 
34
                                                
 
35
                                                <div class="span9" id="content">
 
36
                                                        <h2>Manage example -  <?php echo $example ?> - <?php echo $cid ?></h2>
 
37
                                                        <table  class="table table-striped">
 
38
                                                                <thead>
 
39
                                                                        <tr>
 
40
                                                                                <th>Page ID</th>
 
41
                                                                                <th>Manage</th>
 
42
                                                                        </tr>
 
43
                                                                </thead>
 
44
                                                                <tbody>
 
45
                                                                        <?php
 
46
                                                                                foreach ($pages as $item):
 
47
                                                                        ?>
 
48
                                                                        <tr>
 
49
                                                                                <td><?php echo $item->name ?></td>
 
50
                                                                                <td><button class="btn btn-primary" onClick="window.location.href='<?php echo base_url();?>admin/managepage/<?php echo $cid ?>/<?php echo $example ?>/<?php echo $item->name ?>'"><i class="icon-cog icon-white"></i> Manage</button></td>
 
51
                                                                        </tr>
 
52
                                                                        <?php endforeach;?>
 
53
                                                                </tbody>
 
54
                                                        </table>
 
55
                                                        <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>
 
56
                                                </div>
45
57
                                        </div>
46
58
                                        
47
59
                                </div>
51
63
        </div>
52
64
</body>
53
65
 
54
 
</html>
 
66
</html>
 
 
b'\\ No newline at end of file'