SHOW:
|
|
- or go back to the newest paste.
1 | <?php | |
2 | $all = array(); | |
3 | foreach ($NewCategories as $Cat) { | |
4 | $all[] = $Cat['id']; | |
5 | } | |
6 | ||
7 | $presets = array( | |
8 | - | 'Film' => json_encode(array(90,91,92)), |
8 | + | 'Sæt 1' => json_encode(array(90,91,92)), |
9 | - | 'Serier' => json_encode(array(85)), |
9 | + | 'Sæt 2' => json_encode(array(85,86,87)), |
10 | - | 'Andet' => json_encode(array(78)), |
10 | + | 'Sæt 3' => json_encode(array(78,79,80)), |
11 | 'Alle' => json_encode($all) | |
12 | ); | |
13 | ?> | |
14 | <table> | |
15 | <tr> | |
16 | <?php | |
17 | foreach($presets as $name => $cats) { | |
18 | echo "<td>"; | |
19 | echo "<a href='#' onclick=\"catPresets('". $cats ."');return false;\"><div width='100%' height='100%' style='text-align: center;'>$name</div></a>"; | |
20 | echo "</td>"; | |
21 | } | |
22 | ?> | |
23 | </tr> | |
24 | </table> |