/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: Gustav Hatvigsson
  • Date: 2013-05-30 12:08:07 UTC
  • mfrom: (129 lenasys_b)
  • mto: This revision was merged to the branch mainline in revision 131.
  • Revision ID: gustav.hartvigsson@gmail.com-20130530120807-q2mad1xrq003ss2n
mergedĀ fromĀ trunk

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>
13
6
                                </div>
14
7
                        </div>
15
8
                </div>
19
12
                <div class="row">
20
13
                        <div class="span12" id="mainpage">
21
14
                                <div class="row">
22
 
                                        <div class="span3">
23
 
                                                <div id="menu">
24
 
                                                        <div id="menuheader">
25
 
                                                                Dashboard
26
 
                                                        </div>
27
 
                                                        <ul>
28
 
                                                                <li class="active">Courses</li>
29
 
                                                                <li>Examples</li>
30
 
                                                        </ul>
31
 
                                                </div>
 
15
                                        <div class="span6">
 
16
                                                
 
17
                                                
 
18
                                                        <h3>Managing example - <?php echo $example?> </h3>
 
19
                                                
 
20
                                                        
 
21
                                                        <div id="dropbox">
 
22
                                                                <span class="message"><i>Drop files here to upload</i></span>
 
23
 
 
24
                                                                <div class="progressHolder">
 
25
                                                                        <div class="progress"></div>
 
26
                                                                </div>
 
27
                                                        </div>
 
28
                                                        <div id="filelist">
 
29
                                                        </div>
 
30
                                                        <?php 
 
31
        
 
32
                                                                echo form_open(base_url().'admin/manageexample');
 
33
                                                                                echo form_label('Documentation', 'documentation');
 
34
                                                                                echo form_textarea(array('name' => 'documentation',  'class' => 'ckeditor'/*, 'value' => $documentation*/));
 
35
                                                                                echo form_hidden('cid',$cid); 
 
36
                                                                                echo form_hidden('example',$example); 
 
37
                                                                                echo form_hidden('category',$category);
 
38
                                                                                echo form_hidden('subcategory',$subcategory); 
 
39
                                                                                echo form_hidden('files'); 
 
40
                                                                                echo "<br>";
 
41
                                                                                echo form_submit(array('name' => 'submit', 'value' => 'Update example', "class" => "btn btn-primary")); 
 
42
                                                                echo form_close(); 
 
43
                                                                
 
44
                                                         ?>
 
45
                                                
32
46
                                        </div>
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>
 
47
                                        <div class="span6">
 
48
                                                <?php 
 
49
                                                        echo $editors;
 
50
                                                ?>
57
51
                                        </div>
58
52
                                        
59
53
                                </div>