Mercurial > hg > extraction-interface
view develop/views/Extractapp/editwordlist.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 | 63e08b98032f |
children |
line wrap: on
line source
<?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 " <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"> </td> </tr> </table> </body> </html>