Difference between revisions of "WolfTech Information Technology"

From WolfTech
Jump to: navigation, search
m
m
Line 16: Line 16:
 
</php>
 
</php>
  
 +
<table border="0" cellpadding="1" cellspacing="0" bgcolor="#000000" width="100%">
 +
<tr><td>
 
<table border="0" cellpadding="3" cellspacing="0" bgcolor="#CC0000" width="100%">
 
<table border="0" cellpadding="3" cellspacing="0" bgcolor="#CC0000" width="100%">
<tr><td align="left"> <font class="content"><b><font color="#FFFFFF">[http://sysnews.ncsu.edu NCSU Systems Updates]</font></a></b></font></td>
+
<tr><td align="left"> <font class="content"><b><font color="#FFFFFF">[http://sysnews.ncsu.edu NCSU Systems Updates]</font></b></font></td>
 
</tr></table>
 
</tr></table>
 
</td></tr><TR><TD height="3" bgcolor="#FFFFFF"></TD></TR>
 
</td></tr><TR><TD height="3" bgcolor="#FFFFFF"></TD></TR>
Line 44: Line 46:
 
<php> PRINT $news[$f][time]</php>
 
<php> PRINT $news[$f][time]</php>
 
</td><td align="top">&nbsp;-&nbsp;</td>
 
</td><td align="top">&nbsp;-&nbsp;</td>
<td align="top"><a href="<php> PRINT $news[$f][link]</php>" class="news"><php> PRINT $news[$f][name]</php></a>
+
<td align="top">[<php> PRINT $news[$f][link]</php><php> PRINT $news[$f][name]</php>]
 
</td></tr><tr><td height="3"></td></tr>
 
</td></tr><tr><td height="3"></td></tr>
 
<php>
 
<php>
Line 56: Line 58:
 
#############################################
 
#############################################
 
</php>
 
</php>
</td></tr></table>
+
</td></tr>
 +
</table>

Revision as of 09:23, 10 April 2006

Blah Blah.

Most Recently Added Pages <newpages> limit=5 </newpages>

<php> include "display_news.inc.php"; $Show = new News(82); </php>

<php>

$TClook = '

<a href="news.php?tcID=2640">###EVENT_TITLE#20##</a>

';

$News = new News(82,'Yes','N');
$News->setPerPage(10);
$News->doQuery();

</php>

NCSU Systems Updates

<php> require_once('xml_news.php');

                            1. \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 { </php>

<php> for( $f = 0 ; $f < $num_stories_to_show ; $f++ ) { </php>

<php> } // end for for() loop </php>

<php> PRINT $news[$f][date]</php>

 

<php> PRINT $news[$f][time]</php>

 -  [<php> PRINT $news[$f][link]</php><php> PRINT $news[$f][name]</php>]

<php> } // end of if/else

                            1. /XML NEWS FEED/ ##############

</php>