Revision 40255f36
Von Sven Schöling vor etwa 15 Jahren hinzugefügt
xslt/xulmenu.xsl | ||
---|---|---|
1 |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
2 |
xmlns:html="http://www.w3.org/1999/xhtml"
|
|
1 |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
|
2 |
xmlns:html="http://www.w3.org/1999/xhtml" |
|
3 | 3 |
xmlns:svg="http://www.w3.org/2000/svg" |
4 | 4 |
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> |
5 | 5 |
<xsl:output media-type="application/vnd.mozilla.xul+xml"/> |
... | ... | |
30 | 30 |
<!-- main document structure --> |
31 | 31 |
<!-- ******************************************************************* --> |
32 | 32 |
<xsl:template match="doc"> |
33 |
<xsl:processing-instruction |
|
34 |
name="xml-stylesheet">href="xslt/style1.css" type="text/css"</xsl:processing-instruction> |
|
35 |
<window> |
|
36 |
<html:title> |
|
37 |
LX-Office Version <xsl:value-of select='/doc/version'/> |
|
38 |
- <xsl:value-of select='/doc/name'/> |
|
33 |
<xsl:processing-instruction name="xml-stylesheet">href="xslt/style1.css" type="text/css"</xsl:processing-instruction> |
|
34 |
<xsl:variable name="callback"><xsl:value-of select='/doc/callback'/></xsl:variable> |
|
35 |
<xsl:variable name="title"> |
|
36 |
LX-Office Version <xsl:value-of select='/doc/version'/> |
|
37 |
- <xsl:value-of select='/doc/name'/> |
|
39 | 38 |
- <xsl:value-of select='/doc/db'/> |
40 |
</html:title>
|
|
39 |
</xsl:variable>
|
|
41 | 40 |
<!-- <xsl:call-template name="style"/>--> |
41 |
<window title="{$title}"> |
|
42 |
<html:title/> |
|
42 | 43 |
<xsl:call-template name="script"/> |
43 | 44 |
<toolbox> |
44 | 45 |
<xsl:apply-templates select="menu"/> |
... | ... | |
53 | 54 |
<!--<iframe src="xslt/trans.xml" flex="1" id="uhr"/>--> |
54 | 55 |
</vbox> |
55 | 56 |
<splitter state="open" collapse="before" resizeafter="farthest"><grippy/></splitter> |
56 |
<html:iframe id="main_window" src="login.pl?action=company_logo" flex="1" style="border:0px"/>
|
|
57 |
<html:iframe id="main_window" src="{$callback}" flex="1" style="border:0px"/>
|
|
57 | 58 |
</hbox> |
58 | 59 |
</window> |
59 | 60 |
</xsl:template> |
... | ... | |
117 | 118 |
<!-- *************************************************************************** --> |
118 | 119 |
|
119 | 120 |
|
120 |
<!-- templates for the treeview
|
|
121 |
<!-- templates for the treeview |
|
121 | 122 |
********************************************************************************** --> |
122 | 123 |
<xsl:template match="menu" mode="tree"> |
123 | 124 |
<toolbar> |
... | ... | |
165 | 166 |
<!-- *************************************************************************** --> |
166 | 167 |
|
167 | 168 |
|
168 |
<!-- scripts
|
|
169 |
<!-- scripts |
|
169 | 170 |
******************************************************************************** --> |
170 | 171 |
<xsl:template name="script"> |
171 | 172 |
<html:script type="text/ecmascript"> |
172 |
|
|
173 |
|
|
173 | 174 |
function openLink(event) |
174 | 175 |
{ |
175 | 176 |
var path=event.target.getAttribute("link") |
... | ... | |
183 | 184 |
bf.setAttribute("src",path) |
184 | 185 |
} |
185 | 186 |
} |
186 |
|
|
187 |
|
|
187 | 188 |
function openLinkNewTab(event) |
188 | 189 |
{ |
189 | 190 |
if(event.button!=1) return |
... | ... | |
195 | 196 |
else |
196 | 197 |
{ |
197 | 198 |
window.open(path,"_new","") |
198 |
|
|
199 |
|
|
199 | 200 |
} |
200 | 201 |
} |
201 |
|
|
202 |
|
|
202 |
|
|
203 |
|
|
203 | 204 |
function openLinkNewWindow(event) |
204 | 205 |
{ |
205 | 206 |
var path=event.target.getAttribute("link") |
206 | 207 |
window.open(path,"_blank","") |
207 | 208 |
} |
208 |
|
|
209 |
|
|
209 | 210 |
function openTreeLink(event) |
210 | 211 |
{ |
211 | 212 |
var tree=event.target |
... | ... | |
213 | 214 |
var item=tree.view.getItemAtIndex(selIndex) |
214 | 215 |
var link=item.getAttribute("link") |
215 | 216 |
if(link) document.getElementById("main_window").setAttribute("src",link) |
216 |
}
|
|
217 |
|
|
217 |
} |
|
218 |
|
|
218 | 219 |
function updateClock() |
219 | 220 |
{ |
220 | 221 |
var d= new Date() |
221 |
var sec=d.getSeconds()
|
|
222 |
var min=d.getMinutes()
|
|
222 |
var sec=d.getSeconds() |
|
223 |
var min=d.getMinutes() |
|
223 | 224 |
var std=(d.getHours() % 12 ) + min/60 |
224 | 225 |
document.getElementById("std").setAttribute("transform","rotate("+std*30+",20,20)") |
225 | 226 |
document.getElementById("min").setAttribute("transform","rotate("+min*6+",20,20)") |
226 | 227 |
document.getElementById("sec").setAttribute("transform","rotate("+sec*6+",20,20)") |
227 | 228 |
} |
228 |
|
|
229 |
|
|
229 | 230 |
function PrintW() |
230 | 231 |
{ |
231 | 232 |
document.getElementById("main_window").contentWindow.print() |
232 | 233 |
} |
233 |
|
|
234 |
|
|
234 | 235 |
function doSearch(){ |
235 | 236 |
var t=document.getElementById("searchboxtext").value |
236 | 237 |
document.getElementById("desc").value=t |
237 | 238 |
document.getElementById("sb").click() |
238 |
|
|
239 |
|
|
239 | 240 |
} |
240 | 241 |
function checkEnter(event){ |
241 | 242 |
if(event.keyCode==13) doSearch() |
... | ... | |
291 | 292 |
<input name="partsgroup" size="20"/> |
292 | 293 |
<input name="make" size="20"/> |
293 | 294 |
<input class="submit" type="submit" name="action" value="Weiter" id="sb"/> |
294 |
<div style="display:none" >
|
|
295 |
<input class="submit" type="submit" name="action" value="Top 100"/>
|
|
296 |
<input type="hidden" name="serialnumber" size="20"/>
|
|
297 |
<input type="hidden" name="ean" size="20"/>
|
|
295 |
<div style="display:none" > |
|
296 |
<input class="submit" type="submit" name="action" value="Top 100"/> |
|
297 |
<input type="hidden" name="serialnumber" size="20"/> |
|
298 |
<input type="hidden" name="ean" size="20"/> |
|
298 | 299 |
<input type="hidden" name="searchitems" value="part"/> |
299 | 300 |
<input type="hidden" name="title" value="Waren"/> |
300 | 301 |
<input type="hidden" name="revers" value="0"/> |
... | ... | |
312 | 313 |
<input name="onorder" class="checkbox" type="checkbox" value="1"/> |
313 | 314 |
<input name="ordered" class="checkbox" type="checkbox" value="1"/> |
314 | 315 |
<input name="rfq" class="checkbox" type="checkbox" value="1"/>Anfrage |
315 |
<input name="quoted" class="checkbox" type="checkbox" value="1"/>Angeboten
|
|
316 |
<input name="quoted" class="checkbox" type="checkbox" value="1"/>Angeboten |
|
316 | 317 |
<input type="hidden" name="transdatefrom" id="transdatefrom" size="11" title="dd.mm.yy"/> |
317 |
<input type="button" name="transdatefrom" id="trigger1" value="?"/>
|
|
318 |
<input type="button" name="transdatefrom" id="trigger1" value="?"/> |
|
318 | 319 |
<input name="transdateto" id="transdateto" size="11" title="dd.mm.yy"/> |
319 | 320 |
<input type="button" name="transdateto" id="trigger2" value="?"/> |
320 | 321 |
<input name="l_partnumber" class="checkbox" type="checkbox" value="Y" checked="true"/>Artikelnummer |
Auch abrufbar als: Unified diff
Fenster und Tabtitle im XUL Menü gefixt.
Ausserdem unterstützt login.pl jetzt den Parameter callback in allen
Menüs. Solange keiner angegeben ist, wird nach wie vor company_logo
aufegrufen, ansonsten die übergebene relative oder absolute url, und im
iframe aufgerufen.