Menu

[r111]: / trunk / Src / Res / HTML / comp-snippet-tplt.html  Maximize  Restore  History

Download this file

226 lines (211 with data), 8.2 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
<!--
* comp-snippet-tplt.html
*
* Compiler Check pane template. Used to display compiler compatibilty and test
* information for a selected snippet in the CodeSnip database.
*
* Renamed comp-routine-tplt.html as comp-snippet-tplt.html as at v2.1.
*
* v1.0 of 03 Dec 2006 - Original version. Replaces
* comp-routine-dbase-tplt.html and
* comp-routine-test-tplt.html.
* v1.1 of 04 Dec 2006 - Modified View/Hide Test Unit link's onmouseover and
* onmouseout events to call enterTestUnitLink() and
* exitTestUnitLink() rather than showHint() and
* clearHint().
* - Added new viewunitimg img to View Test Unit image to
* allow image to be changed.
* v1.2 of 17 Dec 2006 - Changed help text link to use .help-link CSS class.
* v1.3 of 18 Oct 2007 - Added "return false;" statement to end of each onclick
* event that didn't already have it.
* v1.4 of 03 Nov 2007 - Updated link class names to designate link type and
* links to be included in popup menus.
* v1.5 of 04 Nov 2007 - Changed to display help via "help:" protocol rather
* than using JavaScript calls.
* v1.6 of 14 Sep 2008 - Added extra ids to enable toggle unit and test compile
* links to be hidden when routine being displayed is not
* in standard format.
* - Added message displayed when routine is not in
* standard format.
* - Added class option-img to images related to menu
* links.
* v2.0 of 25 Jan 2009 - Added template placeholders to be used instead of
* dynamic updating via DHTML.
* - Removed erroneous parameter from enterTestUnitLink
* function call.
* v2.1 of 19 Jun 2009 - Removed HTML divs that were used to display test unit.
* - Links that previously toggled visibility of test unit
* now call a new external object function that causes
* test unit to be displayed in dialog. These links are
* no longer updated dynamically: they now have static
* text and images.
* - Changed test compile link etc to refer to "snippet"
* rather than "routine"
* - Removed divs that appear when snippet is not
* compilable or there are no compilers: different
* templates are now used in this case.
* - Added enclosing "details" div.
* - Added edit snippet div for user-defined snippets.
* - Renamed as comp-snippet-tplt.html.
*
*
* ***** BEGIN LICENSE BLOCK *****
*
* Version: MPL 1.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
* the specific language governing rights and limitations under the License.
*
* The Original Code is comp-snippet-tplt.html
*
* The Initial Developer of the Original Code is Peter Johnson
* (http://www.delphidabbler.com/).
*
* Portions created by the Initial Developer are Copyright (C) 2006-2009 Peter
* Johnson. All Rights Reserved.
*
* ***** END LICENSE BLOCK *****
-->
<div class="details">
<div>
<div
id="editlink"
class="option"
style="<%EditLink%>
padding:-0.1em 0 0.3em 0;position:relative;float:right;"
>
<a
id="editimglink"
class="command-link"
href="javascript:void(0);"
onclick="<%EditEventHandler%>;return false;"
onmouseover="showHint(vEditSnippet);"
onmouseout="clearHint();"
><img
src="editsnippet.gif"
class="option-img"
style="width:16px;height:16px;vertical-align:middle;"
title="Edit Snippet"
></a>
<a
id="edittextlink"
class="command-link menu-item"
href="javascript:void(0);"
onclick="<%EditEventHandler%>;return false;"
onmouseover="showHint(vEditSnippet);"
onmouseout="clearHint();"
>Edit Snippet</a>
</div>
<!-- Routine name common with info-snippet-tplt.html -->
<h1 id="routinename" class="<%RoutineCSSClass%>">
<%RoutineName%>
</h1>
</div>
<table class="testcomp" cellpadding="2" cellspacing="0">
<col style="width:auto;" />
<col style="width:60px;" />
<col style="width:50px;" />
<col style="width:auto;" />
<tr>
<th class="compiler" rowspan="2">Compiler</th>
<th class="compres" colspan="2">Compilation results</th>
<th class="testerr" rowspan="2">&nbsp;</th>
</tr>
<tr>
<th class="dbres">Per<br />Database</th>
<th class="testres">Per<br />Test</th>
</tr>
<%CompilerInfo%>
</table>
<div class="optionbox">
<div class="option">
<a
href="javascript:void(0);"
class="command-link"
onclick="compileRoutine();return false;"
onmouseover="showTestCompileHint();"
onmouseout="clearHint();"
><img
src="compile.gif"
class="option-img"
style="width:16px;height:16px;"
title="Test Compile Snippet"
/></a>
<a
href="javascript:void(0);"
class="command-link menu-item"
onclick="compileRoutine();return false;"
onmouseover="showTestCompileHint();"
onmouseout="clearHint();"
>Test Compile Snippet</a>
</div>
<div class="option">
<a
href="help:CompChecks"
class="help-link"
onmouseover="showHint(vAboutCompChecksHint);"
onmouseout="clearHint();"
><img
src="help.gif"
class="option-img"
style="width:16px;height:16px;"
title="About Compiler Checks"
/></a>
<a
href="help:CompChecks"
class="help-link menu-item"
onmouseover="showHint(vAboutCompChecksHint);"
onmouseout="clearHint();"
>About Compiler Checks</a>
</div>
<div class="option">
<a
href="javascript:void(0);"
class="command-link"
onclick="configCompilers();return false;"
onmouseover="showHint(vConfigCompilersHint);"
onmouseout="clearHint();"
><img
src="configcomp.gif"
class="option-img"
style="width:16px;height:16px;"
title="Configure Compilers"
/></a>
<a
href="javascript:void(0);"
class="command-link menu-item"
onclick="configCompilers();return false;"
onmouseover="showHint(vConfigCompilersHint);"
onmouseout="clearHint();"
>Configure Compilers</a>
</div>
<div class="option">
<a
href="javascript:void(0);"
class="command-link"
onclick="showTestUnit();return false;"
onmouseover="showHint(vShowTestUnitHint);"
onmouseout="clearHint();"
><img
id="viewunitimg"
src="viewunit.gif"
class="option-img"
style="width:16px;height:16px;"
title="Display Test Unit"
/></a>
<a
href="javascript:void(0);"
class="command-link menu-item"
id="viewunittxt"
onclick="showTestUnit();return false;"
onmouseover="showHint(vShowTestUnitHint);"
onmouseout="clearHint();"
>Display Test Unit</a>
</div>
</div>
</div>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.