Location: PHPKode > projects > Audio-Portal > templates/index.php
headborder("<b>The last 5 added Albums</b>");
echo "
<table align=\"center\" cellspacing=\"1\" cellpadding=\"0\" width=\"100%\">
 <tr>
  ".$last_entry."
 </tr>
</table>";
footborder();

headborder("<b>5 random Albums</b>");
echo "
<table align=\"center\" cellspacing=\"1\" cellpadding=\"0\" width=\"100%\">
 <tr>
  ".$rand_entry."
 </tr>
</table>";
footborder();

headborder("<b>Statistics</b>");
echo "
<table align=\"center\" cellspacing=\"10\" cellpadding=\"0\" width=\"100%\" class=\"tablec\"> 
 <tr> 
  <td valign=\"top\" align=\"center\">
   <table align=\"center\" cellspacing=\"5\" cellpadding=\"0\" width=\"90%\">
    <tr>
     <td class=\"data3\" align=\"right\"><b>Albums : </b></td>
     <td class=\"data1\" align=\"left\">".$stat['nr_albums']."&nbsp;&nbsp;</td>
     <td class=\"data3\" align=\"right\"><b>Artists : </b></td>
     <td class=\"data1\" align=\"left\">".$stat['nr_artists']."&nbsp;&nbsp;</td>
     <td class=\"data3\" align=\"right\"><b>Songs : </b></td>
     <td class=\"data1\" align=\"left\">".$stat['nr_tracks']."&nbsp;&nbsp;</td>
     <td class=\"data3\" align=\"right\"><b>Catalog Size : </b></td>
     <td class=\"data1\" align=\"left\">".size_readable($stat['catalog_size'])."</td>
    </tr>
   </table>
  </td>
 </tr>
</table>
<table align=\"center\" cellspacing=\"10\" cellpadding=\"0\" width=\"100%\" class=\"tabled\"> 
 <tr> 
  <td valign=\"top\" align=\"center\" width=\"80%\">
   <table align=\"center\" cellspacing=\"10\" cellpadding=\"0\" width=\"80%\">
    <tr>
     <td style=\"width:100%;\" align=\"center\" class=\"data1\">
       Playtime over all files :
     </td>
    </tr>
   </table>
   <table align=\"center\" cellspacing=\"10\" cellpadding=\"0\" width=\"80%\">
    <tr>";
if (($tim-$yr)>0) echo "
    <td class=\"data3\" align=\"right\"><b>Years : </b></td>
    <td class=\"data1\" align=\"left\">".floor($tim/$yr)."&nbsp;&nbsp;</td>";
if ((gmdate('m',$tim)-1)>0) echo "
    <td class=\"data3\" align=\"right\"><b>Months : </b></td>
    <td class=\"data1\" align=\"left\">".(gmdate('m',$tim)-1)."&nbsp;&nbsp;</td>";
if ((gmdate('d',$tim)-1)>0) echo "
    <td class=\"data3\" align=\"right\"><b>Days : </b></td>
    <td class=\"data1\" align=\"left\">".(gmdate('d',$tim)-1)."&nbsp;&nbsp;</td>";
echo "
    <td class=\"data3\" align=\"right\"><b>Hours : </b></td>
    <td class=\"data1\" align=\"left\">".gmdate('H',$tim)."&nbsp;&nbsp;</td>
    <td class=\"data3\" align=\"right\"><b>Min : </b></td>
    <td class=\"data1\" align=\"left\">".gmdate('i',$tim)."&nbsp;&nbsp;</td>
    <td class=\"data3\" align=\"right\"><b>Sec : </b></td>
    <td class=\"data1\" align=\"left\">".gmdate('s',$tim)."&nbsp;&nbsp;</td>
    </tr>
   </table>
  </td>
 </tr>
</table>";
footborder();
Return current item: Audio-Portal