Location: PHPKode > projects > Saurus CMS > extensions/sample/admin/custom_adminpage_sample.php
# This is a sample admin-page file for the extension "sample" that ships with Saurus CMS installation.

# Set relative path to the website root (depending on where your admin-page script is located)
$webroot_path = '../../../'; # if admin-page is located in folder /extensions/sample/admin/

$class_path = $webroot_path.'classes/';

# File "check_adminpage.php" must be included at the top of the custom admin-page,
# if access is not granted to the current user then page load will be terminated and login-page is displayed.

?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
		<title>Sample Admin Page</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<link rel="stylesheet" href="../../../styles/default/default_admin_page.css" media="screen">
		<script type="text/javascript" src="../../../js/admin_menu.js"></script>
		<script type="text/javascript" src="../../../js/ie_position_fix.js"></script>
		<script type="text/javascript">
			window.onload = function()
				make_breadcrumb('Extensions', 'Sample Admin Page');
				new ContentBox('some_content_area', '40px', '0px', '15px', '0px');
			var ContentBox = function(id, top, right, bottom, left)
				this.box = document.getElementById(id);
				this.box.style.top = top;
				this.box.style.right = right;
				this.box.style.bottom = bottom;
				this.box.style.left = left;
		<style type="text/css">
			input {
				height: 16px !important;
		<div id="mainContainer">
			<div class="toolbarArea">
        		<form name="some_form" id="some_form" method="POST" action="<?=$_SERVER['PHP_SELF'];?>">
	    			<table cellpadding="0" cellspacing="0" width="100%">
			            		<ul class="s_Buttons_container">
			            			<li><a href="#" id="button_new" class="button_new">New</a></li>
			            			<li><a href="#" id="button_edit" class="button_edit">Edit</a></li>
			            			<li><a href="#" id="button_save" class="button_save">Save</a></li>
			            			<li><a href="#" id="button_delete" class="button_delete">Delete</a></li>
            	</form><!-- /form filters -->
			</div><!-- / toolbarArea -->
			<div class="contentArea" id="some_content_area">
				<div class="contentAreaTitle">
					<table cellpadding="0" cellspacing="0" width="100%">
							<td>Sample admin Page</td>
				</div><!-- / contentAreaTitle -->
				<div class="contentAreaContent withTitleBar">
					Admin page's content
				</div><!-- / contentAreaContent -->
			</div><!-- / contentArea -->
		</div><!-- / mainContainer -->
Return current item: Saurus CMS