Login   Register  
PHP Classes

new_label: Label new items with "new" for a number of days.

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2005-03-20 (9 years ago) RSS 2.0 feedNot enough user ratingsTotal: 896 All time: 3,674 This week: 1,542Up
Version License Categories  
new_label 1.0GNU General Public Lice...Time and Date, Statistics
Description Author  

The class is used to print the label "new" (or something else) as text or graphics if the item labeled is only a certain number of days old.

new_label is able to take the time values directly out of a mysql table "date" field. (no conversion needed for that)

If a certain number of days is over, the "new" label will not show up any more for the labeled item. If you change anything on your page you can label it 'changed' or 'new info' instead of 'new'. The string for 'new' is user defineable and does not really have to be 'new'.

Picture of Peter Klauer
Name: Peter Klauer <contact>
Classes: 18 packages by
Country: Germany Germany
Age: 56
All time rank: 312 in Germany Germany
Week rank: 244 Down6 in Germany Germany Down
Innovation award
Innovation award
Nominee: 3x

  Files folder image Files  
File Role Description
Plain text file inc_new_label.php Class the class file
Accessible without login Plain text file test_new_label.php Example a demo file

 Version Control Unique User Downloads Download Rankings  
 0%Total:896All time:3,674
 This week:0This week:1,542Up