-
Notifications
You must be signed in to change notification settings - Fork 44
/
index1.php
90 lines (83 loc) · 6.54 KB
/
index1.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="shortcut icon" href="/HRProprietary/HRCloud2/favicon.ico" preload>
<title>HRCloud2 | Home </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('/var/www/html/HRProprietary/HRCloud2/commonCore.php')) die ('<body>ERROR!!! HRC2Index1-19, Cannot process the HRCloud2 Common Core file (commonCore.php)!'.PHP_EOL.'</body></html>');
else Include_once ('/var/www/html/HRProprietary/HRCloud2/commonCore.php');
// / The follwoing code checks if the commonCore.php file exists and
// / terminates if it does not.
if (!file_exists('/var/www/html/HRProprietary/HRCloud2/appCore.php')) die ('<body>ERROR!!! HRC2AL34, Cannot process the HRCloud2 App Core file (appCore.php)!'.PHP_EOL.'</body></html>');
else require_once ('/var/www/html/HRProprietary/HRCloud2/appCore.php');
include('/var/www/html/HRProprietary/HRCloud2/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="index1.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 $UserID;?>">
<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="Clear();">
<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)) {
echo '<p><strong>Tip: </strong>'.$Tip.'</p>'; } ?>
<div id="cloudContentsDiv" align='center' style="width:404px; padding-top: 5px;">
<div id="filesOverview" name="filesOverview" style="float:left; height:160px; width:195px; border:inset; margin-bottom:2px;">
<div align="left" style="margin-left: 10px;"><p><h3>Files</h3></div>
<div id="filesOverview1" name="fileOverview1">
<form action="index2.php">
<p><input type="submit" value="Go To Drive"></p></form>
<p>Recent Files: <a href="index2.php"><i><?php echo substr($random_file, 0, 20); ?></i></a></p>
</div>
</div>
<div id="appsOverview" name="appsOverview" style="float:right; height:160px; width:195px; border:inset; margin-bottom:2px;">
<div align="left" style="margin-left: 10px;"><p><h3>Apps</h3></div>
<div id="appsOverview1" name="appsOverview1">
<form action="appLauncher.php">
<p><input type="submit" value="Go To Apps"></p></form>
<p>Recent Apps: <a href="appLauncher.php"><i><?php echo substr($random_app, 0, 20); ?></i></a></p>
</div>
</div>
<div align="center" id="<?php echo $appCounter; ?>Overview" name="<?php echo $appCounter; ?>Overview" style="float:left; height:160px; width:195px; border:inset; margin-bottom:2px;">
<div align="left" style="margin-left: 20px;"><p><h3>Notes</h3></div>
<div id="notesOverview1" name="notesOverview1">
<p><input type="submit" value="Launch Notes" onclick="window.open('Applications/Notes/Notes.php','Notes','resizable,height=400,width=650'); return false;"></p>
<p>Recent Notes: <a onclick="window.open('Applications/Notes/Notes.php?editNote=<?php echo $random_note; ?>','Notes','resizable,height=400,width=650'); return false;" href="Applications/Notes/Notes.php?editNote=<?php echo $random_note; ?>"><i></i><?php echo substr($random_note, 0, 20); ?></a></p>
</div>
<?php $appCounter++; ?>
</div>
<div align="center" id="<?php echo $appCounter; ?>overview" name="<?php echo $appCounter; ?>overview" style="float:right; height:160px; width:195px; border:inset;">
<div align="left" style="margin-left: 20px;"><p><h3>Contacts</h3></div>
<div id="contactsOverview" name="contactsOverview">
<p><input type="submit" value="Launch Contacts" onclick="window.open('Applications/Contacts/Contacts.php','Contacts','resizable,height=400,width=650'); return false;"></p>
<p>Recent Contacts: <a onclick="window.open('Applications/Contacts/Contacts.php?editContact=<?php echo $random_contact; ?>','Contacts','resizable,height=400,width=650'); return false;" href="Applications/Contacts/Contacts.php?editContact=<?php echo $random_contact; ?>"><i></i><?php echo substr($random_contact, 0, 20); ?></a></p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>