/* ### Define Variables ###
Notice: This template for use with the CORPORATE
SPA site only. For other templates, see
/home/spaortho/includes/
Usage: Set $page, $headstyle, and $title to their proper values,
then simply paste the body html between the
tags.
########################################################## */
// Page -- From side menu "Spa Info..." (#2)
$page = "Orthopaedic Education";
// Either 'big' or 'lil' header graphic style
$headstyle = "big";
// Title of Page
$title = "SPA Orthopaedic Education";
// Menu's to Include on Sidebar
// To see a list of menu's & their numbers:
// http://www.spa-ortho.com/admin/menus.php3
$GetMenu[] = 2;
$GetMenu[] = 1;
// Extra information to include in
for this page
// (i.e. - JavaScripts, StyleSheets, etc.)
// Path must be relative to this directory, or
// can be from root (/www/...)
$ExtraHeader = "";
/*
########################################################## */
?>
include("/home/spaortho/includes/header.inc"); ?>
$db = mysql_connect();
mysql_select_db('spa_db');
/* All output is generated from withing the function "showrow()" below.
Be very careful to modify HTML only when working within this function. */
// function definition
function showrow($theid,$indent = 1,$recurse = 0,$inside = 0,$pindent = 0,$lib = "%") {
global $PHP_SELF;
$lib = "%" . $lib . "%";
$cat = mysql_query("select name from articles WHERE (id = $theid)");
echo mysql_error();
$art = mysql_query("select * from articles WHERE (parent = $theid) AND library like '$lib' order by position,name");
echo mysql_error();
if(mysql_num_rows($art)):
list($name) = mysql_fetch_row($cat);
echo("
");
endif;
if($inside == 0 && mysql_num_rows($art) == 1):
echo("Sorry, there are no entries in this category.\n");
endif;
mysql_free_result($art);
mysql_free_result($cat);
return true;
}
// function definition
function MakeOptions($start = 0,$internal = 0,$indent = "") {
global $therow;
if($internal):
$opt = mysql_query("select id,name,position from articles where type='cat' and parent=$start order by parent, position, name");
else:
$opt = mysql_query("select id,name,position from articles where type='cat' and (parent=$start OR id=$start) order by parent, position, name");
endif;
echo mysql_error();
while($option = mysql_fetch_array($opt)):
if($option[id] == $therow):
echo("\t\t\n");
else:
echo("\t\t\n");
endif;
if($option[id] != $start):
makeOptions($option[id],1,$indent . "···");
endif;
endwhile;
}
// end function definintions, begin page
?>
Orthopaedic Health Library
Browse our library of informative articles on all aspects of orthopaedic health written by SPA physicians and AAOS (American Academy of Orthopaedic Surgeons).
Bone Up On Anatomy
SPA provides access to informational resources on anatomy and orthopedic procedures developed by the Southern California Orthopedic Institute.
Orthopaedic FAQ
Frequently asked orthopaedic questions and answers with educational video clips and detailed medical diagrams.