replaced with a layouted version , since language.code is not available in that form...
authorinit <init>
Mon, 1 Dec 2003 23:40:31 +0000 (23:40 +0000)
committerinit <init>
Mon, 1 Dec 2003 23:40:31 +0000 (23:40 +0000)
etc/open/search_results.template

index 1078fb6..b5a910e 100755 (executable)
@@ -2,72 +2,92 @@
 
 <html>
 <head>
-       <title>${lang("search.htmltitle")}</title>
+<title>${lang("search.htmltitle")}</title>
+<link rel="stylesheet" type="text/css" href="${config.docRoot}/style/admin.css">
 </head>
 
 <body bgcolor="White" text="Black" link="#006600" vlink="#666666" alink="Red">
 
-<table width="100%" border="0" cellspacing="0" cellpadding="4" bgcolor="#cccccc">
+<form method="post" action="${config["Producer.OpenAction"]}">
+<input type="hidden" name="do" value="search" />
+
+<table width="100%" border="0" cellspacing="2" cellpadding="4" bgcolor="#cccccc">
        <tr>
-               <td align="center" bgcolor="#666666">
-               <font color="White">${lang("search.title")}</font></td>
+               <td align="left" class="table-head" colspan="2">
+                       <b>&nbsp;&nbsp;&nbsp;${lang("search.title")}</b>
+               </td>
        </tr>
+
        <tr>
-               <td bgcolor="#eeeeee"><font color="#000000">
-
-<form method="get" action="${config["Producer.OpenAction"]}">
-<input type="hidden" name="do" value="search"/>
-<center>
-  <b>${lang("search.mainsearchfield")}</b><br>
-  <input type="text" size="40" name="search_content" value="${data.search_content}" /><input type="submit" name="search_submit" value="${lang("search.searchbutton")}" />
-</center>
-<br>
-<b>${lang("search.refine")}</b><br>
-<table>
-  <tr>
-    <td><b>${lang("search.all_or_any")}</b></td>
-    <td>
-      <if data.search_boolean == "and">
-        <input type="radio" name="search_boolean" value="and" checked="true">${lang("search.all")}
-        <input type="radio" name="search_boolean" value="or">${lang("search.any")}
-      <else>
-        <input type="radio" name="search_boolean" value="and">${lang("search.all")}
-        <input type="radio" name="search_boolean" value="or" checked="true">${lang("search.any")}
-      </if>
-    </td>
-  </tr> 
-  <tr>
-    <td><b>${lang("search.by_author")}</b></td>
-    <td>
-      <input type="text" name="search_creator" value="${data.search_creator}" />
-    </td>
-  </tr>
-  <tr>
-    <td><b>${lang("search.by_topic")}</b></td>
-    <td>
-      <select name="search_topic">
-        <if (!data.search_topic) || (data.search_topic == "") >
-          <option value="" selected>${lang("search.all_topics")}
-        <else>
-          <option value="">${lang("search.all_topics")}
-        </if>
-        <list data.topics as topic>
-          <if topic.value != "--" >
-            <if data.search_topic == topic.value>
-              <option selected>${topic.value}
-            <else>
-              <option>${topic.value}
-            </if>
-          </if>
-        </list>
-      </select>
-    </td>
-  </tr>
-</table>
-<table>
+               <td class="table-right" colspan="2">
+                       &nbsp;
+               </td>
+       </tr>
+
+       <tr>
+               <td class="table-left" width="30%">
+                       ${lang("search.mainsearchfield")}
+               </td>
+               <td class="listrow2" valign="top">
+                       <input type="text" size="40" name="search_content" value="${data.search_content}" />
+               </td>
+       </tr>
+       <tr>
+               <td class="table-foot" align="left">
+                       <spann style='color:#000000; font-size:1.2em;'><b>${lang("search.refine")}</b></spann>
+               </td>
+               <td class="table-foot" align="right">
+                       <input type="submit" name="search_submit" value="${lang("search.searchbutton")}" />
+               </td>
+       </tr>
+       <tr>
+       <td class="table-left">
+                       ${lang("search.all_or_any")}
+               </td>
+       <td class="listrow2">
+                       <if data.search_boolean == "and">
+                       <input type="radio" name="search_boolean" value="and" checked="true">${lang("search.all")}
+                       <input type="radio" name="search_boolean" value="or">${lang("search.any")}
+               <else>
+                       <input type="radio" name="search_boolean" value="and">${lang("search.all")}
+                       <input type="radio" name="search_boolean" value="or" checked="true">${lang("search.any")}
+               </if>
+       </td>
+       </tr>
+       <tr>
+       <td class="table-left">
+                       ${lang("search.by_author")}
+               </td>
+       <td class="listrow2">
+                       <input type="text" name="search_creator" value="${data.search_creator}" />
+       </td>
+       </tr>
+       <tr>
+       <td class="table-left">${lang("search.by_topic")}</td>
+       <td class="listrow2">
+                       <select name="search_topic">
+               <if (!data.search_topic) || (data.search_topic == "") >
+                       <option value="" selected>${lang("search.all_topics")}
+               <else>
+                       <option value="">${lang("search.all_topics")}
+               </if>
+               <list data.topics as topic>
+               <if topic.value != "--" >
+               <if data.search_topic == topic.value>
+                       <option selected>${topic.value}
+               <else>
+                       <option>${topic.value}
+               </if>
+               </if>
+               </list>
+               </select>
+       </td>
+       </tr>
+
+
   <tr>
-    <td><b>${lang("search.with_images")}</b></td>
-    <td>
+    <td class="table-left"><b>${lang("search.with_images")}</b></td>
+    <td class="listrow2">
       <if data.search_hasImages == "y">
         <input type="radio" name="search_hasImages" value="y" checked="true">${lang("search.yes")}
         <input type="radio" name="search_hasImages" value="n">${lang("search.no")}
@@ -78,8 +98,8 @@
     </td>
   </tr>
   <tr>
-    <td><b>${lang("search.with_audio")}</b></td>
-    <td>
+    <td class="table-left"><b>${lang("search.with_audio")}</b></td>
+    <td class="listrow2">
       <if data.search_hasAudio == "y">
         <input type="radio" name="search_hasAudio" value="y" checked="true">${lang("search.yes")}
         <input type="radio" name="search_hasAudio" value="n">${lang("search.no")}
     </td>
   </tr>
   <tr>
-    <td><b>${lang("search.with_video")}</b></td>
-    <td>
+    <td class="table-left"><b>${lang("search.with_video")}</b></td>
+    <td class="listrow2">
       <if data.search_hasVideo == "y">
         <input type="radio" name="search_hasVideo" value="y" checked="true">${lang("search.yes")}
         <input type="radio" name="search_hasVideo" value="n">${lang("search.no")}
       </if>
     </td>
   </tr>
-</table>
 
-<b>${lang("search.sort_how")}</b>
+<tr>
+<td class="table-left">
+${lang("search.sort_how")}
+</td>
+<td class="listrow2">
 <input type="radio" name="search_sort" value="score" <if data.search_sort =="score" || !data.search_sort || data.search_sort == "" >checked="true"</if>>${lang("search.by_score")}
-<input type="radio" name="search_sort" value="date_desc" <if data.search_sort =="date_desc">checked="true"</if>>${lang("search.old_first")}
-<input type="radio" name="search_sort" value="date_asc" <if data.search_sort =="date_asc">checked="true"</if>>${lang("search.new_first")}
+<input type="radio" name="search_sort" value="date_desc" <if data.search_sort =="date_desc">checked="true"</if>>${lang("search.new_first")}
+<input type="radio" name="search_sort" value="date_asc" <if data.search_sort =="date_asc">checked="true"</if>>${lang("search.old_first")}
+
+</td>
+</tr>
+<tr>
+<td colspan="2" class="table-foot" align="right">
 <input type="submit" name="search_submit" value="${lang("search.searchbutton")}" />
+</td>
+</tr>
+</table>
+<br>
+<div align="left">
+<a href="${config["Producer.PublicationHost"]}/" class="link-box">&gt;&gt; ${lang("postingdone.back")}</a>
+</div>
 <br>
 
+<!--Lucene Query was: ${data.queryString} <br>-->
 <hr>
-<if data.hasPrevious=="y">     
-<input type="submit" name="search_back" value="${lang("search.back")}" />      
+<div align="right">
+<if data.hasPrevious=="y">
+<input type="submit" name="search_back" value="${lang("search.back")}" />&nbsp;&nbsp;
 </if>
-<if data.hasNext=="y"> 
-<input type="submit" name="search_forward" value="${lang("search.forward")}" />        
+<if data.hasNext=="y">
+<input type="submit" name="search_forward" value="${lang("search.forward")}" />
 </if>
-</form>
-<br>
-<b>${lang("search.info")}</b>
-<br>
-<b>${lang("search.numhits")} = ${data.numberOfHits}</b>
-<br>
-<br>
+</div>
+<hr>
+
+<if data.queryString>
+<p class="box-head"><b>${lang("search.info")}</b></p>
+<p class="box"><font size="-1">${lang("search.numhits")} = ${data.numberOfHits}</font></p>
+</if>
+
 
 <list data.hits as h>
-  <table>
+  <div class="box">
+  <table width="100%">
     <tr>
-      <td>
-        ${lang("search.result.title")} <a href='${config["Producer.PublicationHost"]}/${lang("langcode")}${h.where}'>${h.title}</a> 
-        <if h.hasAudio=="y">
-          <img src="/img/audio_big.gif">
+      <td align="left" valign="top" width="85%">
+        <b>${lang("search.result.title")}</b> <a href='${config["Producer.PublicationHost"]}/en${h.where}'>${h.title}</a>
+
+        <br>
+        <b>${lang("search.result.author")}</b> ${h.creator}<br >
+        <b>${lang("search.result.date")}</b> ${h.webdb_create_formatted}<br>
+        <b>${lang("search.result.description")}</b> ${h.description} <br>
+      </td>
+      <td align="right" valign="top">
+    <if h.hasAudio=="y">
+          <img src="${config["Producer.PublicationHost"]}/img/audio_big.gif">&nbsp;
         </if>
         <if h.hasVideo == "y">
-          <img src="/img/video_big.gif">
+          <img src="${config["Producer.PublicationHost"]}/img/video_big.gif">&nbsp;
         </if>
-        <br>
-        ${lang("search.result.author")} ${h.creator}<br >
-        ${lang("search.result.date")} ${h.webdb_create_formatted}<br>
-        ${lang("search.result.description")} ${h.description} <br>
-      </td>
-      <td>
+        <if h.hasImages == "y">
         <list h.images as image>
-          <img src="${image}">
+          <img src="${config["Producer.PublicationHost"]}/${image}"><br>
         </list>
-      </td>
+        </if>
+      &nbsp;
+  </td>
     </tr>
   </table>
-  <br>
-</list>
-       </font>
-       </td>
-</tr>
-<tr><td>
-<form method="get" action="${config["Producer.OpenAction"]}">
-<input type="hidden" name="do" value="search"/>
+  </div>
 
-<if data.hasPrevious=="y">     
-<input type="submit" name="search_back" value="${lang("search.back")}" />      
+</list>
+<hr>
+<div align="right">
+<if data.hasPrevious=="y">
+<input type="submit" name="search_back" value="${lang("search.back")}" />&nbsp;&nbsp;
 </if>
-<if data.hasNext=="y"> 
-<input type="submit" name="search_forward" value="${lang("search.forward")}" />        
+<if data.hasNext=="y">
+<input type="submit" name="search_forward" value="${lang("search.forward")}" />
 </if>
+</div>
+<hr>
+
 </form>
+<br>
+<a href="/" class="link-box">&gt;&gt; ${lang("postingdone.back")}</a>
+
 
-</td></tr>
-<tr>
-       <td valign="top" align="center" bgcolor="#666666">
-       <a href="/"><font color="White"><b>&gt;&gt; ${lang("postingdone.back")}</b></font></a>
-               </td>
-       </tr>
-</table>
 </body>
 </html>