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

Last change on this file since 23178 was 23178, checked in by davidb, 14 years ago

CGI scripts need to know the fromCollect and toCollect

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