Example #1
0
session_start();
?>
<!DOCTYPE html>
<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;
?>
Example #2
0
				alert("用户名已存在!");
			}
	   }
	}); 
	return result;
}
</script>
</head>
<?php 
include "../include/database.inc";
include "../include/common.inc";
include "../include/menus.inc";
$menus = getMenuTree();
$id = $_GET["id"];
if ($id) {
    $table = getTableById("manager", $id);
}
?>
<body>
<form name="form" method="post" action="../done/common.php">
<input name="tablename" type="hidden" value="manager"/>
<input name="link" type="hidden" value="../module/userManage.php"/>
<input name="type" type="hidden" value="<?php 
echo $id ? "update" : "";
?>
"/>
<input name="id" type="hidden" value="<?php 
echo $id;
?>
"/>
<input name="password" type="hidden" value="<?php 
Example #3
0
</script>
</head>
<?php 
include "../include/database.inc";
include "../include/common.inc";
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>
Example #4
0
		$(".selA").removeClass();
		$(this).addClass("selA");
	})
})
</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">