diff --git a/yimian/www/acg.watch/index.php b/yimian/www/acg.watch/index.php index 98c85afc..2ff06cf9 100644 --- a/yimian/www/acg.watch/index.php +++ b/yimian/www/acg.watch/index.php @@ -3,21 +3,81 @@ include './functions.php'; $res = db__getData(db__connect(), 'video'); -?> +function getKeys($arr, $word){ + $arr_word = []; + foreach($arr as $i){ + if(!in_array($i[$word], $arr_word)){ + array_push($arr_word, $i[$word]); + } + } + return $arr_word; +}; + +$classes = getKeys($res, "class"); +?> + -ACG WATCH - + + ACG WATCH + + + -

+
+

ACG.WATCH

+

Watch ACG video ONLINE

+ +
+
+
+
+ +
'.$i['name'].'
'; -} + foreach($classes as $class){ + echo " +
+

".$class."

"; + foreach(getKeys($res, "series") as $i){ + echo " +
+ ".$i." +
    "; + foreach($res as $ii){ + if($ii["series"] == $i){ + echo " +
  • ".$ii["name"]."
  • "; + } + } + echo " +
+
"; + } + echo " +
"; + } ?> - +
+
+ +