PageRenderTime 38ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

/masportales/application/views/admin_layout.php

https://github.com/eloypineda/XHTMLized
PHP | 100 lines | 100 code | 0 blank | 0 comment | 5 complexity | 1ccb21e247e5e87e1d5db82c506ec962 MD5 | raw file
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html" charset="UTF-8" />
  5. <title>+Portales Admin Panel</title>
  6. <link rel="stylesheet" href="<?php echo _reg('css_url'); ?>reset.css" type="text/css" />
  7. <link rel="stylesheet" href="<?php echo _reg('css_url'); ?>styles.css" type="text/css" />
  8. <link type="text/css" href="<?php echo _reg('css_url'); ?>jquery-ui.custom.css" rel="stylesheet" />
  9. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
  10. <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/jquery-ui.min.js"></script>
  11. <script src="//ajax.aspnetcdn.com/ajax/jquery.templates/beta1/jquery.tmpl.min.js"></script>
  12. <script type="text/javascript" src="<?php echo _reg('js_url'); ?>jquery-ui.custom.min.js"></script>
  13. <script type="text/javascript" src="<?php echo _reg('js_url'); ?>mp.date.js"></script>
  14. <script type="text/javascript" src="<?php echo _reg('js_url'); ?>mp.custom.js"></script>
  15. <script>
  16. wysiwyg_defaults = {
  17. controls: {
  18. insertHorizontalRule: { visible: false },
  19. insertImage: { visible: false },
  20. insertTable: { visible: false },
  21. code: { visible: false },
  22. html: { visible: true },
  23. paragraph: { visible: true}
  24. },
  25. initialContent: '',
  26. plugins: {
  27. i18n: { lang: 'es' }
  28. },
  29. iFrameClass: 'wysiwyg-normal',
  30. css: '<?php echo _reg('css_url'); ?>jquery.wysiwyg.editor.css'
  31. };
  32. </script>
  33. </head>
  34. <body>
  35. <div id="container">
  36. <div id="left"><?php include_once('admin/menu.php'); ?></div>
  37. <div id="right">
  38. <div class="header">
  39. <?php if ($this->registry->request('module') == 'dashboard'): ?>
  40. <h1>Dashboard</h1>
  41. <?php else: ?>
  42. <h1><?php echo ($this->registry->module('parent_name')) ? $this->registry->module('parent_name') : $this->registry->module('name'); ?></h1>
  43. <h2><?php echo $this->registry->module('name'); ?></h2>
  44. <?php endif; ?>
  45. </div>
  46. <div class="content">
  47. <?php if ($this->registry->message()): ?>
  48. <div class="message <?php echo $this->registry->message('class'); ?>">
  49. <a class="close" href="#"><img alt="close" title="Cerrar mensaje" src="<?php echo _reg('site_url'); ?>images/cross_grey_small.png"></a>
  50. <div><?php echo $this->registry->message('content'); ?></div>
  51. </div>
  52. <?php endif; ?>
  53. <?php
  54. if ($this->registry->request('module') == 'dashboard'):
  55. include_once('admin/dashboard.php');
  56. else:
  57. include_once('admin/' . $this->registry->request('module') . '/' . _reg('section') . '_' . _reg('action') . '.php');
  58. endif;
  59. ?>
  60. <?php
  61. echo '<pre>';
  62. print_r($this->session->all_userdata());
  63. echo '</pre>';
  64. echo '<p>Request</p>';
  65. echo '<pre>';
  66. print_r($this->registry->request());
  67. echo '</pre>';
  68. echo '<p>Core</p>';
  69. echo '<pre>';
  70. print_r($this->registry->core());
  71. echo '</pre>';
  72. echo '<p>Site</p>';
  73. echo '<pre>';
  74. print_r($this->registry->site());
  75. echo '</pre>';
  76. echo '<p>Module</p>';
  77. echo '<pre>';
  78. print_r($this->registry->module());
  79. echo '</pre>';
  80. echo '<p>Message</p>';
  81. echo '<pre>';
  82. print_r($this->registry->message());
  83. echo '</pre>';
  84. echo '<p>User</p>';
  85. echo '<pre>';
  86. print_r($this->registry->user());
  87. echo '</pre>';
  88. echo '<p>Company</p>';
  89. echo '<pre>';
  90. print_r($this->registry->company());
  91. echo '</pre>';
  92. echo '<pre>';
  93. print_r($this->_ci_cached_vars);
  94. echo '</pre>';
  95. ?>
  96. </div>
  97. </div>
  98. </div>
  99. </body>
  100. </html>