-
Notifications
You must be signed in to change notification settings - Fork 44
/
logs.php
70 lines (67 loc) · 4.37 KB
/
logs.php
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
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<link rel="shortcut icon" href="/HRProprietary/HRCloud2/favicon.ico" preload>
<title>HRCloud2 | Logs </title>
<script type="text/javascript" src="/HRProprietary/HRCloud2/Applications/jquery-3.1.0.min.js" preload></script>
<?php
// / -----------------------------------------------------------------------------------
// / The follwoing code checks if the commonCore.php file exists and
// / terminates if it does not.
if (!file_exists('commonCore.php')) die ('<body>ERROR!!! HRC2Logs20, Cannot process the HRCloud2 Common Core file (commonCore.php).'.PHP_EOL.'</body></html>');
else require('commonCore.php');
include('header.php');
// / -----------------------------------------------------------------------------------
?>
<div style="font-family:<?php echo $Font; ?>;">
<div id="centerdiv" align='center' style="margin: 0 auto; max-width:815px;">
<?php if ($ShowHRAI == '1') { ?>
<div id="HRAIDiv" style="float: center; ">
<iframe src="Applications/HRAI/core.php" id="HRAIMini" name="HRAIMini" width="810" height="75" scrolling="yes" margin-top:-4px; margin-left:-4px; border:double; onload="document.getElementById('loading').style.display='none';"></iframe>
<div id='HRAIButtons1' name='HRAIButtons1' style="margin-left:15%;">
<button id='button0' name='button0' class="button" style="float: left; display: block;" onclick="toggle_visibility('button0'); toggle_visibility('button1'); toggle_visibility('button2'); document.getElementById('HRAIMini').style.height = '0px';" >-</button>
<button id='button1' name='button1' class="button" style="float: left; display: none;" onclick="toggle_visibility('button0'); toggle_visibility('button1'); toggle_visibility('button2'); document.getElementById('HRAIMini').style.height = '75px';" >+</button>
<button id='button2' name='button2' class="button" style="float: left; display: block;" onclick="toggle_visibility('button0'); toggle_visibility('button2'); toggle_visibility('button3'); document.getElementById('HRAIMini').style.height = '100%';">+</button>
<button id='button3' name='button3' class="button" style="float: left; display: none;" onclick="toggle_visibility('button0'); toggle_visibility('button2'); toggle_visibility('button3'); document.getElementById('HRAIMini').style.height = '75px';">-</button>
<button id='button4' name='button4' class="button" style="float: left; display: block;" onclick="window.open('Applications/HRAIMiniGui.php','HRAI','resizable,height=400,width=650'); return false;">++</button>
<form action="logs.php"><button id="button" name="button5" class="button" style="float:left;" href="#" onclick="toggle_visibility('loadingCommandDiv');">↺</button></form>
</div>
<form action="Applications/HRAI/core.php#end" id="Corefile Input" method="post" target="HRAIMini">
<input type="hidden" name="user_ID" value="<?php echo $user_ID;?>">
<input type="hidden" name="sesID" value="<?php echo $sesID;?>">
<input type="hidden" name="display_name" value="<?php echo $display_name;?>">
<?php if (!isset($input)) {
$input = ''; } ?>
<div id='HRAIButtons2' name='HRAIButtons2' style="margin-right:15%;">
<input type="text" name="input" id="input" value="<?php echo $input; ?>" onclick="ClearInput();">
<input id='submitHRAI' type="submit" value="Hello HRAI"></div></form>
</div>
<?php } ?><script type="text/javascript" src="/HRProprietary/HRCloud2/Resources/HRC2-Lib.js" defer></script><?php
if ($ShowTips == '1' && isset($Tip)) {
$tipsHeight = '60';
echo '<p><strong>Tip: </strong>'.$Tip.'</p>'; } ?>
<div id="logsContentsDiv" align='center'>
<iframe src="DATA/<?php echo $UserID; ?>/.AppData/.index.php" id="logsContents" name="logsContents" width="815px" style="min-height:450px; max-height:950px; padding-top:-4px; padding-left:-4px; border:inset;" onload="document.getElementById('loading').style.display='none';"></iframe>
</div>
</div>
<?php
if ($ShowHRAI == '1') {
$hraiHeight = '185'; }
if ($ShowHRAI !== '1') {
$hraiHeight = '80'; }
$heightAdjuster = $hraiHeight + $tipsHeight; ?>
<script>
;(function($){
//Resizes the div to the remaining page size.
$(document).ready(function(){
$('#logsContents').height( $(window).height() - <?php echo $heightAdjuster; ?> );
$(window).resize(function(){
$('#logsContents').height( $(this).height() - <?php echo $heightAdjuster; ?> );
});
});
})(jQuery);
</script>
</div>
</body>
</html>