Difference between revisions of "WolfTech Information Technology"
m |
m |
||
Line 60: | Line 60: | ||
|} | |} | ||
− | | | + | | |
+ | Most Recently Added Pages | ||
+ | <newpages> limit=5 </newpages> | ||
+ | |||
+ | <php> | ||
+ | include "display_news.inc.php"; | ||
+ | $Show = new News(82); | ||
+ | |||
+ | $TClook = '<p><a href="news.php?tcID=2640">###EVENT_TITLE#20##</a></p>'; | ||
+ | $News = new News(82,'Yes','N'); | ||
+ | $News->setPerPage(10); | ||
+ | $News->doQuery(); | ||
+ | |||
+ | PRINT ("<table border=\"0\" cellpadding=\"1\" cellspacing=\"0\" bgcolor=\"#000000\" width=\"100%\"><tr><td>"); | ||
+ | PRINT ("<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" bgcolor=\"#CC0000\" width=\"100%\"><tr><td align=\"left\">"); | ||
+ | PRINT ("<font class=\"content\"><b><font color=\"#FFFFFF\">"); | ||
+ | </php>[http://sysnews.ncsu.edu NCSU Systems Updates]<php> | ||
+ | PRINT ("</font></b></font></td></tr></table></td></tr><TR><TD height=\"3\" bgcolor=\"#FFFFFF\"></TD></TR></table>"); | ||
+ | require_once('xml_news.php'); | ||
+ | ############################################# | ||
+ | ############## \XML NEWS FEED\ ############## | ||
+ | ############################################# | ||
+ | // important settings for XML news feed | ||
+ | $num_stories_to_show = 5; | ||
+ | $num_stories = get_xml_news($news,$num_stories_to_show); | ||
+ | if( $num_stories < 1 ) { // oh no! | ||
+ | echo "<B>News service temporarily unavailable.</B>"; | ||
+ | } | ||
+ | else { | ||
+ | PRINT ("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#ffffff\" class=\"news\">"); | ||
+ | for( $f = 0 ; $f < $num_stories_to_show ; $f++ ) { | ||
+ | PRINT ("<tr valign=\"top\"><td align=\"top\" nowrap>"); | ||
+ | PRINT $news[$f][date]; | ||
+ | PRINT (" </td><td align=\"top\" nowrap>"); | ||
+ | PRINT $news[$f][time]; | ||
+ | PRINT ("</td><td align=\"top\"> - </td><td align=\"top\">["); | ||
+ | PRINT $news[$f][link]; | ||
+ | PRINT $news[$f][name]; | ||
+ | PRINT ("]</td></tr><tr><td height=\"3\"></td></tr>"); | ||
+ | } // end for for() loop | ||
+ | PRINT ("</table>"); | ||
+ | } // end of if/else | ||
+ | ############################################# | ||
+ | ############## /XML NEWS FEED/ ############## | ||
+ | ############################################# | ||
+ | PRINT ("</td></tr></table> "); | ||
+ | </php> | ||
+ | |||
|} | |} | ||
Revision as of 12:16, 19 June 2006
Welcome to WolfTech Computing Services
Welcome to the one-stop computing resource site for Electrical and Computer Engineering, and all other users of WolfTech computer support. With the www.wolftech.ncsu.edu site, you only have to remember one address to find anything and everything about using your computer at NC State. Our departments have more than their share of IT gremlins. WolfTech's job is to keep them under control. Let us help you with your troubleshooting needs. Our staff and experience are at your disposal.
Before getting started, be sure you have read the Acceptable Use Guidelines.
|
|
Most Recently Added Pages <newpages> limit=5 </newpages> <php> include "display_news.inc.php"; $Show = new News(82); $TClook = '<a href="news.php?tcID=2640">###EVENT_TITLE#20##</a> ';$News = new News(82,'Yes','N'); $News->setPerPage(10); $News->doQuery(); PRINT ("
require_once('xml_news.php');
// important settings for XML news feed $num_stories_to_show = 5; $num_stories = get_xml_news($news,$num_stories_to_show); if( $num_stories < 1 ) { // oh no! echo "News service temporarily unavailable."; } else { PRINT (""); for( $f = 0 ; $f < $num_stories_to_show ; $f++ ) { PRINT ("");} // end for for() loop PRINT ("
} // end of if/else
|
");
</php>
Most Recently Added Pages <newpages> limit=5 </newpages>
<php> include "display_news.inc.php"; $Show = new News(82);
$TClook = '
<a href="news.php?tcID=2640">###EVENT_TITLE#20##</a>
';
$News = new News(82,'Yes','N'); $News->setPerPage(10); $News->doQuery();
PRINT ("
");
PRINT ("
| |
");
require_once('xml_news.php');
- \XML NEWS FEED\ ##############
// important settings for XML news feed $num_stories_to_show = 5; $num_stories = get_xml_news($news,$num_stories_to_show); if( $num_stories < 1 ) { // oh no! echo "News service temporarily unavailable."; } else {
PRINT ("
"); for( $f = 0 ; $f < $num_stories_to_show ; $f++ ) { PRINT ("");} // end for for() loop
PRINT ("");
PRINT $news[$f][date]; PRINT (" | ");
PRINT $news[$f][time]; PRINT (" | - | [");
PRINT $news[$f][link]; PRINT $news[$f][name]; PRINT ("] |
");
} // end of if/else
- /XML NEWS FEED/ ##############
PRINT (" ");
</php>