1 rizwank 1.1 %TMPL:INCLUDE{"twiki"}%
2 %TMPL:DEF{"script"}%
3 <script type="text/javascript">
4 <!--HIDE
5 ns4 = (document.layers)? true:false;
6 ie4 = (document.all)? true:false;
7 dom = (document.getElementById)?true:false;
8
9 toShow=new Array();
10 toHide=new Array();
11
12 function initForm() {
13 document.main.text.focus();
14 for (i = 0; i < toShow.length; i++) {
15 if(dom) {
16 document.getElementById(toShow[i]).style.display="inline";
17 } else if( ie4 ) {
18 document.all[toShow[i]].style.display="inline";
19 } else if( ns4 ) {
20 document.layers[toShow[i]].style.display="inline";
21 }
22 rizwank 1.1 }
23 for ( i = 0; i < toHide.length; i++) {
24 if(dom) {
25 document.getElementById(toHide[i]).style.display="none";
26 } else if( ie4 ) {
27 document.all[toHide[i]].style.display="none";
28 } else if( ns4 ) {
29 document.layers[toHide[i]].style.display="none";
30 }
31 }
32 }
33 function checkAll( theButton, theButtonOffset, theNum, theCheck )
34 {
35 // find button element index
36 var j = 0;
37 for( var i = 0; i <= document.main.length; i++ ) {
38 if( theButton == document.main.elements[i] ) {
39 j = i;
40 break;
41 }
42 }
43 rizwank 1.1 // set/clear all checkboxes
44 var last = j+theButtonOffset+theNum;
45 for( i = last-theNum; i < last; i++ ) {
46 document.main.elements[i].checked = theCheck;
47 }
48 }
49 function launchWindow( theWeb, theTopic, theAnchor ) {
50 if( ! theAnchor ) {
51 theAnchor = "";
52 }
53 win = open( "%SCRIPTURLPATH%/view%SCRIPTSUFFIX%/" + theWeb + "/" + theTopic + "?skin=plain" + theAnchor,
54 theTopic, "titlebar=0,width=500,height=480,resizable,scrollbars");
55 if( win ) {
56 win.focus();
57 }
58 return false;
59 }
60 //STOP HIDING-->
61 </script>%TMPL:END%
62
63 %TMPL:DEF{"footernote"}%
64 rizwank 1.1 <div class="TWikiFooterNote">
65
66 </td><td valign="top">
67
68 <input type="checkbox" name="unlock" %RELEASEEDITLOCKCHECKBOX% /> Release edit lock
69 <font size="-1">(<a target="UnlockTopic" onclick="return launchWindow('%TWIKIWEB%','UnlockTopic')" href="%SCRIPTURLPATH%/view%SCRIPTSUFFIX%/%TWIKIWEB%/UnlockTopic">help</a>)</font> <br />
70
71 <input type="checkbox" name="dontnotify" %DONTNOTIFYCHECKBOX% /> Minor changes, don't notify
72 <font size="-1">(<a target="DontNotify" onclick="return launchWindow('%TWIKIWEB%','DontNotify')" href="%SCRIPTURLPATH%/view%SCRIPTSUFFIX%/%TWIKIWEB%/DontNotify">help</a>)</font>
73 <font color="#333333" size="-1">
74 %INCLUDE{"%TWIKIWEB%.WikiSyntaxSummary"}%
75 </font>
76 </div>%TMPL:END%
77
78 %TMPL:DEF{"topicaction"}%
79 <input type="submit" class="twikiSubmit" name="action" value="Cancel" id="cancel" />%TMPL:P{"sep"}%
80 <input type="submit" class="twikiSubmit" name="action" value="Checkpoint" id="checkpoint" />
81 <input type="submit" class="twikiSubmit" name="action" value="QuietSave" id="quietsave" />
82 <input type="submit" class="twikiSubmit" name="action" value="Save" id="save" />%TMPL:P{"sep"}%
83 <input type="submit" class="twikiSubmit" name="action" value="Preview" id="preview" />%TMPL:END%
84 %TMPL:DEF{"titleaction"}%(edit) %TMPL:END%
85 rizwank 1.1 %TMPL:DEF{"titlehelp"}% %TMPL:END%
86 %TMPL:DEF{"webaction"}%Change topic%TMPL:END%
87 %TMPL:P{"htmldoctype"}%
88 %TMPL:P{"head"}%
89 <body bgcolor="#ffffff" onload="initForm()">
90 #PageTop
91 <form name="main" action="%SCRIPTURLPATH%/save%SCRIPTSUFFIX%/%WEB%/%TOPIC%" method="post">
92 %TMPL:P{"simpleheader"}%
93 <textarea name="text" wrap="virtual" rows="%EDITBOXHEIGHT%" cols="%EDITBOXWIDTH%" style="%EDITBOXSTYLE%" onkeydown="if(window.event.keyCode==27) return false;">%TEXT%</textarea><br />
94 <input type="hidden" name="formtemplate" value="%FORMTEMPLATE%" />
95 <input type="hidden" name="topicparent" value="%TOPICPARENT%" />
96 <input type="hidden" name="cmd" value="%CMD%" />
97 See below for help in editing this page.
98 <table border="0" cellpadding="2" cellspacing="0">
99 <tr>
100 <td><b>-- <nop>%WIKIUSERNAME% - %DATE%</b></td>
101 <td> <code><==</code> Your signature for easy copy and paste (triple click to select)</td>
102 </tr>
103 </table>
104 %FORMFIELDS%
105 %TMPL:P{"standardfooter"}%
106 rizwank 1.1 </form>
107 #PageBottom
108 </body>
109 </html>
|