Пример #1
0
 $row_data .= '<tr class="tdhover" id= "tdata" bgcolor = "' . $bgcolor . '">';
 $row_data .= '<td>';
 $row_data .= $i + 1;
 $row_data .= '</td>';
 $row_data .= '<td>';
 $row_data .= '<a href="' . VIEW_ARTICLE_URL . $publisher_articles_reports[$i]->articleID . '">';
 $title = getArticleTitle($publisher_articles_reports[$i]->articleID);
 $row_data .= '&nbsp;' . $title;
 $row_data .= '</a>';
 $row_data .= '</td>';
 $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 .= '&nbsp;' . $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 .= '&nbsp;' . 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>';
Пример #2
0
while ($row = $db->fetcharray()) {
    $user_stage[] = $row;
}
$db->freeresult();
// continue here..my bitok is hungry :( kalooy sad...
// the user has the right to put the article on frontpage regardless of the position..
foreach ($user_stage as $key => $stage) {
    if ($stage->stageID == 3 || $stage->stageID == 2) {
        $xxx = true;
        break;
    }
}
//if ( strcasecmp( $usertype, 'news editor' ) == 0 ) {
if ($xxx) {
    // Lets dtermine where the article is part on the frontpage
    $current_frontpage_type = getFrontpage_type($_SESSION['articleID']);
    //echo $current_frontpage_type;
    // populate the frontpage tpye
    foreach ($frontpage as $field => $value) {
        // select dah current frontpage type if it exists..
        if ($value->frontpage_section == $current_frontpage_type) {
            $optfrontpage .= '<option value="' . $value->frontpage_sectionID . '" selected >';
            $optfrontpage .= $value->frontpage_section;
            $optfrontpage .= '</option>';
        } else {
            if ($value->frontpage_section == 'Regular News') {
                $optfrontpage .= '<option value="' . $value->frontpage_sectionID . '" selected >';
                $optfrontpage .= $value->frontpage_section;
                $optfrontpage .= '</option>';
            } else {
                $optfrontpage .= '<option value="' . $value->frontpage_sectionID . '"  >';
Пример #3
0
        $row_data .= '<td>';
        $row_data .= $i + 1;
        $row_data .= '</td>';
        $row_data .= '<td class="blue">';
        $row_data .= '&nbsp;' . $article_versions[$i]->title;
        $row_data .= '</td>';
        $row_data .= '<td class="viola">';
        $category_name = getCategory_name($article_versions[$i]->articleID);
        $row_data .= '&nbsp;' . $category_name;
        $row_data .= '</td>';
        $row_data .= '<td class="cyan">';
        $author_name = getArticle_authors($article_versions[$i]->articleID);
        $row_data .= '&nbsp;' . $author_name;
        $row_data .= '</td>';
        $row_data .= '<td class="blue2">';
        $category_name = getFrontpage_type($article_versions[$i]->articleID);
        $row_data .= '&nbsp;' . $category_name;
        $row_data .= '</td>';
        $row_data .= '<td class="green">';
        $row_data .= '&nbsp;' . getstage_name($article_versions[$i]->stageID);
        $row_data .= '</td>';
        $row_data .= '<td class="brown">';
        $row_data .= '&nbsp;' . friendlyDate2($article_versions[$i]->created);
        $row_data .= '</td>';
        $row_data .= '<td class="black">';
        $date = $article_versions[$i]->dateline ? friendlyDate2($article_versions[$i]->dateline) : '0';
        $row_data .= '&nbsp;' . $date;
        $row_data .= '</td>';
        $row_data .= '</tr>';
    }
}
Пример #4
0
 if ($my_articles[$i]->articleID) {
     $i % 2 == 0 ? $bgcolor = "" : ($bgcolor = "#F5F5F5");
     $row_data .= '<tr class="tdhover" id= "tdata" bgcolor = "' . $bgcolor . '">';
     $row_data .= '<td>';
     $row_data .= $i + 1;
     $row_data .= '</td>';
     $row_data .= '<td class="blue" >';
     $title = $my_articles[$i]->title;
     $row_data .= '&nbsp;' . $title;
     $row_data .= '</td>';
     $row_data .= '<td class="blue2">';
     $category_name = getCategory_name($my_articles[$i]->articleID);
     $row_data .= $category_name;
     $row_data .= '</td>';
     $row_data .= '<td class="viola" >';
     $category_name = getFrontpage_type($my_articles[$i]->articleID);
     $row_data .= '&nbsp;' . $category_name;
     $row_data .= '</td>';
     $row_data .= '<td class="black">';
     $row_data .= getArticle_authors_info($my_articles[$i]->articleID, 'fullname');
     $row_data .= '</td>';
     $row_data .= '<td class="brown">';
     $row_data .= getUser_info($my_articles[$i]->edited_by, 'fullname');
     $row_data .= '</td>';
     $row_data .= '<td class="blue2">';
     $row_data .= '&nbsp;' . friendlyDate2($my_articles[$i]->created);
     $row_data .= '</td>';
     $row_data .= '<td class="black">';
     $date = $my_articles[$i]->dateline ? friendlyDate2($my_articles[$i]->dateline) : '0';
     $row_data .= $date;
     $row_data .= '</td>';