diff 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
line wrap: on
line diff
--- a/develop/index.php	Wed Feb 11 12:33:59 2015 +0100
+++ b/develop/index.php	Mon Feb 16 16:51:39 2015 +0100
@@ -2,16 +2,20 @@
 <html>
 <head>
 <title></title>
-<script src="../../js/jquery-1.10.2.min.js"></script>
+
+<!-- 
+<script src="../../js/jquery-1.10.2.min.js"></script> 
+<script src="../../js/taggingtext.js"></script>
+-->
 
 <!-- Bootstrap -->
 <!-- <link href="../../css/bootstrap.min.css" rel="stylesheet">
 -->
+<!-- 
 <script src="../../js/bootstrap.min.js"></script>
+-->
 
 
-
-<script src="../../js/taggingtext.js"></script>
 </head>
 <body>
 <?php
@@ -20,7 +24,13 @@
 // system configiration
 include_once('config/Lib_mb_utf8.php');
 include_once('config/config.php');
+?>
 
+<script src="<?php echo $system_root_url; ?>/js/jquery-1.10.2.min.js"></script>
+<script src="<?php echo $system_root_url; ?>/js/bootstrap.min.js"></script>
+<script src="<?php echo $system_root_url; ?>/js/taggingtext.js"></script>
+
+<?php
 // require the general classes
 require("classes/loader.php");
 require("classes/basecontroller.php");
@@ -34,6 +44,19 @@
 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);