[moodle] / contrib / plugins / grade / report / visual / flex.php Repository:

Annotation of /contrib/plugins/grade/report/visual/flex.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (view) (download)

1 : dservos 1.1 <?php
2 : dservos 1.2 ///////////////////////////////////////////////////////////////////////////
3 :     // //
4 :     // NOTICE OF COPYRIGHT //
5 :     // //
6 :     // Moodle - Modular Object-Oriented Dynamic Learning Environment //
7 :     // http://moodle.org //
8 :     // //
9 :     // Copyright (C) 1999 onwards Martin Dougiamas http://moodle.com //
10 :     // //
11 :     // This program is free software; you can redistribute it and/or modify //
12 :     // it under the terms of the GNU General Public License as published by //
13 :     // the Free Software Foundation; either version 2 of the License, or //
14 :     // (at your option) any later version. //
15 :     // //
16 :     // This program is distributed in the hope that it will be useful, //
17 :     // but WITHOUT ANY WARRANTY; without even the implied warranty of //
18 :     // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
19 :     // GNU General Public License for more details: //
20 :     // //
21 :     // http://www.gnu.org/copyleft/gpl.html //
22 :     // //
23 :     ///////////////////////////////////////////////////////////////////////////
24 :    
25 :     /**
26 : dservos 1.3 * HTML for the visual report.
27 : dservos 1.2 */
28 : dservos 1.3 ?>
29 : dservos 1.2
30 : dservos 1.1 <div style="vertical-align: top; text-align: center;">
31 :     <script src="AC_OETags.js" language="javascript"></script>
32 :     <script language="JavaScript" type="text/javascript">
33 :     <!--
34 :     // -----------------------------------------------------------------------------
35 :     // Major version of Flash required
36 :     var requiredMajorVersion = 9;
37 :     // Minor version of Flash required
38 :     var requiredMinorVersion = 0;
39 :     // Minor version of Flash required
40 :     var requiredRevision = 28;
41 :     // -----------------------------------------------------------------------------
42 :    
43 :    
44 :     // Version check for the Flash Player that has the ability to start Player Product Install (6.0r65)
45 :     var hasProductInstall = DetectFlashVer(6, 0, 65);
46 :    
47 :     // Version check based upon the values defined in globals
48 :     var hasRequestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
49 :    
50 :     if ( hasProductInstall && !hasRequestedVersion ) {
51 :     // DO NOT MODIFY THE FOLLOWING FOUR LINES
52 :     // Location visited after installation is complete if installation is required
53 :     var MMPlayerType = (isIE == true) ? "ActiveX" : "PlugIn";
54 :     var MMredirectURL = window.location;
55 :     document.title = document.title.slice(0, 47) + " - Flash Player Installation";
56 :     var MMdoctitle = document.title;
57 :    
58 :     AC_FL_RunContent(
59 : dservos 1.3 "flashVars", "<?php echo $flashvarshtml; ?>",
60 :     "framerate", "<?php echo $visual->framerate; ?>",
61 : dservos 1.1 "src", "playerProductInstall",
62 :     "FlashVars", "MMredirectURL="+MMredirectURL+'&MMplayerType='+MMPlayerType+'&MMdoctitle='+MMdoctitle+"",
63 : dservos 1.3 "width", "<?php echo $visual->width; ?>",
64 :     "height", "<?php echo $visual->height; ?>",
65 : dservos 1.1 "align", "middle",
66 :     "id", "flare_visualization",
67 : dservos 1.3 "quality", "<?php echo $visual->quality ?>",
68 :     "bgcolor", "#<?php echo $visual->backgroundcolor ?>",
69 : dservos 1.1 "name", "flare_visualization",
70 :     "allowScriptAccess","sameDomain",
71 :     "type", "application/x-shockwave-flash",
72 :     "pluginspage", "http://www.adobe.com/go/getflashplayer"
73 :     );
74 :     } else if (hasRequestedVersion) {
75 :     // if we've detected an acceptable version
76 :     // embed the Flash Content SWF when all tests are passed
77 :     AC_FL_RunContent(
78 : dservos 1.3 "flashVars", "<?php echo $flashvarshtml; ?>",
79 :     "framerate", "<?php echo $visual->framerate; ?>",
80 : dservos 1.1 "src", "flare_visualization",
81 : dservos 1.3 "width", "<?php echo $visual->width; ?>",
82 :     "height", "<?php echo $visual->height; ?>",
83 : dservos 1.1 "align", "middle",
84 :     "id", "flare_visualization",
85 : dservos 1.3 "quality", "<?php echo $visual->quality ?>",
86 :     "bgcolor", "#<?php echo $visual->backgroundcolor ?>",
87 : dservos 1.1 "name", "flare_visualization",
88 :     "allowScriptAccess","sameDomain",
89 :     "type", "application/x-shockwave-flash",
90 :     "pluginspage", "http://www.adobe.com/go/getflashplayer"
91 :     );
92 :     } else { // flash is too old or we can't detect the plugin
93 :     var alternateContent = 'Alternate HTML content should be placed here. '
94 :     + 'This content requires the Adobe Flash Player. '
95 :     + '<a href=http://www.adobe.com/go/getflash/>Get Flash</a>';
96 :     document.write(alternateContent); // insert non-flash content
97 :     }
98 :     // -->
99 :     </script>
100 :     <noscript>
101 :     <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
102 : dservos 1.3 id="flare_visualization" width="<?php echo $visual->width; ?>" height="<?php echo $visual->height; ?>"
103 : dservos 1.1 codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
104 : dservos 1.3 <param name="flashVars" value="<?php echo $flashvarshtml;?>" />
105 : dservos 1.1
106 :     <param name="movie" value="flare_visualization.swf" />
107 : dservos 1.3 <param name="quality" value="<?php echo $visual->quality ?>" />
108 :     <param name="bgcolor" value="#<?php echo $visual->backgroundcolor ?>" />
109 : dservos 1.1 <param name="allowScriptAccess" value="sameDomain" />
110 : dservos 1.3 <embed src="flare_visualization.swf" quality="high" bgcolor="#<?php echo $visual->backgroundcolor ?>"
111 :     flashVars="<?php echo $flashvarshtml; ?>"
112 :     framerate="<?php echo $visual->framerate ?>"
113 :     width="<?php echo $visual->width; ?>" height="<?php echo $visual->height; ?>" name="flare_visualization" align="middle"
114 : dservos 1.1 play="true"
115 :     loop="false"
116 : dservos 1.3 quality="<?php echo $visual->quality ?>"
117 : dservos 1.1 allowScriptAccess="sameDomain"
118 :     type="application/x-shockwave-flash"
119 :     pluginspage="http://www.adobe.com/go/getflashplayer">
120 :     </embed>
121 :     </object>
122 :     </noscript>
123 :     </div>

Moodle CVS Admin
ViewVC Help
Powered by ViewVC 1.0.7