Esempio n. 1
0
<html> 
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link href="../css/form.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="../js/jquery.js"></script>
<script src="../kindeditor/plugins/code/prettify.js" type="text/javascript"></script>
</head>
<?php 
include "../include/database.inc";
include "../include/common.inc";
$id = $_GET["id"];
if ($id) {
    $table = getTableById("content", $id);
    $menu = $table->menu;
}
$menus = getTableByConList("menuset", "id = {$menu}");
?>
<body>
<div class="commonDiv">
<div class="commontop"><?php 
echo $table->title;
?>
</div>
<table border="0" align="center" cellpadding="0" cellspacing="0" class="commonTable1" >
	<tr><td height='30' colspan="2">&nbsp;<a class="icon" href="javascript:window.history.back();">返回</a></td></tr>
	<tr><td align='center' height='30' width='13%'>标题</td><td><?php 
echo $table->title;
?>
</td></tr>
	<tr><td align='center' height='30' width='13%'>创建日期</td><td><?php 
echo $table->in_date;
Esempio n. 2
0
function submitForm(){
	if(editor)editor.sync();
	if(editor1)editor1.sync();
	if(document.form.title.value==""){
		alert("标题不能为空!");
	}else{
		document.form.submit();
	}
}
</script>
</head>
<?php 
include "../include/database.inc";
include "../include/common.inc";
$table = getTableByConList("manager", " issuper='N'");
?>
<body>
<form name="form" method="post">
<div class="commonDiv">
<div class="commontop">用户管理</div>
<table border="0" align="center" cellpadding="0" cellspacing="0" class="commonTable" >
   <tr><th width="10%" height="28">序号</th><th>用户名</th><th>姓名</th><th>备注</th><th width="70">修改</th><th width="70">删除</th></tr>
   <?php 
while (list($key, $row) = each($table)) {
    ?>
   <?php 
    if ($row->loginname != "admin") {
        ?>
<tr><td height="28"><?php 
        echo $row->id;
Esempio n. 3
0
include "../include/page.inc";
$id = $_GET['id'];
$pageNo = $_GET['pageNo'];
$seac_i = $_GET['seac_i'];
$seac_t = $_GET['seac_t'];
$page = new Page();
if ($pageNo) {
    $page->pageNo = $pageNo;
}
$page->pagename = "list.php?id={$id}&";
$menuT = getTableById("menu", $id);
$seac_sql = $seac_i ? " and " . $seac_t . " like '%" . $seac_i . "%' " : "";
$list = getTableByConList("content", "menu = {$id} " . $seac_sql . " order by in_date desc limit " . $page->getBegin() . ",{$page->pageSize}");
$page->pageCount = getTableCount("content", "menu = {$id} " . $seac_sql);
$menu = getTableByConList("menuset", "id = {$id} and isIndex = 1");
$menuAll = getTableByConList("menuset", "id = {$id}");
?>
<body>
<div class="commonDiv">
<div class="commontop">模块【<?php 
echo $menuT->menuname;
?>
】</div>
<table border="0" align="center" cellpadding="0" cellspacing="0" class="commonTable" >
	<tr>
        <th width="100" height="28">序号</th>
        <th width="150">标题</th>
        <?php 
while (list($key, $val) = each($menu)) {
    echo "<th width='150'>{$val->title}</th>";
}
Esempio n. 4
0
</script>
</head>
<body>
<?php 
$type = $_GET["type"];
if (!$type) {
    $type = 1;
}
include "include/database.inc";
include "include/common.inc";
include "include/menus.inc";
$user = getTableById("manager", $_SESSION['manager_id']);
if ($user->loginname == "admin" || $user->issuper == "Y") {
    $menus = getMenuTree();
} else {
    $menus = getTableByConList("menu", " id in (" . $user->popedom . ") order by sort");
}
?>
<div style="margin:10px;">
<?php 
if ($type == "2") {
    ?>
<p>&nbsp;<a href="menu/addMenu.php?pid=0" target="mainFrame" class="icon">新建 </a>&nbsp;<!--a href="menu/upMenu.php?pid=0" target="mainFrame" class="icon">调整顺序</a!--></p>
<?php 
}
?>
<script type="text/javascript">
	var arr = <?php 
print json_encode($menus);
?>
;