First prototype
diff --git a/inc/views.php b/inc/views.php
new file mode 100644
index 0000000..f1683e3
--- /dev/null
+++ b/inc/views.php
@@ -0,0 +1,26 @@
+<?php
+class views {
+ const VIEW_L9N_OLD = 0;
+ const VIEW_L9N_NEW = 1;
+ const VIEW_L9S = 2;
+
+ public static $views = [self::VIEW_L9N_OLD, self::VIEW_L9N_NEW, self::VIEW_L9S];
+ public static $viewsNames = [
+ self::VIEW_L9N_OLD => "VIEW_L9N_OLD",
+ self::VIEW_L9N_NEW => "VIEW_L9N_NEW",
+ self::VIEW_L9S => "VIEW_L9S"
+ ];
+ public static $viewsInclude = [
+ self::VIEW_L9N_OLD => "l9n.php",
+ self::VIEW_L9N_NEW => "l9n.php",
+ self::VIEW_L9S => "l9s.php"
+ ];
+
+ public static function renderPage($view) {
+ if (!in_array($view, self::$views)) return;
+
+ $gtfs = new gtfs();
+
+ require_once(__DIR__."/../views/".self::$viewsInclude[$view]);
+ }
+}