<{include file="file:admin_header.html"}>
<script type="text/javascript" charset="utf-8">
jQuery.noConflict();
jQuery(function(){
  jQuery('<{$dirname}>_policy_quicksearchform :button[rel^="prettyPopin"],a[rel^="prettyPopin"]').prettyPopin({
    width : 400,      /* false/integer */
    height: 280,      /* false/integer */
    opacity: 0.5,      /* value from 0 to 1 */
    animationSpeed: '0',  /* slow/medium/fast/integer */
    close : false,      /* true/false */
    followScroll: false,  /* true/false */
    loader_path: '../images/loader.gif', /* path to your loading image */
    callback: xoonipsCallback
  });
});
function xoonipsCallback(id, value) {
  location.reload();
}
</script>
<form name="<{$dirname}>_policy_quicksearchform" id="<{$dirname}>_policy_quicksearchform" action="policy_quicksearch.php" method="post">
<div style="text-align:right; margin-bottom: 15px;">
  <input class="formButton" type="button" onclick="this.form.action='policy_quicksearch.php?op=edit';submit();return false;" value="<{$smarty.const._AM_XOONIPS_LABEL_ADD}>"/>
</div>
<table width="100%" cellspacing="1" class="outer">
<tbody>
  <tr>
    <th style="width: 80%; text-align: center;"><{$smarty.const._AM_XOONIPS_POLICY_QUICKSEARCH_ITEM}></th>
    <th style="width: 8%; text-align: center;"><{$smarty.const._AM_XOONIPS_LABEL_ACTION}></th>
  </tr>
  <{foreach item=quicksearch_item from=$quicksearch_list}>
  <tr class= "<{cycle values='odd,even'}>">
    <td style="width: 80%; text-align: left;"><{$quicksearch_item.title|xoops_escape}></td>
    <td style="width: 8%; text-align: center;">
      <a href="policy_quicksearch.php?op=edit&amp;mode=1&amp;condition_id=<{$quicksearch_item.condition_id}>"><img src="../images/icon_modify.png" alt="<{$smarty.const._AM_XOONIPS_LABEL_MODIFY}>" title="<{$smarty.const._AM_XOONIPS_LABEL_MODIFY}>"/></a>&nbsp;
      <{if $quicksearch_item.condition_id!=1}>
      <a href="policy_quicksearch.php?op=edit&amp;mode=2&amp;condition_id=<{$quicksearch_item.condition_id}>"><img src="../images/icon_delete.png" alt="<{$smarty.const._AM_XOONIPS_LABEL_DELETE}>" title="<{$smarty.const._AM_XOONIPS_LABEL_DELETE}>"/></a>
      <{/if}>
    </td>
  </tr>
  <{/foreach}>
  <{if count($quicksearch_list)==0}>
  <tr><td class="odd" colspan="2" style="text-align: center;"><span style="color: red; font-weight: bold;"><{$smarty.const._AM_XOONIPS_POLICY_QUICKSEARCH_LIST_EMPTY}></span></td></tr>
  <{/if}>
</tbody>
</table>
</form>
<{include file="file:admin_footer.html"}>
