diff options
author | Simon | 2011-03-22 13:10:13 +0100 |
---|---|---|
committer | Simon | 2011-03-22 13:10:13 +0100 |
commit | 6c8df54300aa3095524b97e41dc4c5ad53aba1b3 (patch) | |
tree | 6913f9516a00524376d48530b417cc098ebe1029 /application/modules/fbgui/views | |
parent | FBGui nutzt nun Session bzw Cookies (diff) | |
download | pbs2-6c8df54300aa3095524b97e41dc4c5ad53aba1b3.tar.gz pbs2-6c8df54300aa3095524b97e41dc4c5ad53aba1b3.tar.xz pbs2-6c8df54300aa3095524b97e41dc4c5ad53aba1b3.zip |
FBGui verschönert, Css geadded, KioskModus vorbereitet
Diffstat (limited to 'application/modules/fbgui/views')
-rw-r--r-- | application/modules/fbgui/views/scripts/index/index.phtml | 52 |
1 files changed, 43 insertions, 9 deletions
diff --git a/application/modules/fbgui/views/scripts/index/index.phtml b/application/modules/fbgui/views/scripts/index/index.phtml index b2b813d..9f243e5 100644 --- a/application/modules/fbgui/views/scripts/index/index.phtml +++ b/application/modules/fbgui/views/scripts/index/index.phtml @@ -1,9 +1,43 @@ -<table> -<?php foreach($this->entries as $entry):?> -<tr> - <td><?php echo $entry->getID();?></td> - <td><?php echo $entry->getTitle();?></td> - <td><a href='/fbgui/index/start/bme/<?php echo $entry->getID();?>'>take this</td> -</tr> -<?php endforeach; ?> -</table> +<?php if(isset($this->entries)):?> + <script> + $(document).ready(function(){ + $('.menu').click(function(){ + $('.menu').removeClass('selected'); + $(this).addClass('selected'); + console.log($(this).find('.id').val()); + $("#selectedBootOs").val($(this).find('.id').val()); + }); + }); + function start(){ + if($('#selectedBootOs').val() != ''){ + window.location='/fbgui/index/start/bme/'+$('#selectedBootOs').val(); + } + else{ + alert('You have to select a BootOs'); + } + } + </script> + <h1>Bootmenu</h1> + <?php foreach($this->entries as $entry):?> + <?php + $bootosMapper = new Application_Model_BootOsMapper(); + $bootos = new Application_Model_BootOs(); + $bootos = $bootosMapper->find($entry->getBootosID()); + #print_a($entry->getBootosID(),$bootos); + ?> + <div id="menu_item_1" class="menu" class="flexbox"> + <img src="/media/img/os/ubuntu.png"/> + <h2><?php echo $entry->getTitle(); ?></h2> + <i><?php echo $bootos->getTitle();?></i> + <p><?php echo $bootos->getDescription();?></p> + <input type="hidden" class="id" value="<?php echo $entry->getID();?>"/> + </div> + <?php endforeach; ?> + + <input style="display:none;" type='text' id="selectedBootOs" /> + + <div class="right" style='cursor:pointer;' onClick="start();"> + <img style='vertical-align:-8px;' src='/media/img/startOs.png'> + <span style='font-size:18px;'>Start System</span> + </div> +<?php endif;?> |