<!-- 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">{lang_showing}</td>
  </tr>
</table>
<center>
<table border="0" align="center" width="80%">
  <tr>
  {next_matchs}
  </tr>
</table>
</center>
<table border="0" align="center" width="80%">
  <tr>
    <td bgcolor="{th_bg}">&nbsp;</td>
    <td{song_title_color}>{lang_title}</td>
    <td{song_artist_color}>{lang_artist}</td>
    <td{song_year_color}>{lang_year}</td>
    <td{song_genre_color}>{lang_genre}</td>
    <td bgcolor="{th_bg}">{lang_request}</td>
    <td bgcolor="{th_bg}">{lang_edit}</td>
    <td bgcolor="{th_bg}">{lang_view}</td>
    <td bgcolor="{th_bg}">{lang_download}</td>
  </tr>
<form name="addshow" action="{show_url}" method="post">
{rows}
  <tr bgcolor="{th_bg}">
    <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 colspan="8">
     <input type="submit" name="request" value="{lang_request_mult}">&nbsp;
     <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="submit" name="Show" value="{lang_show}">
    </form>
   </td>
   <td align="right">
    <form action="{import_url}" method="post">
     <input type="submit" name="Import" value="{lang_import}">
    </form>
   </td>
   <td align="right">
    <form action="{scan_url}" method="post">
     <input type="submit" name="Scan" value="{lang_scan}">
    </form>
   </td>
  </tr>
 </table>
<!-- END footer -->
