Mark last ten DVDs as [NEW]

If you need help on how to use the program
Post Reply
robgeerts
Posts: 1
Joined: 2005-10-24 20:16:46

Mark last ten DVDs as [NEW]

Post by robgeerts »

Currently I use this html-export-code for my dvd-list:

Code: Select all

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>DVD Lijst</title>
<style type="text/css">
.letters {font-family: "Trebuchet MS", Verdana; font-size: 12px; }
a:link {
	color: #000000;
	text-decoration: none;
}
a:visited {
	text-decoration: none;
	color: #000000;
}
a:hover {
	text-decoration: underline;
	color: #000000;
}
a:active {
	text-decoration: none;
	color: #000000;
}
</style>
<script language="Javascript">
function info(foo) {
  bar = foo;
  if (document.getElementById(bar).style.display == "none") {
    document.getElementById(bar).style.display = "";
  } else {
    document.getElementById(bar).style.display = "none";
  }
}
</script>
</head>

<body style="margin:0px">
<table width="100%" height="100%"  border="0" cellpadding="0" cellspacing="30">
	<tr>
		<td valign="top">
			<p class="letters">
				<strong>DVD Films</strong><br>
				Laatste update: $$DATE $$TIME<br>
				Aantal films: $$TOTALMOVIES <BR><BR>
				<B><font color="red">Zoeken? Druk CTRL + F!</font></B>
			</p>
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr class="letters">
					<td width="3%"><B>#</B></td>
					<td width="9%"><B>Cijfer</B></td>
					<td width="48%"><B>Titel</B></td>
					<td width="20%"><B>Categorie</B></td>
					<td width="20%"><B>Lener</B></td>
				</tr>
			</table>
			$$ITEM_BEGIN
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr class="letters">
				<td width="3%"> $$ITEM_NUMBER </td>
				<td width="9%"> <img src="appr3.gif" alt="3/4" /> </td>
				<td width="48%"> <a href="javascript:info('$$ITEM_ORIGINALTITLE')">$$ITEM_ORIGINALTITLE</a></td>
				<td width="20%"> $$ITEM_CATEGORY </td>
				<td width="20%"> $$ITEM_BORROWER</td>
				</tr>
			</table>
			<div id="$$ITEM_ORIGINALTITLE" name="$$ITEM_ORIGINALTITLE" style="DISPLAY: none">
				<BR>
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr class="letters">
						<td width="3%"></td>
						<td width="9%"></td>
						<td width="48%"><B>Acteurs</B><BR>$$ITEM_ACTORS<BR><BR><B>Beschrijving</B><BR>$$ITEM_DESCRIPTION</td>
						<td width="20%"></td>
						<td width="20%"></td>
						</tr>
					</table>
				<BR>
			</div>
			$$ITEM_END
		</td>
	</tr>
</table>
</body>
</html> 
Is there a possibility to mark the last 10 dvds with the word [NEW] behind the title? So, I want to see this word behind the titles with the highest ID-numbers. Only the last ten, automatically...
Post Reply