Location: PHPKode > projects > Thought Push PHP Framework > instance/display/templates/genericOld.php
<?  
/*global $uriCmp, $uo, $notice, $noAds;

$title = isset($mdl->title) ? strip_tags($mdl->title) : 'Generic Page';
$mdl->cSection = (isset($mdl->section) ? Tool::toCamel($mdl->section) : '');
dis::$json['un'] = usr::$name;
dis::$json['u'] = usr::$id;
dis::$json['section'] = $mdl->cSection;
dis::$json['id'] = isset($mdl->id) ? $mdl->id : null;
dis::$json['type'] = isset($mdl->type) ? $mdl->type : null;
dis::$json['pt'] = patient::getCurrent();
dis::$json['ptn'] = patient::getPatientName(dis::$json['pt']);

$modDate = '20100826.1';

#default js and css to be prepended to page specific css and js
array_unshift(dis::$css,'base.css','jquery-ui.css');
array_unshift(dis::$js,'jquery-1.4.2.min.js','emr.js','tools.js','debug.js','common.js','date.js',
		'sysMsgs.js','form.js','paging.js','subRequest.js', 'jquery.contextMenu.js','base.js','jquery.hoverbox.js','jquery.timeentry.js','ui/jquery-ui-1.8.2.js','jquery.selectmenu.js'
	);
	
*/
?>
<!DOCTYPE html>
<html xml:lang="en" lang="en">
	<head>
		<title><?= isset($mdl->pTitle) ?$mdl->pTitle : $title ?>&nbsp;|&nbsp;ePlatinumMD</title>
		<meta content="text/html; charset=UTF-8"/>
		<meta name="description" content="<?= isset($mdl->pDescription) ? $mdl->pDescription : $title ?>"/>
		<meta name="keywords" content="<?= isset($mdl->pKeys) ? $mdl->pKeys : implode(', ',$uriCmp) ?>"/>
		<link rel="icon" type="image/png" href="/imgs/favicon.png">
<?  foreach(dis::$css as $c){?>
<?		if($c[0] == '/'){?>
		<link rel="stylesheet" type="text/css" href="<?=$c?>"/>
<?		}else{?>
		<link rel="stylesheet" type="text/css" href="/css/<?=$c?>?v=<?=$modDate?>"/>
<?  	}?>
<?	}?>
<?	if(isset($css)){?>
<?		foreach($css as $c){?>
		<link rel="stylesheet" type="text/css" href="<?=$c?>"/>
<?    }?>
<?	}?>
		<script type="text/javascript">var hv = {};</script>
	</head>
	<body id="<?=implode('-',$uriCmp)?>-body" class="<?=$mdl->cSection?>Tab">
		<?=$content?>
		<script type="text/javascript">hv.V = <?=dis::jsonOut()?></script>
        <?

        if (dis::$raw_js)
        {
            ?>
            <script type="text/javascript"><?= dis::$raw_js ?></script>
            <?
        }

        ?>
<?	foreach(dis::$js as $j){?>
<?		if($j[0]=='/'){?>
		<script type="text/javascript" src="<?=$j?>"></script>
<?		}else{?>
		<script type="text/javascript" src="/js/<?=$j?>?v=<?=$modDate?>"></script>
<?		}?>
<?	}?>
	</body>
</html>
Return current item: Thought Push PHP Framework