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

/baser/views/layouts/admin/default.php

https://github.com/hashing/basercms
PHP | 146 lines | 96 code | 32 blank | 18 comment | 8 complexity | 8276478f90536f10637cff041e4bcf30 MD5 | raw file
Possible License(s): MIT
  1. <?php
  2. /* SVN FILE: $Id$ */
  3. /**
  4. * [ADMIN] レイアウト
  5. *
  6. * PHP versions 4 and 5
  7. *
  8. * baserCMS : Based Website Development Project <http://basercms.net>
  9. * Copyright 2008 - 2012, baserCMS Users Community <http://sites.google.com/site/baserusers/>
  10. *
  11. * @copyright Copyright 2008 - 2012, baserCMS Users Community
  12. * @link http://basercms.net baserCMS Project
  13. * @package baser.views
  14. * @since baserCMS v 2.0.0
  15. * @version $Revision$
  16. * @modifiedby $LastChangedBy$
  17. * @lastmodified $Date$
  18. * @license http://basercms.net/license/index.html
  19. */
  20. $favoriteBoxOpened = $session->read('Baser.favorite_box_opened');
  21. ?>
  22. <?php $bcBaser->xmlHeader() ?>
  23. <?php $bcBaser->docType() ?>
  24. <html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja">
  25. <head>
  26. <meta name="robots" content="noindex,nofollow" />
  27. <?php $bcBaser->charset() ?>
  28. <?php $bcBaser->title() ?>
  29. <?php $bcBaser->css(array(
  30. 'jquery-ui/ui.all',
  31. 'admin/import',
  32. '../js/jquery.contextMenu-1.0/jquery.contextMenu',
  33. 'colorbox/colorbox')) ?>
  34. <!--[if IE]><?php $bcBaser->js(array('excanvas')) ?><![endif]-->
  35. <?php $bcBaser->js(array(
  36. 'jquery-1.7.2.min',
  37. 'jquery-ui-1.8.19.custom.min',
  38. 'i18n/ui.datepicker-ja',
  39. 'jquery.corner-2.12',
  40. 'jquery.bt.min',
  41. 'cb',
  42. 'jquery.contextMenu-1.0/jquery.contextMenu',
  43. 'jquery.form-2.94',
  44. 'jquery.validate.min',
  45. 'jquery.colorbox-min',
  46. 'validate_messages_ja',
  47. 'admin/functions',
  48. 'admin/startup')) ?>
  49. <?php $bcBaser->scripts() ?>
  50. </head>
  51. <body id="<?php $bcBaser->contentsName() ?>" class="normal">
  52. <div id="Page">
  53. <div id="SaveFavoriteBoxUrl" style="display:none"><?php $bcBaser->url(array('action' => 'ajax_save_favorite_box')) ?></div>
  54. <div id="SaveSearchBoxUrl" style="display:none"><?php $bcBaser->url(array('action' => 'ajax_save_search_box', $bcBaser->getContentsName(true))) ?></div>
  55. <div id="FavoriteBoxOpened" style="display:none"><?php echo (!empty($user))? $session->read('Baser.favorite_box_opened') : false ?></div>
  56. <div id="SearchBoxOpened" style="display:none"><?php echo $session->read('Baser.searchBoxOpened.'.$bcBaser->getContentsName(true)) ?></div>
  57. <div id="CurrentPageName" style="display: none"><?php $bcBaser->contentsTitle() ?></div>
  58. <div id="CurrentPageUrl" style="display: none"><?php echo '/'.$this->params['url']['url'] ?></div>
  59. <!-- Waiting -->
  60. <div id="Waiting" class="waiting-box" style="display:none">
  61. <div class="corner10">
  62. <?php echo $html->image('ajax-loader.gif') ?><br />
  63. W A I T
  64. </div>
  65. </div>
  66. <?php $bcBaser->header() ?>
  67. <div id="Wrap" class="clearfix" style="display:none">
  68. <?php if(!empty($user)): ?>
  69. <div id="SideBar" <?php if(!$favoriteBoxOpened): ?> style="display:none"<?php endif ?>>
  70. <div class="cbb clearfix">
  71. <?php $bcBaser->element('favorite_menu') ?>
  72. <?php $bcBaser->element('permission') ?>
  73. <!-- / .cbb .clearfix --></div>
  74. <!-- / #SideBar --></div>
  75. <?php endif ?>
  76. <div id="Contents" class="clearfix">
  77. <div class="cbb">
  78. <?php $bcBaser->element('crumbs') ?>
  79. <div id="ContentsBody" class="contents-body clearfix">
  80. <div class="clearfix">
  81. <?php $bcBaser->element('contents_menu') ?>
  82. <h1><?php $bcBaser->contentsTitle() ?></h1>
  83. </div>
  84. <?php if($this->params['controller']!='installations' && $this->action != 'update'): ?>
  85. <?php $bcBaser->updateMessage() ?>
  86. <?php endif ?>
  87. <?php if($this->params['controller']!='installations' && !empty($bcBaser->siteConfig['first_access'])): ?>
  88. <div id="FirstMessage" class="em-box" style="text-align:left">
  89. baserCMSへようこそ<br />
  90. <ul style="font-weight:normal;font-size:14px;"><li>画面右上のシステムナビより管理システムの全ての機能にアクセスする事ができます</li>
  91. <li>よく使う機能については画面右側にあるよく使う項目をクリックしてお気に入りとして登録する事ができます</li>
  92. <li>短くスマートなURLを実現するスマートURLの設定は
  93. <?php $bcBaser->link('システム設定', '/admin/site_configs/form') ?>より行えます</li>
  94. </ul>
  95. </div>
  96. <?php endif ?>
  97. <?php $bcBaser->flash() ?>
  98. <?php $bcBaser->element('submenu') ?>
  99. <?php $bcBaser->element('help') ?>
  100. <?php $bcBaser->element('search') ?>
  101. <?php $bcBaser->content() ?>
  102. <!-- / #ContentsBody .contents-body .clarfix --></div>
  103. <?php if(!empty($user)): ?>
  104. <div id="ToTop"><?php $bcBaser->link('▲ トップへ', '#Header') ?></div>
  105. <?php endif ?>
  106. <!-- / .cbb --></div>
  107. <!-- / #Contents --></div>
  108. <!-- / #Wrap .clearfix --></div>
  109. <?php $bcBaser->footer() ?>
  110. <!-- / #Page --></div>
  111. <?php $bcBaser->element('credit') ?>
  112. <?php $bcBaser->func() ?>
  113. </body>
  114. </html>