Example #1
0
<?php

//引入静态常量
require_once '../../../util/StackConst.php';
//引入ProductDao
require_once '../dao/ProductDao.php';
//实例化ProductDao
$productDao = new ProductDao();
//获取产品列表
$arrProducts = $productDao->getProductList();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="../zjs/pixelmatrix/css/uniform.default.css" type="text/css" media="screen">
<script language="javascript" type="text/javascript" src="../zjs/jquery-1.8.3.js"></script>
<script language="javascript" type="text/javascript" src="../zjs/pixelmatrix/jquery.uniform.js"></script>
<script language="javascript" type="text/javascript" src="../zjs/fzw_ht.js" charset="utf-8"></script>
<title>产品中心列表</title>
</head>

<body>
<table border="1" width="100%">
	<tr>
		<th width="5%">序号</th>
		<th width="10%">产品类别</th>
		<th width="10%">产品缩略图</th>
		<th width="10%">产品名称</th>
		<th width="50%">产品简介</th>
		<th width="15%" colspan="2">操作</th>
Example #2
0
<?php

//引入静态常量
require_once '../../util/StackConst.php';
//引入产品操作DAO
require_once 'dao/ProductDao.php';
//实例化dao
$productDao = new ProductDao();
//获取产品类型
$proType = @$_GET['proType'] == "" ? "中压开关类" : @$_GET['proType'];
//获取对象集合
$arrProducts = $productDao->getProductList($proType);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" rel="stylesheet" href="../zcss/index.css" />
<link type="text/css" rel="stylesheet" href="css/products.css" />
<script language="javascript" type="text/javascript" src="../zjs/jquery-1.8.3.js"></script>
<script language="javascript" type="text/javascript" src="../zjs/jquery.corner.js"></script>
<script type="text/javascript" language="javascript" src="../zjs/jquery-ui-1.9.2.custom.js"></script>
<script language="javascript" type="text/javascript" src="../zjs/fzw.js"></script>
<script language="javascript" type="text/javascript">
$(function(){
	
	//圆角
	$(".productsList,.proImg").corner("5px");
	$(".PMOne,.PMTwo,.PMThree,.PMFour").corner("5px");
});
</script>