services.tpl
3 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
<form action="index.php?step_name=<?php echo $step_name; ?>" method="post" id="<?php echo $step_name; ?>">
<p class="title">Deactivate Services</p>
<p class="description">
All KnowledgeTree services need to be deactivated before the migration takes place.
</p>
<!--Continue Message-->
<?php
if(!$errors && !$warnings) {
?>
<span class='big_ok'> </span>
All services have been shut down. 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_Migrater#Deactivate_Services" target="_blank">Click here for help on overcoming service issues</a>
<?php } ?>
<!--Content-->
<div id="step_content_<?php echo $step_name; ?>" class="step">
<?php if(!$alreadyUninstalled) { ?>
<?php } else { ?>
All services are uninstalled.
<?php } ?>
<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';
}
$display = 'block';
?>
<!-- <div id="option6" class="onclick notop" onclick="javascript:{w.toggleClass('service_details', 'option6');}"><?php echo $details; ?></div>-->
<div class="service_details" style="display:<?php echo $display; ?>">
<?php } ?>
<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:20%;"> <?php echo $ser['name']; ?> </td>
<td style="width:75%;"> <?php echo $ser['msg']; ?> </td>
<?php if ($ser['class'] != 'tick') {
?>
<!-- <td><a href="javascript:this.location.reload();" class="refresh">Refresh</a></td>-->
<?php
} ?>
</tr>
<?php
}
}
}
?>
</table>
<?php if ($serviceCheck != 'tick') { ?>
<br/>
<p class=\"description\">Click <b>Next</b> if deactivating the above services.</p>
<?php } ?>
<?php if($silent) { ?>
</div>
<?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'); } ?>