Mercurial > hg > extraction-interface
view develop/index.php @ 14:ac77748bb813
- Load regex files based on current topic. Only show the regex in this topic.
To do that, it needs to lookup a table called 'topic_regex_relation' which has the relation of topic and regex filename in filesystem.
- Extractapp UI with some layout modification: button, popup window, responsive (by bootstrap now). It was just for quick prototyping.
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Thu, 19 Feb 2015 11:07:27 +0100 |
parents | e82ca7375e93 |
children | a879f6b9d166 |
line wrap: on
line source
<?php header("Content-Type: text/html;charset=utf-8"); // system configiration include_once('config/Lib_mb_utf8.php'); include_once('config/config.php'); // require the general classes require("classes/loader.php"); require("classes/basecontroller.php"); require("classes/basemodel.php"); // require the model classes require("models/home.php"); require("models/extractapp.php"); // require the controller classes require("controllers/home.php"); require("controllers/extractapp.php"); /* $output = '{"file":{"id":5,"creationDate":"11/02/2015-15:52","text":"Jorge 青城續修縣志第五册 藝文志 上 山左文人遞興一盛於邊廷實再盛於李滄 HHHH","creatorId":12,"fileName":"66666_3_5_2015.02.11_03.52.42.747.txt","info":"id=5, creation date=Wed Feb 11 15:52:42 CET 2015, last change=Wed Feb 11 15:52:42 CET 2015"},"branch":{"id":3,"creationDate":"11/02/2015-15:42","currentLastFileId":5,"sectionId":66666,"creatorId":12,"label":"qwe","info":"id=3, creation date=Wed Feb 11 15:42:36 CET 2015, last change=Wed Feb 11 15:52:42 CET 2015"}}'; echo $output; $json = json_decode($output, true); echo "id="; echo $json['file']['id']; echo "<br>"; */ // create the controller and execute the action $loader = new Loader($_GET, $_POST); $controller = $loader->CreateController(); $controller->ExecuteAction(); ?>