-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex_modificado.php
72 lines (64 loc) · 4.87 KB
/
index_modificado.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
<html><head>
<?php
include("globals.php");
?>
<SCRIPT src="./web-files/dtjava.js"></SCRIPT>
<script>
function javafxEmbed() {
var sHost = "<?php echo $host; ?>";
var screenH = 700;
var screenW = 1280;
if (parseInt(navigator.appVersion)>3) {
screenW = screen.width -50;
screenH = screen.height -150;
} else if (navigator.appName === "Netscape"
&& parseInt(navigator.appVersion)===3
&& navigator.javaEnabled()) {
var jToolkit = java.awt.Toolkit.getDefaultToolkit();
var jScreenSize = jToolkit.getScreenSize();
screenW = jScreenSize.width -50;
screenH = jScreenSize.height -150;
}
if (screenH > 1000){
screenH = 1000;
} else if (screenH < 650){
screenH = 650;
}
if (screenW > 1280){
screenW = 1280;
}
dtjava.embed(
{
url : 'SicaWeb2.jnlp',
placeholder : 'javafx-app-placeholder',
width : screenW,
height : screenH,
params: {host:sHost, screenW:screenW, screenH:screenH},
jnlp_content : 'PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjxqbmxwIHNwZWM9IjEuMCIgeG1sbnM6amZ4PSJodHRwOi8vamF2YWZ4LmNvbSIgaHJlZj0iU2ljYVdlYjIuam5scCI+DQogIDxpbmZvcm1hdGlvbj4NCiAgICA8dGl0bGU+U2ljYVdlYjI8L3RpdGxlPg0KICAgIDx2ZW5kb3I+Q3VWYWxsZVM8L3ZlbmRvcj4NCiAgICA8ZGVzY3JpcHRpb24+bnVsbDwvZGVzY3JpcHRpb24+DQogICAgPG9mZmxpbmUtYWxsb3dlZC8+DQogIDwvaW5mb3JtYXRpb24+DQogIDxyZXNvdXJjZXM+DQ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kYXRlIGNoZWNrPSJhbHdheXMiLz4NCjwvam5scD4NCg=='
},
{
javafx : '2.2+'
},
{}
);
document.querySelector(".container").style.width = screenW;
document.querySelector(".imgheader").style.width = screenW;
document.querySelector(".imgfooter").style.width = screenW;
}
<!-- Embed FX application into web page once page is loaded -->
dtjava.addOnloadCallback(javafxEmbed);
</script>
</head>
<body bgcolor="#999999" >
<div class="container" style="width:1280; margin: auto">
<img class="imgheader" src="imgs/header.jpg" />
<!-- Applet will be inserted here -->
<div id='javafx-app-placeholder'></div>
<img src="imgs/comentario.jpg" />
<a title="Descarga Sica" href="http://148.202.89.3/sica/web-files/Sica_Web_2.zip"><img src="imgs/descargasica2.1.png" alt="Descargar sica web" /></a>
<img src="web-files/espacio_blanco.jpg" />
<img class="imgfooter" src="imgs/foot.jpg" />
<!--b>Para ejecutar como aplicación </b> <a href='SiCAWeb.jnlp' onclick="return launchApplication('SiCAWeb.jnlp');"> haz click aquí</a><br><hr><br-->
</div>
</body>
</html>