示例#1
0
require_once "../includes/layout/session.php";
require_once "../includes/layout/db_connection.php";
require_once "../includes/layout/functions.php";
$layout_context = "admin";
include "../includes/layout/header.php";
find_selected_pages();
?>
		<div id="main">
			<div id="navigation">
				<br>
				<a href="admin.php">&laquo; Main Menu</a>
				<br/>

				<?php 
echo Navigation($current_subject, $current_page);
?>
				<br/>
				<a href="new_subject.php">+ Add a subject </a>
			</div>
			<div id="page">
				<?php 
echo message();
?>
				<?php 
if ($current_subject) {
    ?>
				<h2> Manage Subject</h2> 
				<?php 
    echo "Menu Name" . ": " . htmlentities($current_subject["menu_name"]);
    ?>
示例#2
0
                 	<?IF($VA_setup['conn_types_tag_min_limit']){?><TD class="bg_light"><?Print $row['tag_min_limit'];?></TD><?}?>
                   	<?IF($VA_setup['conn_types_tag_min_ls_ratio']){?><TD class="bg_light"><?Print $row['tag_min_ls_ratio'];?></TD><?}?>
		</TR>
<?		}
	$result->Free_Result();
	}
ELSE {?>
	<TR>
		<TD class="b bg_light center" colspan=<?Print $colums;?>>
			<BR>
			&lt;&lt;&lt;&nbsp;&nbsp;<?Print $text_no_results;?>&nbsp;&nbsp;&gt;&gt;&gt;
			<BR><BR>
		</TD>
	</TR>
<?	}?>
	<TR>
		<TD class="bg_light" colspan=2 width=32>&nbsp;</TD>
		<?IF($VA_setup['conn_types_identifier']){?><TD class="b bg_light" nowrap><?Print $text_identifier; PrintOrderBy("identifier");?></TD><?}?>
		<?IF($VA_setup['conn_types_description']){?><TD class="b bg_light" nowrap><?Print $text_description; PrintOrderBy("description");?></TD><?}?>
		<?IF($VA_setup['conn_types_tag_min_slots']){?><TD class="b bg_light" nowrap><?Print $text_tag_min_slots; PrintOrderBy("tag_min_slots");?></TD><?}?>
		<?IF($VA_setup['conn_types_tag_max_slots']){?><TD class="b bg_light" nowrap><?Print $text_tag_max_slots; PrintOrderBy("tag_max_slots");?></TD><?}?>
		<?IF($VA_setup['conn_types_tag_min_limit']){?><TD class="b bg_light" nowrap><?Print $text_tag_min_limit; PrintOrderBy("tag_min_limit");?></TD><?}?>
		<?IF($VA_setup['conn_types_tag_min_ls_ratio']){?><TD class="b bg_light" nowrap><?Print $text_tag_min_ls_ratio; PrintOrderBy("tag_mi_ls_ratio");?></TD><?}?>
	</TR>
</TABLE>

<?
IF($pages > 1)
	{Navigation();}
?>
示例#3
0
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title>About Galaxy</title>
	<link rel="stylesheet" href="/resources/css/global.css" type="text/css" media="screen" title="no title" charset="utf-8">
	<link rel="stylesheet" href="/resources/css/headings.css" type="text/css" media="screen" title="no title" charset="utf-8">
	<link rel="stylesheet" href="/resources/css/navigation.css" type="text/css" media="screen" title="no title" charset="utf-8">
	<link rel="stylesheet" href="/resources/css/footer.css" type="text/css" media="screen" title="no title" charset="utf-8">
	<?php 
echo $page->javascript();
?>
	<?php 
echo $page->css();
?>
</head>
<body>
<?php 
Navigation('about');
?>
<div id="content">
	<h1>About Galaxy</h1>
</div>
<?php 
Footer();
?>
</body>
</html>
	
示例#4
0
            </blockquote>
        </section>

         <section class = "inside" id="inside-course">
            <article>
                <h2>What's inside the course</h2>
                 <p><?php 
$current_page = FindPageById(17);
echo $current_page["content"];
?>
</p> 
                <img id="inside-img" alt="Your account" src="img/photo_lighting.jpg"/>
                <img alt="Your account" src="img/photo_lighting.jpg"/>
                <img alt="Your account" src="img/photo_lighting.jpg"/>
                
            </article>
        </section>

       <nav>
            <p><?php 
echo Navigation($current_subject, $current_page, $public = true);
?>
 </p>
      </nav>


     <?php 
$context = "public";
?>
    <?php 
include "../includes/layouts/footer.php";
示例#5
0
	<link rel="stylesheet" href="/resources/css/navigation.css" type="text/css" media="screen" title="no title" charset="utf-8">
	<link rel="stylesheet" href="/resources/css/footer.css" type="text/css" media="screen" title="no title" charset="utf-8">
	<link rel="stylesheet" href="/resources/css/dialog.css" type="text/css" media="screen" title="no title" charset="utf-8">
	<?php 
echo $page->css();
?>
	<?php 
echo $page->javascript();
?>
	<script type="text/javascript" charset="utf-8" src="/resources/javascript/channels.js"></script>
	<script type="text/javascript" charset="utf-8" src="/resources/javascript/dialog.js"></script>
	<script type="text/javascript" charset="utf-8" src="/resources/javascript/json2.js"></script>
</head>
<body>
<?php 
Navigation('channels');
?>
<div id="content">
	<h2>Galaxy - Application Default Channel Permissions</h2>
	<div>
		<h3><?php 
echo $page->application['description'];
?>
</h3>
		<div style="font-style:italic;font-size:11px;padding-bottom:10px">(<?php 
echo $_GET['id'];
?>
)</div>
		<div id="permissions">
			<div style="padding-bottom:10px">Default Permissions when creating a new channel for this application</div>
			<form action="/actions/application/permissions/update" method="post" accept-charset="utf-8">
示例#6
0
	<?php 
echo $page->javascript();
?>
	<script type="text/javascript" charset="utf-8" src="/resources/javascript/account.js"></script>
	<script type="text/javascript" charset="utf-8" src="/resources/javascript/dialog.js"></script>
	<script type="text/javascript" charset="utf-8" src="/resources/javascript/json2.js"></script>
	
</head>
<body>
<div id="dialog">
	<div class="context">
		Your Account Has Been Updated
	</div>
</div>
<?php 
Navigation('account');
?>
<div id="content">
	<h1>Galaxy: Your Account (<?php 
echo $page->authorizedUser();
?>
)</h1>
	<hr>
	
	<form id="account" action="/actions/account/update" method="post">
		<h2>Change E-Mail</h2>
		<fieldset>
			<div>New E-Mail Address</div>
			<input type="text" name="inputEmail" value="" id="inputEmail">
			<div>Confirm E-Mail Address</div>
			<input type="text" name="inputEmailVerify" value="" id="inputEmailVerify">
示例#7
0
	<link rel="stylesheet" href="/resources/css/global.css" type="text/css" media="screen" title="no title" charset="utf-8">
	<link rel="stylesheet" href="/resources/css/headings.css" type="text/css" media="screen" title="no title" charset="utf-8">
	<link rel="stylesheet" href="/resources/css/navigation.css" type="text/css" media="screen" title="no title" charset="utf-8">
	<link rel="stylesheet" href="/resources/css/footer.css" type="text/css" media="screen" title="no title" charset="utf-8">
	<?php 
echo $page->javascript();
?>
	<?php 
echo $page->css();
?>
	<script type="text/javascript" charset="utf-8">
		var template = "<?php 
AMMustache::template($_SERVER['DOCUMENT_ROOT'] . '/application/controls/mustache/sample.html');
?>
"
	</script>
</head>
<body>
<?php 
Navigation('home');
?>
<div id="content">
	<h1>Welcome to Galaxy</h1>
	
</div>
<?php 
Footer();
?>
</body>
</html>
示例#8
0
文件: header.php 项目: Zhi2014/cogs
function gethead($head, $check, $title, $userid = 0)
{
    global $SET, $cfg, $LIB;
    $user_style = $_SESSION['user_style'] ? $_SESSION['user_style'] : $SET["user_style"];
    if ($head > 0) {
        ?>
<!DOCTYPE html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<!--<meta name="author" content="CmYkRgB123, BYVoid; 王者自由, Kingfree" />
<meta name="description" content="CmYkRgB123 Online Grading System,简称 COGS ,又称 COJS。是一款 OI 在线评测系统,基于 LAMP 技术,文件输入输出,支持评测插件和提交答案。" />
<meta name="keywords" content="COGS, COJS, OJ, OI, NOI, ACM/ICPC" />
<meta name="generator" content="Vim" />
<meta name="revised" content="<?php 
        echo $cfg['Version'];
        ?>
" />
<meta name="others" content="" />-->

<link rel="Shortcut Icon" href="<?php 
        echo 路径("style/cogs.png");
        ?>
" />
<link rel=stylesheet type="text/css" href="/Bootstrap/css/<?php 
        echo $user_style;
        ?>
.min.css" />
<link rel=stylesheet href="<?php 
        echo 路径("style/{$SET['style_profile']}");
        ?>
" />
<?php 
        背景图片($userid ? $userid : $_SESSION['ID']);
        $LIB->tradsimp();
        ?>
<script type="text/javascript" src="/jQuery/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="<?php 
        echo 路径("include/sortTable.js");
        ?>
"></script>
<script type="text/javascript" src="/Bootstrap/js/bootstrap.min.js"></script>
<!--[if IE 6]>
<link href="/Bootstrap-IE6/ie6.min.css" type="text/css" rel="stylesheet">
<![endif]-->
<title><?php 
        echo $title . " - " . $SET['global_sitename'];
        ?>
</title>
</head>
<body>
<div id="alltext">
<?php 
        if ($check == "sess") {
            $check = "普通用户";
        } else {
            if ($check == "admin") {
                $check = "管理用户";
            } else {
                if ($check == "advadmin") {
                    $check = "超级用户";
                }
            }
        }
        if (!有此权限($check)) {
            异常("没有权限 {$check} !");
        }
        $pi = new DataAccess();
        require_once 路径("include/navigation.php");
        if ($head != 8) {
            if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') == false) {
                Navigation($pi);
            } else {
                Navigation_IE($pi);
            }
        }
        ?>

<div id="body" class='container-fluid'>
<?php 
    }
}
示例#9
0
文件: header.php 项目: AresS31/c-q
<header>
	<section id="logo">
		<a href="../pages/index.php"><img src="../design/images/logo.jpg" hight="100%" width="100%" alt="" title="" border="0" /></a>
	</section>
	<?php 
if (!isset($_SESSION['login'])) {
    // session has NOT been started
    Navigation("off");
} else {
    // session has been started
    Navigation("on");
}
?>
	
</header>