<{if $isMineVideo}>
  <script type="text/javascript">
  function delete_tad_web_video_func(VideoID){
    var sure = window.confirm("<{$smarty.const._TAD_DEL_CONFIRM}>");
    if (!sure)  return;
    location.href="video.php?op=delete_tad_web_video&VideoID=" + VideoID;
  }
  </script>
<{/if}>


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

<table class="footable table common_table">
<thead>
  <tr>
    <th data-hide="phone" style="width:100px;text-align:center;">
      <{$smarty.const._MD_TCW_VIDEODATE}>
    </th>
    <th data-class="expand">
      <{$smarty.const._MD_TCW_VIDEONAME}>
    </th>
    <{if $showWebTitleVideo}>
      <th data-hide="phone" style="width:100px;text-align:center;">
        <{$smarty.const._MD_TCW_TEAMID}>
      </th>
    <{/if}>
    <{if !$showWebTitleVideo && $isMineVideo}>
      <th data-hide="phone" style="width:100px;text-align:center;">
        <{$smarty.const._TAD_FUNCTION}>
      </th>
    <{/if}>
  </tr>
</thead>
<{if $video_data}>
  <{foreach item=video from=$video_data}>
    <tr>
      <td style="width:130px;">
        <a href="video.php?WebID=<{$video.WebID}>&VideoID=<{$video.VideoID}>">
          <img src="http://i3.ytimg.com/vi/<{$video.VideoPlace}>/1.jpg" class="pull-left img-polaroid" style="margin-right:10px;" alt="<{$video.VideoName}>">
        </a>
      </td>

      <td>
        <{$video.VideoDate}>
        <p>
          <a href="video.php?WebID=<{$video.WebID}>&VideoID=<{$video.VideoID}>"><{$video.VideoName}></a>
        </p>
        <p style="font-size:12px;">
          <{$video.VideoCountInfo}>
        </p>
     </td>

      <{if $showWebTitleVideo}>
        <td style="width:100px;text-align:center;">
          <{$video.WebTitle}>
        </td>
      <{/if}>
      <{if !$showWebTitleVideo && $isMineVideo}>
        <td style="width:100px;text-align:center;">
          <a href="javascript:delete_tad_web_video_func(<{$video.VideoID}>);" class="btn btn-mini btn-danger"><{$smarty.const._TAD_DEL}></a>
          <a href="video.php?op=tad_web_video_form&VideoID=<{$video.VideoID}>" class="btn btn-mini btn-warning"><{$smarty.const._TAD_EDIT}></a>
        </td>
      <{/if}>
    </tr>
    <{/foreach}>
  <{else}>
    <tr>
      <td colspan=4 class="text-center">
        <{$smarty.const._MD_TCW_EMPTY}>
      </td>
    </tr>
  <{/if}>
</table>

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

<div style="text-align:right">
  <{if $bar==""}>
    <{if $WebID==""}>
      <a href="index.php?op=list_tad_web_video" class="btn btn-mini btn-primary"><{$smarty.const._MD_TCW_MORE}><{$smarty.const._MD_TCW_VIDEO_SHORT}></a>
    <{else}>
      <a href="video.php?WebID=<{$WebID}>" class="btn btn-mini btn-primary"><{$smarty.const._MD_TCW_MORE}><{$smarty.const._MD_TCW_VIDEO_SHORT}></a>
    <{/if}>
  <{/if}>
  <{if $isMineVideo}>
    <a href="video.php?WebID=<{$WebID}>&op=tad_web_video_form" class="btn btn-mini btn-info"><{$smarty.const._TAD_ADD}></a>
  <{/if}>
</div>