fixed path problem (missing "/")
[phpfspot.git] / themes / default / templates / tags.tpl
index 4f32ad0a9c0a37c8f2256fdbb533caa8acd2f0d4..8a9521e8979cc4edbabca00672c65e4e365f6b6a 100644 (file)
@@ -1,36 +1,15 @@
-<table>
- <tr>
-  <td style="vertical-align: middle; text-decoration: underline;">
-   <img src="resources/available_tags.png" alt="available tags" />Available Tags:
-  </td>
- </tr>
- <tr>
-  <td class="available_tags">
-   <div id="available_tags"></div>
-  </td>
- </tr>
- <tr>
-  <td>
-   <table style="width: 100%;">
-    <tr>
-     <td style="vertical-align: bottom; text-decoration: underline;">
-      <img src="resources/selected_tags.png" alt="selected tags" />Selected Tags:
-     </td>
-     <td style="vertical-align: bottom; white-space: nowrap;">
-      &nbsp;
-      <input type="radio" name="condition" value="or" onclick="Tags('condition', this);" {if $current_condition == "or" } checked="checked" { /if } title="OR condition" />||
-      <input type="radio" name="condition" value="and" onclick="Tags('condition', this);" {if $current_condition == "and" } checked="checked" { /if } title="AND condition" />&amp;&amp;
-     </td>
-    </tr>
-   </table>
-  </td>
- </tr>
- <tr>
-  <td class="selected_tags">
-   <div id="selected_tags"></div>
-  </td>
- </tr>
- <tr>
-  <td>&nbsp;</td>
- </tr>
-</table>
+<span class="tags">
+ <img src="{$web_path}/resources/available_tags.png" alt="available tags" />Available Tags:
+</span>
+<div id="available_tags">{ $preset_available_tags }</div>
+<span class="tags">
+ <img src="{$web_path}/resources/selected_tags.png" alt="selected tags" />Selected Tags:
+</span>
+ &nbsp;
+ <input type="radio" name="condition" value="or" onclick="Tags('condition', this);" {if $current_condition == "or" } checked="checked" { /if } title="OR condition" />||
+ <input type="radio" name="condition" value="and" onclick="Tags('condition', this);" {if $current_condition == "and" } checked="checked" { /if } title="AND condition" />&amp;&amp;
+{ if isset($preset_selected_tags) }
+ <div id="selected_tags">{ $preset_selected_tags }</div>
+{ else }
+ <div id="selected_tags">no tags selected</div>
+{ /if }