Location: PHPKode > projects > Audio-Portal > templates/browse.php
headborder("<b>Search</b>");
echo "
<table align=\"center\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" class=\"tablec\"> 
 <tr> 
  <td valign=\"top\" align=\"center\">
   <form action=\"browse.php\" method=\"post\">
   <table align=\"center\" cellspacing=\"10\" cellpadding=\"0\" width=\"100%\">
    <tr> 
     <td align=\"right\" width=\"70%\"><input name=\"search\" type=\"text\" size=\"60\"></td>
     <td align=\"left\" width=\"30%\">
      <select name=\"typ\" style=\"width:120px;\">
       <option value=\"artist\">- Artist</option>
       <option value=\"album\">- Album</option>
       <option value=\"track\">- Track</option>
      </select>
     </td>
    </tr>
    <tr>
     <td align=\"center\" width=\"100%\" colspan=\"2\"><input class=\"button\" type=\"submit\" value=\"Submit!\"></td>
    </tr>
   </table>
   </form>
  </td>
 </tr>
</table>";
footborder();

headborder("<b>Browse ".$typar[$typ]."</b>");
echo "
<table align=\"center\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" class=\"tablec\"> 
 <tr> 
  <td valign=\"top\" align=\"center\">
   <table align=\"center\" cellspacing=\"5\" cellpadding=\"0\" width=\"100%\">
    <tr>
     <td align=\"center\">".$head."</td>
    </tr>
    <tr> 
     <td align=\"center\">".$browsemenu."</td>
    </tr>
    <tr>
     <td align=\"center\">";

if ($cnt>0) {

    if ($typ=='album') {
    echo "
      <table align=\"center\" cellspacing=\"5\" cellpadding=\"0\" width=\"100%\">
       <tr>
        <td style=\"width:40%;\" class=\"data2\" align=\"center\"><b>Album</b></td>
        <td style=\"width:33%;\" class=\"data2\" align=\"center\"><b>Artist</b></td>
        <td style=\"width:8%;\" class=\"data2\" align=\"center\"><b>Year</b></td>
        <td style=\"width:5%;\" class=\"data2\" align=\"center\"><b>Tracks</b></td>
        <td style=\"width:14%;\" class=\"data2\" align=\"center\"><b>Codec/Bitrate</b></td>
       </tr>
       <tr>
        <td style=\"width:100%;\" colspan=\"5\"><hr></td>
       </tr>".$browsebit;
    echo "
       <tr>
        <td style=\"width:100%;\" colspan=\"5\"><hr></td>
       </tr>";

       }
    elseif ($typ=='artist') {
    echo "
      <table align=\"center\" cellspacing=\"5\" cellpadding=\"0\" width=\"70%\">
       <tr>
        <td style=\"width:56%;\" class=\"data2\" align=\"center\"><b>Artist</b></td>
        <td style=\"width:22%;\" class=\"data2\" align=\"center\"><b>Nr Albums</b></td>
        <td style=\"width:22%;\" class=\"data2\" align=\"center\"><b>Nr Tracks</b></td>
       </tr>
       <tr>
        <td style=\"width:100%;\" colspan=\"3\"><hr></td>
       </tr>".$browsebit;
    echo "
       <tr>
        <td style=\"width:100%;\" colspan=\"3\"><hr></td>
       </tr>";
       }
    elseif ($typ=='genre') {
    echo "
      <table align=\"center\" cellspacing=\"5\" cellpadding=\"0\" width=\"70%\">
       <tr>
        <td style=\"width:60%;\" class=\"data2\" align=\"center\"><b>Genre</b></td>
        <td style=\"width:20%;\" class=\"data2\" align=\"center\"><b>Nr. Albums</b></td>
        <td style=\"width:20%;\" class=\"data2\" align=\"center\"><b>Nr. Tracks</b></td>
       </tr>
       <tr>
        <td style=\"width:100%;\" colspan=\"3\"><hr></td>
       </tr>".$browsebit;
    echo "
       <tr>
        <td style=\"width:100%;\" colspan=\"3\"><hr></td>
       </tr>";
       };

echo "
      </table>".$browsemenu2;
    }
else {
    echo "
      <table align=\"center\" cellspacing=\"80\" cellpadding=\"0\" style=\"width:100%;\">
       <tr>
        <td style=\"width:100%;\" class=\"data1\" align=\"center\">Nothing found!</td>
       </tr>
      </table>";
    };

echo "<br /><br />
     </td>
    </tr>
   </table>
  </td>
 </tr>
</table>";
footborder();
Return current item: Audio-Portal