ProcesLogView.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. Lib::loadClass('View');
  3. Lib::loadClass('ProcesLogMenuView');
  4. class ProcesLogView extends View {
  5. var $_menu;
  6. var $_cnt;
  7. function __construct() {
  8. parent::__construct();
  9. $this->_menu = new ProcesLogMenuView();
  10. $this->_cnt = null;
  11. }
  12. function set_content_view($view) {
  13. $this->_cnt = $view;
  14. }
  15. function set_menu($key, $value) {
  16. $this->_menu->set($key, $value);
  17. }
  18. function render() {
  19. $cnt_out = 'TODO: content';
  20. $out = '<style type="text/css">' . "
  21. body { margin:0; font-family:arial; }
  22. #proces-panel { margin:0 0 10px 0; padding:0 5px; background:#000; color:#fff; border-bottom:2px solid #969696; overflow:hidden; font-size:12px; }
  23. #proces-panel form { display:inline; }
  24. #proces-panel a { color:#fff; text-decoration:none; }
  25. #proces-panel a:hover { color:#fff; text-decoration:underline; }
  26. #proces-content { margin:0; padding:0 14px; background:#fff; color:#333; font-size:12px; }
  27. #proces-content em { color:#999; }
  28. .next-steps {border-top:2px solid #ddd; bacground:#eee;}
  29. " . '</style>' . "\n"
  30. . $this->_menu->render()
  31. . '<div id="proces-content">'
  32. . ((isset($this->_cnt) && $this->_cnt instanceof View)? $this->_cnt->render() : '')
  33. . '</div>';
  34. return $out;
  35. }
  36. }