break; case 4: //reviewng $row_data .= 'class="red">'; break; case 5: //publishing $row_data .= 'class="green">'; break; case 6: //live $row_data .= 'class="green">'; break; } $row_data .= ' ' . getStage_name($my_articles[$i]->stageID); $row_data .= '</td>'; $row_data .= '<td class="black">'; $row_data .= ' ' . friendlydate2($my_articles[$i]->created); $row_data .= '</td>'; $row_data .= '<td class="brown">'; $row_data .= ' ' . friendlydate2($my_articles[$i]->dateline); $row_data .= '</td>'; $row_data .= '</tr">'; } } $numitems = $i; // ok baby, let start compiling the page now..go! go! go! {mh} $tpl = new template_parser('../templates/archive_manager.tpl.php'); $tags = array('{HEADING}' => $heading, '{ARTICLE_TITLE}' => 'Article Title', '{CATEGORY}' => 'Category', '{PUBLISHED}' => 'Published', '{AUTHOR}' => 'Author', '{DATE_CREATED}' => 'Date Created', '{DATE_PUBLISHED}' => 'Date Published', '{NUMITEMS}' => '' . $numitems, '{TABLE_DATA}' => $row_data, '{STAGEID}' => 'Stage', '{PAGELINK}' => $pagelink->pagelinks, '{MESSAGE}' => $message, '{SITENAME}' => 'CMS Adminss', '{HEADER}' => '', '{TOPNAV}' => 'top_menu.php', '{FOOTER}' => 'footer.php'); $tpl->parse_template($tags); print $tpl->display();
$row_data .= '<td class="blue2">'; $category_name = getCategory_name($publisher_articles_reports[$i]->articleID); $row_data .= $category_name; $row_data .= '</td>'; $row_data .= '<td>'; $category_name = getFrontpage_type($publisher_articles_reports[$i]->articleID); $row_data .= ' ' . $category_name; $row_data .= '</td>'; $row_data .= '<td>'; $row_data .= getArticle_authors_info($publisher_articles_reports[$i]->articleID, 'fullname'); $row_data .= '</td>'; $row_data .= '<td>'; $row_data .= getUser_info($publisher_articles_reports[$i]->edited_by, 'fullname'); $row_data .= '</td>'; $row_data .= '<td class="brown">'; $row_data .= ' ' . friendlydate2($publisher_articles_reports[$i]->created); $row_data .= '</td>'; $row_data .= '<td>'; $date = $publisher_articles_reports[$i]->modified ? friendlyDate2($publisher_articles_reports[$i]->modified) : '0'; $row_data .= $date; $row_data .= '</td>'; $row_data .= '<td>'; $row_data .= $publisher_articles_reports[$i]->status; $row_data .= '</td>'; $row_data .= '</tr">'; } } $dateprepared = time(); $dateprepared = friendlyDate($dateprepared); $rpt_title = "Lists of published articles for the month of {$month} {$year}."; // Generate the page now