services.tpl
8.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
<?php if (AJAX) { ?>
<form id="configuration_services_database" action="index.php?step_name=<?php echo $step_name; ?>" method="post" id="services">
<?php } else { ?>
<form action="index.php?step_name=<?php echo $step_name; ?>" method="post" id="_<?php echo $step_name; ?>">
<?php } ?>
<p class="title">Checking Service Dependencies</p>
<p class="description">
The wizard will review your system to determine whether you can run KnowledgeTree background services. <br/>Once the scan is completed, you’ll see whether your system has met the requirements or whether there are areas you need to address.
</p>
<!--Continue Message-->
<?php if($servicesValidation) { ?>
<?php
if(!$errors && !$warnings) {
?>
<span class='big_ok'> </span>
All service dependencies are met. Please click next to continue.
<br/><br/>
<?php
}
?>
<!--Warning and Error Messages-->
<?php if($errors) { ?>
<span class='cross'> </span>
<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>
<br/>
<?php } elseif ($warnings) {
?>
<span class='cross_orange'> </span>
<span class='warning_message'>Not all optional dependencies required by KnowledgeTree have been met but you will be able to continue.</span>
<br/>
<?php
}?>
<?php
if($errors || $warnings) {
?>
<a href="http://wiki.knowledgetree.com/Web_Based_Installer#Service_Dependencies" target="_blank">Click here for help on overcoming service issues</a>
<?php } ?>
<?php } ?>
<!--Content-->
<div id="step_content_<?php echo $step_name; ?>" class="step">
<?php if(!$alreadyInstalled) { ?>
<?php if($servicesValidation) { ?>
<?php if($javaExeError) { ?>
Specify the location of your Java executable
<input name='java' id='port' size='25' value='<?php echo $java['location']; ?>' style="float:none;"/>
<a href="javascript:{w.sendJavaLocation();}" class="specify">Submit</a>
<br/>
<?php if($javaExeError != '') { ?><span class="error"><?php echo $javaExeMessage; ?></span><?php } ?>
<br/>
<?php } ?>
<?php if($phpExeError != '') { ?>
<br />
Specify the location of your PHP executable
<br />
<?php if($php['location'] == '') { ?>
<input name='php' id='port' size='25' value='<?php echo $php['location']; ?>'/>
<?php } else { ?>
<input type="hidden" name='php' id='port' size='25' value='<?php echo $php['location']; ?>'/>
<?php } ?>
<?php if($phpExeError != true) { ?><span class="error"><?php echo $phpExeError; ?></span><?php } ?>
<?php } ?>
<?php if($openOfficeExeError) { ?>
Specify the location of your Open Office executable
<input name='soffice' id='port' size='25' value='<?php if(isset($soffice['location'])) echo $soffice['location']; ?>' style="float:none;"/>
<a href="javascript:{w.sendJavaLocation();}" class="specify">Submit</a>
<br/>
<?php if($openOfficeExeError != '') { ?><span class="error"><?php echo $openOfficeExeMessage; ?></span><?php } ?>
<?php } ?>
<h3><?php echo "<span class='{$javaCheck}'> </span>"; ?>Java Check</h3>
<?php if($silent) { ?>
<?php if($javaExeError) {
$details = 'Hide Details';
$display = 'block';
} else {
$details = 'Show Details';
$display = 'none';
}
?>
<div id="option4" class="onclick" onclick="javascript:{w.toggleClass('java_details', 'option4');}"><?php echo $details; ?></div>
<div class="java_details" style="display:<?php echo $display; ?>">
<?php } ?>
<!-- <p class="description">-->
The Java version must be higher than 1.5.
<!-- </p>-->
<table>
<tr>
<td> <span class='<?php echo $step_vars['java']['class']; ?>'> </span> </td>
<td style="width:645px;"> <?php echo $step_vars['java']['found']; ?> </td>
<?php
if ($step_vars['java']['class'] != 'tick') {
?>
<td>
<?php if (AJAX) { ?>
<a href="#" class="refresh" onclick="w.refresh('services')">Refresh</a>
<?php } else { ?>
<a href="javascript:this.location.reload();" class="refresh">Refresh</a>
<?php } ?>
</td>
<?php
} else { ?>
<td> </td>
<?php } ?>
</tr>
<tr>
<td> <span class='<?php echo $step_vars['version']['class']; ?>'> </span> </td>
<td> <?php echo $step_vars['version']['found']; ?> </td>
<?php if ($step_vars['version']['class'] != 'tick') {
?>
<td>
<?php if (AJAX) { ?>
<a href="#" class="refresh" onclick="w.refresh('services')">Refresh</a>
<?php } else { ?>
<a href="javascript:this.location.reload();" class="refresh">Refresh</a>
<?php } ?>
</td>
<?php
}
?>
</tr>
</table>
<?php if($silent) { ?>
</div>
<?php } ?>
<?php if (!$disableExtension) { ?>
<h3><?php echo "<span class='{$javaExtCheck}'> </span>"; ?>Java Extensions</h3>
<?php if($silent) { ?>
<?php if($javaExeError) {
$details = 'Hide Details';
$display = 'block';
} else {
$details = 'Show Details';
$display = 'none';
}
?>
<div id="option5" class="onclick" onclick="javascript:{w.toggleClass('java_ext_details', 'option5');}"><?php echo $details; ?></div>
<div class="java_ext_details" style="display:<?php echo $display; ?>">
<?php } ?>
A PHP Java Bridge is required for KnowledgeTree to perform at an optimal level.
<table>
<tr>
<td> <span class='<?php echo $step_vars['extensions']['class']; ?>'> </span> </td>
<td style="width:645px;"> <?php echo $step_vars['extensions']['found']; ?> </td>
<?php if ($step_vars['extensions']['class'] != 'tick') {
?>
<td>
<?php if (AJAX) { ?>
<a href="#" class="refresh" onclick="w.refresh('services')">Refresh</a>
<?php } else { ?>
<a href="javascript:this.location.reload();" class="refresh">Refresh</a>
<?php } ?>
</td>
<?php
}
?>
</tr>
</table>
<?php if($silent) { ?>
</div>
<?php } ?>
<?php } ?>
<?php } ?>
<?php } else { ?>
<!-- <p class="description">-->
<?php if($servicesValidation) { ?>
All services are already installed.
<?php } ?>
<!-- </p>-->
<?php } ?>
<?php if($servicesValidation) { ?>
<h3><?php echo "<span class='{$serviceCheck}'> </span>"; ?>Services Check</h3>
<?php if($silent) { ?>
<?php if($serviceCheck != 'tick') {
$details = 'Hide Details';
$display = 'block';
} else {
$details = 'Show Details';
$display = 'none';
}
?>
<div id="option6" class="onclick" onclick="javascript:{w.toggleClass('service_details', 'option6');}"><?php echo $details; ?></div>
<div class="service_details" style="display:<?php echo $display; ?>">
<?php } ?>
<!-- <p class="description">-->
Preload Services if posibble.
<!-- </p>-->
<table>
<?php
if($step_vars) {
if(isset($step_vars['services'])) {
foreach ($step_vars['services'] as $ser){
?>
<tr>
<td> <span class='<?php echo $ser['class']; ?>'> </span> </td>
<td style="width:645px;"> <?php echo $ser['msg']; ?> </td>
<?php if ($ser['class'] != 'tick') {
?>
<td>
<?php if (AJAX) { ?>
<a href="#" class="refresh" onclick="w.refresh('services')">Refresh</a>
<?php } else { ?>
<a href="javascript:this.location.reload();" class="refresh">Refresh</a>
<?php } ?>
</td>
<?php
} ?>
</tr>
<?php
}
}
}
?>
</table>
<?php if($silent) { ?>
</div>
<?php } ?>
<?php } else { ?>
Services have to be manually started after the installation has been run. <br/>
More information will be provided on completion of the installation.
<?php } ?>
</div>
<input type="submit" name="Previous" value="Previous" class="button_previous"/>
<input type="submit" name="Next" value="Next" class="button_next"/>
</form>
<?php if (AJAX) { echo $html->js('form.js'); } ?>