Commit a7ec527b authored by Francesco Iannuzzelli's avatar Francesco Iannuzzelli

Show topic in path

parent 6bdb4c34
......@@ -42,7 +42,7 @@ $u->id = ($_GET['u']=="all")? 0 : $id_user;
$num = $u->Articles( $row );
$table_headers = array('title','Images Attached','Documents Attached','Publish Location','Created By','Created Date','Last Modified By',' Last Modified Date',' Status');
$table_content = array('{LinkTitle("article.php?w=articles&id=$row[id_article]&p='.$current_page.'&u='.$_GET['u'].'",$row[headline])}','{ArtStatus($row[id_image])}','{ArtStatus($row[doc_attached])}','{PathToSubtopic($row[id_topic], $row[id_subtopic])}','$row[author]',
$table_content = array('{LinkTitle("article.php?w=articles&id=$row[id_article]&p='.$current_page.'&u='.$_GET['u'].'",$row[headline])}','{ArtStatus($row[id_image])}','{ArtStatus($row[doc_attached])}','{PathToSubtopic($row[id_topic], $row[id_subtopic], 0, 1)}','$row[author]',
'{FormatDate($row[written_ts])}','$row[last_updated_by]','{FormatDate($row[last_updated_on])}','$row[status]');
echo $hh->ShowTable($row, $table_headers, $table_content, $num);
......
......@@ -2769,12 +2769,15 @@ class HHFunctions extends HtmlHelper
return $path;
}
public function PathToSubtopic($id_topic, $id_subtopic, $max_length=0)
public function PathToSubtopic($id_topic, $id_subtopic, $max_length=0, $show_topic=0)
{
$path = "";
if ($id_subtopic>0)
{
$this->TopicLoad($id_topic);
if($show_topic==1) {
$path = "<b>{$this->topic->name}</b><br>";
}
$parents = array();
$this->topic->SubtopicParents($id_subtopic, $parents);
$parents = array_reverse($parents);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment