Ejemplo n.º 1
0
<?php

/* TODO: Add code here */
require_once "../lib/global.php";
$conn_gamelink = new DbHelper("pg_gamelink");
$conn_gameclass = new DbHelper("pg_gameclass");
$rs_gamelink = $conn_gamelink->get_many(" id>0");
$rs_gameclass = $conn_gameclass->get_many("id>0");
?>
<HTML>
	<HEAD>
		<META NAME="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
		<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
		<TITLE>新游戏发布信息</TITLE>
		
	</HEAD>
	<BODY>
	<table border="1">
	<tr>
	<td>编号</td>
	<td>游戏类别</td>
	<td>游戏名称</td>
	<td>链接地址</td>
	<td>首字母</td>
	</tr>
	<?php 
while ($row = mysql_fetch_object($rs_gamelink)) {
    ?>
	
	<tr>
	<td><?php 
Ejemplo n.º 2
0
<?php

require_once "../lib/global.php";
$newDbHelper = new DbHelper("pg_newsclass");
$newsTypeInfos = $newDbHelper->get_many(" id>0");
?>
<HTML>
	<HEAD>
		<META NAME="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
		<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
		<TITLE>编辑新闻类别</TITLE>
		<script language="javascript" type="text/javascript">
		function Edit(i)
		{
		  window.location.href="Edit_Del_NewsType.php?id="+i+"&type=1&name="+document.getElementById("name_"+i).value;
		}
		
		function Del(i)
		{
			window.location.href="Edit_Del_NewsType.php?id="+i+"&type=2";
		}
		
		function Add(i)
		{
			window.location.href="Edit_Del_NewsType.php?id="+i+"&type=3&name="+document.getElementById("newtype").value;
		}
		</script>
	</HEAD>
	<BODY>
	<table border="1">
	<?php