Mercurial > hg > extraction-interface
diff develop/views/Extractapp/configtagsintopic.php @ 23:a879f6b9d166
modification for select-move-taglist: tags don't appear to be duplicated in other topics.
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Wed, 25 Feb 2015 10:59:45 +0100 |
parents | c805470cefee |
children | b55f5d3564c4 |
line wrap: on
line diff
--- a/develop/views/Extractapp/configtagsintopic.php Tue Feb 24 17:29:56 2015 +0100 +++ b/develop/views/Extractapp/configtagsintopic.php Wed Feb 25 10:59:45 2015 +0100 @@ -85,10 +85,8 @@ </script> -<div class="container-fluid"> - <div class="row"> - <div class="col-xs-12 col-sm-12 col-md-8 col-md-offset-2 col-lg-6 col-lg-offset-3"> - +<div class="container-fluid" style="margin-left:30%;"> + <form name="config" autocomplete='off' action="Javascript:checkTopic(document.config.InTopic)"> <h3>Topic: <?php echo $topic_name;?> </h3> @@ -105,7 +103,7 @@ <td> <select name="InTopic" size="<?php echo count($taglistArray)*0.8; ?>" class="form-control" multiple> <?php - foreach ($taglistArray as $taglistValue) { + foreach ($tag_intopic as $taglistValue) { if ($taglistValue['topic_id'] == $topic) { echo "<option value='".$taglistValue['id']."'>".$taglistValue['name']." (".$taglistValue['tag'].") "."</option>"; } @@ -121,7 +119,7 @@ <td > <select name="Others" size="<?php echo count($taglistArray)*0.8; ?>" class="form-control" multiple> <?php - foreach ($taglistArray as $taglistValue) { + foreach ($tag_others as $taglistValue) { if ($taglistValue['topic_id'] != $topic) { echo "<option value='".$taglistValue['id']."'>".$taglistValue['name']." (".$taglistValue['tag'].") "."</option>"; } @@ -137,49 +135,9 @@ </tr> </tbody> </table> - </form> - </div> - </div> </div> - <!-- - <form name="config" autocomplete='off' action="Javascript:checkTopic(this)"> - <h3>Topic: <?php echo $topic_name;?> </h3> - <div> Select/Unselect the following tags for the topic. </div> - <input type="submit" value="Submit"> - - <table style="" border="1"> - <thead> - <tr> - <td>Name</td> - <td>Tag</td> - <td>Select/Unselect</td> - </tr> - </thead> - <tbody> - <?php - // list the tags with topic - foreach ($taglistArray as $taglistValue) { - echo "<tr>"; - echo "<td>".$taglistValue['name']."</td>"; - echo "<td>".$taglistValue['tag']."</td>"; - // checkbox for topic - if ($taglistValue['topic_id'] == $topic) { - echo "<td> <input type='checkbox' name='".$taglistValue['id']."' checked='true'/> </td>"; - } else { - echo "<td> <input type='checkbox' name='".$taglistValue['id']."'/> </td>"; - } - echo "</tr>"; - } - ?> - </tbody> - </table> - - </form> - --> - - </body> </html>