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

  1. # FILE: tree.html
  2. # DESCRIPTION: Destination tree for moving messages and subtopics
  3. # Copyright (c) 2002, DiscusWare, LLC, all rights reserved
  4. # -------------------------------------------------------------------------------------------
  5.  
  6. <!--BEGIN-->
  7. <#if $general->{type} == 1 && $general->{number} == 1#>
  8.     <#define $text = "message"#>
  9. <#endif#>
  10. <#if $general->{type} == 1 && $general->{number} != 1#>
  11.     <#define $text = "messages"#>
  12. <#endif#>
  13. <#if $general->{type} == 2 && $general->{number} == 1#>
  14.     <#define $text = "subtopic"#>
  15. <#endif#>
  16. <#if $general->{type} == 2 && $general->{number} != 1#>
  17.     <#define $text = "subtopics"#>
  18. <#endif#>
  19.  
  20. <html><head><title>Move $text</title>
  21.  
  22. <style>
  23. <!--
  24. body { font-family: $color->{face}; line-spacing: 0 }
  25. <#if $browser->{nsX}#>
  26.     .o { color: $GLOBAL_OPTIONS{COLOR_text} }
  27.     .f { color: $GLOBAL_OPTIONS{COLOR_text} }
  28. <#endif#>
  29. <#if $browser->{ieX}#>
  30.     img { height: 16; width: 20; border: 0 }
  31.     img.navicon { height: 50; width: 46; border: 0 }
  32.     .o { color: $GLOBAL_OPTIONS{COLOR_text}; display: block; }
  33.     .f { color: $GLOBAL_OPTIONS{COLOR_text}; display: none; }
  34. <#endif#>
  35. -->
  36. </style>
  37.  
  38. <script language="JavaScript">
  39. <!--
  40.     function popit () {
  41.         var url = '$cgiurl?username=$general->{username}&action=pm-pgtree&t=$head->{topic_number}&m=$head->{me_number}&x=$general->{x}&ty=$general->{type}';
  42.         var newwin = window.open(url, 'findwin', 'height=450,width=500,scrollbars=yes,resizable');
  43.         return false;
  44.     }
  45.     function validate_1 () {
  46.         var k = document.d;
  47.         if (k.dest_topic.value == 0 || k.dest_page.value == 0) {
  48.             popit();
  49. #            alert('You left either the destination topic or destination page box empty!');
  50.             return false;
  51.         }
  52.         k.subtopic_name.value = '';
  53.         return true;
  54.     }
  55.     function validate_2 () {
  56.         var k = document.d;
  57.         if (k.subtopic_name.value == '') {
  58.             popit();
  59. #            alert('You did not type a name for the new subtopic!');
  60.             return false;
  61.         }
  62.         k.dest_topic.value = '';
  63.         k.dest_page.value = '';
  64.         return true;
  65.     }
  66.     
  67.     
  68. // -->
  69. </script>
  70.  
  71. </head>
  72.  
  73. <body bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#0000ff">$fs
  74.  
  75. <center><font size=3><b>Move $text</b></font></center>
  76. <#if $general->{quick} == 0#>
  77.     <hr>
  78.     <strong>
  79.     <a href="$cgiurl?username=$general->{username}&action=pm-mgr_1">Page Manager</a>:
  80.     <#if $head->{me_number} != $head->{topic_number}#>
  81.         <a href="$cgiurl?username=$general->{username}&action=pm-page_editor&menu=2&HTTP_REFERER=/$head->{topic_number}/$head->{topic_number}">$head->{topic_name}</a>:
  82.     <#endif#>
  83.     <#foreach $level (@levels)#>
  84.         <#if $level->{level_number} > 0#>
  85.             <#if $level->{level_number} != $head->{me_number}#>
  86.                 <a href="$cgiurl?username=$general->{username}&action=pm-page_editor&menu=2&HTTP_REFERER=/$head->{topic_number}/$level->{level_number}">$level->{level_name}</a>:
  87.             <#endif#>
  88.         <#endif#>
  89.     <#endloop#>
  90.     <a href="$cgiurl?username=$general->{username}&action=pm-page_editor&menu=2&HTTP_REFERER=/$head->{topic_number}/$head->{me_number}">$head->{me_name}</a>:
  91.     Move $text
  92.     </strong>
  93. <#endif#>
  94. <hr>
  95.  
  96.  
  97. <form action="$cgiurl" method="post" name="d">
  98. <input type=hidden name="username" value="$general->{username}">
  99. <input type=hidden name="action" value="pm-move$general->{type}">
  100. <input type=hidden name="quick" value="$general->{quick}">
  101. <input type=hidden name="string" value="$general->{string}">
  102. <input type=hidden name="HTTP_REFERER" value="$general->{topic}/$general->{page}">
  103.  
  104. <p>
  105. To move to a particular destination for which you already know the topic and page number,
  106. enter the topic and page number of the desired destination here.  To bring up an interactive
  107. tree to locate the desired destination, click here to
  108. <a href="#" onClick="return popit()">view locater tree</a>.
  109. </p>
  110.  
  111. <p>
  112.          \
  113.     <b>Topic:</b> <input type=text name="dest_topic" value="" size=5>  \
  114.     <b>Page:</b> <input type=text name="dest_page" value="" size=5>  \
  115.     <input type=submit value="Move $text" onClick="return validate_1()">
  116. </p>
  117.  
  118. <hr>
  119.  
  120. <p>
  121. To create a new subtopic under the page you are currently viewing, and to use that subtopic as the destination, enter a name for that new subtopic here.
  122. </p>
  123.  
  124. <p>
  125.          \
  126.     <b>Subtopic Name:</b> <input type=text name="subtopic_name" value="" size=35>  \
  127.     <input type=submit value="Move $text" onClick="return validate_2()">
  128. </p>
  129.  
  130. </font>
  131. </body>
  132. </html>
  133. <!--END-->
  134.