MySite.com Newsletter Archive
";
$bottomTemplateHTML = '
';
// Example:
// $bottomTemplateHTML = "Return to our home page";
$font = "Verdana";
$fontSize = "10pt";
echo $topTemplateHTML;
?>
Newsletter Archive
|
|
Name
|
Date Sent
|
Size
|
Format
|
|
$details) {
if (is_array($details)) {
foreach($details as $pos => $name) {
if (is_array($name)) {
foreach($name as $newsletterid => $newslettername) {
if (is_array($newslettername)) continue;
DisplayFileInfo($id.'/'.$pos, $newslettername, 'images/');
}
continue;
} else {
DisplayFileInfo($id.'/'.$pos, $name, '../images/');
}
}
}
}
echo '
';
echo $bottomTemplateHTML;
function DisplayFileInfo($id=0, $name='', $imagepath=null) {
global $font, $fontSize;
// Workout the name of the newsletter
$arrN = explode('_', $name);
$realName = '';
$realDate = '';
for($i = 0; $i < sizeof($arrN)-3; $i++) {
$realName .= $arrN[$i] . ' ';
}
for($j = sizeof($arrN)-3; $j < sizeof($arrN); $j++) {
$realDate .= $arrN[$j] . ' ';
}
if ($realDate == '' || $realName == '') return;
// Strip the .html or .txt from the date
$realDate = str_replace('.html', '', $realDate);
$realDate = str_replace('.txt', '', $realDate);
$htmlfile = is_numeric(strpos($name, '.html'));
$textfile = is_numeric(strpos($name, '.txt'));
$img = (($id == '.') ? '../' : '') . (!is_null($imagepath) ? $imagepath : '../images/') . (($htmlfile) ? 'html_file.gif' : 'text_file.gif');
?>
|
|
|
k
|
|