Mercurial > hg > extraction-interface
comparison views/Extractapp/EditTaglist.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 |
comparison
equal
deleted
inserted
replaced
76:c49192885290 | 77:97c1e5102a22 |
---|---|
1 <?php | 1 <?php |
2 /*! \file | |
3 * This is the view for EditTaglist. | |
4 * It shows the detail of taglist in the current topic in a new window. | |
5 * User can edit values for each tag except the topic_tag. | |
6 */ | |
7 | |
8 | |
2 // --- initialize --- | 9 // --- initialize --- |
3 $taglistArray = $viewmodel['taglistArray']; | 10 $taglistArray = $viewmodel['taglistArray']; |
4 $topic_id = $viewmodel['topic_id']; | 11 $topic_id = $viewmodel['topic_id']; |
5 $largestId = $viewmodel['largest_id']; | 12 $largestId = $viewmodel['largest_id']; |
6 | 13 |
29 | 36 |
30 // var largestId = 0; | 37 // var largestId = 0; |
31 var largestId = JSON.parse('<?php echo json_encode($largestId) ?>'); | 38 var largestId = JSON.parse('<?php echo json_encode($largestId) ?>'); |
32 var topic_tag_id = JSON.parse('<?php echo json_encode($topic_tag_id) ?>'); | 39 var topic_tag_id = JSON.parse('<?php echo json_encode($topic_tag_id) ?>'); |
33 | 40 |
34 function addTag( ) { | 41 function addTag() { |
42 | |
35 largestId++; | 43 largestId++; |
36 var row = tableMain.insertBefore(document.createElement("tr"), document.getElementById("trAddTag") ); | 44 var row = tableMain.insertBefore(document.createElement("tr"), document.getElementById("trAddTag") ); |
37 row.setAttribute("height","50"); | 45 row.setAttribute("height","50"); |
38 row.id = "tr"+largestId; | 46 row.id = "tr"+largestId; |
39 | 47 |