<{include file="file:admin_header.html"}>
<script type="text/javascript" charset="utf-8">
jQuery.noConflict();
function dconfirm(action){
  if(confirm('<{$smarty.const._AM_XOONIPS_MSG_DELETE_CONFIRM}>')) {
    var form=jQuery('#<{$dirname}>_policy_userfieldform');
    form.attr('action', action);
    jQuery('#<{$dirname}>_policy_userfield_op').attr('value','delete');
    form.submit();
  }
  return false;
}
function doClick(){
  jQuery('#file').click();
}
</script>
<form name="<{$dirname}>_policy_userfieldform" id="<{$dirname}>_policy_userfieldform" action="policy_userfield.php" method="post" enctype="multipart/form-data">
<p style="color:blue">&nbsp;&nbsp;&nbsp;<{$smarty.const._AM_XOONIPS_POLICY_ACCOUNT_DETAIL_ATTENTION}></p>
<div style="text-align:right; margin-left: 10px; margin-bottom: 15px;">
  <span style="border-top: 1px solid #EEEEFF; border-left: 1px solid #EEEEFF; border-right: 1px solid #666699; border-bottom: 1px solid #666699; padding: 5px; background-color: #EEEEEE; vertical-align: top;">
    <span style="font-weight: bold; color: red;">&raquo;</span>&nbsp;&nbsp;
    <a href="policy_userfield.php?op=register"><{$smarty.const._AM_XOONIPS_POLICY_ACCOUNT_DETAIL_ADD_TITLE}></a>
  </span>
</div>
<{$token_ticket}>
<input type="hidden" name="op" id="<{$dirname}>_policy_userfield_op" value="">
<div>
<table>
<tr>
<td style="width: 50%; text-align: left;">
</td>
<td style="width: 50%; text-align: right;"><{$navi_title}></td>
</tr>
</table>
</div>
<table width="100%" cellspacing="1" class="outer">
  <tbody>
  <tr>
    <th style="text-align: left;" class="head"><{$smarty.const._AM_XOONIPS_POLICY_ACCOUNT_DETAIL_NAME}></th>
    <th style="text-align: left;" class="head"><{$smarty.const._AM_XOONIPS_POLICY_ACCOUNT_DETAIL_ID}></th>
    <th style="text-align: center;" class="head"><{$smarty.const._AM_XOONIPS_LABEL_ACTION}></th>
  </tr>
  <{foreach item=userfield from=$userfields}>
  <tr class= "<{cycle values='odd,even'}>">
    <td style="text-align: left;"><{$userfield.name|xoops_escape}>&nbsp;&nbsp;<{if $userfield.editing ne ''}><span class="<{$dirname}>_diff"><{$smarty.const._AM_XOONIPS_LABEL_ITEMTYPE_EDITING}></span><{/if}></td>
    <td style="text-align: left;"><{$userfield.xml|xoops_escape}></td>
    <td style="text-align: center;">
      <a href="policy_userfield.php?op=edit&amp;detailid=<{$userfield.userfieldid}>&amp;perpage=<{$perpage}>&amp;start=<{$startpage}>">
        <img src="../images/icon_modify.png" alt="<{$smarty.const._AM_XOONIPS_LABEL_MODIFY}>" title="<{$smarty.const._AM_XOONIPS_LABEL_MODIFY}>"/>
      </a>&nbsp;
      <{if ($userfield.disdel)}>
      <a href="#">
        <img src="../images/icon_delete.png" alt="<{$smarty.const._AM_XOONIPS_LABEL_DELETE}>" title="<{$smarty.const._AM_XOONIPS_LABEL_DELETE}>"
        onclick="return dconfirm('policy_userfield.php?op=delete&amp;detailid=<{$userfield.userfieldid}>')" />
      </a>
      <{/if}>
    </td>
  </tr>
  <{/foreach}>
  <{if count($userfields)==0}>
  <tr>
    <td class="odd" colspan="3" style="text-align: center;">
      <span style="color: red; font-weight: bold;"><{$smarty.const._AM_XOONIPS_POLICY_ACCOUNT_DETAIL_EMPTY}></span>
    </td>
  </tr>
  <{/if}>
  </tbody>
</table>
</form>
<br />
<div class="pagenavi"><{xoops_pagenavi pagenavi=$pageNavi}></div>
<{include file="file:admin_footer.html"}>
