<?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 */  // load viewer library  $libraryPath = 'cmsAdmin/lib/viewer_functions.php';  $dirsToCheck = array('/services8/webpages/util/n/w/nwsc5872139.myutilitydomain.com/public/','','../','../../','../../../');  foreach ($dirsToCheck as $dir) { if (@include_once("$dir$libraryPath")) { break; }}  if (!function_exists('getRecords')) { die("Couldn't load viewer library, check filepath in sourcecode."); }  // load records    list($newsRecords, $newsMetaData) = getRecords(array(    'tableName'   => 'news',	'perPage'   => 25,   ));  // load records  list($boxRecords, $boxMetaData) = getRecords(array(    'tableName'   => 'box',    'limit'       => '3',    'orderBy'     => 'RAND()',  ));?><?php include "include_header.php"; ?>        <table width="967" border="0" cellspacing="0" cellpadding="0">          <tr>            <td align="left" valign="top"><table width="635" border="0" cellspacing="0" cellpadding="0">              <tr>                <td align="left" bgcolor="#640233"><img src="assets/1pixel.gif" width="1" height="1" /></td>              </tr>              <tr>                <td align="left"><img src="assets/1pixel.gif" width="12" height="2" /></td>              </tr>              <tr>                <td align="left" bgcolor="#CCCCCC"><img src="assets/1pixel.gif" width="12" height="1" /></td>              </tr>              <tr>                <td align="left"><img src="assets/1pixel.gif" width="12" height="12" /></td>              </tr>              <tr>                <td align="left"><h1>News</h1></td>              </tr>              <tr>                <td class="textmain"><h2>Northern Wyoming Surgical Center</h2></td>              </tr>              <tr>                <td class="textmain"><img src="assets/1pixel.gif" alt="" width="12" height="4" /></td>              </tr>              <tr>                <td bgcolor="#CCCCCC" class="textmain"><img src="assets/1pixel.gif" alt="" width="12" height="1" /></td>              </tr>              <tr>                <td class="textmain"><img src="assets/1pixel.gif" alt="" width="12" height="20" /></td>              </tr>              <tr>                <td class="textmain">                <!--BEGIN LIST ENTRY HERE-->				<?php foreach ($newsRecords as $record): ?>                <table width="635" border="0" cellspacing="0" cellpadding="0">  <tr>    <td width="24" align="center" valign="top">&rang;</td>    <td width="611"><h3><a href="<?php echo $record['_link'] ?>"><?php echo $record['title'] ?></a></h3></td>  </tr>  <tr>    <td colspan="2"><img src="assets/1pixel.gif" width="1" height="3" /></td>    </tr>  <tr>    <td>&nbsp;</td>    <td class="textmain_italic_sml"><?php echo date("M jS, Y", strtotime($record['date'])) ?></td>  </tr>    <tr>    <td>&nbsp;</td>    <td><?php echo $record['summary'] ?></td>  </tr>  <tr>    <td colspan="2"><img src="assets/1pixel.gif" alt="" width="1" height="8" /></td>  </tr>    <tr>    <td colspan="2"><img src="assets/1pixel.gif" alt="" width="1" height="3" /></td>    </tr>  <tr>    <td><img src="assets/1pixel.gif" width="1" height="1" /></td>    <td bgcolor="#CCCCCC"><img src="assets/1pixel.gif" width="1" height="1" /></td>  </tr>  <tr>    <td>&nbsp;</td>    <td>&nbsp;</td>  </tr></table>    <?php endforeach ?>    <?php if (!$newsRecords): ?>      No records were found!<br/><br/>    <?php endif ?><!--END LIST ENTRY HERE-->                </td>              </tr>              <tr>                <td class="textmain"><br /><br />   <!-- STEP3: Display Page Links (Paste anywhere below "Load Record List") -->   <?php if ($newsMetaData['prevPage']): ?>     <a href="<?php echo $newsMetaData['prevPageLink'] ?>">&lt;&lt; prev</a>   <?php else: ?>     &lt;&lt; prev   <?php endif ?>    - page <?php echo $newsMetaData['page'] ?> of <?php echo $newsMetaData['totalPages'] ?> -    <?php if ($newsMetaData['nextPage']): ?>     <a href="<?php echo $newsMetaData['nextPageLink'] ?>">next &gt;&gt;</a>   <?php else: ?>     next &gt;&gt;   <?php endif ?>               </td>              </tr>              <tr>                <td class="textmain"><!--END LIST ENTRY HERE-->                </td>              </tr>                                        </table></td>            <td align="left" valign="top">&nbsp;</td>            <td align="left" valign="top">            <?php foreach ($boxRecords as $record): ?>            <?php echo $record['list'] ?>                <?php endforeach ?>    <?php if (!$boxRecords): ?>      No records were found!<br/><br/>    <?php endif ?>            <br><br><br>	</td>          </tr>          <tr>            <td><img src="assets/1pixel.gif" width="635" height="15" /></td>            <td><img src="assets/1pixel.gif" width="21" height="15" /></td>            <td><img src="assets/1pixel.gif" width="311" height="15" /></td>          </tr>        </table>        <?php include "include_footer.php"; ?>