?> </th> <th width="15%"><?php echo $lang->t('admin|tbl_action'); ?> </th> </tr> </thead> <tbody> <?php foreach ($jobs as $job) { ?> <tr> <td><?php _e(niceDate($job->created)); ?> </td> <td><?php _e($job->company_name); ?> </td> <td><a href="<?php _e(ADMIN_URL . "jobs/{$job->id}"); ?> "><?php _e($job->title); ?> </a></td> <td><?php _e($categories[$job->category]['name']);
$i % 2 == 0 ? $bgcolor = "" : ($bgcolor = "#F5F5F5"); $row_data .= '<tr class="tdhover" id="tdata" bgcolor = "' . $bgcolor . '" align = "left">'; $row_data .= '<td>'; $row_data .= $i + 1; $row_data .= '</td>'; $row_data .= '<td align="left">'; $row_data .= ' ' . getUser_info($all_activity[$i]->userID, 'username'); $row_data .= '</td>'; $row_data .= '<td align="left">'; $row_data .= ' ' . $all_activity[$i]->activity; $row_data .= '</td>'; $row_data .= '<td align="left">'; $row_data .= ' ' . $all_activity[$i]->itemname; $row_data .= '</td>'; $row_data .= '<td>'; $row_data .= ' ' . niceDate($all_activity[$i]->activity_date); $row_data .= '</td>'; $row_data .= '<td>'; $row_data .= ' ' . niceTime($all_activity[$i]->activity_date); $row_data .= '</td>'; $row_data .= '</tr>'; } } $dateprepared = time(); $dateprepared = friendlyDate($dateprepared); // my friendly date - {mh} // start compiling the page.. $tpl = new template_parser('../templates/reports/preview_audit_trail.tpl.php'); $tags = array('{FULLNAME}' => $fullname, '{POSITION}' => $position, '{DATE_PREPARED}' => $dateprepared, '{REPORT_TITLE}' => $rpt_title, '{USERNAME}' => 'Username', '{ACTION}' => 'Activity', '{ITEMNAME}' => 'Message', '{MESSAGE}' => $message, '{DATE}' => 'Date', '{TIME}' => 'Time', '{USERNAMES}' => $opt_username, '{ACTIVITIES}' => $opt_activity, '{PAGELINK}' => $pagelink->pagelinks, '{TABLE_DATA}' => $row_data, '{SITENAME}' => 'CMS Adminss', '{TOPNAV}' => 'top_menu.php', '{FOOTER}' => 'footer.php'); $tpl->parse_template($tags); print $tpl->display();
?> </a></td> <td><?php if ($user->category_id > 0) { _e($categories[$user->category_id]->name); } ?> </td> <td><?php if ($user->city_id > 0) { _e($cities[$user->city_id]->name); } ?> </td> <td><?php _e(niceDate($user->last_sent)); ?> </td> <td> <?php if (!$user->is_confirmed) { ?> <a type="button" class="btn btn-success btn-xs" title="<?php echo $lang->t('admin|btn_approve'); ?> " href="<?php _e(ADMIN_URL . "subscribers/{$user->id}/approve/{$user->token}"); ?> "> <span class="glyphicon glyphicon-ok"></span> </a>
* obtain list of the category */ $sql = "select * from category order by category_name ASC"; if (!($result = $db->query($sql))) { die('Error:' . $db->error()); } $categories = array(); while ($categories[] = $db->fetcharray()) { } $totalcategories = count($categories); $categorylist = ''; for ($i = 0; $i < $totalcategories - 1; $i++) { foreach ($categories as $field => $value) { if ($field == 'category_name') { $categorylist .= '<li><a href="' . VIEW_CATEGORY_URL . $categories[$i]->categoryID . '">' . $categories[$i]->category_name . '</a></li>'; } } } /* * Get the default stylesheets */ include 'admin/template.configuration.php'; $stylesheet = ' themes/' . $default_template_name . '/' . $default_template_stylesheet; $db->close(); $gerger->stop(); $pagegenerated = $gerger->display(); // Generate the page now $tpl = new template_parser('themes/templates/advertise.tpl.php'); $tags = array('{DATELINE}' => niceDate($headline[0]->dateline), '{ARTICLEID}' => $headline[0]->articleID, '{HEADLINE}' => $headline[0]->title, '{AUTHOR}' => 'By ' . getArticle_authors_info($headline[0]->articleID, 'fullname') . ' / BR</p>', '{ARTICLE_BODY}' => makeAShortIntro(strip_tags($headline[0]->article_body)), '{PHOTO}' => $photo, '{VIEW_ARTICLE_URL}' => $my_profile[0]->homeaddress, '{OTHER_HEADLINES}' => $other_headlines, '{OTHER_TOPSTORIES}' => $other_topstories, '{QUOTE_OF_THE_DAY}' => $quote, '{SUBSECTIONS}' => $subsections, '{ADS_148x300}' => $ads148x300, '{MESSAGE}' => $message, '{PAGE_GENERATED}' => ' ' . $pagegenerated, '{SPONSORED_LINKS}' => $sponsoredlinks, '{SUBSECTIONS}' => $subsections, '{CATEGORY}' => $categorylist, '{FOOTER}' => 'themes/templates/footer.tpl.php', '{STYLESHEET}' => $stylesheet); $tpl->parse_template($tags); print $tpl->display();
?> " href="<?php _e(BASE_URL . "jobs/{$job->id}/" . slugify($job->title . " {$lang->t('jobs|at')} " . $job->company_name)); ?> "> <h4> <span class="job-title"><?php _e($job->title); ?> </span> <span class="job-company"><?php _e($job->company_name); ?> </span> <span class="badge pull-right"><?php niceDate($job->created); ?> </span> </h4> </a> <?php } } ?> <a class="list-group-item" href="<?php _e(BASE_URL . "categories/{$category->id}/{$category->url}"); ?> "> <h5><?php echo $lang->t('jobs|view_all', $category->name); ?>
<?php if ($apps->attachment != '') { ?> <a href="<?php _e(ASSET_URL . "attachments/{$apps->attachment}"); ?> "><?php echo $lang->t('admin|download'); ?> </a> <?php } ?> </td> <td><?php _e(niceDate($apps->created)); ?> </td> </tr> <tr> <td colspan="6"> <p><?php _e($apps->cover_letter, 'r'); ?> </p> </td> </tr> <?php } ?> </tbody>
} // $viewpollresult .= '<input type="button" class="button2" onClick=popupWindow("' . "admin/create_poll_graph.php?topic_id=" . $topicid . '","win1",640,350,"yes","yes"); name="submit" value="Results" class="button" />'; if ($npoll > 1) { $viewpollresult .= '<br><a href="#" onClick=popupWindow("view_more_poll.php","win2",300,300,"yes","yes");>'; $viewpollresult .= ' <b class="whitetext">View more poll>></b>'; $viewpollresult .= '</a>'; } $polls .= '<form name="pollform" method="post" action="admin/save_poll_response2.php">'; $polls .= ' <input type="hidden" name="topicid" value="' . $topicid . '" >'; $polls .= $topic; $polls .= '<br>'; $polls .= $optlabel; $polls .= '<input type="submit" class="button2" name="submit" value="Vote" class="button" />'; $polls .= $viewpollresult; } else { $polls = '<b>No Polls available</b>'; } /* * Get the default stylesheets */ include 'admin/template.configuration.php'; $stylesheet = ' themes/' . $default_template_name . '/' . $default_template_stylesheet; $db->close(); $gerger->stop(); $pagegenerated = $gerger->display(); // Generate the page now $tpl = new template_parser('themes/templates/index.tpl.php'); $tags = array('{FULLSTORY}' => $fullstory, '{DATELINE}' => niceDate($headline[0]->dateline), '{ARTICLEID}' => ' ' . $headline[0]->articleID, '{HEADLINE}' => $headline[0]->title, '{AUTHOR}' => 'By ' . getArticle_authors_info($headline[0]->articleID, 'fullname') . '</p>', '{ARTICLE_BODY}' => makeAShortIntro(strip_tags($headline[0]->article_body)), '{PHOTO}' => $photo, '{VIEW_ARTICLE_URL}' => $my_profile[0]->homeaddress, '{OTHER_HEADLINES}' => $other_headlines, '{OTHER_TOPSTORIES}' => $other_topstories, '{OUR_SEGMENTS}' => $segments, '{TOPICID}' => $topicid, '{POLLS}' => $polls, '{POLL_LABELS}' => $optlabel, '{POLL_TOPIC}' => $topic, '{VIEW_POLL_RESULT}' => $viewpollresult, '{QUOTE_MESSAGE}' => $quote_message, '{QUOTE_AUTHOR}' => $quote_author, '{SUBSECTIONS}' => $subsections, '{ADVERTISEMENTS}' => $ads, '{ADS_148x300}' => $ads148x300, '{ADS_800x140}' => $ads800x140, '{PAGE_GENERATED}' => ' ' . $pagegenerated, '{SPONSORED_LINKS}' => $sponsoredlinks, '{SUBSECTIONS}' => $subsections, '{CATEGORY}' => $categorylist, '{FOOTER}' => 'themes/templates/footer.tpl.php', '{STYLESHEET}' => $stylesheet, '{ENGINE_ LINK}' => '<a href="http://www.google.com"><img src="images/logo_google.png"></a>'); $tpl->parse_template($tags); print $tpl->display();
while ($links[] = $db->fetcharray()) { } $db->freeresult(); $sponsoredlinks = ''; $n = count($links) - 1; for ($i = 0; $i < $n; $i++) { // Count the active banners foreach ($links as $field => $values) { if ($field == 'clientID') { if (checkhttptext($links[$i]->website)) { $url = splithttptext($links[$i]->website); $sponsoredlinks .= '<li><a href="' . $links[$i]->website . '">' . $url[1] . '</a></li>'; } else { $sponsoredlinks .= '<li><a href="http://' . $links[$i]->website . '">' . $links[$i]->website . '</a></li>'; } } } } /* * Get the default stylesheets */ include 'admin/template.configuration.php'; $stylesheet = ' themes/' . $default_template_name . '/' . $default_template_stylesheet; $db->close(); $gerger->stop(); $pagegenerated = $gerger->display(); // Generate the page now $tpl = new template_parser('themes/templates/view_article.tpl.php'); $tags = array('{LINK}' => $link, '{DATELINE}' => niceDate($dateline), '{TITLE}' => $view_article[0]->title, '{AUTHOR}' => getArticle_authors_info($view_article[0]->articleID, 'fullname') . '</p>', '{ARTICLE_BODY}' => $view_article[0]->article_body, '{HEADING_CATEGORY}' => $heading_category, '{OTHER_HEADLINES_CAT}' => $other_headlines_cat, '{OTHER_HEADLINES}' => $other_headlines, '{PAGE_GENERATED}' => ' ' . $pagegenerated, '{PHOTO}' => $photo, '{VIEW_ARTICLE_URL}' => $my_profile[0]->homeaddress, '{OTHER_TOPSTORIES}' => $other_topstories, '{QUOTE_OF_THE_DAY}' => $quote, '{SUBSECTIONS}' => $subsections, '{ADVERTISEMENTS}' => $advertisements, '{ADS_148x300}' => $ads148x300, '{ADS_600x140}' => $ads600x140, '{ADS_180x700}' => $ads180x700, '{SPONSORED_LINKS}' => $sponsoredlinks, '{SUBSECTIONS}' => $subsections, '{CATEGORY}' => $categorylist, '{FOOTER}' => 'themes/templates/footer.tpl.php', '{STYLESHEET}' => $stylesheet); $tpl->parse_template($tags); print $tpl->display();
get_ProfileInfo('nickname', $temp_ID); ?> </p> <p><b>Gender: </b> <?php get_ProfileInfo('gender', $temp_ID); ?> </p> <p><b>Created: </b> <?php niceDate(return_ProfileInfo('profilecreation', $temp_ID)); ?> </p> <p><b>Date of Birth: </b> <?php niceDate(return_ProfileInfo('birthday', $temp_ID)); ?> </p> <P><b>Interests: </b> <?php get_ProfileInfo('interests', $temp_ID); ?> </P> <P><b>Blog Description: </b> <?php get_ProfileInfo('blogdesc', $temp_ID); ?> </P> <P><b>Blog Privacy: </b> <?php get_ProfileInfo('privacy', $temp_ID);
while ($links[] = $db->fetcharray()) { } $db->freeresult(); $sponsoredlinks = ''; $n = count($links) - 1; for ($i = 0; $i < $n; $i++) { // Count the active banners foreach ($links as $field => $values) { if ($field == 'clientID') { if (checkhttptext($links[$i]->website)) { $url = splithttptext($links[$i]->website); $sponsoredlinks .= '<li><a href="' . $links[$i]->website . '">' . $url[1] . '</a></li>'; } else { $sponsoredlinks .= '<li><a href="http://' . $links[$i]->website . '">' . $links[$i]->website . '</a></li>'; } } } } /* * Get the default stylesheets */ include 'admin/template.configuration.php'; $stylesheet = ' themes/' . $default_template_name . '/' . $default_template_stylesheet; $db->close(); $gerger->stop(); $pagegenerated = $gerger->display(); // Generate the page now $tpl = new template_parser('themes/templates/segment_detail_tpl.php'); $tags = array('{LINK}' => $link, '{DATELINE}' => niceDate($dateline), '{TITLE}' => 'SEGMENT TOPIC: ' . $data['segmentTopic'], '{AUTHOR}' => 'SEGMENT ANCHOR: ' . $data['segmentAnchor'], '{ARTICLE_BODY}' => 'SEGMENT BODY: ' . $data['segmentContent'], '{HEADING_CATEGORY}' => 'SEGMENT TITLE: ' . $data['segmentTitle'], '{OTHER_HEADLINES_CAT}' => $other_headlines_cat, '{OTHER_HEADLINES}' => $other_headlines, '{PAGE_GENERATED}' => ' ' . $pagegenerated, '{PHOTO}' => $photo, '{VIEW_ARTICLE_URL}' => $my_profile[0]->homeaddress, '{OTHER_TOPSTORIES}' => $other_topstories, '{QUOTE_OF_THE_DAY}' => $quote, '{SUBSECTIONS}' => $subsections, '{ADVERTISEMENTS}' => $advertisements, '{ADS_148x300}' => $ads148x300, '{ADS_600x140}' => $ads600x140, '{ADS_180x700}' => $ads180x700, '{SPONSORED_LINKS}' => $sponsoredlinks, '{SUBSECTIONS}' => $subsections, '{CATEGORY}' => $categorylist, '{FOOTER}' => 'themes/templates/footer.tpl.php', '{STYLESHEET}' => $stylesheet); $tpl->parse_template($tags); print $tpl->display();
function markdownFile($arrXml, $fulldestpath, $headerEnclosedBy) { $mdFilename = niceDate($arrXml['Creation Date'], FILENAME_DATE_FORMAT) . '.md'; $content = $arrXml['Entry Text']; //try to get headline $headerText = ''; if (count($headerEnclosedBy) > 0 && substr($content, 0, 1) == $headerEnclosedBy[0]) { $endPos = strpos($content, $headerEnclosedBy[1]); $headerText = substr($content, 1, $endPos - 1); //set file name to header text if (HEADER_IS_FILE_NAME) { $mdFilename = alphanumericWithSpaces($headerText) . '.md'; } $content = trim(substr($content, $endPos + 1)); } $strTags = ''; if (count($arrXml['Tags']) > 0) { $strTags = implode(', ', $arrXml['Tags']); $strTags = "_{$strTags}_"; } // echo '<h2>Date Raw: ' .$arrXml['Creation Date'] . '</h2>'; // echo '<h2>Filename: ' .$mdFilename . '</h2>'; // echo '<h2>Date: ' . niceDate($arrXml['Creation Date'], NICE_DATE_FORMAT) . '</h2>'; // echo '<h2>Sunrise: ' . niceDate($arrXml['Weather']['Sunrise Date'], NICE_DATE_FORMAT) . '</h2>'; // echo '<h2>Sunset: ' . niceDate($arrXml['Weather']['Sunset Date'], NICE_DATE_FORMAT) . '</h2>'; // echo '<h2>Header: ' .$headerText . '</h2>'; // echo '<p>String: ' .nl2br($content) . '</p>'; $headerLevel = TITLE_HEADER_LEVEL; //Initialize $niceDate $niceDate = niceDate($arrXml['Creation Date'], NICE_DATE_FORMAT); //Initialize $starred $starred = ''; if ($arrXml['Starred'] == 1) { $starred = '![Star](images/star.png)'; } //Location $placename = ''; if (isset($arrXml['Location']['Place Name']) && $arrXml['Location']['Place Name'] != '') { $placename = "{$arrXml['Location']['Place Name']}, "; } $locality = ''; if (isset($arrXml['Location']['Locality']) && $arrXml['Location']['Locality'] != '') { $locality = "{$arrXml['Location']['Locality']}, "; } $area = ''; if (isset($arrXml['Location']['Administrative Area']) && $arrXml['Location']['Administrative Area'] != '') { $area = "{$arrXml['Location']['Administrative Area']}, "; } $country = ''; if (isset($arrXml['Location']['Country']) && $arrXml['Location']['Country'] != '') { $country = "{$arrXml['Location']['Country']}, "; } $longitude = ''; if (isset($arrXml['Location']['Longitude']) && $arrXml['Location']['Longitude'] != '') { $longitude = "Longitude: {$arrXml['Location']['Longitude']} "; } $latitude = ''; if (isset($arrXml['Location']['Latitude']) && $arrXml['Location']['Latitude'] != '') { $latitude = "Latitude: {$arrXml['Location']['Latitude']} "; } //Weather $tempF = ''; if (isset($arrXml['Weather']['Fahrenheit']) && $arrXml['Weather']['Fahrenheit'] != '') { $tempF = "{$arrXml['Weather']['Fahrenheit']}F/"; } $tempC = ''; if (isset($arrXml['Weather']['Celsius']) && $arrXml['Weather']['Celsius'] != '') { $tempC = "{$arrXml['Weather']['Celsius']}C "; } $weatherDesc = ''; if (isset($arrXml['Weather']['Description']) && $arrXml['Weather']['Description'] != '') { $weatherDesc = "{$arrXml['Weather']['Description']}"; } $sunrise = ''; if (isset($arrXml['Weather']['Sunrise Date']) && $arrXml['Weather']['Sunrise Date'] != '') { $sunrise = "Sunrise: {$arrXml['Weather']['Sunrise Date']} "; } $sunset = ''; if (isset($arrXml['Weather']['Sunset Date']) && $arrXml['Weather']['Sunset Date'] != '') { $sunset = "Sunset: {$arrXml['Weather']['Sunset Date']}"; } $pressure = ''; if (isset($arrXml['Weather']['Pressure MB']) && $arrXml['Weather']['Pressure MB'] != '') { $pressure = "Pressure: {$arrXml['Weather']['Pressure MB']}MB "; } $humidity = ''; if (isset($arrXml['Weather']['Relative Humidity']) && $arrXml['Weather']['Relative Humidity'] != '') { $humidity = "Humidity: {$arrXml['Weather']['Relative Humidity']}%"; } $visibility = ''; if (isset($arrXml['Weather']['Visibility KM']) && $arrXml['Weather']['Visibility KM'] != '') { $visibility = 'Visibility: ' . number_format($arrXml['Weather']['Visibility KM'], 1) . 'KM '; } $windchill = ''; if (isset($arrXml['Weather']['Wind Chill Celsius']) && $arrXml['Weather']['Wind Chill Celsius'] != '') { $windchill = "Wind Chill: {$arrXml['Weather']['Wind Chill Celsius']}C"; } $locationWeatherSummary = "{$placename}{$locality}{$area}{$country}{$tempF}{$tempC}{$weatherDesc}"; if ($locationWeatherSummary != '') { $locationWeatherSummary = "\t{$locationWeatherSummary}\n\t"; } $longLatSummary = "{$longitude}{$latitude}"; if ($longLatSummary != '') { $longLatSummary = "\n\t{$longLatSummary}"; } $sunSummary = "{$sunrise}{$sunset}"; if ($sunSummary != '') { $sunSummary = "\n\t{$sunSummary}"; } $pressureHumiditySummary = "{$pressure}{$humidity}"; if ($pressureHumiditySummary != '') { $pressureHumiditySummary = "\n\t{$pressureHumiditySummary}"; } $visibilityWindchillSummary = "{$visibility}{$windchill}"; if ($visibilityWindchillSummary != '') { $visibilityWindchillSummary = "\n\t{$visibilityWindchillSummary}"; } $strMd = <<<EOT {$headerLevel}{$headerText} {$starred} *{$niceDate}* {$strTags} {$content} {$locationWeatherSummary}{$longLatSummary}{$sunSummary}{$pressureHumiditySummary}{$visibilityWindchillSummary} \t \tCreation Date UTC: {$arrXml['Creation Date']} \tUUID: {$arrXml['UUID']} \t \t EOT; //file path $fulldestfile = $fulldestpath . '/' . $mdFilename; $filetime = strtotime($arrXml['Creation Date']); //create and write file file_put_contents($fulldestfile, $strMd); //set file time to creation date touch($fulldestfile, $filetime); return $fulldestfile; }
?> <tr> <td><?php _e($ban->id); ?> </td> <td><?php _e($ban->type); ?> </td> <td><?php _e($ban->value); ?> </td> <td><?php _e(niceDate($ban->created)); ?> </td> <td> <a type="button" class="btn btn-danger btn-xs" title="Delete" href="<?php _e(ADMIN_URL . "ban/delete/{$ban->id}"); ?> "> <span class="glyphicon glyphicon-remove"></span> </a> </td> </tr> <?php } ?>
$bannerdata = $banner->view_banner('180x700'); $ads180x700 = ''; if ($bannerdata) { if (checkhttptext($bannerdata->banner_clickURL)) { $ads180x700 .= '<p><a href="' . $PHP_SELF . '?bannerID=' . $bannerdata->bannerID . '">'; $ads180x700 .= '<img src="' . makeRelativePath($bannerdata->banner_imageurl, 7) . '" border="0" ></a>'; $ads180x700 .= '</p>'; } else { $ads180x700 .= '<p><a href="' . $PHP_SELF . '?bannerID=' . $bannerdata->bannerID . '">'; $ads180x700 .= '<img src="' . makeRelativePath($bannerdata->banner_imageurl, 7) . '" border="0"></a>'; $ads180x700 .= '</p>'; } } /** * Get the clicked banner from the rotated banner... */ $bannerclick = new rotate_banner(); $bannerclick->getclicks($_REQUEST['bannerID']); /* * Get the default stylesheets */ include 'admin/template.configuration.php'; $stylesheet = ' themes/' . $default_template_name . '/' . $default_template_stylesheet; $db->close(); $gerger->stop(); $pagegenerated = $gerger->display(); // Generate the page now $tpl = new template_parser('themes/templates/segments_tpl.php'); $tags = array('{FULLSTORY}' => $fullstory, '{DATELINE}' => niceDate($headline[0]->dateline), '{ARTICLEID}' => $headline[0]->articleID, '{SEGMENT_TITLE}' => $data['segmentTitle'], '{SEGMENT_TOPIC}' => 'Topic: ' . $data['segmentTopic'], '{SEGMENT_ANCHOR}' => 'Anchor Man: ' . $data['segmentAnchor'], '{SEGMENT_BODY}' => makeAShortIntro($data['segmentContent']), '{SEGMENT_SCHEDULE}' => $data['segmentSchedule'], '{PHOTO}' => $photo, '{VIEW_ARTICLE_URL}' => $my_profile[0]->homeaddress, '{OTHER_HEADLINES_CAT}' => $other_headlines_cat, '{OTHER_SEGMENTS}' => $segments, '{OTHER_HEADLINES2}' => '$other_headlines2', '{OTHER_TOPSTORIES}' => $other_topstories, '{QUOTE_OF_THE_DAY}' => $quote, '{SUBSECTIONS}' => $subsections, '{ADVERTISEMENTS}' => $ads, '{ADS_148x300}' => $ads148x300, '{ADS_600x140}' => $ads600x140, '{ADS_180x700}' => $ads180x700, '{ADVERTISEMENTS2}' => $ads2, '{PAGE_GENERATED}' => ' ' . $pagegenerated, '{SPONSORED_LINKS}' => $sponsoredlinks, '{SUBSECTIONS}' => $subsections, '{CATEGORY}' => $categorylist, '{FOOTER}' => 'themes/templates/footer.tpl.php', '{STYLESHEET}' => $stylesheet); $tpl->parse_template($tags); print $tpl->display();
$page = $_GET['page']; } else { $page = 1; } $start = $page * $limit - $limit; $pagelink = new paging($page, $totalrows, $limit, $paging, $scroll, $scrollnumber); $j = $start + 1; for ($i = $start; $i < $start + $limit; $i++) { if ($archive[$i]->articleID) { $i % 2 == 0 ? $bgcolor = "" : ($bgcolor = "#F5F5F5"); $row_data .= '<tr class="tdhover" id="tdata" bgcolor = "' . $bgcolor . '" align = "left">'; $row_data .= '<td>'; $row_data .= $j++; $row_data .= '</td>'; $row_data .= '<td>'; $row_data .= ' ' . niceDate($archive[$i]->dateline); $row_data .= '</td>'; $row_data .= '<td>'; $row_data .= '<a href="' . VIEW_ARTICLE_URL2 . $archive[$i]->articleID . '">'; $row_data .= ' ' . $archive[$i]->title; $row_data .= '</a>'; $row_data .= '</td>'; $row_data .= '<td>'; $category_name = getCategory_name($archive[$i]->articleID); $row_data .= $category_name; $row_data .= '</td>'; $row_data .= '</tr>'; } } /** * Populate all the years into an array..