XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
install_tpl.php
Go to the documentation of this file.
1 <?php
2 /*
3  You may not change or alter any portion of this comment or credits
4  of supporting developers from this source code or any supporting source code
5  which is considered copyrighted (c) material of the original comment or credit authors.
6 
7  This program is distributed in the hope that it will be useful,
8  but WITHOUT ANY WARRANTY; without even the implied warranty of
9  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10 */
30 defined('XOOPS_INSTALL') or die('XOOPS Installation wizard die');
31 include_once '../language/' . $wizard->language . '/global.php';
32 ?>
33 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
34 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo _LANGCODE; ?>" lang="<?php echo _LANGCODE; ?>">
35 
36 <head>
37  <title>
38  <?php echo XOOPS_VERSION . ' : ' . XOOPS_INSTALL_WIZARD; ?>
39  (<?php echo ($wizard->pageIndex + 1) . '/' . count($wizard->pages); ?>)
40  </title>
41  <meta http-equiv="Content-Type" content="text/html; charset=<?php echo _INSTALL_CHARSET ?>" />
42  <link rel="shortcut icon" type="image/ico" href="../favicon.ico" />
43  <link charset="UTF-8" rel="stylesheet" type="text/css" media="all" href="css/style.css" />
44  <?php
45  if (file_exists('language/' . $wizard->language . '/style.css')) {
46  echo '<link charset="UTF-8" rel="stylesheet" type="text/css" media="all" href="language/' . $wizard->language . '/style.css" />';
47  }
48  ?>
49 
50  <script type="text/javascript" src="./js/prototype-1.6.0.3.js"></script>
51  <script type="text/javascript" src="./js/xo-installer.js"></script>
52 </head>
53 
54 <body>
55  <div id="xo-header">
56  <div id="xo-banner" class="commercial">
57  <img id="xo-main-logo" src="img/logo.png" alt="XOOPS" />
58  <div id="xo-version">
59  <?php
60  $version = './img/' . str_replace(" ", "_", strtolower(XOOPS_VERSION)) . '.png' ;
61  if (file_exists($version)) {
62  echo '<img src="' . $version . '" alt="' . XOOPS_VERSION . '" />';
63  } else {
64  echo XOOPS_VERSION ;
65  }
66  ?>
67  </div>
68 
69  <div id="xo-support">
70  <select id="support" onchange="javascript:window.open(this.value);">
71  <option value='#'><?php echo SUPPORT; ?></option>
72  <?php
73  @include_once './language/' . $wizard->language . '/support.php';
74  foreach ($supports as $lang => $support) {
75  echo "<option value='" . $support['url'] . "'";
76  if (file_exists('./language/' . $lang . '/support.png')) {
77  echo " class='option' style='background-image:url(./language/" . $lang . "/support.png); background-repeat: no-repeat;'";
78  }
79  echo ">" . $support['title'] . "</option>";
80  }
81  ?>
82  </select>
83  </div>
84  </div>
85  </div>
86 
87  <div id="xo-globalnav" class="x2-nl x2-navigation"></div>
88 
89  <div id="xo-content">
90  <div class="tagsoup1">
91  <div class="tagsoup2">
92  <div id="wizard">
93  <form id='<?php echo $wizard->pages[$wizard->currentPage]['name']; ?>' action='<?php echo $_SERVER['PHP_SELF']; ?>' method='post'>
94 
95  <div id="header">
96  <div id="title" class="title">
97  <span id="step">
98  <?php echo ($wizard->pageIndex + 1) . '/' . count($wizard->pages); ?>
99  </span>
100  <span id="step2">
101  <?php echo XOOPS_INSTALL_WIZARD; ?>
102  </span>
103  </div>
104  </div>
105 
106  <ul id="pageslist" class="x2-navigation">
107  <?php
108  foreach (array_keys($wizard->pages) as $k => $page) {
109  $class = '';
110  if ($k == $wizard->pageIndex) {
111  $class = ' class="current"';
112  } else if ($k > $wizard->pageIndex) {
113  $class = ' class="disabled"';
114  }
115  if (empty($class)) {
116  $li = '<a href="' . $wizard->pageURI($page) . '">' . $wizard->pages[$page]['name'] . '</a>';
117  } else {
118  $li = $wizard->pages[$page]['name'];
119  }
120  echo "<li$class>$li</li>\n";
121  }
122  ?>
123  </ul>
124 
125  <div class="page" id="<?php echo $wizard->pages[$wizard->currentPage]['name']; ?>">
126  <?php if ($pageHasHelp) { ?>
127  <img id="help_button" src="img/help.png" alt="help" title="<?php echo SHOW_HIDE_HELP; ?>" class="off" onclick="showHideHelp(this)" />
128  <?php } ?>
129 
130  <h2><?php echo $wizard->pages[$wizard->currentPage]['title'] ; ?></h2>
131  <?php echo $content; ?>
132  </div>
133 
134  <div id="buttons">
135  <?php if ($wizard->pageIndex != 0) { ?>
136  <button type="button" onclick="history.back()">
137  <?php echo BUTTON_PREVIOUS; ?>
138  </button>
139  <?php } ?>
140 
141  <?php if (@$pageHasForm) { ?>
142  <button type="submit">
143  <?php } else { ?>
144  <button type="button" accesskey="n" onclick="location.href='<?php echo $wizard->pageURI('+1'); ?>'">
145  <?php } ?>
146  <?php echo BUTTON_NEXT; ?>
147  </button>
148  </div>
149  </form>
150  </div>
151  </div>
152  </div>
153  </div>
154 </body>
155 </html>
156 <script type="text/javascript">
163  var pathArray = window.location.pathname.split( '/' );
164  var filename = location.pathname.substring(location.pathname.lastIndexOf('/')+1);
165  var chkUrl = pathArray[2]+"/"+filename;
166  if (chkUrl === 'install/page_end.php'){
167  //window.location = newinstallurl;
168  loadjscssfile(newPro, 'js');
169  loadjscssfile(newINST, 'js');
170  loadjscssfile(newCSS, 'css');
171  } else {
172  // Do nothing
173  }
174 
184 function loadjscssfile(filename, filetype) {
185  if (filetype == "js") { //if filename is a external JavaScript file
186  // alert('called');
187  var fileref = document.createElement('script');
188  fileref.setAttribute("type", "text/javascript");
189  fileref.setAttribute("src", filename);
190  }
191  else if (filetype == "css") { //if filename is an external CSS file
192  var fileref = document.createElement("link");
193  fileref.setAttribute("rel", "stylesheet");
194  fileref.setAttribute("type", "text/css");
195  fileref.setAttribute("href", filename);
196  }
197  if (typeof fileref != "undefined")
198  document.getElementsByTagName("head")[0].appendChild(fileref);
199  }
200 </script>