<?php header('Content-type: text/html; charset=utf-8'); ?>
<?php
  /* STEP 1: LOAD RECORDS - Copy this PHP code block near the TOP of your page */
  require_once "/hsphere/local/home/gkornblu/thecmsbcookbook.com/cmsAdmin/lib/viewer_functions.php";

  list($table_of_contentsRecords, $table_of_contentsMetaData) = getRecords(array(
    'tableName'   => 'table_of_contents',
  ));
  
?>
<?php if (@$_REQUEST['pdf']) { createPDF_fromOutput('inline', 'example.pdf'); } ?>

<!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>
		<!-- saved from url=(0013)about:internet -->
		<meta http-equiv="content-type" content="text/html;charset=utf-8" />
			<link rel="shortcut icon" type="image/ico" href="/favicon.ico" />
	<link rel="stylesheet" type="text/css" media="all" href="css/CMSB2.css" />

<script type="text/javascript">
function changeBGC(color){
document.body.style.backgroundColor = color;
}
</script>
		<title>The CMSB Cookbook</title>
</head>

	<body style="background-color:#9FF">
		<div align="center">
			<table align="center" width="900" border="0" cellpadding="0" >
			  <tr>
					<td valign="top">
					<div align="center">
									  <table align="center" width="90%" border="0" cellspacing="0" cellpadding="10">
									    <tr>
									      <td valign="top" width="12%"><div align="center"><a href="index.php">Home</a></div></td>
									      <td valign="top" width="14%"><div align="center"><a href="tips.php">Read Excerpts</a></div></td>
									      <td valign="top" width="11%"><div align="center"><a href="toc.php">View the<br>
									        Table of Contents</a></div></td>
									      <td valign="top" width="11%"><div align="center"><a href="subscribers_only.php">Subscribers Only</a></div></td>
									      <td valign="top" width="11%"><div align="center"><a href="buythebook.php">Buy The Cookbook</a></div></td>
									      <td valign="top" width="11%"><div align="center"><a href="templates.php">Templates</a></div></td>
									      <td valign="top" width="11%"><div align="center"><a href="resources.php">CMSB Resources</a></div></td>
									      <td valign="top" width="11%"><div align="center"><a href="mailto:cookbook@theCMSBcookbook.com">Contact Us</a></div></td>
								        </tr>
								    </table>
								 </div>
							<table width="90%" border="0" cellspacing="0" cellpadding="3">
								
								
								<tr>
									<td>
<a class="special" href="?pdf=1">CLICK TO CONVERT THIS PAGE TO A PDF</a><br /> 

<input type = "button" value = "Change Background Color to White" onclick = changeBGC("white")> <br /><br />
								
<?php foreach ($table_of_contentsRecords as $record): ?>
<tr><td align="left" valign="top">
											
<span class="Medium-Text-Bold"><?php echo $record['topic'] ?></span><br/><br />

<?php
$recipe = wordwrap($record['recipe'],140) ;
$recipe = highlight_string($recipe) ;
 ?>

                                                  </td></tr>
<?php endforeach; ?>
                      </table></td></td></table>
											   
			    </body>

</html>