diff develop/views/Extractapp/EditWordlist.php @ 36:e078e1500cc2 extractapp

config for localgazetteers-dev
author Zoe Hong <zhong@mpiwg-berlin.mpg.de>
date Fri, 06 Mar 2015 14:13:18 +0100
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/develop/views/Extractapp/EditWordlist.php	Fri Mar 06 14:13:18 2015 +0100
@@ -0,0 +1,55 @@
+<?php
+// --- initialize ---
+$wordlistArray = $viewmodel['wordlistArray'];
+?>
+
+<html>
+<head>
+<title></title>
+<style>
+dynasty
+{
+	color:red;
+}
+nianhao
+{
+	color:blue;
+}
+name
+{
+	color:orange;
+}
+#editable-area {
+	line-height:160%;
+	letter-spacing:1.5px;
+	font-size:21px;
+}
+</style>
+</head>
+<body>
+
+<table width="98%" border="1">
+	<tr>
+		<td width="20%" valign="top">
+			<?php 
+			foreach ( $wordlistArray as $nameId => $nameValue ) {
+				echo "&nbsp;&nbsp;<a onclick=\"showListContent(".$nameId.")\" href=\"#\">".$nameValue."</a></br>";
+			}
+			?>
+			<form action="javascript:void(0);">				
+				<fieldset>
+					<legend>Add List:</legend>
+					List name: <input type="text" size="30" id="listNameText"><br>
+					<button onclick="addNewList()">Add</button>
+				</fieldset>
+			</form>
+		</td>
+		<td width="60%">
+			<div id="editable-area"></div>
+		</td>
+		<td width="20%" valign="top" id="button-area">&nbsp;</td>
+	</tr>
+</table>
+
+</body>
+</html>