Changeset 1449
- Timestamp:
- 2000-08-25T16:09:25+12:00 (24 years ago)
- Location:
- trunk/gsdl
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/macros/base.dm
r1444 r1449 194 194 _httppagex_ {_gwcgi_?e=_compressedoptions_&a=p&p=_1_} 195 195 _httppagestatus_ {_gwcgi_?e=_compressedoptions_&a=status} 196 _httppagecollector_ {_gwcgi_?a=collector} 196 197 _httppageabout_ {_httppagex_(about)} 197 198 #_httppagehome_ {_httppagex_(home)} -
trunk/gsdl/macros/collect.dm
r1438 r1449 1 1 package collector 2 2 3 _imagethispage_ { _iconhcolect_}3 _imagethispage_ {<a href="_httppagecollector_">_iconhcolect_</a>} 4 4 5 5 # _pagescriptextra_ will be set to the appropriate _***scriptextra_ … … 11 11 _gsjimage_ {<a href="javascript:check\_submit('_4_');" onMouseover="roll('_4_',1);" onMouseOut="roll('_4_',0);"><img 12 12 name="_4_" src="_2_" onLoad="gbutton(this,'_3_');" border=0 alt="_5_"></a>} 13 14 _gsjimage_ [v=1] {<a href="#" onClick="check\_submit(_4_);">_5_</a><br>} 13 _gsjimage_ [v=1] {<a href="javascript:check\_submit('_4_');">_5_</a><br>} 14 15 # _gstimage_ is also similar to _gsimage_ but is used where buttons occur in a sub-frame and 16 # require target=_top 17 _gstimage_ {<a href="_1_" onMouseover="roll('_4_',1);" onMouseOut="roll('_4_',0);" target="\_top"><img 18 name="_4_" src="_2_" onLoad="gbutton(this,'_3_');" border=0 alt="_5_"></a>} 19 _gstimage_ [v=1] {<a href="_1_" target="\_top">_5_</a><br>} 20 15 21 16 22 … … 22 28 # icons 23 29 24 _iconhcolect_ {<img src="_httpimg_/h_colect.gif" alt="the collector" >}30 _iconhcolect_ {<img src="_httpimg_/h_colect.gif" alt="the collector" border=0>} 25 31 _icongreyarrow_ {<img src="_httpimg_/grarrow.gif">} 26 32 _icongreyuparrow_ {<img src="_httpimg_/guarrow.gif">} … … 73 79 _httpconf_ {_gwcgi_?e=_compressedoptions_&cp=conf} 74 80 _httpbild_ {_gwcgi_?e=_compressedoptions_&cp=bild} 75 _httpview_ {_gwcgi_?e=_compressedoptions_& cp=view}81 _httpview_ {_gwcgi_?e=_compressedoptions_&a=p&p=about&c=_cgiargbc1dirname_} 76 82 _httpdel_ {javascript:do_delete();} 77 83 … … 131 137 There are social issues: collections should respect the customs of the 132 138 community out of which the documents arise. 133 And there are ethical issues. 134 Be sensitive to the power of information and use it wisely. 139 And there are ethical issues: some things simply should not be made 140 available to others. 141 <br>Be sensitive to the power of information and use it wisely. 135 142 </i> 136 143 </center> … … 603 610 604 611 _bildcontent_ { 612 <html> 605 613 <frameset rows="*,150" border=0> 606 614 <noframes><body bgcolor="#ffffff"> … … 611 619 <frame src="_gwcgi_?e=_compressedoptions_&cp=bildstatus"> 612 620 </frameset> 621 </html> 613 622 } 614 623 … … 662 671 <tr><td> 663 672 _statusline_ 673 </td></tr> 674 </table></center> 675 </form> 676 } 677 678 _bilddoneheader_ {_cgihead_ 679 _htmlhead_(background="_httpiconchalk_")_startspacer_ 680 } 681 _bilddonescriptextra_ {} 682 _bilddonecontent_ { 683 <form name="collectorform" method=post action="_gwcgi_"> 684 <input type=hidden name="e" value="_decodedcompressedoptions_"> 685 <center> 686 <table width=_pagewidth_> 687 <tr><td> 688 <p>Collection built successfully. 689 690 <p><center> 691 _collectorbar_ 692 </center> 693 694 </td></tr> 695 </table></center> 696 </form> 697 } 698 699 _bildfailheader_ {_cgihead_ 700 _htmlhead_(background="_httpiconchalk_")_startspacer_ 701 } 702 _bildfailscriptextra_ {} 703 _bildfailcontent_ { 704 <form name="collectorform" method=post action="_gwcgi_"> 705 <input type=hidden name="e" value="_decodedcompressedoptions_"> 706 <center> 707 <table width=_pagewidth_> 708 <tr><td> 709 <p>An error has occurred while attempting to build your collection. 664 710 </td></tr> 665 711 </table></center> -
trunk/gsdl/src/recpt/collectoraction.cpp
r1438 r1449 240 240 text_t ¤t_page = args["cp"]; 241 241 242 if (current_page != "intro" ) {242 if (current_page != "intro" && current_page != "bildstatus") { 243 243 // authenticate the user if authentication is available 244 244 args["uan"] = 1; … … 499 499 if (thispage == "info" || thispage == "srce" || thispage == "conf") { 500 500 gsmacro = "_gsjimage_"; 501 } else if (type == "view") { 502 // view button is special case as it needs a target=_top 503 gsmacro = "_gstimage_"; 501 504 } 502 505 return "<td>" + gsmacro + "(_collector:http" + type + "_,_collector:" + httpicon + … … 645 648 statusline += file_tail (bld_file + ".import"); 646 649 } else if (file_exists (bld_file + ".build")) { 647 statusline = "Building collection ... ";650 statusline = "Building collection ...<br>"; 648 651 statusline += file_tail (bld_file + ".build"); 649 652 } else { … … 674 677 disp.setmacro ("pagescriptextra", "collector", "_" + collector_page + "scriptextra_"); 675 678 676 if (collector_page == "bildstatus" ) {679 if (collector_page == "bildstatus" || collector_page == "bilddone" || collector_page == "bildfail") { 677 680 disp.setmacro ("header", "collector", "_" + collector_page + "header_"); 678 681 } … … 744 747 collectorbar += "</tr><tr><td colspan=4></td><td align=center>_icongreyuparrow_</td><td colspan=4></td>\n"; 745 748 746 } else if (collector_page == "bild") { 747 748 749 } else if (collector_page == "bilddone") { 750 // all previous buttons grey after build was completed 751 collectorbar += get_button (collector_page, "grey", "info", false); 752 collectorbar += "<td>_icongreyarrow_</td>\n"; 753 collectorbar += get_button (collector_page, "grey", "srce", false); 754 collectorbar += "<td>_icongreyarrow_</td>\n"; 755 collectorbar += get_button (collector_page, "grey", "conf", false); 756 collectorbar += "<td>_icongreyarrow_</td>\n"; 757 collectorbar += get_button (collector_page, "yellow", "bild", false); 758 collectorbar += "<td>_icongreyarrow_</td>\n"; 759 collectorbar += get_button (collector_page, "green", "view", true); 760 collectorbar += "</tr><tr><td colspan=6></td><td align=center>_icongreyuparrow_</td><td colspan=2></td>\n"; 749 761 } 750 762 … … 769 781 770 782 if (collector_page == "bild") { 783 784 // don't want header and stuff for build page as it uses frames 785 textout << outconvert << disp << ("_collector:bildcontent_\n"); 786 771 787 // do the work (download, import, build) 772 788 text_t tmpdir = filename_cat (gsdlhome, "tmp", collection + ".bld"); … … 801 817 #endif 802 818 delete build_cmdc; 803 804 // don't want header and stuff for build page as it uses frames805 textout << outconvert << disp << ("_collector:bildcontent_\n");806 819 807 820 } else {
Note:
See TracChangeset
for help on using the changeset viewer.