<{if $isMineLink}>
  <script type="text/javascript">
  	function delete_tad_web_link_func(LinkID){
  		var sure = window.confirm("<{$smarty.const._TAD_DEL_CONFIRM}>");
  		if (!sure)	return;
  		location.href="link.php?op=delete_tad_web_link&LinkID=" + LinkID;
  	}
  </script>
<{/if}>

<h1><{$smarty.const._MD_TCW_LINK}></h1>

<table class="footable">
<thead>
  <tr>
    <th data-class="expand"><{$smarty.const._MD_TCW_LINKTITLE}></th>
    <th data-hide="phone" style="width:50px;text-align:center;"><{$smarty.const._MD_TCW_ACTIONCOUNT}></th>
    <{if $showWebTitleLink}><th data-hide="phone" style="width:100px;text-align:center;"><{$smarty.const._MD_TCW_TEAMID}></th><{/if}>
    <{if !$showWebTitleLink && $isMineLink}><th data-hide="phone" style="width:100px;text-align:center;"><{$smarty.const._TAD_FUNCTION}></th><{/if}>
  </tr>
</thead>
<{if $link_data}>
  <{foreach item=link from=$link_data}>
  
  <tr>
		<td><img src="images/web.png" alt="<{$link.LinkUrl}>" hspace=4 align="absmiddle"><a href="<{$link.LinkUrl}>" target="_blank"><{$link.LinkTitle}></a>
    <div style="font-size:12px;color:#666699"><{$link.LinkDesc}></div></td>
		<td style="text-align:center;"><{$link.LinkCounter}></td>
    <{if $showWebTitleLink}><td style="text-align:center;"><{$link.WebTitle}></td><{/if}>
    <{if !$showWebTitleLink && $isMineLink}>
		<td style="text-align:center;">
      <a href="javascript:delete_tad_web_link_func(<{$link.LinkID}>);" class="btn btn-mini btn-danger"><{$smarty.const._TAD_DEL}></a>
  		<a href="link.php?op=tad_web_link_form&LinkID=<{$link.LinkID}>" class="btn btn-mini btn-warning"><{$smarty.const._TAD_EDIT}></a>
    </td>
		<{/if}>
		</tr>

  <{/foreach}>
<{else}>
  <tr><td colspan=4 style="text-align:center;"><{$smarty.const._MD_TCW_EMPTY}></td></tr>
<{/if}>
</table>

<{if $link_data}>
  <{$bar}>
<{/if}>

<div style="text-align:right">
  <{if $bar==""}>
    <{if $WebID==""}>
      <a href="index.php?op=list_tad_web_link" class="btn btn-mini btn-primary"><{$smarty.const._MD_TCW_MORE}><{$smarty.const._MD_TCW_LINK_SHORT}></a>
    <{else}>
      <a href="link.php?WebID=<{$WebID}>" class="btn btn-mini btn-primary"><{$smarty.const._MD_TCW_MORE}><{$smarty.const._MD_TCW_LINK_SHORT}></a>
    <{/if}>
  <{/if}>
  <{if $isMineLink}><a href="link.php?op=tad_web_link_form&WebID=<{$WebID}>" class="btn btn-mini btn-info"><{$smarty.const._TAD_ADD}></a><{/if}>
</div>