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

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

Adjustment of progress bar to narrower

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