home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / FAQ / discus_admin_1357211388 / template / admin / locater.tmpl < prev    next >
Text File  |  2009-11-06  |  5KB  |  134 lines

  1. # FILE: locater.html
  2. # DESCRIPTION: Destination tree for moving messages and subtopics
  3. # Copyright (c) 2002, DiscusWare, LLC, all rights reserved
  4. # -------------------------------------------------------------------------------------------
  5.  
  6. <!--BEGIN-->
  7. <html><head><title>Select Destination...</title>
  8.  
  9. <style>
  10. <!--
  11. body { font: 10pt verdana,arial,helvetica; line-spacing: 0 }
  12. td { font: 10pt verdana,arial,helvetica; line-spacing: 0 }
  13. -->
  14. </style>
  15. <script language="JavaScript">
  16. <!--
  17.     function t(num) {
  18.         document.q.t.value = num;
  19.         document.q.m.value = num;
  20.         document.q.submit();
  21.         return false;
  22.     }
  23.     function e(num) {
  24.         document.q.m.value = num;
  25.         document.q.submit();
  26.         return false;
  27.     }
  28.     function s(num) {
  29.         var w = window.opener.document.{#if $general->{form} ne ""#}$general->{form}{#else#}d{#endif#};
  30.         w.dest_topic.value = '$general->{topic_open}';
  31.         w.dest_page.value = num;
  32.         self.close();
  33.         return false;
  34.     }
  35.     function st(num) {
  36.         var w = window.opener.document.{#if $general->{form} ne ""#}$general->{form}{#else#}d{#endif#};
  37.         w.dest_topic.value = num;
  38.         w.dest_page.value = num;
  39.         self.close();
  40.         return false;
  41.     }
  42. // -->
  43. </script>
  44. </head>
  45.  
  46. <body bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#0000ff">
  47.  
  48. <center><font size=3><b>Select Destination</b></font></center>
  49. <hr>
  50. <table cellpadding=2>
  51. <tr>
  52. <td>Open Folders:</td>
  53. <td><img src="$icon_url/tree_a.gif" width=20 height=16 alt="">/<img src="$icon_url/tree_c.gif" width=20 height=16 alt=""></td>
  54. </tr>
  55. <tr>
  56. <td>Unavailable:</td>
  57. <td><img src="$icon_url/tree_k.gif" width=20 height=16 alt=""></td>
  58. </tr>
  59. <tr>
  60. <td>Select:</td>
  61. <td><img src="$icon_url/tree_l.gif" width=20 height=16 alt=""></td>
  62. </tr>
  63. </table>
  64. <hr>
  65. <img src="$general->{icon_url}/tree_g.gif" height=16 width=20 align=top>$title<br>
  66. <#foreach $topic_tree (@topic_tree)#>
  67.     <#if $topic_tree->{number} == $general->{cutoff}#><b>\
  68.     <#if $topic_tree->{number} != $general->{topic_open}#>
  69.         <a href="#" onClick="return t('$topic_tree->{number}')">\
  70.         <img align=top height=16 width=20 border=0 src="$general->{icon_url}/tree_\
  71.             <#if $topic_tree->{_is_last_element}#>c<#else#>a<#endif#>.gif"></a>\
  72.     <#else#>
  73.         <img align=top height=16 width=20 border=0 src="$general->{icon_url}/tree_\
  74.             <#if $topic_tree->{_is_last_element}#>f<#else#>e<#endif#>.gif">\
  75.     <#endif#>
  76.     <a href="#" onClick="return st('$topic_tree->{number}')">\
  77.     <img align=top height=16 width=20 border=0 src="$general->{icon_url}/tree_l.gif">\
  78.     </a>\
  79.     $topic_tree->{name}<br>
  80.     <#if $topic_tree->{number} == $general->{cutoff}#></b>
  81.     <#if $topic_tree->{number} == $general->{topic_open}#>
  82.         <#foreach $subtopic (@subtopic_tree)#>
  83.             <#if $subtopic->{page} == $general->{cutoff}#><b>\
  84.             <#define $flag = "0"#>
  85.             <#if $topic_tree->{_is_last_element}#>
  86.                 <img src="$general->{icon_url}/tree_j.gif" height=16 width=20 border=0 align=top>\
  87.             <#else#>
  88.                 <img src="$general->{icon_url}/tree_i.gif" height=16 width=20 border=0 align=top>\
  89.             <#endif#>
  90.             <#define $i = 1#>
  91.             <#while ($i < $subtopic->{level})#>
  92.                 <#if $disp_icon[$i] == 0#>
  93.                     <img src="$general->{icon_url}/tree_j.gif" height=16 width=20 border=0 align=top>\
  94.                 <#else#>
  95.                     <img src="$general->{icon_url}/tree_i.gif" height=16 width=20 border=0 align=top>\
  96.                 <#endif#>
  97.                 <#math: $i += 1#>
  98.             <#/while#>
  99.             <#if $subtopic->{open} == 1 || $subtopic->{param} !~ match(Sublist) || $subtopic->{unavail} == 1#>
  100.                 <img src="$general->{icon_url}/tree_{#if $subtopic->{last_of_parent}#}f{#else#}e{#endif#}.gif" height=16 width=20 align=top>\
  101.             <#else#>
  102.                 <a href="#" onClick="return e('$subtopic->{page}')">\
  103.                 <img src="$general->{icon_url}/tree_{#if $subtopic->{last_of_parent}#}c{#else#}a{#endif#}.gif" height=16 width=20 border=0 align=top>\
  104.                 </a>\                
  105.             <#endif#>
  106.             <#if $subtopic->{last_of_parent}#>
  107.                 <#define $disp_icon[$subtopic->{level}] = "0"#>
  108.             <#else#>
  109.                 <#define $disp_icon[$subtopic->{level}] = "1"#>
  110.             <#endif#>
  111.             <#if $subtopic->{unavail} == 1#>
  112.                 <img src="$general->{icon_url}/tree_k.gif" height=16 width=20 border=0 align=top>\
  113.             <#else#>
  114.                 <a href="#" onClick="return s('$subtopic->{page}')"><img src="$general->{icon_url}/tree_l.gif" height=16 width=20 border=0 align=top></a>\
  115.             <#endif#>
  116.             <#maxchar 60/... "$subtopic->{name}"#><br>
  117.             <#if $subtopic->{page} == $general->{cutoff}#></b>\
  118.         <#endloop#>
  119.     <#endif#>
  120. <#endloop#>
  121.  
  122. <form action="$cgiurl" method="post" name="q">
  123. <input type=hidden name="username" value="$general->{username}">
  124. <input type=hidden name="t" value="$general->{topic_open}">
  125. <input type=hidden name="form" value="$general->{form}">
  126. <input type=hidden name="ty" value="$general->{type}">
  127. <input type=hidden name="m" value="">
  128. <input type=hidden name="x" value="$general->{cutoff}">
  129. <input type=hidden name="action" value="{#if $general->{action} ne ""#}$general->{action}{#else#}pm-pgtree{#endif#}">
  130. </form>
  131. </body>
  132. </html>
  133. <!--END-->
  134.