File indexing completed on 2024-06-16 05:26:53

0001 <?php
0002 /**
0003  *  ocs-webserver
0004  *
0005  *  Copyright 2016 by pling GmbH.
0006  *
0007  *    This file is part of ocs-webserver.
0008  *
0009  *    This program is free software: you can redistribute it and/or modify
0010  *    it under the terms of the GNU Affero General Public License as
0011  *    published by the Free Software Foundation, either version 3 of the
0012  *    License, or (at your option) any later version.
0013  *
0014  *    This program is distributed in the hope that it will be useful,
0015  *    but WITHOUT ANY WARRANTY; without even the implied warranty of
0016  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0017  *    GNU Affero General Public License for more details.
0018  *
0019  *    You should have received a copy of the GNU Affero General Public License
0020  *    along with this program.  If not, see <http://www.gnu.org/licenses/>.
0021  **/
0022 
0023 $helperUserRole = new Backend_View_Helper_UserRole();
0024 $userRoleName = $helperUserRole->userRole();
0025 ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
0026 <html xmlns="http://www.w3.org/1999/xhtml">
0027 <head>
0028     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
0029     <title>ocs-webserver :: Backend</title>
0030 
0031     <!-- Bootstrap -->
0032     <link href="/theme/backend/lib/bootstrap/css/bootstrap.min.css" rel="stylesheet">
0033     <!-- JQuery-UI -->
0034     <link href="/theme/backend/lib/jquery-ui/themes/smoothness/jquery-ui.min.css" rel="stylesheet">
0035     <!-- JTable -->
0036     <link href="/theme/backend/lib/jtable/themes/jqueryui/jtable_jqueryui.min.css" rel="stylesheet">
0037     <!-- OCS Backend Style Definitions -->
0038     <link href="/theme/backend/css/backend.css" rel="stylesheet" type="text/css"/>
0039 
0040 
0041     <script src="/theme/backend/lib/jquery-ui/external/jquery/jquery.js"></script>
0042     <script src="/theme/backend/lib/bootstrap/js/bootstrap.min.js"></script>
0043     <script src="/theme/backend/lib/jquery-ui/jquery-ui.min.js"></script>
0044     <script src="/theme/backend/lib/jtable/jquery.jtable.min.js"></script>
0045 
0046     <script src="/theme/backend/lib/jquery.cookie.js"></script>
0047 
0048     <script type="text/javascript" src="/theme/backend/js/backendFunctions.js"></script>
0049 
0050     <?= $this->partial('yui.phtml'); ?>
0051     <?php if (Default_Model_DbTable_MemberRole::ROLE_NAME_STAFF == $userRoleName) : ?>
0052         <script src="/theme/backend/js/backend_nav_staff.js" type="text/javascript" charset="utf-8"></script>
0053     <?php endif; ?>
0054     <?php if (Default_Model_DbTable_MemberRole::ROLE_NAME_ADMIN == $userRoleName) : ?>
0055         <script src="/theme/backend/js/backend_nav_admin.js" type="text/javascript" charset="utf-8"></script>
0056     <?php endif; ?>
0057     <style>
0058         body {
0059 
0060         }
0061 
0062         #mainarea {
0063 
0064         }
0065     </style>
0066 </head>
0067 <body>
0068 <div id="parent">
0069     <?php $auth = Zend_Auth::getInstance(); ?>
0070 
0071     <?php if ($auth->hasIdentity()): ?>
0072         <div id="mainarea" class="ui-corner-all">
0073             <?php if ($this->pageTitle): ?><h3><?= $this->escape($this->pageTitle); ?></h3><?php endif; ?>
0074             <?php echo $this->layout()->content; ?>
0075         </div>
0076     <?php else: ?>
0077         <div id="loginArea" class="ui-corner-all">
0078             <?php echo $this->layout()->content; ?>
0079         </div>
0080     <?php endif; ?>
0081     <div id="footer" style="clear: both;" class=""><span>&copy;
0082             <?=$_SERVER['SERVER_NAME']?></span><span>|</span><span>Zend FW Version: <?php echo Zend_Version::VERSION; ?></span></div>
0083 </div>
0084 <script type="text/javascript">
0085     $(document).ready(function () {
0086 
0087         $("#logout, #portal").hover(
0088             function () {
0089                 $(this).addClass("ui-state-hover");
0090             },
0091             function () {
0092                 $(this).removeClass("ui-state-hover");
0093             }
0094         );
0095 
0096     });
0097 </script>
0098 
0099 </body>
0100 </html>
0101