$row_data .= '<td>'; $row_data .= '<input type="checkbox" name="checkitem[]" id="checkitem[]" value="' . $article_versions[$i]->articleID . '">'; $row_data .= '</td>'; $row_data .= '<td>'; $row_data .= '<a href="' . VIEW_ARTICLE_URL . $live_articles[$i]->article_versionID . '">'; $row_data .= '<input type="hidden" value = "' . $live_articles[$i]->article_versionID . '">'; $row_data .= $live_articles[$i]->title; $row_data .= '</a>'; $row_data .= '</td>'; $row_data .= '<td align="center">'; $author_name = getArticle_authors($live_articles[$i]->articleID); $row_data .= $author_name; $row_data .= '</td>'; $row_data .= '<td align="center">'; $category_name = getCategory_name($live_articles[$i]->articleID); $row_data .= $category_name; $row_data .= '</td>'; $row_data .= '<td align="center">'; $row_data .= getStage_name($live_articles[$i]->stageID); $row_data .= '</td>'; $row_data .= '<td>'; $row_data .= friendlyDate($live_articles[$i]->created); $row_data .= '</td>'; $row_data .= '</tr>'; } } // start compiling the page.. $tpl = new template_parser('../templates/display_article_versions.tpl.php'); $tags = array('{ARTICLE_TITLE}' => 'Article Title', '{CATEGORY}' => 'Category', '{AUTHOR}' => 'Author', '{DATE_CREATED}' => 'Date Created', '{STAGEID}' => ' Stage ', '{TABLE_DATA}' => $row_data, '{MESSAGE}' => $message, '{SITENAME}' => 'CMS Adminss', '{HEADER}' => ' ', '{TOPNAV}' => 'Place the fixed button here like #. of users - online, log-out btn can also place here..', '{SIDENAV}' => 'user_menu2.php', '{CONTENT}' => $row_data, '{FOOTER}' => 'footer.php'); $tpl->parse_template($tags); print $tpl->display();
$row_data .= 'class="blue">'; 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);
$row_data .= '</a>'; $row_data .= '</td>'; $row_data .= '<td class="viola">'; $category_name = getCategory_name($article_versions[$i]->articleID); $row_data .= ' ' . $category_name; $row_data .= '</td>'; $row_data .= '<td class="cyan">'; $author_name = getArticle_authors_info($article_versions[$i]->articleID, 'fullname'); $row_data .= ' ' . $author_name; $row_data .= '</td>'; $row_data .= '<td class="blue2">'; $category_name = getFrontpage_type($article_versions[$i]->articleID); $row_data .= ' ' . $category_name; $row_data .= '</td>'; $row_data .= '<td class="green">'; $row_data .= ' ' . getStage_name($article_versions[$i]->stageID); $row_data .= '</td>'; switch ($_SESSION['stageID']) { case 2: case 3: case 4: $row_data .= '<td '; $status = $article_versions[$i]->status; switch ($status) { case 'revise': $row_data .= 'class="blue">'; break; case 'rejected': $row_data .= 'class="red">'; break; case 'approved':