Mercurial > hg > extraction-interface
comparison develop/index.php @ 12:e82ca7375e93
Integration with LocalGazetteerService (LGService), getting text from LGService and saving text to LGService. Adjust the control flow (controller).
| author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
|---|---|
| date | Mon, 16 Feb 2015 16:51:39 +0100 |
| parents | 54a235d43694 |
| children | ac77748bb813 |
comparison
equal
deleted
inserted
replaced
| 11:3d6fba07bfbd | 12:e82ca7375e93 |
|---|---|
| 1 | 1 |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <title></title> | 4 <title></title> |
| 5 <script src="../../js/jquery-1.10.2.min.js"></script> | 5 |
| 6 <!-- | |
| 7 <script src="../../js/jquery-1.10.2.min.js"></script> | |
| 8 <script src="../../js/taggingtext.js"></script> | |
| 9 --> | |
| 6 | 10 |
| 7 <!-- Bootstrap --> | 11 <!-- Bootstrap --> |
| 8 <!-- <link href="../../css/bootstrap.min.css" rel="stylesheet"> | 12 <!-- <link href="../../css/bootstrap.min.css" rel="stylesheet"> |
| 9 --> | 13 --> |
| 14 <!-- | |
| 10 <script src="../../js/bootstrap.min.js"></script> | 15 <script src="../../js/bootstrap.min.js"></script> |
| 16 --> | |
| 11 | 17 |
| 12 | 18 |
| 13 | |
| 14 <script src="../../js/taggingtext.js"></script> | |
| 15 </head> | 19 </head> |
| 16 <body> | 20 <body> |
| 17 <?php | 21 <?php |
| 18 header("Content-Type: text/html;charset=utf-8"); | 22 header("Content-Type: text/html;charset=utf-8"); |
| 19 | 23 |
| 20 // system configiration | 24 // system configiration |
| 21 include_once('config/Lib_mb_utf8.php'); | 25 include_once('config/Lib_mb_utf8.php'); |
| 22 include_once('config/config.php'); | 26 include_once('config/config.php'); |
| 27 ?> | |
| 23 | 28 |
| 29 <script src="<?php echo $system_root_url; ?>/js/jquery-1.10.2.min.js"></script> | |
| 30 <script src="<?php echo $system_root_url; ?>/js/bootstrap.min.js"></script> | |
| 31 <script src="<?php echo $system_root_url; ?>/js/taggingtext.js"></script> | |
| 32 | |
| 33 <?php | |
| 24 // require the general classes | 34 // require the general classes |
| 25 require("classes/loader.php"); | 35 require("classes/loader.php"); |
| 26 require("classes/basecontroller.php"); | 36 require("classes/basecontroller.php"); |
| 27 require("classes/basemodel.php"); | 37 require("classes/basemodel.php"); |
| 28 | 38 |
| 31 require("models/extractapp.php"); | 41 require("models/extractapp.php"); |
| 32 | 42 |
| 33 // require the controller classes | 43 // require the controller classes |
| 34 require("controllers/home.php"); | 44 require("controllers/home.php"); |
| 35 require("controllers/extractapp.php"); | 45 require("controllers/extractapp.php"); |
| 46 | |
| 47 /* | |
| 48 $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"}}'; | |
| 49 echo $output; | |
| 50 | |
| 51 $json = json_decode($output, true); | |
| 52 | |
| 53 echo "id="; | |
| 54 echo $json['file']['id']; | |
| 55 echo "<br>"; | |
| 56 */ | |
| 57 | |
| 58 | |
| 36 | 59 |
| 37 | 60 |
| 38 // create the controller and execute the action | 61 // create the controller and execute the action |
| 39 $loader = new Loader($_GET, $_POST); | 62 $loader = new Loader($_GET, $_POST); |
| 40 | 63 |
