source: main/trunk/greenstone2/macros/talkback.dm@ 23086

Last change on this file since 23086 was 23086, checked in by davidb, 12 years ago

Renaming of CGI scripts

  • Property svn:executable set to *
File size: 2.0 KB
Line 
1package talkback
2
3# The following values are typically set in <gsdlhome>/macro/extra.dm
4_talkfromcgi_ {}
5_talktocgi_ {}
6
7# Set by the runtime system
8_randString_ {}
9
10_talkfromLibrary_ {_talkfromcgi_/library.cgi}
11_talkfromUploadSimulate_ {_talkfromcgi_/talkback-transfer.pl}
12_talkfromUploadProgress_ {_talkfromcgi_/talkback-progressbar.pl}
13
14_talktoLibrary_ {_talktocgi_/library.cgi}
15_talktoUpload_ {_talktocgi_/talkback-progressbar.pl}
16
17
18_uploadForm_ {
19
20 <form name="uploadForm"
21 action="_talkfromUploadSimulate_"
22 enctype="multipart/form-data"
23 method="post">
24 <input type="hidden" name="yes_upload" value="1" />
25 <input type="hidden" name="process" value="1" />
26 <input type="hidden" name="rand_string" id="rand_string" value="_randString_" />
27 <input type="hidden" name="collect" value="_cgiargc_" />
28 <input type="hidden" name="oid" value="" />
29
30 </form>
31
32 <script type="text/javascript">
33
34 function talkbackUploadSubmit(oid)
35 \{
36 var uploadForm = document.uploadForm;
37 uploadForm.oid.value = oid;
38 uploadForm.submit();
39 \}
40 </script>
41}
42
43_monitorUpload_ {
44
45<center>
46 <div style="width: 450px;">
47 <iframe frameborder="0" width="400" height="80"
48 src="_talkfromUploadProgress_?rand\_string=_randString_">
49 </iframe>
50 </div>
51</center>
52
53
54}
55
56#---------------------------
57
58_imagethispage_ {DL Talkback}
59
60_content_ {
61_optnavigationbar_
62
63
64<div class="divbar">&nbsp;</div>
65
66<div style="min-height: 500px;">
67 <div style="width: 49%; height: 100%; float: left; margin-left: 1px">
68
69 <iframe width="100%" height="500" frameborder="0"
70 src="_talkfromLibrary_?a=p&p=about&c=video-demo&talkback=1">
71 </iframe>
72
73
74 </div>
75
76 <div style="float: right; width: 49%; height: 100%; margin-right: 1px;">
77 <iframe width="100%" height="500" frameborder="0"
78 src="_talktoLibrary_?a=p&p=about&c=5-showcase/talkback&talkback=1">
79 </iframe>
80 </div>
81
82</div>
83<div style="clear: both"></div>
84<div class="divbar">&nbsp;</div>
85
86
87}
88
89# _monitorUpload_
Note: See TracBrowser for help on using the repository browser.