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

Last change on this file since 23090 was 23090, checked in by davidb, 13 years ago

Addition to form of field to store the digital library the designated Document is uploaded to.

  • Property svn:executable set to *
File size: 2.1 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 <input type="hidden" name="talktoUpload" value="_talktoUpload_" />
30
31 </form>
32
33 <script type="text/javascript">
34
35 function talkbackUploadSubmit(oid)
36 \{
37 var uploadForm = document.uploadForm;
38 uploadForm.oid.value = oid;
39 uploadForm.submit();
40 \}
41 </script>
42}
43
44_monitorUpload_ {
45
46<center>
47 <div style="width: 450px;">
48 <iframe frameborder="0" width="400" height="80"
49 src="_talkfromUploadProgress_?rand\_string=_randString_">
50 </iframe>
51 </div>
52</center>
53
54
55}
56
57#---------------------------
58
59_imagethispage_ {DL Talkback}
60
61_content_ {
62_optnavigationbar_
63
64
65<div class="divbar">&nbsp;</div>
66
67<div style="min-height: 500px;">
68 <div style="width: 49%; height: 100%; float: left; margin-left: 1px">
69
70 <iframe width="100%" height="500" frameborder="0"
71 src="_talkfromLibrary_?a=p&p=about&c=video-demo&talkback=1">
72 </iframe>
73
74
75 </div>
76
77 <div style="float: right; width: 49%; height: 100%; margin-right: 1px;">
78 <iframe width="100%" height="500" frameborder="0"
79 src="_talktoLibrary_?a=p&p=about&c=5-showcase/talkback&talkback=1">
80 </iframe>
81 </div>
82
83</div>
84<div style="clear: both"></div>
85<div class="divbar">&nbsp;</div>
86
87
88}
89
90# _monitorUpload_
Note: See TracBrowser for help on using the repository browser.