Login   Register  
PHP Classes
elePHPant
Icontem

File: phpODP Demo Source

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of ryan  >  phpODP Class  >  phpODP Demo Source  >  Download  
File: phpODP Demo Source
Role: ???
Content type: text/plain
Description: The source for the demo I run for this class. See the actual demo by using the "phpODP Demo" link on the PHP Class Repository page for this class.
Class: phpODP Class
Author: By
Last change:
Date: 14 years ago
Size: 4,666 bytes
 

Contents

Class file image Download
<?php

	require('phpodp.inc');

	$p = new phpODP;

	$p->_init();

?>
<html>
<head>
<title><?php echo $p->page_title; ?></title>
</head>
<body bgcolor="#FFFFFF">

<center>

<table width="600" border="0" cellspacing="0" cellpadding="5">
<tr bgcolor="#000000">
	<td colspan="2" align="left"><font face="Arial, Helvetica" size="2" color="#FFFFFF"><b><?php echo $p->page_title; ?></b></font></td>
</tr>

<tr bgcolor="#C0C0C0">
	<td colspan="2" align="right"><font face="Arial, Helvetica" size="2" color="#000080"><b><?php

		echo ' <a href="http://www.dmoz.org/editors/editcat.cgi?cat=' . implode('/', $p->dirs) . '">Edit</a> /';
		echo ' <a href="http://www.dmoz.org/cgi-bin/add.cgi?cat=' . implode('/', $p->dirs) . '">Add URL</a> /';
		echo ' <a href="http://www.dmoz.org/cgi-bin/update.cgi?cat=' . implode('/', $p->dirs) . '">Update URL</a> ';

		if(!empty($p->desc_file)) echo '/' . $p->desc_file;

		if(!empty($p->faq_file)) echo '/' . $p->faq_file;

	?></b></font></td>
</tr>

<?php if(!empty($p->a2z)): ?>
<tr bgcolor="#D0D0D0">
	<td colspan="2" align="center"><font face="Arial, Helvetica" size="1" color="#000000"><?php echo $p->a2z; ?></font></td>
</tr>
<?php endif; ?>

<?php if(!empty($p->catagories)): ?>
<tr bgcolor="#E0E0E0">
	<td colspan="2" align="left"><font face="Arial, Helvetica" size="2" color="#000000"><?php echo $p->catagories; ?></font></td>
</tr>
<?php endif; ?>

<?php if(!empty($p->other_catagories)): ?>
<tr bgcolor="#E0E0E0">
	<td colspan="2" align="left"><font face="Arial, Helvetica" size="2" color="#000000"><?php echo $p->other_catagories; ?></font></td>
</tr>
<?php endif; ?>

<?php if(!empty($p->links)): ?>
<tr bgcolor="#FFFFFF">
	<td colspan="2" align="left"><font face="Arial, Helvetica" size="2" color="#000000"><?php echo $p->links; ?></font></td>
</tr>
<?php endif; ?>

<tr bgcolor="#FFFFFF">
	<td align="center"><font face="Arial, Helvetica" size="2" color="#000000">

	<table width="200" border="0">
	<tr>

	<td width="33%"><font face="Arial, Helvetica" size="2" color="#000000"><a href="<?php echo $SCRIPT_NAME; ?>/Arts/">Arts</a><br>
	<a href="<?php echo $SCRIPT_NAME; ?>/Business/">Business</a><br>
	<a href="<?php echo $SCRIPT_NAME; ?>/Computers/">Computers</a><br>
	<a href="<?php echo $SCRIPT_NAME; ?>/Games/">Games</a><br>
	<a href="<?php echo $SCRIPT_NAME; ?>/Health/">Health</a><br></font></td>

	<td width="33%"><font face="Arial, Helvetica" size="2" color="#000000"><a href="<?php echo $SCRIPT_NAME; ?>/Home/">Home</a><br>
	<a href="<?php echo $SCRIPT_NAME; ?>/News/">News</a><br>
	<a href="<?php echo $SCRIPT_NAME; ?>/Recreation/">Recreation</a><br>
	<a href="<?php echo $SCRIPT_NAME; ?>/Reference/">Reference</a><br>
	<a href="<?php echo $SCRIPT_NAME; ?>/Regional/">Regional</a><br></font></td>

	<td width="33%"><font face="Arial, Helvetica" size="2" color="#000000"><a href="<?php echo $SCRIPT_NAME; ?>/Science/">Science</a><br>
	<a href="<?php echo $SCRIPT_NAME; ?>/Shopping/">Shopping</a><br>
	<a href="<?php echo $SCRIPT_NAME; ?>/Society/">Society</a><br>
	<a href="<?php echo $SCRIPT_NAME; ?>/Sports/">Sports</a><br>
	<a href="<?php echo $SCRIPT_NAME; ?>/World/">World</a><br></font></td>

	</tr>
	</table>

	</font></td>
	<td align="center"><font face="Arial, Helvetica" size="2" color="#000000">

		  <p><table width="400" border="0" bgcolor="#336600" cellpadding="3" cellspacing="0">
                  <tr>
                  <td>
                      <table width="100%" cellpadding="2" cellspacing="0" border="0">
                          <tr align="center">
                          <td><font face="sans-serif, Arial, Helvetica" size="2"
                              color="#FFFFFF">Help build the largest human-edited
                              directory on the web.</font></td></tr>
                          <tr bgcolor="#CCCCCC" align="center">
                          <td><font face="sans-serif, Arial, Helvetica" size="2"> <a
                              href="http://dmoz.org/cgi-bin/add.cgi?where=<?php echo implode('/', $p->dirs); ?>">Submit
                              a Site</a> - <a href="http://dmoz.org/about.html"><b>Open Directory
                              Project</b></a> -
                              <a href="http://dmoz.org/cgi-bin/apply.cgi?where=<?php echo implode('/', $p->dirs); ?>">Become
                              an Editor</a> </font>
                          </td></tr>
                      </table>
                  </td>
                  </tr>
                  </table>
	</font></td>
</tr>

</table>

</center>

</body>
</html>