All pastes #194612 Raw Edit

Anonymous

public php v1 · immutable
·published 2006-10-08 02:46 UTC
rendered paste body
<?php//////////////////////////////////////////// jNews     - http://www.j-fx.ws/jnews //// version 1.0                          ////////////////////////////////////////////class templates {	function header()	{		global $global;?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>jNews - <?php echo $global["title"]; ?></title><link rel="stylesheet" media="all" type="text/css" href="template.css" /></head><body><div id="title">jNews</div><div id="container">  <div id="menu">    <a href="?">Home</a><a href="?act=articles">Articles</a><a href="?act=options">Options</a><a href="?act=logout">Logout</a>  </div>  <div id="content"><?php	}	function footer()	{		global $global;?>  </div></div>powered by jNews</body></html><?php	}	function loginForm()	{		global $global;?><h2>Login</h2><span>You are currently not logged in. Please log in to continue.<br /><form action="?act=login" method="post" name="loginform"><input type="text" name="username" value="username" onfocus="if(this.value=='username')this.value='';" /><br /><input type="password" name="password" value="password" onfocus="if(this.value=='password')this.value='';" /><br /> <a href="#" onclick="loginform.submit();">Login</a> &nbsp;&nbsp;|&nbsp;&nbsp; <a href="#">Forgot Password</a></form></span><?php	}	function welcomePage()	{		global $global;?><h2>Welcome <?php echo $global["loggedinuser"]["displayname"]; ?>!</h2><span>There are currently <?php echo $global["news"]["count"]; ?> news articles.</span><?php	}	function articlesPage_header()	{		global $global;?><h2>Articles Management</h2><span><table width="100%" border="0"><tr class="tablehead"><td>&nbsp;</td><td>Title</td><td>Author</td><td>Category</td><td>Date</td></tr><?php	}	function articlesPage_row()	{		global $global;?><tr><td><input type="checkbox" name="articles[]" value="<?php echo $global["news"]["current"]; ?>" /></td><td><?php echo $global["news"][$global["news"]["current"]]["title"]; ?></td><td><?php echo $global["news"][$global["news"]["current"]]["poster"]["displayname"]; ?></td><td><?php echo $global["categories"][$global["news"][$global["news"]["current"]]["category"]]; ?></td><td><?php echo $global["news"][$global["news"]["current"]]["date"]; ?></td></tr><?php	}	function articlesPage_footer()	{		global $global;?></table></span><?php	}}?>