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 / editpost.tmpl < prev    next >
Text File  |  2009-11-06  |  3KB  |  92 lines

  1. # FILE: editpost.tmpl
  2. # DESCRIPTION: Edit existing post
  3. # Copyright (c) 2002, DiscusWare, LLC, all rights reserved
  4. # -------------------------------------------------------------------------------------------
  5.  
  6. <!--BEGIN-->
  7. <#language: $L{PED_REFRESH} = "Refresh"#>
  8. <#language: $L{PED_SAVE} = "Save"#>
  9.  
  10. <#if $arg->{skip_nav_bar}#>
  11.     <#define $skip_nav_bar = "1"#>
  12. <#endif#>
  13.  
  14. <html>
  15. <head>
  16. <title>$L{PED_TITLE}</title>
  17. <style>
  18. <!--
  19. body { font-family: $color->{face}; line-spacing: 0 }
  20. td.propbox { font: 10pt verdana,arial,helvetica; font-weight: bold; }
  21. -->
  22. </style>
  23. <script language="JavaScript">
  24. <!--
  25.     function quitedit () {
  26.         self.location = "$arg->{escape_url}";
  27.     }
  28. // -->
  29. </script>
  30. <#define $pagetitle = "$L{PED_TITLE}"#>
  31. <#insert part () "cookie_icons_offset"#>
  32. <#insert part ($general->{topic}) "dynamic_top"#>
  33. <#if $browser->{dhtml} == 0#><font face="$color->{face}" size="$color->{size}">
  34.  
  35. <#if $arg->{formaction} eq "editpost"#>
  36.     <#define $l = "$L{EDITING_LOGGED_IN_NOTE}"#>
  37.     <#replace "%username" with "$arg->{username}" in $l#>
  38.     <p>
  39.     $l
  40.     </p>
  41. <#endif#>
  42. <#define $hide_message_icons = "1"#>
  43.  
  44. <#insert part ($general->{topic}) "page"#>
  45.  
  46. <form action="$general->{action}" method="post" name="userpass">
  47. <input type=hidden name="username" value="$arg->{username}">
  48. <input type=hidden name="password" value="$arg->{password}">
  49. <input type=hidden name="action" value="$arg->{formaction}">
  50. <input type=hidden name="preview" value="0">
  51. <input type=hidden name="topic" value="$general->{topic}">
  52. <input type=hidden name="page" value="$general->{page}">
  53. <input type=hidden name="post" value="$general->{post}">
  54.  
  55. <#if $general->{attachadd} == 1#>
  56.     <p>
  57.     $L{EDITING_POST_ATTACHMENTS_1}
  58.     </p>
  59.     <ul>
  60.     <#foreach $item (@list)#>
  61.         <li>$item->{file}</li>
  62.     <#endloop#>
  63.     </ul>
  64.     <p>
  65.     $L{EDITING_POST_ATTACHMENTS_2}
  66.     </p>
  67. <#endif#>
  68.  
  69. <p><b>$L{EDITING_POST_INSTRUCTIONS}</b></p>
  70. <ul>
  71.     <#if $GLOBAL_OPTIONS->{format_panel}#>
  72.         <#insert template "fpanel"#>
  73.         <textarea name="message" cols=50 rows=7 wrap=virtual ONSELECT="storeCursorPosition(this)" ONKEYUP="storeCursorPosition(this)" ONCLICK="storeCursorPosition(this)">\
  74.     <#else#>
  75.         <textarea name="message" cols=50 rows=7 wrap=virtual>\
  76.     <#endif#>
  77.         <#form escape "$general->{source}"#></textarea>
  78. </ul>
  79.  
  80. <p>
  81. <input type=submit value="$L{PED_REFRESH}" onClick="document.userpass.preview.value = '1';<#if $GLOBAL_OPTIONS->{format_panel}#>panelclose();<#endif#>">
  82. <#if $general->{error} != 1#>
  83.     <input type=submit value="$L{PED_SAVE}" onClick="document.userpass.preview.value = 0;<#if $GLOBAL_OPTIONS->{format_panel}#>panelclose();<#endif#>">
  84. <#endif#>
  85. <input type=button value="$L{EDITING_POST_CANCEL_EDIT}" onClick="quitedit();">
  86. </p>
  87. </form>
  88.  
  89. <#insert part ($general->{topic}) "dynamic_bottom"#>
  90.  
  91. <!--END-->
  92.