layout.phtml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <?php
  2. /**
  3. * @version 7.3
  4. */
  5. ?>
  6. <!DOCTYPE html>
  7. <html lang="en">
  8. <head>
  9. <title>PHP Pro Bid v<?php echo \Ppb\Utility::VERSION; ?> / Installation</title>
  10. <?php
  11. $this->headMeta()
  12. ->appendName('viewport', 'width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no')
  13. ->appendName('robots', 'noindex, nofollow')
  14. ->appendHttpEquiv('X-UA-Compatible', 'IE=edge');
  15. echo $this->headMeta();
  16. ?>
  17. <?php echo $this->script()->displayHeaderCode(); ?>
  18. <link href="<?php echo $this->baseUrl; ?>/css/install.css" media="screen"
  19. rel="stylesheet" type="text/css">
  20. </head>
  21. <body>
  22. <div class="navbar navbar-install navbar-fixed-top">
  23. <div class="container">
  24. <a class="navbar-brand" href="#">
  25. <img src="<?php echo $this->baseUrl; ?>/img/logo-small.png"
  26. alt="PHP Pro Bid">
  27. </a>
  28. <div class="navbar-text navbar-left hidden-xs">
  29. <?php echo $this->liveTime(time()); ?>
  30. </div>
  31. <?php if (!empty($this->loggedInUser['id'])) { ?>
  32. <ul class="nav navbar-nav navbar-right">
  33. <li><a href="<?php echo $this->url(array('controller' => 'index', 'action' => 'activate-license')); ?>">Activate
  34. License</a></li>
  35. <li><a href="<?php echo $this->url(array('controller' => 'index', 'action' => 'upgrade')); ?>">Upgrade
  36. DB</a></li>
  37. <li><a href="<?php echo $this->url(array('controller' => 'index', 'action' => 'mods')); ?>">Mods SQL</a>
  38. </li>
  39. <li><a href="<?php echo $this->url(array('controller' => 'index', 'action' => 'importer')); ?>">v6.x
  40. Importer</a></li>
  41. <li>
  42. <a href="<?php echo $this->url(array('controller' => 'index', 'action' => 'logout')); ?>">
  43. Logout
  44. </a></li>
  45. </ul>
  46. <?php } ?>
  47. </div>
  48. </div>
  49. <div class="container">
  50. <div id="wrapper">
  51. <h1>
  52. <i class="fa fa-cubes"></i>
  53. Installation / PHP Pro Bid
  54. <small class="pull-right">
  55. <i class="fa fa-cogs"></i>
  56. <?php echo \Ppb\Utility::VERSION; ?>
  57. </small>
  58. </h1>
  59. <!-- action messages -->
  60. <?php foreach ((array)$this->messages as $message) { ?>
  61. <?php if (!isset($message['local'])) { ?>
  62. <div <?php echo (!empty($message['class'])) ? 'class="alert alert-dismissable ' . $message['class'] . '"' : ''; ?>>
  63. <?php if (!empty($message['class'])) { ?>
  64. <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
  65. <?php } ?>
  66. <?php if (is_array($message['msg'])) { ?>
  67. <?php foreach ((array)$message['msg'] as $msg) { ?>
  68. <div><?php echo $this->_($msg); ?></div>
  69. <?php } ?>
  70. <?php
  71. }
  72. else {
  73. ?>
  74. <?php echo $this->_($message['msg']); ?>
  75. <?php } ?>
  76. </div>
  77. <?php } ?>
  78. <?php } ?>
  79. <div>
  80. <?php echo $this->getContent(); ?>
  81. </div>
  82. <hr>
  83. <footer>
  84. <small>PHP Pro Bid v<?php echo \Ppb\Utility::VERSION; ?> &copy; <?php echo date('Y'); ?> Online Ventures
  85. Software. All rights reserved.
  86. </small>
  87. </footer>
  88. </div>
  89. </div>
  90. <div class="loading-modal"></div>
  91. <!-- js global variables -->
  92. <script type="text/javascript"> var baseUrl = '<?php echo $this->baseUrl; ?>'; </script>
  93. <!-- client side scripts [loaded in bootstrap] -->
  94. <?php echo $this->script()->displayBodyCode(); ?>
  95. </body>
  96. </html>