view views/Extractapp/EditWordlist.php @ 77:97c1e5102a22 extractapp

New: export table for a file from LGService
author Zoe Hong <zhong@mpiwg-berlin.mpg.de>
date Thu, 16 Apr 2015 14:53:22 +0200
parents 886f43b26ee2
children f1f849d31272
line wrap: on
line source

<?php
/*! \file 
* This is the view for EditWordlist.
* It shows the wordlist and allows user to view or edit it.
* User can create new wordlist here.
*/

// --- 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>