-
Notifications
You must be signed in to change notification settings - Fork 1
/
launch.php
executable file
·121 lines (101 loc) · 3.66 KB
/
launch.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
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
<?php
require_once('block.php');
class launch extends block
{
function display()
{
$model_id=$this->model_id();
if($model_id==0)
{
$this->displayVideo();
return;
}
echo "<script type=\"text/javascript\">\n";
echo "function launchDoc(modelid)\n";
echo "{\n";
echo " window.open('doc.php?modelid='+modelid,'','scrollbars=yes,menubar=no,height=".$this->configurationSettings['docHeight'].",width=".$this->configurationSettings['docWidth'].",resizable=yes,toolbar=no,location=no,status=no');";
echo "}\n";
echo "function launchInf(modelid)\n";
echo "{\n";
echo " window.open('about.php?modelid='+modelid,'','scrollbars=yes,menubar=no,height=".$this->configurationSettings['aboutHeight'].",width=".$this->configurationSettings['aboutWidth'].",resizable=yes,toolbar=no,location=no,status=no');";
echo "}\n";
echo "</script>\n";
echo " <div class='launchButtonsFrame'>\n";
echo " <FORM action='alone.php' method='POST' target='_blank'>\n";
echo " <input type='submit' class='launchSim' value='' name='submit'>\n";
echo " <input type='hidden' id='modelid' name='modelid' value='".$model_id."'>\n";
echo " </FORM>\n";
echo " <div class='launchDoc'>\n";
echo " <a onclick='launchDoc(\"".$model_id."\")' class='launch'></a>\n";
echo " </div>\n";
echo " <div class='launchInf'>\n";
echo " <a onclick='launchInf(\"".$model_id."\")' class='launch'></a>\n";
echo " </div>\n";
echo " </div>\n";
$this->displayMessage();
}
function displayVideo()
{
echo " <video controls=\"controls\" src=\"info/inicio.mp4\" type=\"video/mp4\" class=\"unvlvideo\" poster=\"info/inicio_frame\">\n";
echo $this->text("description_Select_an_experimentation_plant")."\n";
echo " </video>\n";
}
function displayMessage()
{
echo " <div onload=\"initBox()\" class=\"unvlboxmail\" id=\"closeboxdiv\">\n";
echo " <a class=\"launch\" id=\"closeboxdiv\" href=\"mailto:[email protected]\"></a>\n";
echo " </div>\n";
}
}
class launchsmall extends block
{
function display()
{
$model_id=$this->model_id();
if($model_id==0)
{
return;
}
echo "<script type=\"text/javascript\">function launch(modelid)\n";
echo "{";
echo " window.open('alone.php?modelid='+modelid,'_blank');";
echo "}";
echo "</script>";
echo "<a onclick='launch(\"".$model_id."\")'><div class='launchsmall'></div></a>";
}
}
class launchsmalldoc extends block
{
function display()
{
$model_id=$this->model_id();
if($model_id==0)
{
return;
}
echo "<script type=\"text/javascript\">function launchdoc(modelid)\n";
echo "{";
echo " window.open('doc.php?modelid='+modelid,'','scrollbars=yes,menubar=no,height=".$this->configurationSettings['docHeight'].",width=".$this->configurationSettings['docWidth'].",resizable=yes,toolbar=no,location=no,status=no');";
echo "}";
echo "</script>";
echo "<a onclick='launchdoc(\"".$model_id."\")'><div class='launchsmalldoc'></div></a>";
}
}
class launchsmallinf extends block
{
function display()
{
$model_id=$this->model_id();
if($model_id==0)
{
return;
}
echo "<script type=\"text/javascript\">function launchinf(modelid)\n";
echo "{";
echo " window.open('about.php?modelid='+modelid,'','scrollbars=yes,menubar=no,height=".$this->configurationSettings['aboutHeight'].",width=".$this->configurationSettings['aboutWidth'].",resizable=yes,toolbar=no,location=no,status=no');";
echo "}";
echo "</script>";
echo "<a onclick='launchinf(\"".$model_id."\")'><div class='launchsmallinf'></div></a>";
}
}
?>