Commit 0cbd6a19accb2e21fcd4ef1f28b4fb7ade6b684a

Authored by Jarrett Jordaan
1 parent 481fd888

Updated templates for 1024X768. Renamed win32 extension check. Added login detai…

…ls to Complete Step. Updated Registration Step. Turned on ajax form plugin.

Committed by: Jarrett Jordaan

Reviewed by: Megan Watson
setup/upgrade/templates/database.tpl
@@ -66,4 +66,5 @@ @@ -66,4 +66,5 @@
66 else { ?><input type="submit" name="Previous" value="Restore" class="button_previous"/><?php } ?> 66 else { ?><input type="submit" name="Previous" value="Restore" class="button_previous"/><?php } ?>
67 <?php } ?> 67 <?php } ?>
68 </div> 68 </div>
69 -</form>  
70 \ No newline at end of file 69 \ No newline at end of file
  70 +</form>
  71 +<?php if (AJAX) { echo $html->js('form.js'); } ?>
71 \ No newline at end of file 72 \ No newline at end of file
setup/upgrade/templates/installation.tpl
@@ -18,4 +18,5 @@ @@ -18,4 +18,5 @@
18 <input type="submit" name="Upgrade" value="Upgrade" class="button_next"/> 18 <input type="submit" name="Upgrade" value="Upgrade" class="button_next"/>
19 <input type="submit" name="Restore" value="Restore Database" class="button_next"/> 19 <input type="submit" name="Restore" value="Restore Database" class="button_next"/>
20 <input type="submit" name="Next" value="Backup Now" class="button_next"/> 20 <input type="submit" name="Next" value="Backup Now" class="button_next"/>
21 -</form>  
22 \ No newline at end of file 21 \ No newline at end of file
  22 +</form>
  23 +<?php if (AJAX) { echo $html->js('form.js'); } ?>
23 \ No newline at end of file 24 \ No newline at end of file
setup/upgrade/templates/welcome.tpl
@@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@
13 <tr><td>Password</td><td><input name=password type="password"></td></tr> 13 <tr><td>Password</td><td><input name=password type="password"></td></tr>
14 <?php if (!empty($errors)) { ?><tr><td></td><td><span class="error">Could Not Authenticate User</span></td></tr> <?php } ?> 14 <?php if (!empty($errors)) { ?><tr><td></td><td><span class="error">Could Not Authenticate User</span></td></tr> <?php } ?>
15 </table> 15 </table>
16 - 16 +
17 </div> 17 </div>
18 </div> 18 </div>
19 <?php 19 <?php
@@ -29,4 +29,5 @@ @@ -29,4 +29,5 @@
29 </form> 29 </form>
30 <script type="text/javascript"> 30 <script type="text/javascript">
31 $('#username').focus(); 31 $('#username').focus();
32 -</script>  
33 \ No newline at end of file 32 \ No newline at end of file
  33 +</script>
  34 +<?php if (AJAX) { echo $html->js('form.js'); } ?>
34 \ No newline at end of file 35 \ No newline at end of file
setup/wizard/path.php
@@ -47,7 +47,7 @@ @@ -47,7 +47,7 @@
47 define('AGENT', 'OTHER'); 47 define('AGENT', 'OTHER');
48 } 48 }
49 // Define installer environment 49 // Define installer environment
50 - define('AJAX', 0); 50 + define('AJAX', 1);
51 if (substr(php_uname(), 0, 7) == "Windows") { 51 if (substr(php_uname(), 0, 7) == "Windows") {
52 define('WINDOWS_OS', true); 52 define('WINDOWS_OS', true);
53 define('UNIX_OS', false); 53 define('UNIX_OS', false);
@@ -64,34 +64,25 @@ @@ -64,34 +64,25 @@
64 } 64 }
65 $wizard = realpath(dirname(__FILE__)); 65 $wizard = realpath(dirname(__FILE__));
66 // Define environment root 66 // Define environment root
  67 + $wizard = realpath(dirname(__FILE__));
  68 + $xdir = explode(DS, $wizard);
  69 + array_pop($xdir);
  70 + $sys = '';
  71 + foreach ($xdir as $k=>$v) {
  72 + $sys .= $v.DS;
  73 + }
67 if(isset($_GET['type'])) { 74 if(isset($_GET['type'])) {
68 switch ($_GET['type']) { 75 switch ($_GET['type']) {
69 case 'migrate' : 76 case 'migrate' :
70 - $wizard = realpath(dirname(__FILE__));  
71 - $xdir = explode(DS, $wizard);  
72 - array_pop($xdir);  
73 - $sys = '';  
74 - foreach ($xdir as $k=>$v) {  
75 - $sys .= $v.DS;  
76 - }  
77 $wizard = $sys.'migrate'; 77 $wizard = $sys.'migrate';
78 break; 78 break;
79 case 'upgrade' : 79 case 'upgrade' :
80 - $wizard = realpath(dirname(__FILE__));  
81 - $xdir = explode(DS, $wizard);  
82 - array_pop($xdir);  
83 - $sys = '';  
84 - foreach ($xdir as $k=>$v) {  
85 - $sys .= $v.DS;  
86 - }  
87 $wizard = $sys.'upgrade'; 80 $wizard = $sys.'upgrade';
88 break; 81 break;
89 default: 82 default:
90 - 83 +
91 break; 84 break;
92 } 85 }
93 - } else {  
94 -// die("Environment Error");  
95 } 86 }
96 $xdir = explode(DS, $wizard); 87 $xdir = explode(DS, $wizard);
97 array_pop($xdir); 88 array_pop($xdir);
setup/wizard/resources/css/ie6.css
  1 +#logo {
  2 + right:70%;
  3 +}
0 \ No newline at end of file 4 \ No newline at end of file
setup/wizard/resources/css/wizard.css
@@ -64,20 +64,20 @@ select { @@ -64,20 +64,20 @@ select {
64 /* *** Layout Styles *** */ 64 /* *** Layout Styles *** */
65 65
66 #wrapper { 66 #wrapper {
67 - background: white; 67 + background: white; min-height:410px;
68 } 68 }
69 69
70 #outer-wrapper { 70 #outer-wrapper {
71 border:1px solid #B7B7B7; 71 border:1px solid #B7B7B7;
72 margin-top:20px; 72 margin-top:20px;
73 - width:1024px; 73 + /*width:1024px;*/width:964px;
74 } 74 }
75 75
76 #header { 76 #header {
77 background: transparent url("../graphics/dame/installer_head.png") repeat scroll 0% 0%; 77 background: transparent url("../graphics/dame/installer_head.png") repeat scroll 0% 0%;
78 - text-align: right;  
79 - font-size: 100%;  
80 - color: rgb(167, 167, 167); 78 + text-align: right;
  79 + font-size: 100%;
  80 + color: rgb(167, 167, 167);
81 font-family: sans-serif; 81 font-family: sans-serif;
82 height: 71px; 82 height: 71px;
83 font-family:sans-serif; 83 font-family:sans-serif;
@@ -87,11 +87,12 @@ select { @@ -87,11 +87,12 @@ select {
87 #container { 87 #container {
88 background: white url("../graphics/left.png") repeat-y left; 88 background: white url("../graphics/left.png") repeat-y left;
89 overflow:auto; 89 overflow:auto;
  90 + /*min-height:630px;height:410px;*/min-height:410px;
90 } 91 }
91 92
92 #content { 93 #content {
93 margin-left: 220px; 94 margin-left: 220px;
94 - height:515px; 95 + /*height:515px;*/height:400px;
95 } 96 }
96 97
97 #content_container { 98 #content_container {
@@ -104,43 +105,49 @@ select { @@ -104,43 +105,49 @@ select {
104 border: 1px solid rgb(207, 207, 207); 105 border: 1px solid rgb(207, 207, 207);
105 padding: 5px; 106 padding: 5px;
106 overflow: auto; 107 overflow: auto;
107 - min-height: 400px; 108 + /*min-height: 400px;*/min-height: 300px;
108 } 109 }
109 110
110 #step_content_dependencies { 111 #step_content_dependencies {
111 border: 1px solid rgb(207, 207, 207); 112 border: 1px solid rgb(207, 207, 207);
112 - padding: 5px;  
113 - min-height:270px; 113 + /*padding: 5px;*/padding: 12px;
  114 + /*min-height:270px;*/min-height:170px;
114 } 115 }
115 116
116 #step_content_configuration { 117 #step_content_configuration {
117 border: 1px solid rgb(207, 207, 207); 118 border: 1px solid rgb(207, 207, 207);
118 padding: 5px; 119 padding: 5px;
119 - min-height:320px; 120 + /*min-height:320px;*//*height:330px*/min-height:130px;
  121 +}
  122 +
  123 +#step_content_services {
  124 + border: 1px solid rgb(207, 207, 207);
  125 + padding: 5px;
  126 + min-height:230px;
120 } 127 }
121 128
122 #step_content_registration { 129 #step_content_registration {
123 border: 1px solid rgb(207, 207, 207); 130 border: 1px solid rgb(207, 207, 207);
124 padding: 5px; 131 padding: 5px;
125 - min-height:320px; 132 + /*min-height:320px;*/min-height:100px;
126 } 133 }
127 134
128 #step_content_registration_confirm { 135 #step_content_registration_confirm {
129 border: 1px solid rgb(207, 207, 207); 136 border: 1px solid rgb(207, 207, 207);
130 padding: 5px; 137 padding: 5px;
131 - min-height:400px; 138 + /*min-height:400px;*/min-height:300px;
132 } 139 }
133 140
134 #step_content_install { 141 #step_content_install {
135 border: 1px solid rgb(207, 207, 207); 142 border: 1px solid rgb(207, 207, 207);
136 padding: 5px; 143 padding: 5px;
137 - min-height:400px; 144 + /*min-height:400px;*/min-height:150px;
138 } 145 }
139 146
140 #step_content_database { 147 #step_content_database {
141 border: 1px solid rgb(207, 207, 207); 148 border: 1px solid rgb(207, 207, 207);
142 padding: 5px; 149 padding: 5px;
143 - min-height:365px; 150 + /*min-height:365px;*/min-height:240px;
144 } 151 }
145 152
146 #step_content_database_confirm { 153 #step_content_database_confirm {
@@ -157,15 +164,15 @@ select { @@ -157,15 +164,15 @@ select {
157 164
158 .license_agreement { 165 .license_agreement {
159 overflow: scroll; 166 overflow: scroll;
160 - height:370px; 167 + /*height:370px;*/height:270px;
161 overflow-x:hidden; 168 overflow-x:hidden;
162 border:1px solid #CFCFCF; 169 border:1px solid #CFCFCF;
163 } 170 }
164 171
165 #sidebar { 172 #sidebar {
166 font-size: 85%; 173 font-size: 85%;
167 - color: grey;  
168 - font-family: sans-serif; 174 + color: grey;
  175 + font-family: sans-serif;
169 margin-top: 0px; 176 margin-top: 0px;
170 float: left; 177 float: left;
171 padding-top: 20px; 178 padding-top: 20px;
@@ -197,8 +204,8 @@ select { @@ -197,8 +204,8 @@ select {
197 204
198 #logo { 205 #logo {
199 position:relative; 206 position:relative;
200 - right:760px;  
201 - top:20px; 207 + /*right:760px;*/right:75%;
  208 + /*top:20px;*/top:25%;
202 } 209 }
203 210
204 #install_details { 211 #install_details {
@@ -208,26 +215,26 @@ select { @@ -208,26 +215,26 @@ select {
208 } 215 }
209 216
210 .indicator a { 217 .indicator a {
211 - background:url("../graphics/dame/tick1.png") no-repeat left;  
212 - padding-top:15px;  
213 - padding-bottom:10px;  
214 - padding-left:30px;  
215 - color: #1c9e00; 218 + background:url("../graphics/dame/tick1.png") no-repeat left;
  219 + padding-top:15px;
  220 + padding-bottom:10px;
  221 + padding-left:30px;
  222 + color: #1c9e00;
216 } 223 }
217 224
218 .active { 225 .active {
219 - background:url("../graphics/dame/tick1.png") no-repeat left;  
220 - padding-top:15px;  
221 - padding-bottom:10px;  
222 - padding-left:30px;  
223 - color: #1c9e00; 226 + background:url("../graphics/dame/tick1.png") no-repeat left;
  227 + padding-top:15px;
  228 + padding-bottom:10px;
  229 + padding-left:30px;
  230 + color: #1c9e00;
224 } 231 }
225 232
226 .inactive { 233 .inactive {
227 background:url("../graphics/dame/tick2.png") no-repeat left; 234 background:url("../graphics/dame/tick2.png") no-repeat left;
228 padding-top:15px; 235 padding-top:15px;
229 padding-bottom:10px; 236 padding-bottom:10px;
230 - padding-left:30px; 237 + padding-left:30px;
231 color:#a7a7a7; 238 color:#a7a7a7;
232 } 239 }
233 240
@@ -238,7 +245,7 @@ select { @@ -238,7 +245,7 @@ select {
238 padding-left:30px; 245 padding-left:30px;
239 color: #f36a00; 246 color: #f36a00;
240 } 247 }
241 - 248 +
242 .tick { 249 .tick {
243 background: url("../graphics/tick.png") no-repeat; 250 background: url("../graphics/tick.png") no-repeat;
244 height: 16px; 251 height: 16px;
@@ -275,7 +282,7 @@ select { @@ -275,7 +282,7 @@ select {
275 } 282 }
276 283
277 .conf_paths { 284 .conf_paths {
278 - width:755px; 285 + /*width:755px;*/width:100%;
279 } 286 }
280 287
281 .errors { 288 .errors {
@@ -361,7 +368,7 @@ select { @@ -361,7 +368,7 @@ select {
361 .onclick { 368 .onclick {
362 cursor: pointer; 369 cursor: pointer;
363 color: #EC7725; 370 color: #EC7725;
364 - width: 150px; 371 + /*width: 150px;*/width:350px;top:12px;position:relative;
365 } 372 }
366 373
367 .description { 374 .description {
@@ -397,7 +404,7 @@ table#dbconf tr td { @@ -397,7 +404,7 @@ table#dbconf tr td {
397 } 404 }
398 405
399 table#dbconf tr td input{ 406 table#dbconf tr td input{
400 - 407 +
401 } 408 }
402 409
403 .options { 410 .options {
@@ -408,17 +415,17 @@ table#dbconf tr td input{ @@ -408,17 +415,17 @@ table#dbconf tr td input{
408 padding: 5px 8px; 415 padding: 5px 8px;
409 } 416 }
410 417
411 -#section { 418 +/*#section {
412 419
413 -} 420 +}*/
414 421
415 .php_ext_details table { 422 .php_ext_details table {
416 width:745px; 423 width:745px;
417 } 424 }
418 425
419 -.php_ext_details table tr {  
420 -  
421 -} 426 +/*.php_ext_details table tr {
  427 +
  428 +}*/
422 429
423 td.ext_indicator { 430 td.ext_indicator {
424 width:10px; 431 width:10px;
@@ -449,7 +456,7 @@ td.dir_description { @@ -449,7 +456,7 @@ td.dir_description {
449 } 456 }
450 457
451 .php_con_details table { 458 .php_con_details table {
452 - width:745px; 459 + /*width:745px;*/width:675px;
453 } 460 }
454 461
455 .error_message { 462 .error_message {
@@ -471,7 +478,7 @@ td.dir_description { @@ -471,7 +478,7 @@ td.dir_description {
471 margin-bottom:0.75em; 478 margin-bottom:0.75em;
472 font-weight:bold; 479 font-weight:bold;
473 } 480 }
474 - 481 +
475 .continue_message { 482 .continue_message {
476 border:none; 483 border:none;
477 width:550px; 484 width:550px;
@@ -533,7 +540,7 @@ td.dir_description { @@ -533,7 +540,7 @@ td.dir_description {
533 540
534 #loading { 541 #loading {
535 bottom:250px; 542 bottom:250px;
536 - left:500px; 543 + /*left:500px;*/left:400px;
537 position:relative; 544 position:relative;
538 height:0px; 545 height:0px;
539 width:0px; 546 width:0px;
@@ -548,4 +555,38 @@ td.dir_description { @@ -548,4 +555,38 @@ td.dir_description {
548 #left_space { 555 #left_space {
549 float:left; 556 float:left;
550 width:50%; 557 width:50%;
  558 + font-size:11pt;
  559 +}
  560 +
  561 +#welcome_license_dependencies {
  562 + height:100px;
  563 +}
  564 +
  565 +.dependency_details {
  566 + top:12px;
  567 + position:relative;
  568 + width:650px;
  569 +}
  570 +
  571 +.dependencies {
  572 + position:relative;
  573 + right:30%;
  574 +}
  575 +
  576 +.registration_template {
  577 + width:90%;
  578 +}
  579 +
  580 +.registration_select {
  581 + width: 270px;
  582 +}
  583 +
  584 +.description_complete {
  585 + position:relative;
  586 + right:35%;
  587 + width:100%;
  588 +}
  589 +
  590 +.space{
  591 + padding-bottom:5px;
551 } 592 }
552 \ No newline at end of file 593 \ No newline at end of file
setup/wizard/resources/graphics/loader.gif 0 → 100755

10.6 KB

setup/wizard/resources/js/form.js
@@ -9,8 +9,8 @@ $(document).ready(function() { @@ -9,8 +9,8 @@ $(document).ready(function() {
9 var options = {target: '#content_container', beforeSubmit: w.validateRegistration, success: w.adjustMenu($('form').attr('id'))}; 9 var options = {target: '#content_container', beforeSubmit: w.validateRegistration, success: w.adjustMenu($('form').attr('id'))};
10 $('form').ajaxForm(options); 10 $('form').ajaxForm(options);
11 } 11 }
12 - $(document).bind('keydown', 'Ctrl+n',function (evt){alert("n"); return false; });  
13 - $(document).bind('keydown', 'Ctrl+p',function (evt){alert("p"); return false; });  
14 - $(document).bind('keydown', 'Ctrl+e',function (evt){alert("e"); return false; });  
15 - $(document).bind('keydown', 'Ctrl+i',function (evt){alert("i"); return false; }); 12 + $(document).bind('keydown', 'Ctrl+n',function (evt){ });
  13 + $(document).bind('keydown', 'Ctrl+p',function (evt){ });
  14 + $(document).bind('keydown', 'Ctrl+e',function (evt){ });
  15 + $(document).bind('keydown', 'Ctrl+i',function (evt){ });
16 }); 16 });
17 \ No newline at end of file 17 \ No newline at end of file
setup/wizard/resources/js/wizard.js
1 // Class Wizard 1 // Class Wizard
2 -function wizard() { 2 +var ajaxOn = false;
  3 +function wizard() {
  4 + this.ajaxOn = false;
3 } 5 }
4 6
5 // Toggle Advance Database options 7 // Toggle Advance Database options
@@ -10,12 +12,20 @@ wizard.prototype.toggleClass = function(ele, option) { //adv_options|php_details @@ -10,12 +12,20 @@ wizard.prototype.toggleClass = function(ele, option) { //adv_options|php_details
10 var patt1=/none/gi; // preg match 12 var patt1=/none/gi; // preg match
11 var patt2=/block/gi; 13 var patt2=/block/gi;
12 if(style.match(patt1) == 'none') { 14 if(style.match(patt1) == 'none') {
13 - $('.'+ele).attr('style', 'display: block;'); 15 + if(this.ajaxOn) {
  16 + w.slideElement($('.'+ele), 'down');
  17 + } else {
  18 + $('.'+ele).attr('style', 'display: block;');
  19 + }
14 if($('#'+option).attr('innerHTML') != '&nbsp;&nbsp;Advanced Options') { 20 if($('#'+option).attr('innerHTML') != '&nbsp;&nbsp;Advanced Options') {
15 $('#'+option).attr('innerHTML', 'Hide Details'); 21 $('#'+option).attr('innerHTML', 'Hide Details');
16 } 22 }
17 } else if(style.match(patt2) == 'block') { 23 } else if(style.match(patt2) == 'block') {
18 - $('.'+ele).attr('style', 'display: none;'); 24 + if(this.ajaxOn) {
  25 + w.slideElement($('.'+ele), 'up');
  26 + } else {
  27 + $('.'+ele).attr('style', 'display: none;');
  28 + }
19 if($('#'+option).attr('innerHTML') != '&nbsp;&nbsp;Advanced Options') { 29 if($('#'+option).attr('innerHTML') != '&nbsp;&nbsp;Advanced Options') {
20 $('#'+option).attr('innerHTML', 'Show Details'); 30 $('#'+option).attr('innerHTML', 'Show Details');
21 } 31 }
@@ -23,6 +33,13 @@ wizard.prototype.toggleClass = function(ele, option) { //adv_options|php_details @@ -23,6 +33,13 @@ wizard.prototype.toggleClass = function(ele, option) { //adv_options|php_details
23 } 33 }
24 } 34 }
25 35
  36 +wizard.prototype.slideElement = function(el, dir) {
  37 + if(dir == 'down')
  38 + $(el).slideDown("slow");
  39 + else
  40 + $(el).slideUp("slow");
  41 +}
  42 +
26 // Focus on element 43 // Focus on element
27 wizard.prototype.focusElement = function(el) { 44 wizard.prototype.focusElement = function(el) {
28 el.focus(); 45 el.focus();
@@ -59,7 +76,7 @@ wizard.prototype.validateRegistration = function() { @@ -59,7 +76,7 @@ wizard.prototype.validateRegistration = function() {
59 $('#sendAll').attr('value', 'previous'); 76 $('#sendAll').attr('value', 'previous');
60 return true; 77 return true;
61 } 78 }
62 - 79 +
63 return false; 80 return false;
64 } 81 }
65 82
@@ -92,7 +109,7 @@ wizard.prototype.valRegHelper = function() { @@ -92,7 +109,7 @@ wizard.prototype.valRegHelper = function() {
92 w.focusElement(email); 109 w.focusElement(email);
93 return false; 110 return false;
94 } 111 }
95 - 112 +
96 return true; 113 return true;
97 } 114 }
98 115
@@ -107,7 +124,7 @@ wizard.prototype.nameCheck = function(str) { @@ -107,7 +124,7 @@ wizard.prototype.nameCheck = function(str) {
107 } 124 }
108 125
109 // Validate Registration Page Courtesy of SmartWebby.com (http://www.smartwebby.com/dhtml/) 126 // Validate Registration Page Courtesy of SmartWebby.com (http://www.smartwebby.com/dhtml/)
110 -wizard.prototype.emailCheck = function(str) { 127 +wizard.prototype.emailCheck = function(str) {
111 str = w.trim(str); 128 str = w.trim(str);
112 var at="@"; 129 var at="@";
113 var dot="."; 130 var dot=".";
@@ -141,12 +158,12 @@ wizard.prototype.emailCheck = function(str) { @@ -141,12 +158,12 @@ wizard.prototype.emailCheck = function(str) {
141 wizard.prototype.trim = function (str, chars) { 158 wizard.prototype.trim = function (str, chars) {
142 return w.ltrim(w.rtrim(str, chars), chars); 159 return w.ltrim(w.rtrim(str, chars), chars);
143 } 160 }
144 - 161 +
145 wizard.prototype.ltrim = function (str, chars) { 162 wizard.prototype.ltrim = function (str, chars) {
146 chars = chars || "\\s"; 163 chars = chars || "\\s";
147 return str.replace(new RegExp("^[" + chars + "]+", "g"), ""); 164 return str.replace(new RegExp("^[" + chars + "]+", "g"), "");
148 } 165 }
149 - 166 +
150 wizard.prototype.rtrim = function (str, chars) { 167 wizard.prototype.rtrim = function (str, chars) {
151 chars = chars || "\\s"; 168 chars = chars || "\\s";
152 return str.replace(new RegExp("[" + chars + "]+$", "g"), ""); 169 return str.replace(new RegExp("[" + chars + "]+$", "g"), "");
@@ -170,17 +187,18 @@ wizard.prototype.adjustMenu = function (form_id, previous) { @@ -170,17 +187,18 @@ wizard.prototype.adjustMenu = function (form_id, previous) {
170 } 187 }
171 188
172 wizard.prototype.dummy = function () { 189 wizard.prototype.dummy = function () {
173 - 190 +
174 } 191 }
175 192
176 -// pre-submit callback 193 +// pre-submit callback
177 wizard.prototype.showRequest = function (formData, jqForm, options) { 194 wizard.prototype.showRequest = function (formData, jqForm, options) {
178 - $.blockUI({message:''}); 195 + //$.blockUI({message:''});
  196 + $.blockUI({overlayCSS:{opacity:0.1}, fadeIn:500, fadeOut:500, message:''});
179 $('#loading').attr('style', 'display:block;'); 197 $('#loading').attr('style', 'display:block;');
180 } 198 }
181 199
182 -// post-submit callback  
183 -wizard.prototype.showResponse = function (responseText, statusText) { 200 +// post-submit callback
  201 +wizard.prototype.showResponse = function (responseText, statusText) {
184 $.unblockUI(); 202 $.unblockUI();
185 $('#loading').attr('style', 'display:none;'); 203 $('#loading').attr('style', 'display:none;');
186 } 204 }
@@ -194,12 +212,12 @@ wizard.prototype.refresh = function (page) { @@ -194,12 +212,12 @@ wizard.prototype.refresh = function (page) {
194 type: "GET", 212 type: "GET",
195 cache: false, 213 cache: false,
196 beforeSubmit: w.showRequest, 214 beforeSubmit: w.showRequest,
197 - success: function(data){  
198 - $("#"+div).empty();  
199 - $("#"+div).append(data);  
200 - w.showResponse;  
201 - return;  
202 - } 215 + success: function(data) {
  216 + $("#"+div).empty();
  217 + $("#"+div).append(data);
  218 + w.showResponse;
  219 + return;
  220 + }
203 }); 221 });
204 } 222 }
205 223
@@ -210,7 +228,7 @@ wizard.prototype.getUrl = function (address, div) { @@ -210,7 +228,7 @@ wizard.prototype.getUrl = function (address, div) {
210 dataType: "html", 228 dataType: "html",
211 type: "GET", 229 type: "GET",
212 cache: false, 230 cache: false,
213 - success: function(data){ 231 + success: function(data) {
214 $("#"+div).empty(); 232 $("#"+div).empty();
215 $("#"+div).append(data); 233 $("#"+div).append(data);
216 return; 234 return;
@@ -227,11 +245,5 @@ wizard.prototype.sendRegistration = function () { @@ -227,11 +245,5 @@ wizard.prototype.sendRegistration = function () {
227 } 245 }
228 246
229 wizard.prototype.clearSessions = function () { 247 wizard.prototype.clearSessions = function () {
230 -// var address = 'session.php?action=destroyAll';  
231 -// $.ajax({  
232 -// url: address,  
233 -// dataType: "html",  
234 -// type: "POST",  
235 -// cache: false,  
236 -// }); 248 +
237 } 249 }
238 \ No newline at end of file 250 \ No newline at end of file
setup/wizard/steps/complete.php
1 <?php 1 <?php
2 /** 2 /**
3 -* Complete Step Controller. 3 +* Complete Step Controller.
4 * 4 *
5 * KnowledgeTree Community Edition 5 * KnowledgeTree Community Edition
6 * Document Management Made Simple 6 * Document Management Made Simple
@@ -44,7 +44,7 @@ class complete extends Step { @@ -44,7 +44,7 @@ class complete extends Step {
44 44
45 /** 45 /**
46 * List of services to check 46 * List of services to check
47 - * 47 + *
48 * @access private 48 * @access private
49 * @var array 49 * @var array
50 */ 50 */
@@ -55,13 +55,16 @@ class complete extends Step { @@ -55,13 +55,16 @@ class complete extends Step {
55 private $migrate_check = false; 55 private $migrate_check = false;
56 public $silent = true; 56 public $silent = true;
57 private $servicesValidation = false; 57 private $servicesValidation = false;
58 - 58 + private $pathsSection = true;
  59 + private $databaseSection = true;
  60 + private $privilegesSection = true;
  61 +
59 function doStep() { 62 function doStep() {
60 $this->temp_variables = array("step_name"=>"complete", "silent"=>$this->silent); 63 $this->temp_variables = array("step_name"=>"complete", "silent"=>$this->silent);
61 $this->doRun(); 64 $this->doRun();
62 return 'landing'; 65 return 'landing';
63 } 66 }
64 - 67 +
65 function doRun() { 68 function doRun() {
66 $this->checkFileSystem(); // check filesystem (including location of document directory and logging) 69 $this->checkFileSystem(); // check filesystem (including location of document directory and logging)
67 $this->checkDb(); // check database 70 $this->checkDb(); // check database
@@ -69,7 +72,7 @@ class complete extends Step { @@ -69,7 +72,7 @@ class complete extends Step {
69 $this->checkInstallType();// Set silent mode variables 72 $this->checkInstallType();// Set silent mode variables
70 $this->storeSilent();// Set silent mode variables 73 $this->storeSilent();// Set silent mode variables
71 } 74 }
72 - 75 +
73 private function checkFileSystem() 76 private function checkFileSystem()
74 { 77 {
75 // defaults 78 // defaults
@@ -81,36 +84,33 @@ class complete extends Step { @@ -81,36 +84,33 @@ class complete extends Step {
81 $this->temp_variables['config'] = ''; 84 $this->temp_variables['config'] = '';
82 $this->temp_variables['docLocation'] = ''; 85 $this->temp_variables['docLocation'] = '';
83 $docRoot = ''; 86 $docRoot = '';
84 - // retrieve path information from session  
85 - $config = $this->getDataFromSession("configuration"); 87 + $config = $this->getDataFromSession("configuration"); // retrieve path information from session
86 $paths = $config['paths']; 88 $paths = $config['paths'];
87 -  
88 $html = '<td><div class="%s"></div></td>' 89 $html = '<td><div class="%s"></div></td>'
89 . '<td %s>%s</td>'; 90 . '<td %s>%s</td>';
90 $pathhtml = '<td><div class="%s"></div></td>' 91 $pathhtml = '<td><div class="%s"></div></td>'
91 . '<td>%s</td>' 92 . '<td>%s</td>'
92 . '<td %s>%s</td>'; 93 . '<td %s>%s</td>';
93 - // check paths are writeable  
94 - if(is_array($paths)) { 94 + if(is_array($paths)) { // check paths are writeable
95 foreach ($paths as $path) 95 foreach ($paths as $path)
96 { 96 {
97 $output = ''; 97 $output = '';
98 $path['path'] = $class = strtolower(substr($path['path'],0,1)).substr($path['path'],1); // Damn you windows 98 $path['path'] = $class = strtolower(substr($path['path'],0,1)).substr($path['path'],1); // Damn you windows
99 $result = $this->util->checkPermission($path['path']); 99 $result = $this->util->checkPermission($path['path']);
100 - $output = sprintf($pathhtml, $result['class'], $path['path'],  
101 - (($result['class'] == 'tick') ? 'class="green"' : 'class="error"' ), 100 + $output = sprintf($pathhtml, $result['class'], $path['path'],
  101 + (($result['class'] == 'tick') ? 'class="green"' : 'class="error"' ),
102 (($result['class'] == 'tick') ? 'Writeable' : 'Not Writeable' )); 102 (($result['class'] == 'tick') ? 'Writeable' : 'Not Writeable' ));
103 $this->temp_variables[($path['setting'] != '') ? $path['setting'] : 'config'] = $output; 103 $this->temp_variables[($path['setting'] != '') ? $path['setting'] : 'config'] = $output;
104 if($result['class'] != 'tick') { 104 if($result['class'] != 'tick') {
  105 + $this->pathsSection = false;
105 $this->paths_check = $result['class']; 106 $this->paths_check = $result['class'];
106 } 107 }
107 // for document location check 108 // for document location check
108 if ($path['setting'] == 'documentRoot') { 109 if ($path['setting'] == 'documentRoot') {
109 - $docRoot = $path['path']; 110 + $docRoot = $path['path'];
110 } 111 }
111 } 112 }
112 } 113 }
113 -  
114 // check document path internal/external to web root 114 // check document path internal/external to web root
115 // compare SYSTEM_DIR to root path of documentRoot 115 // compare SYSTEM_DIR to root path of documentRoot
116 // NOTE preg_replace is to ensure all slash separators are the same (forward slash) 116 // NOTE preg_replace is to ensure all slash separators are the same (forward slash)
@@ -121,15 +121,15 @@ class complete extends Step { @@ -121,15 +121,15 @@ class complete extends Step {
121 . '<td class="warning" colspan="2">Your document directory is set to the default, which is inside the web root. ' 121 . '<td class="warning" colspan="2">Your document directory is set to the default, which is inside the web root. '
122 . 'This may present a security problem if your documents can be accessed from the web, ' 122 . 'This may present a security problem if your documents can be accessed from the web, '
123 . 'working around the permission system in KnowledgeTree.</td>'; 123 . 'working around the permission system in KnowledgeTree.</td>';
124 - if($this->paths_check == 'tick')  
125 - $this->paths_check = 'cross_orange';  
126 - $this->warnings[] = 'Move var directory'; 124 + $this->paths_check = 'cross_orange';
  125 + $this->warnings[] = 'Move var directory';
  126 + $this->pathsSection = false;
127 } 127 }
128 else { 128 else {
129 $this->temp_variables['docLocation'] = sprintf($html, 'tick', '', 'Your document directory is outside the web root.'); 129 $this->temp_variables['docLocation'] = sprintf($html, 'tick', '', 'Your document directory is outside the web root.');
130 } 130 }
131 } 131 }
132 - 132 +
133 private function checkDb() 133 private function checkDb()
134 { 134 {
135 // defaults 135 // defaults
@@ -146,16 +146,17 @@ class complete extends Step { @@ -146,16 +146,17 @@ class complete extends Step {
146 $loaded = $this->util->dbUtilities->getDatabaseLink(); 146 $loaded = $this->util->dbUtilities->getDatabaseLink();
147 if (!$loaded) { 147 if (!$loaded) {
148 $this->temp_variables['dbConnectAdmin'] .= '<td><div class="cross"></div></td>' 148 $this->temp_variables['dbConnectAdmin'] .= '<td><div class="cross"></div></td>'
149 - . '<td class="error">Unable to connect to database (user: ' 149 + . '<td class="error">Unable to connect to database (user: '
150 . $dbconf['dmsname'] . ')</td>'; 150 . $dbconf['dmsname'] . ')</td>';
151 $this->database_check = 'cross'; 151 $this->database_check = 'cross';
152 $this->temp_variables['dbConnectAdmin'] .= sprintf($html, 'cross', 'class="error"', 'Unable to connect to database (user: ' . $dbconf['dmsname'] . ')'); 152 $this->temp_variables['dbConnectAdmin'] .= sprintf($html, 'cross', 'class="error"', 'Unable to connect to database (user: ' . $dbconf['dmsname'] . ')');
  153 + $this->privilegesSection = false;
153 } 154 }
154 else 155 else
155 { 156 {
156 $this->temp_variables['dbConnectAdmin'] .= sprintf($html, 'tick', '', 'Database connectivity successful (user: ' . $dbconf['dmsname'] . ')'); 157 $this->temp_variables['dbConnectAdmin'] .= sprintf($html, 'tick', '', 'Database connectivity successful (user: ' . $dbconf['dmsname'] . ')');
157 } 158 }
158 - 159 +
159 // make db connection - user 160 // make db connection - user
160 $this->util->dbUtilities->load($dbconf['dhost'], $dbconf['dport'], $dbconf['dmsusername'], $dbconf['dmsuserpassword'], $dbconf['dname']); 161 $this->util->dbUtilities->load($dbconf['dhost'], $dbconf['dport'], $dbconf['dmsusername'], $dbconf['dmsuserpassword'], $dbconf['dname']);
161 $loaded = $this->util->dbUtilities->getDatabaseLink(); 162 $loaded = $this->util->dbUtilities->getDatabaseLink();
@@ -170,17 +171,16 @@ class complete extends Step { @@ -170,17 +171,16 @@ class complete extends Step {
170 { 171 {
171 $this->temp_variables['dbPrivileges'] .= '<td style="width:15px;"><div class="cross" style="float:left;"></div></td>' 172 $this->temp_variables['dbPrivileges'] .= '<td style="width:15px;"><div class="cross" style="float:left;"></div></td>'
172 . '<td class="error" style="width:500px;">' 173 . '<td class="error" style="width:500px;">'
173 - . 'Unable to do a basic database query. Error: ' . $this->util->dbUtilities->getLastError()  
174 - . '</td>';  
175 - $this->privileges_check = 'cross'; 174 + . 'Unable to do a basic database query. Error: ' . $this->util->dbUtilities->getLastError() . '</td>';
176 $this->privileges_check = 'cross'; 175 $this->privileges_check = 'cross';
  176 + $this->privilegesSection = false;
177 } 177 }
178 else 178 else
179 { 179 {
180 $this->temp_variables['dbPrivileges'] .= sprintf($html, 'tick', '', 'Basic database query successful'); 180 $this->temp_variables['dbPrivileges'] .= sprintf($html, 'tick', '', 'Basic database query successful');
181 - 181 +
182 } 182 }
183 - 183 +
184 // check transaction support 184 // check transaction support
185 $sTable = 'system_settings'; 185 $sTable = 'system_settings';
186 $this->util->dbUtilities->startTransaction(); 186 $this->util->dbUtilities->startTransaction();
@@ -190,6 +190,7 @@ class complete extends Step { @@ -190,6 +190,7 @@ class complete extends Step {
190 if (!$res) { 190 if (!$res) {
191 $this->temp_variables['dbTransaction'] .= sprintf($html, 'cross', 'class="error"', 'Transaction support not available in database'); 191 $this->temp_variables['dbTransaction'] .= sprintf($html, 'cross', 'class="error"', 'Transaction support not available in database');
192 $this->privileges_check = 'cross'; 192 $this->privileges_check = 'cross';
  193 + $this->privilegesSection = false;
193 } else { 194 } else {
194 $this->temp_variables['dbTransaction'] .= sprintf($html, 'tick', '', 'Database has transaction support'); 195 $this->temp_variables['dbTransaction'] .= sprintf($html, 'tick', '', 'Database has transaction support');
195 } 196 }
@@ -200,7 +201,7 @@ class complete extends Step { @@ -200,7 +201,7 @@ class complete extends Step {
200 $this->temp_variables['dbConnectUser'] .= sprintf($html, 'cross', 'class="error"', 'Unable to connect to database (user: ' . $dbconf['dmsusername'] . ')'); 201 $this->temp_variables['dbConnectUser'] .= sprintf($html, 'cross', 'class="error"', 'Unable to connect to database (user: ' . $dbconf['dmsusername'] . ')');
201 } 202 }
202 } 203 }
203 - 204 +
204 private function checkServices() 205 private function checkServices()
205 { 206 {
206 $services = new services(); 207 $services = new services();
@@ -215,10 +216,10 @@ class complete extends Step { @@ -215,10 +216,10 @@ class complete extends Step {
215 $this->temp_variables[$serviceName."Status"] = 'cross_orange'; 216 $this->temp_variables[$serviceName."Status"] = 'cross_orange';
216 $this->services_check = 'cross_orange'; 217 $this->services_check = 'cross_orange';
217 } 218 }
218 - } 219 + }
219 return true; 220 return true;
220 } 221 }
221 - 222 +
222 function checkInstallType() { 223 function checkInstallType() {
223 if ($this->util->isMigration()) { 224 if ($this->util->isMigration()) {
224 $this->migrate_check = true; 225 $this->migrate_check = true;
@@ -226,7 +227,7 @@ class complete extends Step { @@ -226,7 +227,7 @@ class complete extends Step {
226 $this->migrate_check = false; 227 $this->migrate_check = false;
227 } 228 }
228 } 229 }
229 - 230 +
230 /** 231 /**
231 * Set all silent mode varibles 232 * Set all silent mode varibles
232 * 233 *
@@ -238,6 +239,10 @@ class complete extends Step { @@ -238,6 +239,10 @@ class complete extends Step {
238 $this->temp_variables['database_check'] = $this->database_check; 239 $this->temp_variables['database_check'] = $this->database_check;
239 $this->temp_variables['migrate_check'] = $this->migrate_check; 240 $this->temp_variables['migrate_check'] = $this->migrate_check;
240 $this->temp_variables['servicesValidation'] = $this->servicesValidation; 241 $this->temp_variables['servicesValidation'] = $this->servicesValidation;
  242 + //if(!$this->pathsSection) {die;} else {echo 'huh';}
  243 + $this->temp_variables['pathsSection'] = $this->pathsSection;
  244 + $this->temp_variables['databaseSection'] = $this->databaseSection;
  245 + $this->temp_variables['privilegesSection'] = $this->privilegesSection;
241 } 246 }
242 } 247 }
243 ?> 248 ?>
244 \ No newline at end of file 249 \ No newline at end of file
setup/wizard/steps/dependencies.php
@@ -48,7 +48,7 @@ class dependencies extends Step @@ -48,7 +48,7 @@ class dependencies extends Step
48 private $versionSection = false; 48 private $versionSection = false;
49 private $extensionSection = false; 49 private $extensionSection = false;
50 private $configurationSection = false; 50 private $configurationSection = false;
51 - 51 +
52 /** 52 /**
53 * Flag to store class information in session 53 * Flag to store class information in session
54 * 54 *
@@ -167,7 +167,7 @@ class dependencies extends Step @@ -167,7 +167,7 @@ class dependencies extends Step
167 public function getWarnings() { 167 public function getWarnings() {
168 return $this->warnings; 168 return $this->warnings;
169 } 169 }
170 - 170 +
171 /** 171 /**
172 * Get the variables to be passed to the template 172 * Get the variables to be passed to the template
173 * 173 *
@@ -264,7 +264,7 @@ class dependencies extends Step @@ -264,7 +264,7 @@ class dependencies extends Step
264 } 264 }
265 $check['class'] = 'tick'; 265 $check['class'] = 'tick';
266 $check['version'] = "You are running version <b>{$phpversion}</b>."; 266 $check['version'] = "You are running version <b>{$phpversion}</b>.";
267 - 267 +
268 return $check; 268 return $check;
269 } 269 }
270 270
@@ -337,7 +337,7 @@ class dependencies extends Step @@ -337,7 +337,7 @@ class dependencies extends Step
337 array('extension' => 'mysql', 'required' => 'yes', 'name' => 'MySQL', 'details' => 'Used for accessing a MySQL database.'), 337 array('extension' => 'mysql', 'required' => 'yes', 'name' => 'MySQL', 'details' => 'Used for accessing a MySQL database.'),
338 array('extension' => 'curl', 'required' => 'yes', 'name' => 'cURL', 'details' => 'Allows the connection and communication between different servers types using various protocols.'), 338 array('extension' => 'curl', 'required' => 'yes', 'name' => 'cURL', 'details' => 'Allows the connection and communication between different servers types using various protocols.'),
339 array('extension' => 'xmlrpc', 'required' => 'yes', 'name' => 'XMLRPC', 'details' => 'Used with XML-RPC servers and clients.'), 339 array('extension' => 'xmlrpc', 'required' => 'yes', 'name' => 'XMLRPC', 'details' => 'Used with XML-RPC servers and clients.'),
340 - array('extension' => 'win32', 'required' => 'no', 'name' => 'Win32', 'details' => 'Allows control of Microsoft Windows services.'), 340 + array('extension' => 'win32service', 'required' => 'no', 'name' => 'Win32 Services', 'details' => 'Allows control of Microsoft Windows services.'),
341 array('extension' => 'mbstring', 'required' => 'no', 'name' => 'Multi Byte Strings', 'details' => 'Used in the manipulation of multi-byte strings.'), 341 array('extension' => 'mbstring', 'required' => 'no', 'name' => 'Multi Byte Strings', 'details' => 'Used in the manipulation of multi-byte strings.'),
342 array('extension' => 'ldap', 'required' => 'no', 'name' => 'LDAP', 'details' => 'Used to access LDAP directory servers.'), 342 array('extension' => 'ldap', 'required' => 'no', 'name' => 'LDAP', 'details' => 'Used to access LDAP directory servers.'),
343 array('extension' => 'json', 'required' => 'yes', 'name' => 'JSON', 'details' => 'Implements the javascript object notation (json) data-interchange format.'), 343 array('extension' => 'json', 'required' => 'yes', 'name' => 'JSON', 'details' => 'Implements the javascript object notation (json) data-interchange format.'),
@@ -392,7 +392,7 @@ class dependencies extends Step @@ -392,7 +392,7 @@ class dependencies extends Step
392 array('name' => 'Memory limit', 'configuration' => 'memory_limit', 'recommended' => '32M', 'type' => 'int'), 392 array('name' => 'Memory limit', 'configuration' => 'memory_limit', 'recommended' => '32M', 'type' => 'int'),
393 ); 393 );
394 } 394 }
395 - 395 +
396 public function storeSilent() { 396 public function storeSilent() {
397 $this->temp_variables['versionSection'] = $this->versionSection; 397 $this->temp_variables['versionSection'] = $this->versionSection;
398 $this->temp_variables['extensionSection'] = $this->extensionSection; 398 $this->temp_variables['extensionSection'] = $this->extensionSection;
setup/wizard/steps/registration.php
@@ -280,6 +280,14 @@ class registration extends Step @@ -280,6 +280,14 @@ class registration extends Step
280 ); 280 );
281 281
282 $countries = array( 282 $countries = array(
  283 + 'noneselected' => 'Select Country...',
  284 + 'US' => 'UNITED STATES',
  285 + 'GB' => 'UNITED KINGDOM',
  286 + 'FR' => 'FRANCE',
  287 + 'DE' => 'GERMANY',
  288 + 'IT' => 'ITALY',
  289 + 'PT' => 'PORTUGAL',
  290 + 'ES' => 'SPAIN',
283 'AF' => 'AFGHANISTAN', 291 'AF' => 'AFGHANISTAN',
284 'AX' => '&Aring;LAND ISLANDS', 292 'AX' => '&Aring;LAND ISLANDS',
285 'AL' => 'ALBANIA', 293 'AL' => 'ALBANIA',
@@ -353,14 +361,12 @@ class registration extends Step @@ -353,14 +361,12 @@ class registration extends Step
353 'FO' => 'FAROE ISLANDS', 361 'FO' => 'FAROE ISLANDS',
354 'FJ' => 'FIJI', 362 'FJ' => 'FIJI',
355 'FI' => 'FINLAND', 363 'FI' => 'FINLAND',
356 - 'FR' => 'FRANCE',  
357 'GF' => 'FRENCH GUIANA', 364 'GF' => 'FRENCH GUIANA',
358 'PF' => 'FRENCH POLYNESIA', 365 'PF' => 'FRENCH POLYNESIA',
359 'TF' => 'FRENCH SOUTHERN TERRITORIES', 366 'TF' => 'FRENCH SOUTHERN TERRITORIES',
360 'GA' => 'GABON', 367 'GA' => 'GABON',
361 'GM' => 'GAMBIA', 368 'GM' => 'GAMBIA',
362 'GE' => 'GEORGIA', 369 'GE' => 'GEORGIA',
363 - 'DE' => 'GERMANY',  
364 'GH' => 'GHANA', 370 'GH' => 'GHANA',
365 'GI' => 'GIBRALTAR', 371 'GI' => 'GIBRALTAR',
366 'GR' => 'GREECE', 372 'GR' => 'GREECE',
@@ -387,9 +393,7 @@ class registration extends Step @@ -387,9 +393,7 @@ class registration extends Step
387 'IE' => 'IRELAND', 393 'IE' => 'IRELAND',
388 'IM' => 'ISLE OF MAN', 394 'IM' => 'ISLE OF MAN',
389 'IL' => 'ISRAEL', 395 'IL' => 'ISRAEL',
390 - 'IT' => 'ITALY',  
391 'JM' => 'JAMAICA', 396 'JM' => 'JAMAICA',
392 - 'JP' => 'JAPAN',  
393 'JE' => 'JERSEY', 397 'JE' => 'JERSEY',
394 'JO' => 'JORDAN', 398 'JO' => 'JORDAN',
395 'KZ' => 'KAZAKHSTAN', 399 'KZ' => 'KAZAKHSTAN',
@@ -456,7 +460,6 @@ class registration extends Step @@ -456,7 +460,6 @@ class registration extends Step
456 'PH' => 'PHILIPPINES', 460 'PH' => 'PHILIPPINES',
457 'PN' => 'PITCAIRN', 461 'PN' => 'PITCAIRN',
458 'PL' => 'POLAND', 462 'PL' => 'POLAND',
459 - 'PT' => 'PORTUGAL',  
460 'PR' => 'PUERTO RICO', 463 'PR' => 'PUERTO RICO',
461 'QA' => 'QATAR', 464 'QA' => 'QATAR',
462 'RE' => 'REUNION', 465 'RE' => 'REUNION',
@@ -486,7 +489,6 @@ class registration extends Step @@ -486,7 +489,6 @@ class registration extends Step
486 'SO' => 'SOMALIA', 489 'SO' => 'SOMALIA',
487 'ZA' => 'SOUTH AFRICA', 490 'ZA' => 'SOUTH AFRICA',
488 'GS' => 'SOUTH GEORGIA AND THE SOUTH SANDWICH ISLANDS', 491 'GS' => 'SOUTH GEORGIA AND THE SOUTH SANDWICH ISLANDS',
489 - 'ES' => 'SPAIN',  
490 'LK' => 'SRI LANKA', 492 'LK' => 'SRI LANKA',
491 'SD' => 'SUDAN', 493 'SD' => 'SUDAN',
492 'SR' => 'SURINAME', 494 'SR' => 'SURINAME',
@@ -512,8 +514,6 @@ class registration extends Step @@ -512,8 +514,6 @@ class registration extends Step
512 'UG' => 'UGANDA', 514 'UG' => 'UGANDA',
513 'UA' => 'UKRAINE', 515 'UA' => 'UKRAINE',
514 'AE' => 'UNITED ARAB EMIRATES', 516 'AE' => 'UNITED ARAB EMIRATES',
515 - 'GB' => 'UNITED KINGDOM',  
516 - 'US' => 'UNITED STATES',  
517 'UM' => 'UNITED STATES MINOR OUTLYING ISLANDS', 517 'UM' => 'UNITED STATES MINOR OUTLYING ISLANDS',
518 'UY' => 'URUGUAY', 518 'UY' => 'URUGUAY',
519 'UZ' => 'UZBEKISTAN', 519 'UZ' => 'UZBEKISTAN',
setup/wizard/template.php
@@ -40,63 +40,63 @@ @@ -40,63 +40,63 @@
40 * @version Version 0.1 40 * @version Version 0.1
41 */ 41 */
42 42
43 -class Template 43 +class Template
44 { 44 {
45 /** 45 /**
46 * Hold all the variables that are going to be imported into the template file 46 * Hold all the variables that are going to be imported into the template file
47 * @var array 47 * @var array
48 */ 48 */
49 - var $template_vars = Array(); 49 + var $template_vars = Array();
  50 +
50 51
51 -  
52 /** 52 /**
53 * Constructor 53 * Constructor
54 - * 54 + *
55 * @author KnowledgeTree Team 55 * @author KnowledgeTree Team
56 * @param string $file the file name you want to load 56 * @param string $file the file name you want to load
57 * @access public 57 * @access public
58 * @return void 58 * @return void
59 */ 59 */
60 - public function Template($file = null) 60 + public function Template($file = null)
61 { 61 {
62 $this->file = $file; 62 $this->file = $file;
63 } 63 }
64 64
65 - 65 +
66 /** 66 /**
67 * Set a variable into the template 67 * Set a variable into the template
68 * If the variable is a template object, go and call its template::fetch() method 68 * If the variable is a template object, go and call its template::fetch() method
69 - * 69 + *
70 * @author KnowledgeTree Team 70 * @author KnowledgeTree Team
71 * @param string $name The name for this value in the template file 71 * @param string $name The name for this value in the template file
72 * @param string $value The value to show in the template file 72 * @param string $value The value to show in the template file
73 * @access public 73 * @access public
74 * @return void 74 * @return void
75 */ 75 */
76 - public function set($name, $value) 76 + public function set($name, $value)
77 { 77 {
78 //if(is_a($value, 'Template')) { 78 //if(is_a($value, 'Template')) {
79 $class = 'Template'; 79 $class = 'Template';
80 $isA = $value instanceof $class; 80 $isA = $value instanceof $class;
81 if($isA) { 81 if($isA) {
82 - $value = $value->fetch(); 82 + $value = $value->fetch();
83 } 83 }
84 $this->template_vars[$name] = $value; 84 $this->template_vars[$name] = $value;
85 } 85 }
86 86
87 - 87 +
88 /** 88 /**
89 * Create the template and import its variables 89 * Create the template and import its variables
90 - * 90 + *
91 * @author KnowledgeTree Team 91 * @author KnowledgeTree Team
92 * @param string $file The file to use as the template 92 * @param string $file The file to use as the template
93 * @access public 93 * @access public
94 * @return string The parsed template 94 * @return string The parsed template
95 */ 95 */
96 - public function fetch($file = null) 96 + public function fetch($file = null)
97 { 97 {
98 if (is_null($file)) $file = $this->file; 98 if (is_null($file)) $file = $this->file;
99 - 99 +
100 $file = WIZARD_DIR . $file; 100 $file = WIZARD_DIR . $file;
101 if (!file_exists($file)) { 101 if (!file_exists($file)) {
102 trigger_error('Template file '.$file.' does not exist ', E_USER_ERROR); 102 trigger_error('Template file '.$file.' does not exist ', E_USER_ERROR);
@@ -105,10 +105,10 @@ class Template @@ -105,10 +105,10 @@ class Template
105 extract($this->template_vars); // Extract the vars to local namespace 105 extract($this->template_vars); // Extract the vars to local namespace
106 ob_start(); 106 ob_start();
107 include($file); 107 include($file);
108 - $contents = ob_get_contents();  
109 - ob_end_clean(); 108 + $contents = ob_get_contents();
  109 + ob_end_clean();
110 return $contents; 110 return $contents;
111 } 111 }
112 - 112 +
113 } 113 }
114 ?> 114 ?>
115 \ No newline at end of file 115 \ No newline at end of file
setup/wizard/templates/complete.tpl
1 <form id="install_complete_none"> 1 <form id="install_complete_none">
2 - <p class="title">Installation Completed</p>  
3 -  
4 - <p class="description">This allows you to check that your KnowledgeTree configuration is set  
5 - up correctly. You can run this at any time after configuration to check  
6 - that things are still set up correctly.</p>  
7 -  
8 - <?php  
9 -// if($errors || $warnings){  
10 - echo '<div>'  
11 - . '<a href="http://wiki.knowledgetree.com/Web_Based_Installer#Post_Install" target="_blank">'  
12 - . 'Click Here for help on overcoming post install issues</a></div><br/>';  
13 -// }  
14 - ?> 2 + <p class="title">
  3 + Installation Completed
  4 + </p>
  5 + <p class="description">
  6 + This allows you to check that your KnowledgeTree configuration is set up correctly.
  7 + <br/>
  8 + Use the Finish link to login to the system using username: <b><i>admin</b></i> and password: <b><i>admin</b></i>.
  9 +<!-- You can run this at any time after configuration to check that things are still set up correctly.-->
  10 + </p>
  11 + <div>
  12 + <a href="http://wiki.knowledgetree.com/Web_Based_Installer#Post_Install" target="_blank">
  13 + Click Here for help on overcoming post install issues
  14 + </a>
  15 + </div>
  16 + <br/>
15 <div id="step_content_<?php echo $step_name; ?>" class="step"> 17 <div id="step_content_<?php echo $step_name; ?>" class="step">
16 -  
17 <?php if(!$servicesValidation) { ?> 18 <?php if(!$servicesValidation) { ?>
18 <h3>Services</h3> 19 <h3>Services</h3>
19 The KnowledgeTree services need to be started to allow for optimal functioning of the search, indexing and pdf generation. 20 The KnowledgeTree services need to be started to allow for optimal functioning of the search, indexing and pdf generation.
20 <?php if(!WINDOWS_OS) { ?> 21 <?php if(!WINDOWS_OS) { ?>
21 - To start the services, execute the dmsctl.sh shell script in the KnowledgeTree directory from a terminal.<br/><br/> 22 + To start the services, execute the dmsctl.sh shell script in the KnowledgeTree directory from a terminal.
  23 + <br/>
  24 + <br/>
22 <?php } else { ?> 25 <?php } else { ?>
23 - To start the services, execute the dmsctl.bat batch file in the KnowledgeTree directory from a command prompt, run as administrator.<br/><br/> 26 + To start the services, execute the dmsctl.bat batch file in the KnowledgeTree directory from a command prompt, run as administrator.
  27 + <br/>
  28 + <br/>
24 <?php } ?> 29 <?php } ?>
25 <p class="disclaimer"> 30 <p class="disclaimer">
26 <?php if(WINDOWS_OS) { ?> 31 <?php if(WINDOWS_OS) { ?>
27 - cd KnowledgeTree_Installation_Folder<br/>  
28 - dmsctl.bat install<br/>  
29 - dmsctl.bat start 32 + cd KnowledgeTree_Installation_Folder<br/>
  33 + dmsctl.bat install<br/>
  34 + dmsctl.bat start
30 <?php } else { ?> 35 <?php } else { ?>
31 - cd /usr/share/knowledgetree-ce<br/>  
32 - sudo ./dmsctl.sh start 36 + cd /usr/share/knowledgetree-ce<br/>
  37 + sudo ./dmsctl.sh start
33 <?php } ?> 38 <?php } ?>
34 </p> 39 </p>
35 -  
36 <br/> 40 <br/>
37 <?php } ?> 41 <?php } ?>
38 <!-- Paths and Permissions --> 42 <!-- Paths and Permissions -->
39 - <div>  
40 - <h3><?php echo "<span class='{$paths_check}'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>"; ?>Paths and Permissions</h3> 43 + <?php
  44 + $iconFlag = "<span class='{$paths_check}'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>";
  45 + $checkHeading = "<h3 style='width:35%; float:left;'>".$iconFlag."Paths and Permissions</h3>";
  46 + ?>
  47 +<!-- <div>-->
  48 + <?php if($pathsSection) {
  49 + $details = 'Show Details';
  50 + $display = 'none';
  51 + } else {
  52 + $details = 'Hide Details';
  53 + $display = 'block';
  54 + }?>
  55 +<!-- <h3><?php //echo "<span class='{$paths_check}'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>"; ?>Paths and Permissions</h3>-->
41 <?php if($silent) { ?> 56 <?php if($silent) { ?>
42 - <div id="option8" class="onclick" onclick="javascript:{w.toggleClass('paths_check', 'option8');}">Show Details</div>  
43 - <div class="paths_check" style="display:none"> 57 +<!-- <div id="option8" class="onclick" onclick="javascript:{w.toggleClass('paths_check', 'option8');}">Show Details</div>-->
  58 +<!-- <div class="paths_check" style="display:none">-->
44 <?php } ?> 59 <?php } ?>
45 - <table> 60 + <?php
  61 + $pathsCheck = $checkHeading;
  62 + $pathsCheck .= "<div id='option8' class='onclick' onclick='javascript:{w.toggleClass(\"paths_check\", \"option8\");}'>";
  63 + $pathsCheck .= $details."</div>";
  64 + $pathsCheck .= "<div class='paths_check dependency_details' style='display:".$display.";'>";
  65 + echo $pathsCheck;
  66 + ?>
  67 + <table class="description_complete">
  68 +<!-- <table class="description">-->
46 <tr><?php echo $varDirectory; ?></tr> 69 <tr><?php echo $varDirectory; ?></tr>
47 <tr><?php echo $documentRoot; ?></tr> 70 <tr><?php echo $documentRoot; ?></tr>
48 <tr><?php echo $logDirectory; ?></tr> 71 <tr><?php echo $logDirectory; ?></tr>
@@ -54,39 +77,78 @@ @@ -54,39 +77,78 @@
54 <?php if($silent) { ?> 77 <?php if($silent) { ?>
55 </div> 78 </div>
56 <?php } ?> 79 <?php } ?>
57 - </div>  
58 - <br/><br/>  
59 - <div> 80 +<!-- </div>-->
  81 + <br/>
  82 + <br/>
  83 +<!-- <div>-->
60 <!-- Database connectivity --> 84 <!-- Database connectivity -->
61 - <h3><?php echo "<span class='{$database_check}'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>"; ?>Database connectivity</h3> 85 + <?php
  86 + $iconFlag = "<span class='{$database_check}'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>";
  87 + $checkHeading = "<h3 style='width:35%; float:left;'>".$iconFlag."Database connectivity</h3>";
  88 + ?>
  89 + <?php if($databaseSection) {
  90 + $details = 'Show Details';
  91 + $display = 'none';
  92 + } else {
  93 + $details = 'Hide Details';
  94 + $display = 'block';
  95 + }?>
  96 +<!-- <h3><?php //echo "<span class='{$database_check}'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>"; ?>Database connectivity</h3>-->
62 <?php if($silent) { ?> 97 <?php if($silent) { ?>
63 - <div id="option9" class="onclick" onclick="javascript:{w.toggleClass('database_check', 'option9');}">Show Details</div>  
64 - <div class="database_check" style="display:none"> 98 +<!-- <div id="option9" class="onclick" onclick="javascript:{w.toggleClass('database_check', 'option9');}">Show Details</div>-->
  99 +<!-- <div class="database_check" style="display:none">-->
  100 + <?php
  101 + $databaseCheck = $checkHeading;
  102 + $databaseCheck .= "<div id='option9' class='onclick' onclick='javascript:{w.toggleClass(\"database_check\", \"option9\");}'>";
  103 + $databaseCheck .= $details."</div>";
  104 + $databaseCheck .= "<div class='database_check dependency_details' style='display:".$display.";'>";
  105 + echo $databaseCheck;
  106 + ?>
65 <?php } ?> 107 <?php } ?>
66 - <table> 108 + <table class="description_complete">
67 <tr><?php echo $dbConnectAdmin; ?></tr> 109 <tr><?php echo $dbConnectAdmin; ?></tr>
68 <tr><?php echo $dbConnectUser; ?></tr> 110 <tr><?php echo $dbConnectUser; ?></tr>
69 </table> 111 </table>
70 <?php if($silent) { ?> 112 <?php if($silent) { ?>
71 </div> 113 </div>
72 <!-- Privileges --> 114 <!-- Privileges -->
73 - <br/><br/> 115 + <br/>
  116 + <br/>
74 <?php } ?> 117 <?php } ?>
75 - <h3><?php echo "<span class='{$privileges_check}'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>"; ?>Privileges</h3> 118 + <?php
  119 + $iconFlag = "<span class='{$privileges_check}'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>";
  120 + $checkHeading = "<h3 style='width:35%; float:left;'>".$iconFlag."Privileges</h3>";
  121 + ?>
  122 + <?php if($privilegesSection) {
  123 + $details = 'Show Details';
  124 + $display = 'none';
  125 + } else {
  126 + $details = 'Hide Details';
  127 + $display = 'block';
  128 + }?>
  129 +<!-- <h3><?php //echo "<span class='{$privileges_check}'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>"; ?>Privileges</h3>-->
76 <?php if($silent) { ?> 130 <?php if($silent) { ?>
77 - <div id="option1" class="onclick" onclick="javascript:{w.toggleClass('privileges_check', 'option1');}">Show Details</div>  
78 - <div class="privileges_check" style="display:none"> 131 +<!-- <div id="option1" class="onclick" onclick="javascript:{w.toggleClass('privileges_check', 'option1');}">Show Details</div>-->
  132 +<!-- <div class="privileges_check" style="display:none">-->
  133 + <?php
  134 + $privilegesCheck = $checkHeading;
  135 + $privilegesCheck .= "<div id='option1' class='onclick' onclick='javascript:{w.toggleClass(\"privileges_check\", \"option1\");}'>";
  136 + $privilegesCheck .= $details."</div>";
  137 + $privilegesCheck .= "<div class='privileges_check dependency_details' style='display:".$display.";'>";
  138 + echo $privilegesCheck;
  139 + ?>
79 <?php } ?> 140 <?php } ?>
80 - <table style="width:265px;"> 141 + <table class="description_complete">
81 <tr><?php echo $dbPrivileges; ?></tr> 142 <tr><?php echo $dbPrivileges; ?></tr>
82 <tr><?php echo $dbTransaction; ?></tr> 143 <tr><?php echo $dbTransaction; ?></tr>
83 </table> 144 </table>
84 <?php if($silent) { ?> 145 <?php if($silent) { ?>
85 </div> 146 </div>
86 <?php } ?> 147 <?php } ?>
87 - </div> 148 +<!-- </div>-->
88 <!-- Services --> 149 <!-- Services -->
89 - <br/><br/> 150 + <br/>
  151 +<!-- <br/>-->
90 <?php if($servicesValidation) { ?> 152 <?php if($servicesValidation) { ?>
91 <?php if(!$migrate_check) { ?> 153 <?php if(!$migrate_check) { ?>
92 <div> 154 <div>
@@ -95,7 +157,8 @@ @@ -95,7 +157,8 @@
95 <div id="option2" class="onclick" onclick="javascript:{w.toggleClass('services_check', 'option2');}">Show Details</div> 157 <div id="option2" class="onclick" onclick="javascript:{w.toggleClass('services_check', 'option2');}">Show Details</div>
96 <div class="services_check" style="display:none"> 158 <div class="services_check" style="display:none">
97 <?php } ?> 159 <?php } ?>
98 - <table style="width:755px;"> 160 +<!-- <table class="description_complete">-->
  161 + <table class="description">
99 <tr> 162 <tr>
100 <td style="width:15px;"> <?php echo "<span class='{$LuceneStatus}'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>"; ?> </td> 163 <td style="width:15px;"> <?php echo "<span class='{$LuceneStatus}'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>"; ?> </td>
101 <td style="width:640px;"> Lucene Service <?php if ($LuceneStatus != 'tick') { ?> Could not be started <?php } else { ?> Started <?php } ?></td> 164 <td style="width:640px;"> Lucene Service <?php if ($LuceneStatus != 'tick') { ?> Could not be started <?php } else { ?> Started <?php } ?></td>
@@ -108,7 +171,7 @@ @@ -108,7 +171,7 @@
108 <?php } ?> 171 <?php } ?>
109 </td> 172 </td>
110 <?php } ?> 173 <?php } ?>
111 - </tr> 174 + </tr>
112 <tr> 175 <tr>
113 <td> <?php echo "<span class='{$SchedulerStatus}'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>"; ?> </td> 176 <td> <?php echo "<span class='{$SchedulerStatus}'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>"; ?> </td>
114 <td> Scheduler Service <?php if ($SchedulerStatus != 'tick') { ?> Could not be started <?php } else { ?> Started <?php } ?></td> 177 <td> Scheduler Service <?php if ($SchedulerStatus != 'tick') { ?> Could not be started <?php } else { ?> Started <?php } ?></td>
@@ -154,7 +217,7 @@ @@ -154,7 +217,7 @@
154 $root_url = substr($script, 0, $pos); 217 $root_url = substr($script, 0, $pos);
155 if($port == '') 218 if($port == '')
156 $redirect = "http://".$_SERVER['SERVER_NAME'].$root_url."/admin.php"; 219 $redirect = "http://".$_SERVER['SERVER_NAME'].$root_url."/admin.php";
157 - else 220 + else
158 $redirect = "http://".$_SERVER['SERVER_NAME'].":$port".$root_url."/admin.php"; 221 $redirect = "http://".$_SERVER['SERVER_NAME'].":$port".$root_url."/admin.php";
159 ?> 222 ?>
160 <?php if($migrate_check) { ?> 223 <?php if($migrate_check) { ?>
setup/wizard/templates/configuration.tpl
1 <form id="dependencies_configuration_services" action="index.php?step_name=<?php echo $step_name; ?>" method="post"> 1 <form id="dependencies_configuration_services" action="index.php?step_name=<?php echo $step_name; ?>" method="post">
2 <p class="title">Checking System Configuration</p> 2 <p class="title">Checking System Configuration</p>
3 - 3 +
4 <p class="description"> 4 <p class="description">
5 The wizard will review your system to determine whether KnowledgeTree is correctly configured. You&rsquo;ll see whether KnowledgeTree has the correct settings or whether changes are required. 5 The wizard will review your system to determine whether KnowledgeTree is correctly configured. You&rsquo;ll see whether KnowledgeTree has the correct settings or whether changes are required.
6 </p> 6 </p>
@@ -34,7 +34,7 @@ @@ -34,7 +34,7 @@
34 <!--Content--> 34 <!--Content-->
35 <div id="step_content_<?php echo $step_name; ?>" class="step"> 35 <div id="step_content_<?php echo $step_name; ?>" class="step">
36 <h3>Server Settings</h3> 36 <h3>Server Settings</h3>
37 - 37 +
38 <p class="description"> 38 <p class="description">
39 The settings below have been drawn from the system information. The host and port should reflect the host and port that will be used to access KnowledgeTree. The Root Url is only needed if your installation is in a directory off the main web server root. 39 The settings below have been drawn from the system information. The host and port should reflect the host and port that will be used to access KnowledgeTree. The Root Url is only needed if your installation is in a directory off the main web server root.
40 </p> 40 </p>
@@ -64,7 +64,7 @@ @@ -64,7 +64,7 @@
64 <tr> 64 <tr>
65 <td> <label for='yes'>Do you have SSL Enabled?: </label> </td> 65 <td> <label for='yes'>Do you have SSL Enabled?: </label> </td>
66 <td> <div id="tooltips" title="Whether or not you have SSL installed">&nbsp;</div> </td> 66 <td> <div id="tooltips" title="Whether or not you have SSL installed">&nbsp;</div> </td>
67 - <td> 67 + <td>
68 <label for='yes'>Yes</label> 68 <label for='yes'>Yes</label>
69 <input class="radio" type='radio' name='ssl_enabled' id='yes' value='yes' <?php echo $server['ssl_enabled']['value'] == 'yes' ? 'CHECKED' : ''; ?> /> 69 <input class="radio" type='radio' name='ssl_enabled' id='yes' value='yes' <?php echo $server['ssl_enabled']['value'] == 'yes' ? 'CHECKED' : ''; ?> />
70 &nbsp;&nbsp;&nbsp; 70 &nbsp;&nbsp;&nbsp;
@@ -73,7 +73,7 @@ @@ -73,7 +73,7 @@
73 </td> 73 </td>
74 </tr> 74 </tr>
75 </table> 75 </table>
76 - 76 +
77 <h3><?php echo "<span class='{$paths_perms}'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>"; ?>Paths and Permissions</h3> 77 <h3><?php echo "<span class='{$paths_perms}'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>"; ?>Paths and Permissions</h3>
78 <?php if($silent) { ?> 78 <?php if($silent) { ?>
79 <div id="option7" class="onclick" onclick="javascript:{w.toggleClass('paths_perms', 'option7');}">Show Details</div> 79 <div id="option7" class="onclick" onclick="javascript:{w.toggleClass('paths_perms', 'option7');}">Show Details</div>
@@ -118,4 +118,4 @@ @@ -118,4 +118,4 @@
118 <input type="submit" name="Previous" value="Previous" class="button_previous"/> 118 <input type="submit" name="Previous" value="Previous" class="button_previous"/>
119 <input type="submit" name="Next" value="Next" class="button_next"/> 119 <input type="submit" name="Next" value="Next" class="button_next"/>
120 </form> 120 </form>
121 -<?php if (AJAX) { echo $html->js('form.js'); } ?> 121 -<?php if (AJAX) { echo $html->js('form.js'); } ?>
  122 +<?php if (AJAX) { echo $html->js('form.js'); } ?>
122 \ No newline at end of file 123 \ No newline at end of file
setup/wizard/templates/configuration_confirm.tpl
@@ -55,24 +55,30 @@ @@ -55,24 +55,30 @@
55 <td><?php echo $server['ssl_enabled']['value']; ?></td> 55 <td><?php echo $server['ssl_enabled']['value']; ?></td>
56 </tr> 56 </tr>
57 </table> 57 </table>
58 - 58 +
59 <h3>Paths and Permissions</h3> 59 <h3>Paths and Permissions</h3>
60 - 60 +
61 <table class="conf_paths"> 61 <table class="conf_paths">
62 <?php 62 <?php
63 if($errors || $warnings) { 63 if($errors || $warnings) {
64 $width = "50%"; 64 $width = "50%";
  65 + $width = "40%";
65 } else { 66 } else {
66 $width = "60%"; 67 $width = "60%";
67 } 68 }
  69 + $td1 = "10";
  70 + $td2 = "32%";
  71 + $td3 = "27%";
  72 + $td4 = "27%";
  73 + $td5 = "10";
68 foreach ($paths as $key => $path){ 74 foreach ($paths as $key => $path){
69 ?> 75 ?>
70 <tr> 76 <tr>
71 - <td width="10"><div class='<?php echo $path['class']; ?>'></div></td>  
72 - <td width="22%"><?php echo $path['name']; ?>:</td> 77 + <td width="<?php echo $td1; ?>"><div class='<?php echo $path['class']; ?>'></div></td>
  78 + <td width="<?php echo $td2; ?>"><?php echo $path['name']; ?>:</td>
73 <td width="<?php echo $width; ?>"><?php echo $path['path']; ?></td> 79 <td width="<?php echo $width; ?>"><?php echo $path['path']; ?></td>
74 <?php if($path['class'] != 'tick') { ?> 80 <?php if($path['class'] != 'tick') { ?>
75 - <td class="error" width="27%"> <?php echo $path['msg']; ?> </td> 81 + <td class="error" width="<?php echo $td3; ?>"> <?php echo $path['msg']; ?> </td>
76 <td width="10"> 82 <td width="10">
77 <?php if (AJAX) { ?> 83 <?php if (AJAX) { ?>
78 <a href="#" class="refresh" onclick="w.refresh('configuration')">Refresh</a> 84 <a href="#" class="refresh" onclick="w.refresh('configuration')">Refresh</a>
@@ -81,8 +87,8 @@ @@ -81,8 +87,8 @@
81 <?php } ?> 87 <?php } ?>
82 </td> 88 </td>
83 <?php } else { ?> 89 <?php } else { ?>
84 - <td class="error" width="27%"> </td>  
85 - <td width="10"> </td> 90 + <td class="error" width="<?php echo $td4; ?>"> </td>
  91 + <td width="<?php echo $td5; ?>"> </td>
86 <?php } ?> 92 <?php } ?>
87 </tr> 93 </tr>
88 <?php 94 <?php
@@ -94,4 +100,4 @@ @@ -94,4 +100,4 @@
94 <input type="submit" name="Confirm" value="Confirm" class="button_next"/> 100 <input type="submit" name="Confirm" value="Confirm" class="button_next"/>
95 <input type="submit" name="Edit" value="Edit" class="button_next"/> 101 <input type="submit" name="Edit" value="Edit" class="button_next"/>
96 </form> 102 </form>
97 -<?php if (AJAX) { echo $html->js('form.js'); } ?> 103 -<?php if (AJAX) { echo $html->js('form.js'); } ?>
  104 +<?php if (AJAX) { echo $html->js('form.js'); } ?>
98 \ No newline at end of file 105 \ No newline at end of file
setup/wizard/templates/database.tpl
@@ -52,9 +52,11 @@ @@ -52,9 +52,11 @@
52 <td id="error" class="error"><?php if($errors['dpassword']) echo $errors['dpassword']; ?></td> 52 <td id="error" class="error"><?php if($errors['dpassword']) echo $errors['dpassword']; ?></td>
53 </tr> 53 </tr>
54 </table> 54 </table>
55 -<br/><br/> 55 +<br/>
  56 +<!--<br/>-->
56 <div id="option3" class="onclick" onclick="javascript:{w.toggleClass('adv_options', 'option3');}">&nbsp;&nbsp;Advanced Options</div> 57 <div id="option3" class="onclick" onclick="javascript:{w.toggleClass('adv_options', 'option3');}">&nbsp;&nbsp;Advanced Options</div>
57 <div id="database" class="adv_options" style="display:none;"> 58 <div id="database" class="adv_options" style="display:none;">
  59 + <br/>
58 <div class="description"> 60 <div class="description">
59 These options are only necessary for some sites. If you're not sure what you should enter here, leave the default settings. 61 These options are only necessary for some sites. If you're not sure what you should enter here, leave the default settings.
60 </div> 62 </div>
setup/wizard/templates/dependencies.tpl
1 <form id="license_dependencies_configuration" action="index.php?step_name=<?php echo $step_name; ?>" method="post"> 1 <form id="license_dependencies_configuration" action="index.php?step_name=<?php echo $step_name; ?>" method="post">
2 <p class="title">Checking PHP Dependencies</p> 2 <p class="title">Checking PHP Dependencies</p>
3 <p class="description"> 3 <p class="description">
4 - The wizard will review your system to determine whether you have the right PHP components in place to run KnowledgeTree. <br/>  
5 - Once the scan is completed, you&rsquo;ll see whether your system has met the requirements or whether there are areas you need to address. 4 + The wizard will review your system to determine whether you have the right PHP components in place to run KnowledgeTree. <!--<br/> -->
  5 + Once the scan is completed, you&rsquo;ll see whether your system has met the requirements or whether there are areas you need to address.
6 </p> 6 </p>
7 <!--Continue Message--> 7 <!--Continue Message-->
8 <?php 8 <?php
@@ -10,7 +10,8 @@ @@ -10,7 +10,8 @@
10 ?> 10 ?>
11 <span class='big_ok'>&nbsp;&nbsp;&nbsp;</span> 11 <span class='big_ok'>&nbsp;&nbsp;&nbsp;</span>
12 <span class='description'>Congratulations! Your system is ready to run KnowledgeTree. Click <b>Next</b> to continue.</span> 12 <span class='description'>Congratulations! Your system is ready to run KnowledgeTree. Click <b>Next</b> to continue.</span>
13 - <br/><br/> 13 + <br/>
  14 +<!-- <br/>-->
14 <?php 15 <?php
15 } 16 }
16 ?> 17 ?>
@@ -18,19 +19,29 @@ @@ -18,19 +19,29 @@
18 <?php if($errors) { ?> 19 <?php if($errors) { ?>
19 <span class='cross'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span> 20 <span class='cross'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
20 <span class='error_message'>Your system is not quite ready to run KnowledgeTree. See the list below to determine which areas you need to address. </span> 21 <span class='error_message'>Your system is not quite ready to run KnowledgeTree. See the list below to determine which areas you need to address. </span>
21 - <br/> 22 + <!--<br/>-->
22 <?php } elseif ($warnings) { ?> 23 <?php } elseif ($warnings) { ?>
23 <span class='cross_orange'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span> 24 <span class='cross_orange'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
24 - <span class='warning_message'>Not all optional dependencies required by KnowledgeTree have been met but you will be able to continue.</span><br/> 25 + <span class='warning_message'>Not all optional dependencies required by KnowledgeTree have been met but you will be able to continue.</span>
  26 + <!--<br/>-->
25 <?php } ?> 27 <?php } ?>
26 <?php 28 <?php
27 if($errors || $warnings) { 29 if($errors || $warnings) {
28 ?> 30 ?>
29 - &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://wiki.knowledgetree.com/Web_Based_Installer#PHP_Dependencies" target="_blank" class="description_click">Click here for help on overcoming dependency issues</span></a> 31 +<!--&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-->
  32 + <a href="http://wiki.knowledgetree.com/Web_Based_Installer#PHP_Dependencies" target="_blank" class="description_click">Click here for help on overcoming dependency issues</span></a>
30 <?php } ?> 33 <?php } ?>
31 <!--Content--> 34 <!--Content-->
32 <div id="step_content_<?php echo $step_name; ?>" class="step"> 35 <div id="step_content_<?php echo $step_name; ?>" class="step">
33 - <h3><?php echo "<span class='{$php}'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>"; ?>PHP Version Check</h3> 36 + <?php
  37 + $iconFlag = "<span class='{$php}'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>";
  38 + $checkHeading = "<h3 style='width:30%; float:left'>".$iconFlag."PHP Version Check</h3>";
  39 + ?>
  40 +<!-- <h3>-->
  41 + <?php
  42 +// echo "<span class='{$php}'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>";
  43 + ?>
  44 +<!-- PHP Version Check</h3>-->
34 <?php if($silent) { ?> 45 <?php if($silent) { ?>
35 <?php if($versionSection) { 46 <?php if($versionSection) {
36 $details = 'Hide Details'; 47 $details = 'Hide Details';
@@ -40,25 +51,43 @@ @@ -40,25 +51,43 @@
40 $display = 'none'; 51 $display = 'none';
41 } 52 }
42 ?> 53 ?>
43 - <div id="option1" class="onclick" onclick="javascript:{w.toggleClass('php_details', 'option1');}"><?php echo $details; ?></div>  
44 - <div class="php_details" style="display:<?php echo $display; ?>"> 54 + <?php
  55 + $phpVersionCheck = $checkHeading;
  56 + $phpVersionCheck .= "<div id='option1' class='onclick' onclick='javascript:{w.toggleClass(\"php_details\", \"option1\");}'>";
  57 + $phpVersionCheck .= $details."</div>";
  58 + $phpVersionCheck .= "<div class='php_details dependency_details' style='display:".$display.";'>";
  59 + ?>
  60 +<!-- <div id="option1" class="onclick" onclick="javascript:{w.toggleClass('php_details', 'option1');}"> <?php //echo $details; ?></div>-->
  61 +<!-- <div class="php_details" style="display:<?php //echo $display; ?>">-->
45 <?php } ?> 62 <?php } ?>
46 - <p class="description"> 63 + <?php
  64 + $phpVersionCheck .= "<p class='space'>&nbsp;</p><p class='description'>Your version of PHP must be between 5.0 and 5.2 to run optimally. Versions that are 5.3 or higher are not recommended.</p>";
  65 + ?>
  66 +<!-- <p class="description">
47 Your version of PHP must be between 5.0 and 5.2 to run optimally. Versions that are 5.3 or higher are not recommended. 67 Your version of PHP must be between 5.0 and 5.2 to run optimally. Versions that are 5.3 or higher are not recommended.
48 - </p>  
49 - <?php echo "<span class='{$version['class']}'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>{$version['version']}"; ?> 68 + </p>-->
  69 + <?php $phpVersionCheck .= "<span class='{$version['class']}'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>{$version['version']}"; ?>
  70 + <?php //echo "<span class='{$version['class']}'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>{$version['version']}"; ?>
50 <?php if($version['class'] != 'tick') { ?> 71 <?php if($version['class'] != 'tick') { ?>
51 <?php if (AJAX) { ?> 72 <?php if (AJAX) { ?>
52 - <a href="#" class="refresh" onclick="w.refresh('dependencies')">Refresh</a> 73 + <?php $phpVersionCheck .= "<a href='#' class='refresh' onclick='w.refresh('dependencies')'>Refresh</a>"; ?>
  74 +<!-- <a href="#" class="refresh" onclick="w.refresh('dependencies')">Refresh</a>-->
53 <?php } else { ?> 75 <?php } else { ?>
54 - <a href="javascript:this.location.reload();" class="refresh">Refresh</a> 76 + <?php $phpVersionCheck .= "<a href='javascript:this.location.reload();' class='refresh'>Refresh</a>"; ?>
  77 +<!-- <a href="javascript:this.location.reload();" class="refresh">Refresh</a>-->
55 <?php } ?> 78 <?php } ?>
56 <?php } ?> 79 <?php } ?>
57 <?php if($silent) { ?> 80 <?php if($silent) { ?>
58 - </div> 81 + <?php $phpVersionCheck .= "</div>"; ?>
  82 +<!-- </div>-->
59 <?php } ?> 83 <?php } ?>
  84 + <?php echo $phpVersionCheck; ?>
60 <br /> 85 <br />
61 - <h3><?php echo "<span class='{$php_ext}'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>"; ?>PHP Extensions</h3> 86 + <?php
  87 + $iconFlag = "<span class='{$php_ext}'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>";
  88 + $checkHeading = "<h3 style='width:30%; float:left'>".$iconFlag."PHP Extensions</h3>";
  89 + ?>
  90 +<!-- <h3><?php //echo "<span class='{$php_ext}'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>"; ?>PHP Extensions</h3>-->
62 <?php 91 <?php
63 if($silent) { ?> 92 if($silent) { ?>
64 <?php if($extensionSection) { 93 <?php if($extensionSection) {
@@ -69,12 +98,23 @@ @@ -69,12 +98,23 @@
69 $display = 'none'; 98 $display = 'none';
70 } 99 }
71 ?> 100 ?>
72 - <div id="option2" class="onclick" onclick="javascript:{w.toggleClass('php_ext_details', 'option2');}"><?php echo $details; ?></div>  
73 - <div class="php_ext_details" style="display:<?php echo $display; ?>"> 101 + <?php
  102 + $phpExtensionCheck = $checkHeading;
  103 + $phpExtensionCheck .= "<div id='option2' class='onclick' onclick='javascript:{w.toggleClass(\"php_ext_details\", \"option2\");}'>";
  104 + $phpExtensionCheck .= $details."</div>";
  105 + $phpExtensionCheck .= "<div class='php_ext_details dependency_details' style='display:".$display.";'>";
  106 + ?>
  107 +<!-- <div id="option2" class="onclick" onclick="javascript:{w.toggleClass('php_ext_details', 'option2');}"><?php //echo $details; ?></div>-->
  108 +<!-- <div class="php_ext_details" style="display:<?php //echo $display; ?>">-->
74 <?php } ?> 109 <?php } ?>
75 - <p class="description"> 110 + <?php
  111 + $phpExtensionCheck .= "<p class='space'>&nbsp;</p><p class='description'>The extensions shown in red below are required for KnowledgeTree to run optimally. Items shown in orange are optional, but recommended.</p>";
  112 + ?>
  113 +<!-- <p class="description">
76 The extensions shown in red below are required for KnowledgeTree to run optimally. Items shown in orange are optional, but recommended. 114 The extensions shown in red below are required for KnowledgeTree to run optimally. Items shown in orange are optional, but recommended.
77 - </p> 115 + </p>-->
  116 + <br/>
  117 + <?php echo $phpExtensionCheck; ?>
78 <table class="description"> 118 <table class="description">
79 <?php 119 <?php
80 foreach($extensions as $ext) { 120 foreach($extensions as $ext) {
@@ -118,7 +158,11 @@ @@ -118,7 +158,11 @@
118 </div> 158 </div>
119 <?php } ?> 159 <?php } ?>
120 <br /> 160 <br />
121 - <h3><?php echo "<span class='{$php_con}'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>"; ?>PHP Configuration</h3> 161 + <?php
  162 + $iconFlag = "<span class='{$php_con}'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>";
  163 + $checkHeading = "<h3 style='width:30%; float:left'>".$iconFlag."PHP Configurations</h3>";
  164 + ?>
  165 +<!-- <h3><?php //echo "<span class='{$php_con}'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>"; ?>PHP Configuration</h3>-->
122 <?php 166 <?php
123 if($silent) { ?> 167 if($silent) { ?>
124 <?php if($configurationSection) { 168 <?php if($configurationSection) {
@@ -129,12 +173,25 @@ @@ -129,12 +173,25 @@
129 $display = 'none'; 173 $display = 'none';
130 } 174 }
131 ?> 175 ?>
132 - <div id="option3" class="onclick" onclick="javascript:{w.toggleClass('php_con_details', 'option3');}"><?php echo $details; ?></div>  
133 - <div class="php_con_details" style="display:<?php echo $display; ?>"> 176 + <?php
  177 + $phpDirectivesCheck = $checkHeading;
  178 + $phpDirectivesCheck .= "<div id='option3' class='onclick' onclick='javascript:{w.toggleClass(\"php_con_details\", \"option3\");}'>";
  179 + $phpDirectivesCheck .= $details."</div>";
  180 + $phpDirectivesCheck .= "<div class='php_con_details dependency_details' style='display:".$display.";'>";
  181 + ?>
  182 +<!-- <div id="option3" class="onclick" onclick="javascript:{w.toggleClass('php_con_details', 'option3');}"><?php //echo $details; ?></div>-->
  183 +<!-- <div class="php_con_details" style="display:<?php //echo $display; ?>">-->
134 <?php } ?> 184 <?php } ?>
135 - <p class="description">  
136 - The configurations shown in red below are required for KnowledgeTree to run optimally. Items shown in orange are optional, but recommended.  
137 - </p> 185 + <?php
  186 + //$phpDirectivesCheck .= "<p class='description'>The configurations shown in red below are required for KnowledgeTree to run optimally. Items shown in orange are optional, but recommended.</p>";
  187 + //$phpDirectivesCheck .= "Test";
  188 + $phpDirectivesCheck .= "<p class='space'>&nbsp;</p><p class='description'>The configurations shown in red below are required for KnowledgeTree to run optimally. Items shown in orange are optional, but recommended.</p>";
  189 + ?>
  190 +<!-- <p class="description">-->
  191 +<!-- The configurations shown in red below are required for KnowledgeTree to run optimally. Items shown in orange are optional, but recommended.-->
  192 +<!-- </p>-->
  193 + <br/>
  194 + <?php echo $phpDirectivesCheck; ?>
138 <table class="description"> 195 <table class="description">
139 <tr> 196 <tr>
140 <th>Setting</th> 197 <th>Setting</th>
setup/wizard/templates/install.tpl
1 <form id="registration_install_complete" action="index.php?step_name=<?php echo $step_name; ?>" method="post"> 1 <form id="registration_install_complete" action="index.php?step_name=<?php echo $step_name; ?>" method="post">
2 <p class="title">Finalizing System Installation</p> 2 <p class="title">Finalizing System Installation</p>
3 <div id="step_content_<?php echo $step_name; ?>" class="step"> 3 <div id="step_content_<?php echo $step_name; ?>" class="step">
4 - <p class="empty_space"> The wizard will now complete the installation and run a final check on your system. </p>  
5 - <br/>  
6 - <p class="empty_space" id="left_space">  
7 - We would greatly appreciate it if you would allow us to collect anonymous usage statistics to help us provide a better quality product.  
8 - <br/><br/> 4 + <p class="empty_space" style="font-size:11pt;"> The wizard will now complete the installation and run a final check on your system. </p>
  5 +<!-- <br/>-->
  6 + <p class="empty_space" style="font-size:11pt;" id="left_space">
  7 + We would greatly appreciate it if you would allow us to collect anonymous usage statistics to help us provide a better quality product.
  8 + <br/>
  9 + <br/>
9 The information includes a unique identification number, number of users you have created, your operating system type and your IP address. Your privacy is protected by the <a href="http://www.knowledgetree.com/about/legal" target="_blank">KnowledgeTree Privacy and Data Protection Agreements.</a> 10 The information includes a unique identification number, number of users you have created, your operating system type and your IP address. Your privacy is protected by the <a href="http://www.knowledgetree.com/about/legal" target="_blank">KnowledgeTree Privacy and Data Protection Agreements.</a>
10 </p> 11 </p>
11 <div class="demo"><?php echo $html->image('greenit.jpg', array('style'=>'padding-left: 35px;')); ?></div> 12 <div class="demo"><?php echo $html->image('greenit.jpg', array('style'=>'padding-left: 35px;')); ?></div>
12 - <br/><br/><br/><br/> 13 +<!-- <br/><br/><br/><br/>-->
13 <p> <input type='checkbox' name='call_home' value='enable' checked style="float:left;"/>&nbsp;&nbsp; 14 <p> <input type='checkbox' name='call_home' value='enable' checked style="float:left;"/>&nbsp;&nbsp;
14 <label for='call_home'>Help to improve KnowledgeTree by providing anonymous usage statistics</label></p> 15 <label for='call_home'>Help to improve KnowledgeTree by providing anonymous usage statistics</label></p>
15 </div> 16 </div>
setup/wizard/templates/license.tpl
@@ -4,12 +4,13 @@ @@ -4,12 +4,13 @@
4 foreach($errors as $k=>$e) { 4 foreach($errors as $k=>$e) {
5 echo "<span class='error'>".$e."</span>"; 5 echo "<span class='error'>".$e."</span>";
6 } 6 }
  7 + //print_r($errors);
7 }?> 8 }?>
8 <p class="description"> 9 <p class="description">
9 Please read and accept the license agreement below before continuing with the setup. 10 Please read and accept the license agreement below before continuing with the setup.
10 </p> 11 </p>
11 12
12 -<?php if(isset($errors)) { ?> 13 +<?php if(!empty($errors)) { ?>
13 <div class="license_agreement" tabindex="-1" style="height:270px;"> 14 <div class="license_agreement" tabindex="-1" style="height:270px;">
14 <?php } else { ?> 15 <?php } else { ?>
15 <div class="license_agreement" tabindex="-1"> 16 <div class="license_agreement" tabindex="-1">
setup/wizard/templates/registration.tpl
@@ -10,7 +10,11 @@ @@ -10,7 +10,11 @@
10 ?> 10 ?>
11 <p class="description"> 11 <p class="description">
12 Register with KnowledgeTree to receive important product updates. 12 Register with KnowledgeTree to receive important product updates.
13 - <a href="index.php?step_name=install">Skip Registration</a> 13 + <?php if(AJAX) { ?>
  14 + <a href='#' onclick='javascript:{w.getUrl("index.php?step_name=install", "content_container");}'>Skip Registration</a>
  15 + <?php } else { ?>
  16 + <a href="index.php?step_name=install">Skip Registration</a>
  17 + <?php } ?>
14 </p> 18 </p>
15 <!-- Hidden Fields --> 19 <!-- Hidden Fields -->
16 <input type="hidden" id="sendAll" name="" value="" /> 20 <input type="hidden" id="sendAll" name="" value="" />
@@ -22,16 +26,17 @@ @@ -22,16 +26,17 @@
22 <br/> 26 <br/>
23 <div id="step_content_<?php echo $step_name; ?>" class="step"> 27 <div id="step_content_<?php echo $step_name; ?>" class="step">
24 <span class="error" id="reg_error"></span> 28 <span class="error" id="reg_error"></span>
25 - <?php if(WINDOWS_OS) $input_width = 40; else { $input_width = 32; } ?>  
26 - <table> 29 + <?php $rowspan = "6";?>
  30 + <?php if(WINDOWS_OS) $input_width = 40; else { $input_width = 28; } ?>
  31 + <table class="registration_template">
27 <tr> 32 <tr>
28 <td><label for='first'>First Name</label></td> 33 <td><label for='first'>First Name</label></td>
29 - <td rowspan='6' width='5%'>&nbsp;</td> 34 + <td rowspan='<?php echo $rowspan; ?>' width='5%'>&nbsp;</td>
30 <td><input value="<?php echo $first_name; ?>" name='submitted[first_name]' id='first' size='<?php echo $input_width; ?>' style="float:left;"/></td> 35 <td><input value="<?php echo $first_name; ?>" name='submitted[first_name]' id='first' size='<?php echo $input_width; ?>' style="float:left;"/></td>
31 - <td rowspan='6' width='5%'>&nbsp;</td>  
32 - <td rowspan='6'> <?php echo $html->image('dropbox.png'); ?> </td> 36 + <td rowspan='<?php echo $rowspan; ?>' width='5%'>&nbsp;</td>
  37 + <td rowspan='<?php echo $rowspan; ?>'> <?php echo $html->image('dropbox.png'); ?> </td>
33 </tr> 38 </tr>
34 - 39 +
35 <tr> 40 <tr>
36 <td><label for='last'>Last Name</label></td> 41 <td><label for='last'>Last Name</label></td>
37 <td><input value="<?php echo $last_name; ?>" name='submitted[last_name]' id='last' size='<?php echo $input_width; ?>' style="float:left;"/></td> 42 <td><input value="<?php echo $last_name; ?>" name='submitted[last_name]' id='last' size='<?php echo $input_width; ?>' style="float:left;"/></td>
@@ -43,7 +48,7 @@ @@ -43,7 +48,7 @@
43 <tr> 48 <tr>
44 <td><label for='country'>Country</label></td> 49 <td><label for='country'>Country</label></td>
45 <td> 50 <td>
46 - <select id='country' name='submitted[country]'> 51 + <select id='country' class="registration_select" name='submitted[country]'>
47 <?php 52 <?php
48 $str = ''; 53 $str = '';
49 foreach ($countries as $code => $country) { 54 foreach ($countries as $code => $country) {
@@ -52,9 +57,9 @@ @@ -52,9 +57,9 @@
52 } else { 57 } else {
53 $str .= "<option name='{$code}' value='{$country}'>{$country}</option>"; 58 $str .= "<option name='{$code}' value='{$country}'>{$country}</option>";
54 } 59 }
55 - 60 +
56 } 61 }
57 - 62 +
58 echo $str; 63 echo $str;
59 ?> 64 ?>
60 </select> 65 </select>
@@ -63,7 +68,7 @@ @@ -63,7 +68,7 @@
63 <tr> 68 <tr>
64 <td><label for='industry'>Industry</label></td> 69 <td><label for='industry'>Industry</label></td>
65 <td> 70 <td>
66 - <select id='industry' name='submitted[industry]'> 71 + <select id='industry' name='submitted[industry]' class="registration_select">
67 <?php 72 <?php
68 $str = ''; 73 $str = '';
69 foreach ($industries as $code => $industry) { 74 foreach ($industries as $code => $industry) {
@@ -73,7 +78,7 @@ @@ -73,7 +78,7 @@
73 $str .= "<option name='{$code}' value='{$industry}'>{$industry}</option>"; 78 $str .= "<option name='{$code}' value='{$industry}'>{$industry}</option>";
74 } 79 }
75 } 80 }
76 - 81 +
77 echo $str; 82 echo $str;
78 ?> 83 ?>
79 </select> 84 </select>
@@ -82,7 +87,7 @@ @@ -82,7 +87,7 @@
82 <tr> 87 <tr>
83 <td><label for='size'>Organization Size</label></td> 88 <td><label for='size'>Organization Size</label></td>
84 <td> 89 <td>
85 - <select id='size' name='submitted[organization_size]'> 90 + <select id='size' name='submitted[organization_size]' class="registration_select">
86 <?php 91 <?php
87 $str = ''; 92 $str = '';
88 foreach ($org_size as $code => $size) { 93 foreach ($org_size as $code => $size) {
@@ -92,18 +97,18 @@ @@ -92,18 +97,18 @@
92 $str .= "<option name='{$code}' value='{$size}'>{$size}</option>"; 97 $str .= "<option name='{$code}' value='{$size}'>{$size}</option>";
93 } 98 }
94 } 99 }
95 - 100 +
96 echo $str; 101 echo $str;
97 ?> 102 ?>
98 </select> 103 </select>
99 </td> 104 </td>
100 </tr> 105 </tr>
101 </table> 106 </table>
102 - 107 +
103 <input type='hidden' name='form_id' value='webform_client_form_242' /> 108 <input type='hidden' name='form_id' value='webform_client_form_242' />
104 <input type='hidden' name='op' value='Submit' /> 109 <input type='hidden' name='op' value='Submit' />
105 </div> 110 </div>
106 - 111 +
107 <input type="submit" name="Previous" value="Previous" onclick="w.pClick()" class="button_previous"/> 112 <input type="submit" name="Previous" value="Previous" onclick="w.pClick()" class="button_previous"/>
108 <input type="submit" name="Next" value="Register" onclick="w.nClick()" class="button_next"/> 113 <input type="submit" name="Next" value="Register" onclick="w.nClick()" class="button_next"/>
109 </form> 114 </form>
setup/wizard/templates/services.tpl
@@ -5,9 +5,9 @@ @@ -5,9 +5,9 @@
5 <?php } ?> 5 <?php } ?>
6 6
7 <p class="title">Checking Service Dependencies</p> 7 <p class="title">Checking Service Dependencies</p>
8 - 8 +
9 <p class="description"> 9 <p class="description">
10 - The wizard will review your system to determine whether you can run KnowledgeTree background services. <br/>Once the scan is completed, you&rsquo;ll see whether your system has met the requirements or whether there are areas you need to address. 10 + The wizard will review your system to determine whether you can run KnowledgeTree background services. <br/>Once the scan is completed, you&rsquo;ll see whether your system has met the requirements or whether there are areas you need to address.
11 </p> 11 </p>
12 <!--Continue Message--> 12 <!--Continue Message-->
13 <?php if($servicesValidation) { ?> 13 <?php if($servicesValidation) { ?>
@@ -39,7 +39,7 @@ @@ -39,7 +39,7 @@
39 <?php } ?> 39 <?php } ?>
40 <?php } ?> 40 <?php } ?>
41 <!--Content--> 41 <!--Content-->
42 - <div id="step_content_configuration" class="step"> 42 + <div id="step_content_<?php echo $step_name; ?>" class="step">
43 <?php if(!$alreadyInstalled) { ?> 43 <?php if(!$alreadyInstalled) { ?>
44 <?php if($servicesValidation) { ?> 44 <?php if($servicesValidation) { ?>
45 <?php if($javaExeError) { ?> 45 <?php if($javaExeError) { ?>
@@ -93,7 +93,7 @@ @@ -93,7 +93,7 @@
93 <tr> 93 <tr>
94 <td> <span class='<?php echo $step_vars['java']['class']; ?>'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span> </td> 94 <td> <span class='<?php echo $step_vars['java']['class']; ?>'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span> </td>
95 <td style="width:645px;"> <?php echo $step_vars['java']['found']; ?> </td> 95 <td style="width:645px;"> <?php echo $step_vars['java']['found']; ?> </td>
96 - <?php 96 + <?php
97 if ($step_vars['java']['class'] != 'tick') { 97 if ($step_vars['java']['class'] != 'tick') {
98 ?> 98 ?>
99 <td> 99 <td>
@@ -122,7 +122,7 @@ @@ -122,7 +122,7 @@
122 </td> 122 </td>
123 <?php 123 <?php
124 } 124 }
125 - ?> 125 + ?>
126 </tr> 126 </tr>
127 </table> 127 </table>
128 <?php if($silent) { ?> 128 <?php if($silent) { ?>
setup/wizard/templates/sidemenu.tpl
1 <?php 1 <?php
  2 + $passCurrent = false;
2 foreach ($sideMenuElements as $ele) { 3 foreach ($sideMenuElements as $ele) {
3 ?> 4 ?>
4 <span id="<?php echo $ele['step']; ?>" class="<?php echo $ele['class']; ?>"> 5 <span id="<?php echo $ele['step']; ?>" class="<?php echo $ele['class']; ?>">
5 <?php if ($ele['class'] == "current") { ?> 6 <?php if ($ele['class'] == "current") { ?>
6 <?php echo $ele['name']; ?> 7 <?php echo $ele['name']; ?>
  8 + <?php $passCurrent = true; ?>
7 <?php } else { ?> 9 <?php } else { ?>
8 <?php if ($ajax) { ?> 10 <?php if ($ajax) { ?>
  11 + <?php if(!$passCurrent) { ?>
9 <a tabindex="-1" href='#' onclick='javascript:{w.getUrl("index.php?step_name=<?php echo $ele['step']; ?>", "content_container");}'> 12 <a tabindex="-1" href='#' onclick='javascript:{w.getUrl("index.php?step_name=<?php echo $ele['step']; ?>", "content_container");}'>
  13 + <?php } ?>
10 <?php echo $ele['name']; ?> 14 <?php echo $ele['name']; ?>
11 </a> 15 </a>
12 <?php } else { ?> 16 <?php } else { ?>
setup/wizard/templates/wizard.tpl
@@ -32,11 +32,17 @@ @@ -32,11 +32,17 @@
32 <?php echo $content; ?> 32 <?php echo $content; ?>
33 </div> 33 </div>
34 </div> 34 </div>
35 - <div id="loading" style="display:none;"> <?php echo $html->image('loading.gif', array("height"=>"32px", "width"=>"32px")); ?> </div> 35 + <div id="loading" style="display:none;">
  36 + <?php
  37 + $options = array("height"=>"32px", "width"=>"32px");
  38 + $options = array();
  39 + echo $html->image('loader.gif', $options);
  40 + ?>
  41 + </div>
36 </div> 42 </div>
37 <div class="clearing">&nbsp;</div> 43 <div class="clearing">&nbsp;</div>
38 </div> 44 </div>
39 - 45 +
40 <div id="footer"> 46 <div id="footer">
41 <?php echo $html->image('dame/powered-by-kt.png', array("height"=>"23px", "width"=>"105px", "style"=>"padding: 5px;")); ?> 47 <?php echo $html->image('dame/powered-by-kt.png', array("height"=>"23px", "width"=>"105px", "style"=>"padding: 5px;")); ?>
42 </div> 48 </div>