PHP Classes

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

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 41%Total: 909 All time: 3,900 This week: 469Up
Version License Categories
new_label 1.0GNU General Publi...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: 65
All time rank: 352 in Germany Germany
Week rank: 91 Down5 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:909
This week:0
All time:3,900
This week:469Up
 User Ratings  
 
 All time
Utility:58%StarStarStar
Consistency:66%StarStarStarStar
Documentation:-
Examples:58%StarStarStar
Tests:-
Videos:-
Overall:41%StarStarStar
Rank:3614