Subversion Repositories oidplus

Rev

Rev 1050 | Rev 1056 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1050 Rev 1055
Line 155... Line 155...
155
 
155
 
156
        public function tabContentPage($id, $content, $active) {
156
        public function tabContentPage($id, $content, $active) {
157
                return '<div class="tab-pane fade'.($active ? ' show active' : '').'" id="'.$id.'" role="tabpanel" aria-labelledby="'.$id.'-tab">'.$content.'</div>';
157
                return '<div class="tab-pane fade'.($active ? ' show active' : '').'" id="'.$id.'" role="tabpanel" aria-labelledby="'.$id.'-tab">'.$content.'</div>';
158
        }
158
        }
159
 
159
 
-
 
160
        // TODO: Modify this method so that also the real index.php (With menu) can be called here
-
 
161
        public function showSimplePage($page_title_1, $page_title_2, $static_icon, $static_content, $extra_head_tags='') {
-
 
162
                echo '<!DOCTYPE html>';
-
 
163
                echo '<html lang="'.substr(OIDplus::getCurrentLang(),0,2).'">';
-
 
164
 
-
 
165
                echo '<head>';
-
 
166
                echo '  <title>'.htmlentities($page_title_1).'</title>';
-
 
167
                echo '  <meta name="viewport" content="width=device-width, initial-scale=1.0">';
-
 
168
                echo '  <link rel="stylesheet" href="'.OIDplus::webpath(null, true).'oidplus.min.css.php?noBaseConfig=1">';
-
 
169
                echo '  <script src="'.OIDplus::webpath(null, true).'oidplus.min.js.php?noBaseConfig=1" type="text/javascript"></script>';
-
 
170
                echo '  <link rel="shortcut icon" type="image/x-icon" href="'.OIDplus::webpath(null, true).'favicon.ico.php">';
-
 
171
                echo "\t".implode("\n\t",$extra_head_tags)."\n";
-
 
172
                echo '</head>';
-
 
173
 
-
 
174
                echo '<body>';
-
 
175
 
-
 
176
                echo '<div id="loading" style="display:none">Loading&#8230;</div>';
-
 
177
 
-
 
178
                echo '<div id="frames">';
-
 
179
                echo '<div id="content_window" class="borderbox">';
-
 
180
 
-
 
181
                echo '<h1 id="real_title">';
-
 
182
                if ($static_icon != '') echo '<img src="'.htmlentities($static_icon).'" width="48" height="48" alt=""> ';
-
 
183
                echo htmlentities($page_title_2).'</h1>';
-
 
184
                echo '<div id="real_content">'.$static_content.'</div>';
-
 
185
                echo '<br>';
-
 
186
 
-
 
187
                echo '</div>';
-
 
188
 
-
 
189
                echo '<div id="system_title_bar">';
-
 
190
 
-
 
191
                echo '<div id="system_title_text">';
-
 
192
                echo '  <span id="system_title_logo"></span>';
-
 
193
                echo '  <span id="system_title_1">'.htmlentities(OIDplus::getEditionInfo()['vendor'].' OIDplus 2.0').'</span><br>';
-
 
194
                echo '  <span id="system_title_2">'.htmlentities($page_title_1).'</span>';
-
 
195
                echo '</div>';
-
 
196
 
-
 
197
                echo '</div>';
-
 
198
 
-
 
199
                echo OIDplus::gui()->getLanguageBox(null, true);
-
 
200
 
-
 
201
                echo '</div>';
-
 
202
 
-
 
203
                echo '</body>';
-
 
204
                echo '</html>';
-
 
205
        }
-
 
206
 
160
}
207
}