PageRenderTime 53ms CodeModel.GetById 19ms RepoModel.GetById 1ms app.codeStats 0ms

/apps/circuits/views/reservations_view.php

https://github.com/jplante815/meican
PHP | 46 lines | 45 code | 1 blank | 0 comment | 2 complexity | a52e1589c93529ead622cf6349e9e87c MD5 | raw file
  1. <h1>
  2. <label for="res_name"><?= _("Reservation name") . ": "; ?></label>
  3. <div class="reservation-name"><?=$res_name . " (" . $usr_login . ")"?></div>
  4. </h1>
  5. <div id="tabs-res" class="reservation-tabs" style="position:relative;">
  6. <div class="tab-overlay fade-overlay"> </div>
  7. <div id="tabs-1">
  8. <div id="subtab-map" class="tab_subcontent shadow-box">
  9. <div id="res_mapCanvas" style="width:950px; height:400px;"></div>
  10. </div>
  11. <div id="subtab-points" class="tab_subcontent" style="float: right; padding-left:2px;">
  12. <?= $this->element('view_point', array('type' => 'source', 'flow' => $flow)); ?>
  13. <div id="bandwidth_bar">
  14. <div id="bandwidth_bar_text">
  15. <div style="text-align:center;">
  16. <input type="text" id="lb_bandwidth" value="<?php echo $bandwidth . " " . _("Mbps") ?>" disabled="disabled" class="ui-widget ui-spinner-input"/>
  17. </div>
  18. </div>
  19. <div id="bandwidth_bar_inside" style="width: <?= round($bandwidth * 100 / 1000); ?>%"></div>
  20. </div>
  21. <?= $this->element('view_point', array('type' => 'destination', 'flow' => $flow)); ?>
  22. </div>
  23. <div style="clear:both;"></div>
  24. </div>
  25. <div id="tabs-2" class="tab_content">
  26. <div class="float-left">
  27. <?= $this->element('view_timer', compact('timer')); ?>
  28. <?php //$request?$this->element('view_request', compact('request')):null; ?>
  29. </div>
  30. <div class="float-right">
  31. <?php if ($gris): ?>
  32. <form method="POST" action="<?php echo $this->buildLink(array('action' => 'cancel', 'param' => "res_id:$res_id,refresh:1")); ?>">
  33. <?php if ($refresh): ?>
  34. <div class="controls">
  35. <input type="button" class="refresh" value="<?php echo _("Refresh") ?>" onclick="griRefreshStatus(<?php echo $res_id; ?>);" />
  36. <input type="submit" class="cancel" disabled="disabled" id="cancel_button" value="<?php echo _("Cancel reservations"); ?>" onclick="return confirm('<?php echo _('Cancel the selected reservations?'); ?>')"/>
  37. </div>
  38. <?php endif; ?>
  39. <?= $this->element('list_gris', compact('gris', 'refresh')); ?>
  40. </form>
  41. <?php endif; ?>
  42. </div>
  43. <div style="clear:both;"></div>
  44. </div>
  45. </div>