Changeset 2073 for trunk/plugins/admin_multi_view
- Timestamp:
- Jul 25, 2007, 12:48:28 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/admin_multi_view/controller.php
r2016 r2073 12 12 pwg_unset_session_var( 'multiview_debug_l10n' ); 13 13 ?> 14 14 15 <script type="text/javascript"> 15 16 window.close(); … … 18 19 exit(); 19 20 } 21 ?> 22 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" 23 "http://www.w3.org/TR/html4/strict.dtd"> 24 <?php 20 25 21 26 $refresh_main = false; … … 65 70 66 71 $my_url = get_root_url().'plugins/'.basename(dirname(__FILE__)).'/'.basename(__FILE__); 67 $my_t heme = get_root_url().'template/'.$user['template'].'/theme/'.$user['theme'].'/theme.css';72 $my_template = ''; 68 73 69 74 $themes_html='Theme: <select onchange="document.location = this.options[this.selectedIndex].value;">'; … … 71 76 { 72 77 $selected = $pwg_template == pwg_get_session_var( 'multiview_theme', $user['template'].'/'.$user['theme'] ) ? 'selected="selected"' : ''; 78 $my_template = $selected == '' ? $my_template : $user['template'].'/theme/'.$user['theme']; 73 79 $themes_html .= 74 80 '<option value="' … … 113 119 } 114 120 ?> 115 116 121 <html> 117 122 <head> 118 123 <title>Controller</title> 124 <?php 125 // Controller will be displayed with the **real admin template** (without Any if it has been removed) 126 if ( $my_template !== '') { 127 $my_template = get_root_url().'template/'.$my_template.'/theme.css'; 128 echo '<link rel="stylesheet" type="text/css" href="' . $my_template .'">'; 129 } 130 ?> 131 119 132 </head> 120 <link rel="stylesheet" type="text/css" href="<?php121 echo $my_theme;122 ?>">123 133 <body> 124 134 <div> 125 135 <script type="text/javascript"> 126 136 if (window.opener==null) { 127 137 window.close(); 128 document.write("< h2>How did you get here ???</h2>");138 document.write("<"+"h2>How did you get here ???<"+"/h2>"); 129 139 } 130 140 </script> … … 153 163 ?> 154 164 </script> 155 165 </div> 156 166 </body> 157 158 167 </html>
Note: See TracChangeset
for help on using the changeset viewer.