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 >
Text File  |  2009-11-06  |  3KB  |  101 lines

  1. # FILE: skinedit.tmpl
  2. # DESCRIPTION: Skin editor in Appearance Manager
  3. # Copyright (c) 2002, DiscusWare, LLC, all rights reserved
  4. # -------------------------------------------------------------------------------------------
  5.  
  6. <!--BEGIN-->
  7. <html><head>
  8. <title>Skin Editor: $general->{filename}</title>
  9. <style>
  10. p.top { font: 14pt verdana,arial,helvetica; text-align: center; margin-bottom: 0pt; }
  11. span.now { font: 9pt verdana,arial,helvetica; text-align: left; }
  12. p.now { font: 9pt verdana,arial,helvetica; text-align: left; color: #0000ff; font-weight: bold; }
  13. span.file { font: 11pt courier new; background: #c0c0c0; }
  14. textarea { background: #e7e7e7; }
  15. </style>
  16. <script language="JavaScript">
  17. function toggle_wordwrap () {
  18.     <#foreach $part (@parts)#>
  19.         if (self.document.editor.text$part->{parthold}.wrap) {
  20.             var g = self.editor.text$part->{parthold};
  21.             if (g.wrap == 'off') {
  22.                 g.wrap = 'soft';
  23.             } else {
  24.                 g.wrap = 'off';
  25.             }
  26.             if (self.document.editor.wrapbutton.style) {
  27.                 var b = self.document.editor.wrapbutton.style;
  28.                 if (g.wrap == 'soft') {
  29.                     b.borderTopColor = '#000000';
  30.                     b.borderLeftColor = '#000000';
  31.                     b.borderRightColor = '#ffffff';
  32.                     b.borderBottomColor = '#ffffff';
  33.                 } else {
  34.                     b.borderTopColor = '#ffffff';
  35.                     b.borderLeftColor = '#ffffff';
  36.                     b.borderRightColor = '#000000';
  37.                     b.borderBottomColor = '#000000';
  38.                 }
  39.                 self.document.editor.wrapbutton.blur();
  40.             }
  41.         }
  42.     <#endloop#>
  43. }
  44. function closer () {
  45.     if (self.document.editor.changed.value == '0') {
  46.         self.close();
  47.     } else {
  48.         if (confirm('Are you sure you want to close this screen without saving your changes?')) {
  49.             self.close();
  50.         }
  51.     }
  52. }
  53. </script>
  54. <style>
  55. td.reg {font: 9pt verdana,arial,helvetica}
  56. </style>
  57. </head>
  58. <body bgcolor="#ffffff" text="#000000" link="#0000FF" vlink="#0000FF">
  59. <p class="top">Discus Skin Editor</p>
  60. <hr>
  61.  
  62.     <#if $general->{saved}#>
  63.         <p>
  64.         <table width=100% bgcolor=#ccffcc border=0><tr><td class=reg>
  65.         <b>Note:</b> Successfully saved your changes to this skin
  66.         </td></tr></table>
  67.         </p>
  68.     <#endif#>
  69.  
  70.     <form action="$cgiurl" method="post" name="editor">
  71.     <table width=100%>
  72.     <tr>
  73.     <td>
  74.     <span class="now">Now Editing:</span>
  75.     <span class="file">$general->{filename}</span>
  76.     </td>
  77.     <td align=right>
  78.     <input type=button name="wrapbutton" value="Word Wrap" onClick="toggle_wordwrap()">
  79.     </td>
  80.     </tr>
  81.     </table>
  82.     <#foreach $part (@parts)#>
  83.         <hr>
  84.         <p class="now"><b>$part->{part}</b></p>
  85.         <input type=hidden name="partid" value="$part->{part}/$part->{parthold}">
  86.         <textarea name="text$part->{parthold}" rows="$editor->{rows}" cols="$editor->{cols}" wrap="off" onChange="self.document.editor.changed.value = '1';">
  87.         <#form escape "$part->{source}"#>
  88.         </textarea>
  89.     <#endloop#>
  90.     <hr>
  91.     <input type="hidden" name="changed" value="0">
  92.     <input type="hidden" name="action" value="appear_sked">
  93.     <input type="hidden" name="file" value="$general->{path}">
  94.     <input type="hidden" name="username" value="$general->{username}">
  95.     <input type="submit" value="Save">
  96.     <input type="button" value="Close" onClick="closer()">
  97.     </form>
  98.  
  99. </body></html>
  100. <!--END-->
  101.