<h3>
  <{$mod_name}> - <{$menu_name}> 
  <{if $totalmodrequests>0}> (<span style="color:red;"><{$totalmodrequests}></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=request&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=request&amp;s=1">
      <{$smarty.const._MD_A_STATUS_1}>
    </a>
  </span>
</div>



<{if $totalmodrequests == 0}>
  <{$smarty.const._MD_NOMODREQ}>
<{else}>
  <table class='outer'>
    <tr>
      <th>ID</th>
      <th><{$smarty.const._MD_SITETITLE}></th>
      <th><{$smarty.const._MD_REPODATE}></th>
      <th><{$smarty.const._MD_USERMODREQ}></th>
      <th><{$smarty.const._MD_REQUESTMOD}></th>
      <th><{$smarty.const._MD_A_STATUS_CHANGE}></th>
      <th><{$smarty.const._MD_DELETE}></th>
    </tr>
    <{foreach item=req from=$requests}>
      <tr class="<{cycle values='odd,even'}>">

        <td><{$req.requestid}></td>

        <td>
          <a href="<{my_make_uri option=$uri_options mydirname=$mydirname method=item p_key1=lid p_val1=$b.lid}>">
            <{$req.lid}>
          </a>
          :<{$req.link_title}>
          <a href="<{$req.link_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=$req.lid}>">
            <{$smarty.const._EDIT}>
          </a>
          ]
          <br />
          (
          <{if $req.link_submitter_uid > 0}>
            <a href="<{$xoops_url}>/userinfo.php?uid=<{$req.link_submitter_uid}>">
              <img src="<{$myurl}>/images/information.png" style="vertical-align:top;" />
            </a>
          <{/if}>
          <{$req.link_submitter_uid}>:<{$req.link_submitter_uname}>
          <{if $req.link_submimtter_email}>
            <a href="mailto:<{$req.link_submimtter_email}>"><img src="<{$myurl}>/images/email.png" style="vertical-align:top;" /></a>
          <{/if}>
          )
        </td>

        <td><{$req.reqdate|formatTimestamp:"m"}></td>

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

        <td>
          <{$req.description|links_substr:0:30}>
          <{if $req.description|strlen > 30}>
            [
            <a href="javascript:void(0);" onClick="desc_Open(<{$req.requestid}>);return false;" id="open_close_a_tag_<{$req.requestid}>">
              <{$smarty.const._MD_A_DELETE_ALL_DISPLAY}>
            </a>
            ]
          <{/if}>
        </td>

        <td>
          <a href="<{$myurl}>/admin/index.php?c=request&amp;m=change_status&amp;s=<{$status}>&amp;requestid=<{$req.requestid}>">
            <{if $req.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=request&amp;m=delete" method="post">
            <input type="button" value="<{$smarty.const._MD_REQUESTMOD}><{$smarty.const._MD_DELETE}>" onclick='if(confirm("<{$smarty.const._MD_MODREQ_DELETE_MSG}>")){submit();}' />
            <input type="hidden" name="delete_requestid" value="<{$req.requestid}>" />
            <{$gticket}>
          </form>
        </td>
      </tr>

<{if $req.description|strlen > 30}>
      <tr id="req_<{$req.requestid}>_desc" style="display:none;">
        <td colspan="7" style="padding:6px;">
          <{$req.description|nl2br}>
        </td>
      </tr>
<{/if}>

    <{/foreach}>
  </table>

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

<{/if}>



<script type="text/javascript">
<!--
function desc_Open(requestid)
{
	var desc = document.getElementById('req_'+ requestid +'_desc');
	var a_tag = document.getElementById('open_close_a_tag_'+ requestid);

	if (desc.style.display == 'none') {
		desc.style.display = '';
		a_tag.innerHTML = '<{$smarty.const._MD_A_DELETE_CLOSE}>';
	} else {
		desc.style.display = 'none';
		a_tag.innerHTML = '<{$smarty.const._MD_A_DELETE_ALL_DISPLAY}>';
	}

}
//-->
</script>