diff --git a/includes/footer.inc.php b/includes/footer.inc.php index 66a9e00..5f531cf 100644 --- a/includes/footer.inc.php +++ b/includes/footer.inc.php @@ -1,6 +1,4 @@

\ No newline at end of file diff --git a/toc.php b/toc.php index 2e46f85..d6a86a2 100644 --- a/toc.php +++ b/toc.php @@ -30,18 +30,19 @@ OL {list-style:none}
  • Front cover
  • Introduction
  • - $chapter) { - echo "
  • $chapter_num

    $chapter

    \n
      \n"; + echo "
    1. $chapter_num

      ".htmlentities($chapter)."

      \n
        \n"; foreach($sections as $section_num => $section) { $section_chapter = explode("." , $section_num)[0]; if($section_chapter == $chapter_num) { - echo "
      1. $section_num

        $section

        \n
          \n"; + echo "
        1. $section_num

          ".htmlentities($section)."

          \n
            \n"; foreach($items as $item_num => $item) { $item_ar = explode("." , $item_num); $item_section = $item_ar[0] . "." . $item_ar[1]; if($item_section == $section_num) { - echo "
          1. $item_num $item
          2. \n"; + echo "
          3. $item_num ".htmlentities($item)."
          4. \n"; } } echo "
          \n
        2. \n";