Skip to content

Commit

Permalink
index: switch from table to div
Browse files Browse the repository at this point in the history
  • Loading branch information
ofaurax committed Apr 29, 2024
1 parent a2a34ad commit 63a40da
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ function tri_par_completion($a, $b) {return tri_ligne($a, $b, 'completion');}
}
//print_r($pgm);

echo '<table>';
echo '<div id="partlist">';

foreach($data as $l)
{
Expand All @@ -280,18 +280,20 @@ function tri_par_completion($a, $b) {return tri_ligne($a, $b, 'completion');}
continue;
}

echo '<tr>';
echo '<div style="max-width:300px">';
for($i = 0; $i < sizeof($l); $i++)
{
$c = $l[$i];
echo '<td>';
echo $c;
echo '<div>';
if($i==0)
{
echo '<h2>'.$c.'</h2>';
echo ' [<a href="http://www.youtube.com/results?search_query='.urlencode($c.', '.$l[$i+1].', '.$l[$i+2]).'">youtube</a>]';
echo ' [<a href="http://musicainfo.net/quiksrch.php?vol='.urlencode($c).'">musicainfo</a>]';
}
echo '</td>';
else
echo $c;
echo '</div>';
//if(!$lv)
{
if($i>=3) break;
Expand All @@ -315,17 +317,13 @@ function tri_par_completion($a, $b) {return tri_ligne($a, $b, 'completion');}
*/
if($token_ok && is_dir($arv_config['docs_dir'].'/'.$l[3]))
{
echo '<td><a href="list.php?ref='.$l[3].'&token='.$_GET['token'].'">Documents</a></td>';
echo '<div><a href="list.php?ref='.$l[3].'&token='.$_GET['token'].'">Documents</a></div>';
}
else
{
echo '<td></td>';
}
echo '</tr>';
echo '</div>';

if($lv)
{
echo '</table>';
echo '</div>';
//var_dump($l);
echo '<ul>';
$oblig_compt = 0;
Expand All @@ -350,11 +348,11 @@ function tri_par_completion($a, $b) {return tri_ligne($a, $b, 'completion');}
}
echo '</ul>';

echo '<table>';
echo '<div>';
}

}
echo '</table>';
echo '</div>';

// Listing programmes
$tmpd = opendir($arv_config['pgm_dir']);
Expand Down

0 comments on commit 63a40da

Please sign in to comment.