Mercurial > hg > extraction-interface
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 14:ac77748bb813 | 15:1f98c92ebbfb |
|---|---|
| 154 $data['wordlistArray'] = $wordlistArray; | 154 $data['wordlistArray'] = $wordlistArray; |
| 155 $data['section_id'] = $section_id; | 155 $data['section_id'] = $section_id; |
| 156 $data['topiclistArray'] = $topiclistArray; | 156 $data['topiclistArray'] = $topiclistArray; |
| 157 $data['default_topic_id'] = $this->GetTopic(); | 157 $data['default_topic_id'] = $this->GetTopic(); |
| 158 $data['topic_tag'] = $this->GetTopicTag($this->GetTopic()); | 158 $data['topic_tag'] = $this->GetTopicTag($this->GetTopic()); |
| 159 | 159 $data['topic_name'] = $this->GetTopicName($this->GetTopic()); |
| 160 | |
| 160 $data['info'] = array('file_id'=>$this->file_id, 'user_id'=>$this->user_id, 'branch_id'=>$this->branch_id, 'section_id'=>$this->section_id); | 161 $data['info'] = array('file_id'=>$this->file_id, 'user_id'=>$this->user_id, 'branch_id'=>$this->branch_id, 'section_id'=>$this->section_id); |
| 161 $data['messages'] = $this->messages; | 162 $data['messages'] = $this->messages; |
| 162 | 163 |
| 163 return $data; | 164 return $data; |
| 164 | 165 |
| 620 $row = mysql_fetch_assoc($result); | 621 $row = mysql_fetch_assoc($result); |
| 621 $tag = $row['tag']; | 622 $tag = $row['tag']; |
| 622 return $tag; | 623 return $tag; |
| 623 | 624 |
| 624 } | 625 } |
| 626 private function GetTopicName($topic_id) { | |
| 627 $result = $this->GetTopicByID($topic_id); | |
| 628 $row = mysql_fetch_assoc($result); | |
| 629 $name = $row['name']; | |
| 630 return $name; | |
| 631 | |
| 632 } | |
| 625 | 633 |
| 626 // =========================== | 634 // =========================== |
| 627 | 635 |
| 628 // === for manage wordlist === | 636 // === for manage wordlist === |
| 629 public function EditWordlist() { | 637 public function EditWordlist() { |
