<h3>
  <{$mod_name}> - <{$menu_name}> 
  <{if $totalapprovals>0}> (<span style="color:red;"><{$totalapprovals}></span>)<{/if}>
</h3>

<div style="margin:12px;">
  <{$smarty.const._MD_A_STATUS}> : 
  <span style="padding:6px;<{if $status == 0}>border:1px outset #999;background:#FCC;<{/if}>">
    <a href="<{$myurl}>/admin/index.php?c=approval&amp;s=0">
      <{$smarty.const._MD_LINK_NEW_REGISTER}>
    </a>
  </span>
  <span style="padding:6px;<{if $status == 1}>border:1px outset #999;background:#FCC;<{/if}>">
    <a href="<{$myurl}>/admin/index.php?c=approval&amp;s=1">
      <{$smarty.const._MD_MODIFY}>
    </a>
  </span>
  <span style="padding:6px;<{if $status == 2}>border:1px outset #999;background:#FCC;<{/if}>">
    <a href="<{$myurl}>/admin/index.php?c=approval&amp;s=2">
      <{$smarty.const._MD_DELETE}>
    </a>
  </span>
  <span style="padding:6px;<{if $status == 3}>border:1px outset #999;background:#FCC;<{/if}>">
    <a href="<{$myurl}>/admin/index.php?c=approval&amp;s=3">
      <{$smarty.const._MD_EASYPOST}>
    </a>
  </span>
</div>

<{if $status == 0 || $status == 1 || $status == 3}>
<div style="color:red;">
  <{$smarty.const._MD_A_APPROVAL_VISITE_CAUTION}>
</div>
<{/if}>

<{if $totalapprovals == 0}>
  <{$smarty.const._MD_NOAPPROVAL}>
<{else}>
  <table class='outer'>
    <tr>
      <th>LID</th>
      <th><{$smarty.const._MD_SITETITLE}></th>
      <th><{$smarty.const._MD_SUBMITTER}></th>
      <th><{$smarty.const._MD_REGI_DATE}></th>
      <th><{$smarty.const._MD_LINK_CONFIRM}></th>
      <th><{$smarty.const._MD_LINK_APPROVAL}></th>
      <th><{$smarty.const._MD_DELETE}></th>
    </tr>

    <{foreach item=app from=$approvals}>
      <tr class="<{cycle values='odd,even'}>">

        <td>
          <a href="<{my_make_uri option=$uri_options mydirname=$mydirname method=item p_key1=lid p_val1=$app.lid}>">
            <{$app.lid}>
          </a>
        </td>

        <td>
          <{$app.title}>
          <{if $app.url}>
          <a href="<{$app.url}>" target="_blank">
            <img src="<{$myurl}>/images/pop_win.gif" />
          </a>
          <{/if}>
          <{if $app.murl}>
          <a href="<{$app.murl}>" target="_blank">
            <img src="<{$myurl}>/images/mobile.gif" />
          </a>
          <{/if}>
        </td>

        <td>
          <{if $app.uid > 0}>
            <a href="<{$xoops_url}>/userinfo.php?uid=<{$app.uid}>"><img src="<{$myurl}>/images/information.png" style="vertical-align:top;" /></a>
          <{/if}>
          <{$app.submitter}>:<{$app.submitterName}>
          <{if $app.email}>
            <a href="mailto:<{$app.email}>"><img src="<{$myurl}>/images/email.png" style="vertical-align:top;" /></a>
          <{/if}>
          <br />
          (<{$app.ip}>)
        </td>

        <td><{$app.date|formatTimestamp:"m"}></td>

        <td>
          <a href="<{my_make_uri option=$uri_options mydirname=$mydirname controller=edit p_key1=lid p_val1=$app.lid}>">
            <{$smarty.const._EDIT}>
          </a>
        </td>

        <td>
          <{if $app.status==-2}>
            &nbsp;
          <{else}>
            <form action="<{$myurl}>/admin/index.php?c=approval&amp;m=yes" method="post">
              <input type="button" value="<{$smarty.const._MD_LINK_APPROVAL}>" onclick='if(confirm("<{$smarty.const._MD_APPROVE_MSG}>")){submit();}' />
              <input type="hidden" name="approval_lid" value="<{$app.lid}>" />
              <{$gticket}>
            </form>
          <{/if}>
        </td>

        <td>
          <{if $app.status==-2}>
            <form action="<{$myurl}>/admin/index.php?c=approval&amp;m=delete" method="post">
              <input type="button" value="<{$smarty.const._MD_DELETE}>" onclick='if(confirm("<{$smarty.const._MD_LINK_DEL_MSG}>")){submit();}' />
              <input type="hidden" name="delete_lid" value="<{$app.lid}>" />
              <{$gticket}>
            </form>
          <{else}>
            &nbsp;
          <{/if}>
        </td>

      </tr>
    <{/foreach}>

  </table>

<{/if}>
