diff develop/models/extractapp.php @ 15:1f98c92ebbfb

first version of UI layout. Very roughly, but works in the fixed sidebar, head line, popups and so on.
author Zoe Hong <zhong@mpiwg-berlin.mpg.de>
date Thu, 19 Feb 2015 18:11:11 +0100
parents ac77748bb813
children 82f8c6bd2b69
line wrap: on
line diff
--- a/develop/models/extractapp.php	Thu Feb 19 11:07:27 2015 +0100
+++ b/develop/models/extractapp.php	Thu Feb 19 18:11:11 2015 +0100
@@ -156,7 +156,8 @@
         $data['topiclistArray'] = $topiclistArray;
         $data['default_topic_id'] = $this->GetTopic();
         $data['topic_tag'] = $this->GetTopicTag($this->GetTopic());
-        
+        $data['topic_name'] = $this->GetTopicName($this->GetTopic());
+
         $data['info'] = array('file_id'=>$this->file_id, 'user_id'=>$this->user_id, 'branch_id'=>$this->branch_id, 'section_id'=>$this->section_id);
         $data['messages'] = $this->messages;
 
@@ -622,6 +623,13 @@
         return $tag;
 
     }
+    private function GetTopicName($topic_id) {
+        $result = $this->GetTopicByID($topic_id);
+        $row = mysql_fetch_assoc($result);
+        $name = $row['name'];
+        return $name;
+
+    }
 
     // ===========================