1 rizwank 1.1 %TMPL:INCLUDE{"twiki"}%
2
3
4
5 %TMPL:DEF{"script"}%
6 <script type="text/javascript">
7 <!--HIDE
8 ns4 = (document.layers)? true:false;
9 ie4 = (document.all)? true:false;
10 dom = (document.getElementById)?true:false;
11
12 toShow=new Array();
13 toHide=new Array();
14
15 function initForm() {
16 document.main.text.focus();
17 for (i = 0; i < toShow.length; i++) {
18 if(dom) {
19 document.getElementById(toShow[i]).style.display="inline";
20 } else if( ie4 ) {
21 document.all[toShow[i]].style.display="inline";
22 rizwank 1.1 } else if( ns4 ) {
23 document.layers[toShow[i]].style.display="inline";
24 }
25 }
26 for ( i = 0; i < toHide.length; i++) {
27 if(dom) {
28 document.getElementById(toHide[i]).style.display="none";
29 } else if( ie4 ) {
30 document.all[toHide[i]].style.display="none";
31 } else if( ns4 ) {
32 document.layers[toHide[i]].style.display="none";
33 }
34 }
35 }
36 function checkAll( theButton, theButtonOffset, theNum, theCheck )
37 {
38 // find button element index
39 var j = 0;
40 for( var i = 0; i <= document.main.length; i++ ) {
41 if( theButton == document.main.elements[i] ) {
42 j = i;
43 rizwank 1.1 break;
44 }
45 }
46 // set/clear all checkboxes
47 var last = j+theButtonOffset+theNum;
48 for( i = last-theNum; i < last; i++ ) {
49 document.main.elements[i].checked = theCheck;
50 }
51 }
52 function launchWindow( theWeb, theTopic, theAnchor ) {
53 if( ! theAnchor ) {
54 theAnchor = "";
55 }
56 win = open( "%SCRIPTURLPATH%/view%SCRIPTSUFFIX%/" + theWeb + "/" + theTopic + "?skin=plain.pattern" + theAnchor,
57 theTopic, "titlebar=0,width=500,height=480,resizable,scrollbars");
58 if( win ) {
59 win.focus();
60 }
61 return false;
62 }
63 //STOP HIDING-->
64 rizwank 1.1 </script> %TMPL:END%
65
66
67
68 %TMPL:DEF{"bodystart"}%
69 <body class="twikiNoViewPage twikiEditPage" onload="initForm()"><a name="PageTop"></a>%TMPL:END%
70
71
72
73 %TMPL:DEF{"titleaction"}%(edit) %TMPL:END%
74
75
76
77 %TMPL:DEF{"titlehelp"}% %TMPL:END%
78
79
80
81 %TMPL:DEF{"webaction"}%Change topic%TMPL:END%
82
83
84
85 rizwank 1.1 %TMPL:DEF{"simpleheader"}%
86 ---+ <nop>%TOPIC% (edit)
87 %BR%%TMPL:END%
88
89
90
91 %TMPL:DEF{"topicaction"}%<table class="twikiTopicAction">
92 <tr class="twikiTopicActionHelp twikiGrayText">
93 <td colspan="3" class="twikiTopicActionHelp twikiGrayText"><a href="#Opens page in new window" onclick="launchWindow('%TWIKIWEB%', 'AccessKeys'); return false;">Access keys</a>: C = Cancel, K = Checkpoint, Q = Quiet Save, S = Save, P = Preview</td>
94 </tr>
95 <tr class="twikiTopicActionSecondary">
96 <td class="twikiCancelCol"> </td>
97 <td class="twikiSubmitCol"><div class="twikiSubmitOptions"><input type="checkbox" class="twikiCheckbox" name="unlock" id="releaselock" %RELEASEEDITLOCKCHECKBOX% /><label for="releaselock">Release edit lock</label> <a target="UnlockTopic" onclick="return launchWindow('%TWIKIWEB%','UnlockTopic')" href="%SCRIPTURLPATH%/view%SCRIPTSUFFIX%/%TWIKIWEB%/UnlockTopic">help</a><br />
98 <input type="checkbox" class="twikiCheckbox" id="dontnotify" name="dontnotify" %DONTNOTIFYCHECKBOX% /><label for="dontnotify">Minor changes, don't notify</label> <a target="DontNotify" onclick="return launchWindow('%TWIKIWEB%','DontNotify')" href="%SCRIPTURLPATH%/view%SCRIPTSUFFIX%/%TWIKIWEB%/DontNotify">help</a></div></td>
99 <td class="twikiAddCol"> </td>
100 </tr>
101 <tr class="twikiTopicAction">
102 <td class="twikiCancelCol"><a id="cancel" href="%SCRIPTURLPATH%/view%SCRIPTSUFFIX%/%WEB%/%TOPIC%?unlock=on" accesskey="c">Cancel</a></td>
103 <td class="twikiSubmitCol"><input type="submit" class="twikiSubmit twikiSecondary" name="action" id="checkpoint" value="Checkpoint" /><label accesskey="k" for="checkpoint"></label><input type="submit" class="twikiSubmit twikiSecondary" name="action" id="quietsave" value="QuietSave" /><label accesskey="q" for="quietsave"></label><input type="submit" class="twikiSubmit" name="action" id="save" value="Save" /><label accesskey="s" for="save"></label></td>
104 <td class="twikiAddCol"><input type="submit" class="twikiSubmit twikiTertiary" name="action" id="preview" value="Preview" /><label accesskey="p" for="preview"></label></td>
105 </tr>
106 rizwank 1.1 </table>
107 %TMPL:END%
108
109
110
111 %TMPL:DEF{"content"}%
112 %TMPL:P{"simpleheader"}%<div class="twikiFormHolder"><form name="main" action="%SCRIPTURLPATH%/save%SCRIPTSUFFIX%/%WEB%/%TOPIC%" method="post"><label for="topic" class="twikiGrayText">See below for help in editing this page.<br /></label><textarea id="topic" name="text" wrap="virtual" rows="%EDITBOXHEIGHT%" cols="%EDITBOXWIDTH%" onkeydown="if(window.event.keyCode==27) return false;">%TEXT%</textarea><br />
113 <input type="hidden" name="formtemplate" value="%FORMTEMPLATE%" />
114 <input type="hidden" name="topicparent" value="%TOPICPARENT%" />
115 <input type="hidden" name="cmd" value="%CMD%" /><div></div>
116 <div class="twikiSig">
117 <label for="sig" class="twikiGrayText">Your signature for easy copy and paste: </label><input name="sig" type="text" readonly="readonly" id="sig" value="-- <nop>%WIKIUSERNAME% - %DATE%" /></div>
118 %FORMFIELDS%
119 %TMPL:P{"topicaction"}%
120 </form></div><div class="twikiHelp">
121 %INCLUDE{"%TWIKIWEB%.WikiSyntaxSummary"}%</div>%TMPL:END%
122
123
124
125 %TMPL:P{"htmldoctype"}%
126 %TMPL:P{"head"}%
127 rizwank 1.1 %TMPL:P{"bodystart"}%
128 %TMPL:P{"main"}%
129 %TMPL:P{"bodyend"}%
|