Commit 0c4c899bf80366c8bb23ea45583bd6c1ebc13a56

Authored by Jarrett Jordaan
1 parent c87d55af

Updated templating.

Committed by: Jarrett Jordaan

Reviewed by: Megan Watson
setup/migrate/migrateUtil.php
... ... @@ -104,6 +104,12 @@ class MigrateUtil extends InstallUtil {
104 104 return new $serviceName();
105 105 }
106 106  
  107 + /**
  108 + * Return port of the old installation
  109 + *
  110 + * @param location
  111 + * @return string
  112 + */
107 113 public function getPort($location) {
108 114 if(WINDOWS_OS) {
109 115 $myIni = "my.ini";
... ...
setup/wizard/template.php
... ... @@ -75,7 +75,6 @@ class Template
75 75 */
76 76 public function set($name, $value)
77 77 {
78   - //if(is_a($value, 'Template')) {
79 78 $class = 'Template';
80 79 $isA = $value instanceof $class;
81 80 if($isA) {
... ...
setup/wizard/templates/configuration.tpl
1 1 <form id="dependencies_configuration_services" action="index.php?step_name=<?php echo $step_name; ?>" method="post">
2 2 <p class="title">Checking System Configuration</p>
3   -
4 3 <p class="description">
5 4 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 5 </p>
... ... @@ -34,7 +33,6 @@
34 33 <!--Content-->
35 34 <div id="step_content_<?php echo $step_name; ?>" class="step">
36 35 <h3>Server Settings</h3>
37   -
38 36 <p class="description">
39 37 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 38 </p>
... ...
setup/wizard/templates/install.tpl
... ... @@ -6,7 +6,6 @@
6 6 <div id="step_content" class="step">
7 7 <?php } ?>
8 8 <p class="empty_space" style="font-size:11pt;"> The wizard will now complete the installation and run a final check on your system. </p>
9   -<!-- <br/>-->
10 9 <?php if($ce_check) { ?>
11 10 <p class="empty_space" style="font-size:11pt;" id="left_space">
12 11 We would greatly appreciate it if you would allow us to collect anonymous usage statistics to help us provide a better quality product.
... ... @@ -15,7 +14,6 @@
15 14 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>
16 15 </p>
17 16 <div class="demo"><?php echo $html->image('greenit.jpg', array('style'=>'padding-left: 35px;')); ?></div>
18   -<!-- <br/><br/><br/><br/>-->
19 17 <p> <input type='checkbox' name='call_home' value='enable' checked style="float:left;"/>&nbsp;&nbsp;
20 18 <label for='call_home'>Help to improve KnowledgeTree by providing anonymous usage statistics</label></p>
21 19 <?php } else { ?>
... ... @@ -25,13 +23,11 @@
25 23 <br/>
26 24 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>
27 25 </p>
28   -<!-- <div class="demo"><?php //echo $html->image('greenit.jpg', array('style'=>'padding-left: 35px;')); ?></div>-->
29 26 <br/><br/><br/><br/><br/><br/><br/><br/>
30   -
31   -<p>
32   - <input type='checkbox' name='call_home' value='enable' checked style="float:left;"/>&nbsp;&nbsp;
33   - <label for='call_home'>Help to improve KnowledgeTree by providing anonymous usage statistics</label>
34   -</p>
  27 + <p>
  28 + <input type='checkbox' id="call_home" name='call_home' value='enable' checked style="float:left;"/>&nbsp;&nbsp;
  29 + <label for='call_home'>Help to improve KnowledgeTree by providing anonymous usage statistics</label>
  30 + </p>
35 31 <?php } ?>
36 32 </div>
37 33 <input type="submit" name="Previous" value="Previous" class="button_previous"/>
... ...
setup/wizard/templates/services.tpl
... ... @@ -3,9 +3,7 @@
3 3 <?php } else { ?>
4 4 <form action="index.php?step_name=<?php echo $step_name; ?>" method="post" id="_<?php echo $step_name; ?>">
5 5 <?php } ?>
6   -
7 6 <p class="title">Checking Service Dependencies</p>
8   -
9 7 <p class="description">
10 8 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 9 </p>
... ... @@ -86,9 +84,7 @@
86 84 <div id="option4" class="onclick" onclick="javascript:{w.toggleClass('java_details', 'option4');}"><?php echo $details; ?></div>
87 85 <div class="java_details" style="display:<?php echo $display; ?>">
88 86 <?php } ?>
89   -<!-- <p class="description">-->
90 87 The Java version must be higher than 1.5.
91   -<!-- </p>-->
92 88 <table>
93 89 <tr>
94 90 <td> <span class='<?php echo $step_vars['java']['class']; ?>'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span> </td>
... ... @@ -167,11 +163,9 @@
167 163 <?php } ?>
168 164 <?php } ?>
169 165 <?php } else { ?>
170   -<!-- <p class="description">-->
171 166 <?php if($servicesValidation) { ?>
172 167 All services are already installed.
173 168 <?php } ?>
174   -<!-- </p>-->
175 169 <?php } ?>
176 170 <?php if($servicesValidation) { ?>
177 171 <h3><?php echo "<span class='{$serviceCheck}'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>"; ?>Services Check</h3>
... ... @@ -187,9 +181,7 @@
187 181 <div id="option6" class="onclick" onclick="javascript:{w.toggleClass('service_details', 'option6');}"><?php echo $details; ?></div>
188 182 <div class="service_details" style="display:<?php echo $display; ?>">
189 183 <?php } ?>
190   -<!-- <p class="description">-->
191 184 Preload Services if posibble.
192   -<!-- </p>-->
193 185 <table>
194 186 <?php
195 187 if($step_vars) {
... ...
setup/wizard/templates/welcome.tpl
... ... @@ -4,7 +4,6 @@
4 4 <p class="empty_space"> This wizard will lead you through all the steps required to install and configure KnowledgeTree on your server.</p>
5 5 <p class="empty_space">
6 6 Press <b>Next</b> to continue.</p>
7   - <div class="demo"><?php //echo $html->image('kt_browse.png'); ?> </div>
8 7 </div>
9 8 <input type="submit" name="Next" value="Next" class="button_next"/>
10 9 </form>
... ...