<h3>
  <{$mod_name}> - <{$menu_name}> 
  <{if $totalbrokenlinks>0}> (<span style="color:red;"><{$totalbrokenlinks}></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=broken&amp;s=0">
      <{$smarty.const._MD_A_STATUS_0}>
    </a>
  </span>
  <span style="padding:6px;<{if $status==1}>border:1px outset #999;background:#FCC;<{/if}>">
    <a href="<{$myurl}>/admin/index.php?c=broken&amp;s=1">
      <{$smarty.const._MD_A_STATUS_1}>
    </a>
  </span>
</div>

<{if $totalbrokenlinks == 0}>
  <{$smarty.const._MD_NO_DATA}>
<{else}>
  <div style="margin:20px 8px;">
    <{$smarty.const._MD_DELETEDESC}>
  </div>
  <table class='outer'>
    <tr>
      <th>ID</th>
      <th><{$smarty.const._MD_SITETITLE}></th>
      <th><{$smarty.const._MD_REPODATE}></th>
      <th><{$smarty.const._MD_REPORTER}></th>
      <th><{$smarty.const._MD_A_STATUS_CHANGE}></th>
      <th><{$smarty.const._MD_DELETE}></th>
    </tr>
    <{foreach item=b from=$brokens}>
      <tr class="<{cycle values='odd,even'}>">
        <td><{$b.reportid}></td>

        <td>
          <a href="<{my_make_uri option=$uri_options mydirname=$mydirname method=item p_key1=lid p_val1=$b.lid}>"><{$b.lid}></a> : 
          <{$b.title}>
          <a href="<{$b.url}>" target="_blank">
            <img src="<{$myurl}>/images/pop_win.gif" style="vertical-align:top;" />
          </a>
          &nbsp;
          [
          <a href="<{my_make_uri option=$uri_options mydirname=$mydirname controller=edit p_key1=lid p_val1=$b.lid}>">
            <{$smarty.const._EDIT}>
          </a>
          ]
          <br />
          (
          <{if $b.ownerid > 0}>
            <a href="<{$xoops_url}>/userinfo.php?uid=<{$b.ownerid}>"><img src="<{$myurl}>/images/information.png" style="vertical-align:top;" /></a>
          <{/if}>
          <{$b.ownerid}>:<{$b.owner_uname}>
          <{if $b.owner_email}>
            <a href="mailto:<{$b.owner_email}>"><img src="<{$myurl}>/images/email.png" style="vertical-align:top;" /></a>
          <{/if}>
          )
        </td>

        <td><{$b.repodate|formatTimestamp:"m"}></td>

        <{* broken link reporter *}>
        <td>
          <{if $b.sender > 0}>
            <a href="<{$xoops_url}>/userinfo.php?uid=<{$b.sender}>"><img src="<{$myurl}>/images/information.png" style="vertical-align:top;" /></a>
          <{/if}>
          <{$b.sender}>:<{$b.sender_uname}>
          <{if $b.sender_email}>
            <a href="mailto:<{$b.sender_email}>"><img src="<{$myurl}>/images/email.png" style="vertical-align:top;" /></a>
          <{/if}>
          <br />
          (<{$b.ip}>)
        </td>

        <td>
          <a href="<{$myurl}>/admin/index.php?c=broken&amp;m=change_status&amp;s=<{$status}>&amp;reportid=<{$b.reportid}>">
            <{if $b.status==0}>
              <{$smarty.const._MD_A_STATUS_0}> -&gt; <{$smarty.const._MD_A_STATUS_1}>
            <{else}>
              <{$smarty.const._MD_A_STATUS_1}> -&gt; <{$smarty.const._MD_A_STATUS_0}>
            <{/if}>
          </a>
        </td>

        <td>
          <form action="<{$myurl}>/admin/index.php?c=broken&amp;m=delete" method="post" name="deleteform<{$b.reportid}>">
            <input type="button" value="<{$smarty.const._MD_DELETE}>" onclick='if(confirm("<{$smarty.const._MD_BROKEN_DELETE_BOTH_MSG}>")){document.deleteform<{$b.reportid}>.delete_item.value="both";submit();}' />
            <input type="button" value="<{$smarty.const._MD_A_DELETE_REPORT_ONLY}>" onclick='if(confirm("<{$smarty.const._MD_BROKEN_DELETE_REPO_MSG}>")){document.deleteform<{$b.reportid}>.delete_item.value="report";submit();}' />
            <input type="hidden" name="delete_lid" value="<{$b.lid}>" />
            <input type="hidden" name="delete_reportid" value="<{$b.reportid}>" />
            <input type="hidden" name="delete_item" value="" />
            <{$gticket}>
          </form>
        </td>
      </tr>
    <{/foreach}>
  </table>

  <{if $navinfo && $nav}>
    <div style="float:left;"><{$navinfo}></div>
    <div style="text-align:right;"><{$nav}></div>
  <{/if}>

<{/if}>


