Mercurial > hg > extraction-interface
comparison develop/views/Extractapp/editwordlist.php @ 6:63e08b98032f
rewrite extraction interface into PHP MVC architecture.
(Although js hasn't been rewritten into MVC, it's fitted into the current PHP MVC architecture.)
- The root of the new PHP MVC is at 'develop/'.
- extraction interface is called "Extractapp" with several action, eg TaggingText, EditWordlist, EditTaglist, ExportTable.
| author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
|---|---|
| date | Thu, 05 Feb 2015 16:07:53 +0100 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 5:cbbb7ef22394 | 6:63e08b98032f |
|---|---|
| 1 <?php | |
| 2 // --- initialize --- | |
| 3 $wordlistArray = $viewmodel['wordlistArray']; | |
| 4 ?> | |
| 5 | |
| 6 <html> | |
| 7 <head> | |
| 8 <title></title> | |
| 9 <style> | |
| 10 dynasty | |
| 11 { | |
| 12 color:red; | |
| 13 } | |
| 14 nianhao | |
| 15 { | |
| 16 color:blue; | |
| 17 } | |
| 18 name | |
| 19 { | |
| 20 color:orange; | |
| 21 } | |
| 22 #editable-area { | |
| 23 line-height:160%; | |
| 24 letter-spacing:1.5px; | |
| 25 font-size:21px; | |
| 26 } | |
| 27 </style> | |
| 28 </head> | |
| 29 <body> | |
| 30 | |
| 31 <table width="98%" border="1"> | |
| 32 <tr> | |
| 33 <td width="20%" valign="top"> | |
| 34 <?php | |
| 35 foreach ( $wordlistArray as $nameId => $nameValue ) { | |
| 36 echo " <a onclick=\"showListContent(".$nameId.")\" href=\"#\">".$nameValue."</a></br>"; | |
| 37 } | |
| 38 ?> | |
| 39 <form action="javascript:void(0);"> | |
| 40 <fieldset> | |
| 41 <legend>Add List:</legend> | |
| 42 List name: <input type="text" size="30" id="listNameText"><br> | |
| 43 <button onclick="addNewList()">Add</button> | |
| 44 </fieldset> | |
| 45 </form> | |
| 46 </td> | |
| 47 <td width="60%"> | |
| 48 <div id="editable-area"></div> | |
| 49 </td> | |
| 50 <td width="20%" valign="top" id="button-area"> </td> | |
| 51 </tr> | |
| 52 </table> | |
| 53 | |
| 54 </body> | |
| 55 </html> |
