<!-- BEGIN index -->
<script>
function do_action(act)
{
  flag = 0;
  for (i=0; i<document.addshow.elements.length; i++) {
      if (document.addshow.elements[i].type == "checkbox") {
         if (document.addshow.elements[i].checked) {
            flag = 1;
         }
      }
   }
   if (flag != 0) {
      document.addshow.what.value = act;
      document.addshow.submit();
   } else {
      alert("<?php echo lang('Please select a song first').'.'; ?>");
      document.addshow.tofolder.selectedIndex = 0;
   }
}

function check_all()
{
  for (i=0; i<document.addshow.elements.length; i++) {
      if (document.addshow.elements[i].type == "checkbox") {
         if (document.addshow.elements[i].checked) {
            document.addshow.elements[i].checked = false;
         } else {
            document.addshow.elements[i].checked = true;
         }
      } 
  }
}
</script>

<table border="0" align="center" width="80%">
  <tr>
    <td align="center">
      <form action="{action_url}" method="post">
{cats_link}
     <input type="hidden" name="sort" value="{sort}">
     <input type="hidden" name="order" value="{order}">
     <input type="hidden" name="filter" value="{filter}">
     <input type="hidden" name="query" value="{query}">
     <input type="hidden" name="start" value="{start}">
      </form>
    </td>
  </tr>
  <tr>
    <td align="center">{lang_showing}</td>
  </tr>
</table>
<table border="0" align="center" width="80%">
  <tr>
  {next_matchs}
  </tr>
</table>
<table border="0" align="center" width="80%">
  <tr bgcolor="{th_bg}">
    <td>&nbsp;</td>
    <td>{lang_title}</td>
    <td>{lang_artist}</td>
    <td>{lang_year}</td>
    <td>{lang_genre}</td>
    <td>{lang_request}</td>
    <td>{lang_edit}</td>
    <td>{lang_view}</td>
    <td>{lang_download}</td>
  </tr>
<form name="addshow" action="{show_url}" method="post">
{rows}
  <tr bgcolor="{tr_color}">
    <td bgcolor="{th_bg}" align="center">
      <a href="javascript:check_all()"><img src="{check}" border="0" height="16" width="21" alt="{select_all}"></a>
    </td>
    <td><input type="submit" name="request" value="{lang_request_mult}"</td>
    <td><input type="submit" name="addshow" value="{lang_addshow}"></td>
  </tr>
</table>
</form>
<!-- END index -->

<!-- BEGIN row -->
  <tr bgcolor="{tr_color}">
    <td><input type="checkbox" name="songlist[]" value="{id}"></td>
    <td>{title}&nbsp;</td>
    <td>{artist}&nbsp;</td>
    <td>{year}&nbsp;</td>
    <td>{genre}&nbsp;</td>
    <td><a href="{request_link}">{lang_request}</a></td>
    <td><a href="{edit_link}">{lang_edit}</a></td>
    <td><a href="{view_link}">{lang_view}</a></td>
    <td><a href="{download_link}">{lang_download}</a></td>
  </tr>
<!-- END row -->

<!-- BEGIN footer -->
 <table width="80%" align="center">
  <tr>
   <td align="left">
    {requestlist_link}
   </td>
   <td align="right">
    <form action="{show_url}" method="post">
     <input type="hidden" name="sort" value="{sort}">
     <input type="hidden" name="order" value="{order}">
     <input type="hidden" name="filter" value="{filter}">
     <input type="hidden" name="start" value="{start}">
     <input type="submit" name="Show" value="{lang_show}">
    </form>
   </td>
   <td align="right">
    <form action="{import_url}" method="post">
     <input type="hidden" name="sort" value="{sort}">
     <input type="hidden" name="order" value="{order}">
     <input type="hidden" name="filter" value="{filter}">
     <input type="hidden" name="start" value="{start}">
     <input type="submit" name="Import" value="{lang_import}">
    </form>
   </td>
   <td align="right">
    <form action="{scan_url}" method="post">
     <input type="hidden" name="sort" value="{sort}">
     <input type="hidden" name="order" value="{order}">
     <input type="hidden" name="filter" value="{filter}">
     <input type="hidden" name="start" value="{start}">
     <input type="submit" name="Scan" value="{lang_scan}">
    </form>
   </td>
<!-- not used
   <td align="right">
    <form action="{export_url}" method="post">
     <input type="hidden" name="sort" value="{sort}">
     <input type="hidden" name="order" value="{order}">
     <input type="hidden" name="filter" value="{filter}">
     <input type="hidden" name="start" value="{start}">
     <input type="submit" name="Import" value="{lang_export}">
    </form>
   </td>
-->
  </tr>
 </table>
<!-- END footer -->
