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 / fpanel.tmpl < prev    next >
Text File  |  2009-11-06  |  4KB  |  93 lines

  1. # FILE: fpanel.tmpl
  2. # DESCRIPTION: User interface formatting assistance panel
  3. # Copyright (c) 2002, DiscusWare, LLC, all rights reserved
  4. # -------------------------------------------------------------------------------------------
  5.  
  6. <!--BEGIN-->
  7.  
  8. <#define $link = ""#>
  9.  
  10. <#define array @colors (_index, hex, text, tag)#>
  11. 1    #000000    \u$L{PANEL_COLOR_BLACK}    $L{PANEL_COLOR_BLACK}
  12. 2    #ff0000    \u$L{PANEL_COLOR_RED}    $L{PANEL_COLOR_RED}
  13. 3    #119911    \u$L{PANEL_COLOR_GREEN}    $L{PANEL_COLOR_GREEN}
  14. 4    #0000ff    \u$L{PANEL_COLOR_BLUE}    $L{PANEL_COLOR_BLUE}
  15. 5    #ffff00    \u$L{PANEL_COLOR_YELLOW}    $L{PANEL_COLOR_YELLOW}
  16. 6    #aa00aa    \u$L{PANEL_COLOR_PURPLE}    $L{PANEL_COLOR_PURPLE}
  17. 7    #ff6000    \u$L{PANEL_COLOR_ORANGE}    $L{PANEL_COLOR_ORANGE}
  18. 8    #0077aa    \u$L{PANEL_COLOR_CYAN}    $L{PANEL_COLOR_CYAN}
  19. 9    #808080    \u$L{PANEL_COLOR_GRAY}    $L{PANEL_COLOR_GRAY}
  20. 10    #ffffff    \u$L{PANEL_COLOR_WHITE}    $L{PANEL_COLOR_WHITE}
  21. <#/define#>
  22.  
  23. <#define array @fonts (display, actual, tag)#>
  24. Arial    arial,helvetica    arial\,helvetica
  25. Courier    courier new,courier    courier new\,courier
  26. Symbol    symbol    symbol
  27. Times    times new roman,times,roman    times new roman\,times\,roman
  28. Verdana    verdana,arial,helvetica    verdana\,arial\,helvetica
  29. <#/define#>
  30.  
  31. <script language="JavaScript">
  32. <!--
  33.     img_bold_up = new Image();
  34.     img_bold_dn = new Image();
  35.     img_ital_up = new Image();
  36.     img_ital_dn = new Image();
  37.     img_undl_up = new Image();
  38.     img_undl_dn = new Image();
  39.     img_link_up = new Image();
  40.     img_link_dn = new Image();
  41.     img_bold_up.src = "$icon_url/bold-up.gif";
  42.     img_bold_dn.src = "$icon_url/bold-dn.gif";
  43.     img_ital_up.src = "$icon_url/ital-up.gif";
  44.     img_ital_dn.src = "$icon_url/ital-dn.gif";
  45.     img_undl_up.src = "$icon_url/undl-up.gif";
  46.     img_undl_dn.src = "$icon_url/undl-dn.gif";
  47.     img_link_up.src = "$icon_url/link-up.gif";
  48.     img_link_dn.src = "$icon_url/link-dn.gif";
  49. // -->
  50. </script>
  51.  
  52. <table bordercolordark="#000000" bordercolorlight="#c0c0c0" border=1 bgcolor="#d7d7d7">
  53. <tr><td valign=bottom nowrap>
  54. <a href="#" onClick="return bolder()"><img name="button_b" border=0 height=22 width=23 src="$icon_url/bold-up.gif" alt="$L{PANEL_MAKES_TEXT_BOLD}"></a>
  55. <a href="#" onClick="return italic()"><img name="button_i" border=0 height=22 width=23 src="$icon_url/ital-up.gif" alt="$L{PANEL_MAKES_TEXT_ITALIC}"></a>
  56. <a href="#" onClick="return underl()"><img name="button_u" border=0 height=22 width=23 src="$icon_url/undl-up.gif" alt="$L{PANEL_MAKES_TEXT_UNDERLINE}"></a>
  57. <a href="#" onClick="return linky_click('$L{PANEL_CREATE_YOUR_LINK}')"><img name="button_link" border=0 height=22 width=23 src="$icon_url/link-up.gif" alt="$L{PANEL_MAKES_TEXT_LINK}"></a>
  58. <a href="#" onClick="window.open('$script_url/board-image-lister.$cgi_extension?popup=1', 'smily', 'height=400,width=500,scrollbars=yes,resizeable=yes'); return false;"><img src="$icon_url/smiley.gif" border=0 height=22 width=23 alt="$L{PANEL_MAKES_TEXT_CLIPART}"></a>
  59. <select name="color" size="1" onChange="colorsel()">
  60. <option value="">$L{PANEL_COLOR_HEADER}</option>
  61. <#foreach $colors (@colors)#>
  62.     <option value="$colors->{tag}" style="color: $colors->{hex}; background-color: $colors->{hex}">$colors->{text}</option>
  63. <#endloop#>
  64. </select>
  65. <select name="font" size="1" onChange="fontsel()">
  66. <option value="">$L{PANEL_FONT_HEADER}</option>
  67. <#foreach $font (@fonts)#>
  68.     <option value="$font->{tag}" style="font: 8pt $font->{actual}">$font->{display}</option>
  69. <#endloop#>
  70. </select>
  71. <select name="size" size="1" onChange="sizesel()">
  72. <option value="">$L{PANEL_SIZE_HEADER}</option>
  73. <option value="-2">$L{PANEL_SIZE_MINUS_TWO}</option>
  74. <option value="-1">$L{PANEL_SIZE_MINUS_ONE}</option>
  75. <option value="">$L{PANEL_SIZE_ZERO}</option>
  76. <option value="1">$L{PANEL_SIZE_PLUS_ONE}</option>
  77. <option value="2">$L{PANEL_SIZE_PLUS_TWO}</option>
  78. </select>
  79. <input type=hidden name="format_clr" value="0">
  80. <input type=hidden name="format_font" value="0">
  81. <input type=hidden name="format_size" value="0">
  82. <input type=hidden name="format_link" value="0">
  83. <input type=hidden name="format_b" value="0">
  84. <input type=hidden name="format_i" value="0">
  85. <input type=hidden name="format_u" value="0">
  86. <input type=hidden name="inserter" value="" onClick="smiley()" onChange="smiley()">
  87. <input type=hidden name="tagname" value="clipart">
  88. </td></tr>
  89. </table>
  90. <br>
  91. <!--END-->
  92.  
  93.