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 / subprops.tmpl < prev    next >
Text File  |  2009-11-06  |  10KB  |  264 lines

  1. # FILE: subprops.html
  2. # DESCRIPTION: Subtopic Properties Editor
  3. # Copyright (c) 2002, DiscusWare, LLC, all rights reserved
  4. # -------------------------------------------------------------------------------------------
  5.  
  6. <!--BEGIN-->
  7. <#define array @available_icons(name,full_url)#>
  8. tree_n    $icon_url/tree_n.gif
  9. tree_m    $icon_url/tree_m.gif
  10. tree_o    $icon_url/tree_o.gif
  11. tree_r    $icon_url/tree_r.gif
  12. tree_u    $icon_url/tree_u.gif
  13. tree_t    $icon_url/tree_t.gif
  14. <#/define#>
  15. <html><head><title>Subtopic Properties</title>
  16. <style>
  17. .blbar {font: 11pt verdana,arial,helvetica; color: #ffff00; background-color: #000000; width: 100% }
  18. .surround {border: thin black inset; width: 100%; font: 10pt verdana,arial,helvetica }
  19. .normal {font: 10pt verdana,arial,helvetica}
  20. .comment {font: 9pt verdana,arial,helvetica; margin-left: 20pt; }
  21. p { margin-left: 2pt; }
  22. p.blbar {margin-left: 0pt; font: 11pt verdana,arial,helvetica; color: #ffff00; background-color: #000000; width: 100% }
  23. td.ub {font: bold 9pt verdana,arial,helvetica}
  24. td.unb {font: 9pt verdana,arial,helvetica}
  25. </style>
  26. </head>
  27. <body bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#0000ff">$fs
  28. <font size=3><b><center>Subtopic Properties</center></b></font>
  29. <hr>
  30. <strong>
  31. <a href="$cgiurl?username=$general->{username}&action=pm-mgr_1">Page Manager</a>:
  32. <#if $head->{me_number} != $head->{topic_number}#>
  33.     <a href="$cgiurl?username=$general->{username}&action=pm-page_editor&menu=2&HTTP_REFERER=/$head->{topic_number}/$head->{topic_number}">$head->{topic_name}</a>:
  34. <#endif#>
  35. <#foreach $level (@levels)#>
  36.     <#if $level->{level_number} > 0#>
  37.         <#if $level->{level_number} != $head->{me_number}#>
  38.             <a href="$cgiurl?username=$general->{username}&action=pm-page_editor&menu=2&HTTP_REFERER=/$head->{topic_number}/$level->{level_number}">$level->{level_name}</a>:
  39.         <#endif#>
  40.     <#endif#>
  41. <#endloop#>
  42. <#if $general->{type} == 0#>
  43.     Properties for '$head->{me_name}'
  44. <#else#>
  45.     <a href="$cgiurl?username=$general->{username}&action=pm-page_editor&menu=2&HTTP_REFERER=/$head->{topic_number}/$head->{me_number}">$head->{me_name}</a>:
  46.     Properties for '$general->{subtopic}'
  47. <#endif#>
  48. </strong>
  49. <hr>
  50.  
  51. <#if $stuff->{what} > 0#>
  52.     <table width=100% bgcolor=#ccffcc border=0><tr><td>$fs
  53.     <b>Note:</b> Successfully saved new properties#>
  54.     </font></td></tr></table>
  55.     <p>
  56. <#endif#>
  57.  
  58. <#if $general->{type} == 0#>
  59.     <form action="$cgiurl" method="post" name="tf">
  60.     <input type="hidden" name="username" value="$general->{username}">
  61.     <input type="hidden" name="action" value="pm-subtopic_rename">
  62.     <input type="hidden" name="topic" value="$general->{topic}">
  63.     <input type="hidden" name="page" value="$general->{page}">
  64.     <input type="hidden" name="num" value="$general->{num}">
  65.     <#insert part ($general->{topic}) "INIT"#>
  66.     <div class="surround">
  67.         {#if $browser->{ieX}#}<p class="blbar">Rename Subtopic</p>{#else#}<table width=100% bgcolor=#000000><tr><td>$fs<font color=#ffff00>Rename Subtopic</font></font></td></tr></table>{#endif#}
  68.         <p>
  69.         To rename this subtopic, enter a new name in the box below.
  70.         </p>
  71.         <ul>
  72.             <table>
  73.                 <tr>
  74.                 <td width=20% class=ub>Subtopic Name:</td>
  75.                 <td width=80%><input type=text name="name" value="<#form escape "$edit->{subtopic_name}"#>" size=45></td>
  76.                 </tr>
  77.             </table>
  78.             <p>
  79.             <input type=submit value="Rename Subtopic">
  80.             </p>
  81.         </ul>
  82.     </div>
  83.     </form>
  84.     <form action="$cgiurl" method="post" name="tf">
  85.     <input type="hidden" name="username" value="$general->{username}">
  86.     <input type="hidden" name="action" value="pm-subtopic_props">
  87.     <input type="hidden" name="num" value="$general->{num}">
  88.     <input type="hidden" name="HTTP_REFERER" value="$general->{topic}/$general->{page}">
  89.     <div class="surround">
  90.         {#if $browser->{ieX}#}<p class="blbar">Subtopic Properties</p>{#else#}<table width=100% bgcolor=#000000><tr><td>$fs<font color=#ffff00>Subtopic Properties</font></font></td></tr></table>{#endif#}
  91.         <p>
  92.         Modify any of the properties for this subtopic using the form below.
  93.         </p>
  94.         <ul>
  95.             <table>
  96.                 <tr>
  97.                 <td valign=top class=ub>Subtopic Description:</td>
  98.                 <td valign=top><textarea name="descr" rows=5 cols=45 wrap=virtual>$edit->{descr}</textarea></td>
  99.                 </tr>
  100.                 <tr>
  101.                 <td valign=top class=ub>Subtopic Icon:</font></td>
  102.                 <td valign=top>
  103.                     <table>
  104.                     <tr>
  105.                         <#foreach $icon (@available_icons)#>
  106.                             <td width=50><input type=radio name=icon value="$icon->{name}"{#if $edit->{icon} eq $icon->{name}#} checked{#endif#}>\
  107.                             <img src="$icon->{full_url}" height=16 width=20></td>
  108.                         <#endloop#>
  109.                     </tr>
  110.                     </table>
  111.                 </td></tr>
  112.                 <#if $GLOBAL_OPTIONS->{subtopic_icons}#>
  113.                     <tr>
  114.                     <td valign=top class=ub>Emoticon:</td>
  115.                     <td valign=top>
  116.                         <table><tr>
  117.                         <td width=50><input type=radio name="emoticon" value=""></td>
  118.                         <#foreach $subtopic_icon (@subtopic_icons)#>
  119.                             <#if [ $subtopic_icon->{_iteration} % 7 ] == 0#>
  120.                                 </tr><tr>
  121.                             <#endif#>
  122.                             <td width=50><input type=radio name="emoticon" value="$subtopic_icon->{name}"{#if $edit->{subicon} eq $subtopic_icon->{name}#} checked{#endif#}>\
  123.                             <img src="$subtopic_icon->{url}" height="$subtopic_icon->{height}" width="$subtopic_icon->{width}"></td>
  124.                         <#endloop#>
  125.                         </tr></table>
  126.                     </td>
  127.                     </tr>
  128.                 <#endif#>
  129.                 </table>
  130.                 </td>
  131.                 </tr>
  132.             </table>
  133.             <p>
  134.             <input type=submit value="Save Properties">
  135.             </p>
  136.         </ul>
  137.     </div>
  138.     </form>
  139.     <form action="$cgiurl" method="post" name="tf">
  140.     <input type="hidden" name="username" value="$general->{username}">
  141.     <input type="hidden" name="action" value="pm-subtopic_meta">
  142.     <input type="hidden" name="num" value="$general->{num}">
  143.     <input type="hidden" name="HTTP_REFERER" value="$general->{topic}/$general->{page}">
  144.     <div class="surround">
  145.         {#if $browser->{ieX}#}<p class="blbar">META Tags</p>{#else#}<table width=100% bgcolor=#000000><tr><td>$fs<font color=#ffff00>META Tags</font></font></td></tr></table>{#endif#}
  146.         <p>
  147.         Modify the META tags used for this subtopic page using the form below.  Also select
  148.         whether the META tags you choose should be applied to all pages below this subtopic
  149.         page.
  150.         </p>
  151.         <ul>
  152.             <table>
  153.             <tr>
  154.             <td class=ub>Description:</td>
  155.             <td><input type=text name="meta_description" value="$meta->{meta_description}" size=45></td>
  156.             </tr>
  157.             <tr>
  158.             <td class=ub>Keywords:</font></td>
  159.             <td><input type=text name="meta_keywords" value="$meta->{meta_keywords}" size=45></td>
  160.             </tr>
  161.             <tr>
  162.             <td class=ub>Robots:</font></td>
  163.             <td><input type=text name="meta_robots" value="$meta->{meta_robots}" size=45></td>
  164.             </tr>
  165.             <tr>
  166.             <td class=unb colspan=2><input type=checkbox name="meta_check" value="1" checked>
  167.                 Apply these META tags to all pages below this subtopic page
  168.             </td></tr>            
  169.             </table>
  170.             <p>
  171.             <input type=submit value="Save META Tags">
  172.             </p>
  173.         </ul>
  174.     </div>
  175.     </form>
  176. <#endif#>
  177.  
  178. <#if $general->{type} == 1#>
  179.     <#if $general->{saved} == 1#>
  180.         <table width=100% bgcolor=#ccffcc border=0><tr><td>$fs
  181.         <b>Note:</b> Successfully saved new link properties</font></td></tr></table>
  182.     <#endif#>
  183.     <form action="$cgiurl" method="post" name="tf">
  184.     <input type="hidden" name="username" value="$general->{username}">
  185.     <input type="hidden" name="action" value="pm-link_props">
  186.     <input type="hidden" name="num" value="$general->{num}">
  187.     <input type="hidden" name="HTTP_REFERER" value="$general->{topic}/$general->{page}">
  188.     <#insert part ($general->{topic}) "INIT"#>
  189.     <div class="surround">
  190.         {#if $browser->{ieX}#}<p class="blbar">Link Properties</p>{#else#}<table width=100% bgcolor=#000000><tr><td>$fs<font color=#ffff00>Link Properties</font></font></td></tr></table>{#endif#}
  191.         <p>
  192.         Modify any of the properties for this link using the form below.
  193.         </p>
  194.         <ul>
  195.             <table>
  196.                 <tr>
  197.                 <td valign=top class=ub>Link Name:</td>
  198.                 <td valign=top><input name="name" size=40 value="<#form escape "$edit->{subtopic_name}"#>"></td>
  199.                 </tr>
  200.                 <tr>
  201.                 <td valign=top class=ub>URL:</td>
  202.                 <td valign=top><input name="URL" size=40 value="<#form escape "$edit->{url}"#>"></td>
  203.                 </tr>
  204.                 <tr>
  205.                 <td valign=top class=ub>Target:</td>
  206.                 <td valign=top><select name="target" size=1>
  207.                     <option value="_self"{#if $edit->{target} eq "_self"#} selected{#endif#}>Same Frame</option>
  208.                     <option value="Main"{#if $edit->{target} eq "Main"#} selected{#endif#}>Right Frame</option>
  209.                     <option value="_top"{#if $edit->{target} eq "_top"#} selected{#endif#}>Top Frame</option>
  210.                     <option value="_parent"{#if $edit->{target} eq "_parent"#} selected{#endif#}>Parent Frame</option>
  211.                     <option value="_blank"{#if $edit->{target} eq "_blank"#} selected{#endif#}>New Window</option>
  212.                 </select></td>
  213.                 </tr>
  214.                 <tr>
  215.                 <td valign=top class=ub>Description:</td>
  216.                 <td valign=top><textarea name="descr" rows=5 cols=45 wrap=virtual><#form escape "$edit->{descr}"#></textarea></td>
  217.                 </tr>
  218.                 <tr>
  219.                 <td valign=top class=ub>Icon:</font></td>
  220.                 <td valign=top>
  221.                     <table>
  222.                     <tr>
  223.                         <#foreach $icon (@available_icons)#>
  224.                             <td width=50><input type=radio name=icon value="$icon->{name}"{#if $edit->{icon} eq $icon->{name}#} checked{#endif#}>\
  225.                             <img src="$icon->{full_url}" height=16 width=20></td>
  226.                         <#endloop#>
  227.                     </tr>
  228.                     </table>
  229.                 </td></tr>
  230.                 <#if $GLOBAL_OPTIONS->{subtopic_icons}#>
  231.                     <tr>
  232.                     <td valign=top class=ub>Emoticon:</td>
  233.                     <td valign=top>
  234.                         <table><tr>
  235.                         <td width=50><input type=radio name="emoticon" value=""></td>
  236.                         <#foreach $subtopic_icon (@subtopic_icons)#>
  237.                             <#if [ $subtopic_icon->{_iteration} % 7 ] == 0#>
  238.                                 </tr><tr>
  239.                             <#endif#>
  240.                             <td width=50><input type=radio name="emoticon" value="$subtopic_icon->{name}"{#if $edit->{subicon} eq $subtopic_icon->{name}#} checked{#endif#}>\
  241.                             <img src="$subtopic_icon->{url}" height="$subtopic_icon->{height}" width="$subtopic_icon->{width}"></td>
  242.                         <#endloop#>
  243.                         </tr></table>
  244.                     </td>
  245.                     </tr>
  246.                 <#endif#>
  247.                 </table>
  248.                 </td>
  249.                 </tr>
  250.             </table>
  251.             <p>
  252.             <input type=submit value="Save Properties">
  253.             </p>
  254.         </ul>
  255.     </div>
  256.     </form>
  257. <#endif#>
  258.  
  259.  
  260.  
  261.  
  262. </font></body></html>
  263. <!--END-->
  264.