home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
FAQ
/
cgi-bin
/
discus4_00
/
source
/
skinedit.tmpl
< prev
next >
Wrap
Text File
|
2009-11-06
|
3KB
|
101 lines
# FILE: skinedit.tmpl
# DESCRIPTION: Skin editor in Appearance Manager
# Copyright (c) 2002, DiscusWare, LLC, all rights reserved
# -------------------------------------------------------------------------------------------
<!--BEGIN-->
<html><head>
<title>Skin Editor: $general->{filename}</title>
<style>
p.top { font: 14pt verdana,arial,helvetica; text-align: center; margin-bottom: 0pt; }
span.now { font: 9pt verdana,arial,helvetica; text-align: left; }
p.now { font: 9pt verdana,arial,helvetica; text-align: left; color: #0000ff; font-weight: bold; }
span.file { font: 11pt courier new; background: #c0c0c0; }
textarea { background: #e7e7e7; }
</style>
<script language="JavaScript">
function toggle_wordwrap () {
<#foreach $part (@parts)#>
if (self.document.editor.text$part->{parthold}.wrap) {
var g = self.editor.text$part->{parthold};
if (g.wrap == 'off') {
g.wrap = 'soft';
} else {
g.wrap = 'off';
}
if (self.document.editor.wrapbutton.style) {
var b = self.document.editor.wrapbutton.style;
if (g.wrap == 'soft') {
b.borderTopColor = '#000000';
b.borderLeftColor = '#000000';
b.borderRightColor = '#ffffff';
b.borderBottomColor = '#ffffff';
} else {
b.borderTopColor = '#ffffff';
b.borderLeftColor = '#ffffff';
b.borderRightColor = '#000000';
b.borderBottomColor = '#000000';
}
self.document.editor.wrapbutton.blur();
}
}
<#endloop#>
}
function closer () {
if (self.document.editor.changed.value == '0') {
self.close();
} else {
if (confirm('Are you sure you want to close this screen without saving your changes?')) {
self.close();
}
}
}
</script>
<style>
td.reg {font: 9pt verdana,arial,helvetica}
</style>
</head>
<body bgcolor="#ffffff" text="#000000" link="#0000FF" vlink="#0000FF">
<p class="top">Discus Skin Editor</p>
<hr>
<#if $general->{saved}#>
<p>
<table width=100% bgcolor=#ccffcc border=0><tr><td class=reg>
<b>Note:</b> Successfully saved your changes to this skin
</td></tr></table>
</p>
<#endif#>
<form action="$cgiurl" method="post" name="editor">
<table width=100%>
<tr>
<td>
<span class="now">Now Editing:</span>
<span class="file">$general->{filename}</span>
</td>
<td align=right>
<input type=button name="wrapbutton" value="Word Wrap" onClick="toggle_wordwrap()">
</td>
</tr>
</table>
<#foreach $part (@parts)#>
<hr>
<p class="now"><b>$part->{part}</b></p>
<input type=hidden name="partid" value="$part->{part}/$part->{parthold}">
<textarea name="text$part->{parthold}" rows="$editor->{rows}" cols="$editor->{cols}" wrap="off" onChange="self.document.editor.changed.value = '1';">
<#form escape "$part->{source}"#>
</textarea>
<#endloop#>
<hr>
<input type="hidden" name="changed" value="0">
<input type="hidden" name="action" value="appear_sked">
<input type="hidden" name="file" value="$general->{path}">
<input type="hidden" name="username" value="$general->{username}">
<input type="submit" value="Save">
<input type="button" value="Close" onClick="closer()">
</form>
</body></html>
<!--END-->