- 浏览: 124780 次
- 性别:
- 来自: 武汉
-
文章分类
最新评论
<link href="css/style.css" rel="stylesheet">
<?php
include("conn/conn.php");
%包含数据库连接文件
?>
<table width="563" height="587" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="563" height="587" valign="top" bgcolor="#FFFFFF"><table width="563" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="563" height="27" background="Images/fufei.gif"> </td>
</tr>
<tr>
<td height="96" align="center" valign="top"><br>
<?php
$date1=date("Y-m-d");
%获取当前时间
$sgsql=mysql_query("select * from tb_leaguerinfo where type='公寓信息' and showday>='$date1' and checkstate=1 ");
%查询信息
$sginfo=mysql_fetch_array($sgsql);
%获取结果
if($sginfo){
do{
?>
<table width="540" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="26"><span class="style1">『公寓信息』</span><span class="style8"> <?php echo $sginfo[title];?> </span><span class="style6"> <?php echo $sginfo[edate];?></span></td>
</tr>
<tr>
<td height="26"> <span class="style5"> <?php echo $sginfo[content];?></span></td>
</tr>
<tr>
<td height="26"> <span class="style8">联系人:<?php echo $sginfo[linkman];?> 联系电话:<?php echo $sginfo[tel];?></span></td>
</tr>
<tr>
<td height="3" background="Images/line1.gif"></td>
</tr>
</table>
<?php
}while($sginfo=mysql_fetch_array($sgsql));
%展示信息
}else{
?>
<table width="540" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center">暂无公寓信息资源!</td>
</tr>
</table>
<?php
}
?>
</td>
</tr>
<tr>
<td align="center" valign="top"><table width="560" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="87" background="Images/guanggao.gif"> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="27" background="Images/mian.gif"> </td>
</tr>
<tr>
<td height="140" align="center" valign="top">
<br>
<?php
$sql=mysql_query("select count(*) as total from tb_info where type='公寓信息' and checkstate=1");
%查询结果数
$info=mysql_fetch_array($sql);
%获取结果
$total=$info[total];
%存储在一个变量内
$pagesize=4;
%一页显示的个数
if ($total<=$pagesize){
$pagecount=1;
%不超过4个,显示在一页
}
if(($total%$pagesize)!=0){
$pagecount=intval($total/$pagesize)+1;
%若总结果数不能被pagesize整除,则去商加1
}else{
$pagecount=$total/$pagesize;
%否则直接取商
}
if(($_GET[page])==""){
$page=1;
%默认显示第一页
}else{
$page=intval($_GET[page]);
%否则显示url中指示的页码
}
$gsql=mysql_query("select * from tb_info where type='公寓信息' and checkstate=1 order by edate desc limit ".($page-1)*$pagesize.",$pagesize");
%查询信息
$ginfo=mysql_fetch_array($gsql);
%获取结果
if($ginfo){
do{
?>
<table width="540" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="26"><span class="style1">『公寓信息』</span><span class="style8"> <?php echo $ginfo[title];?> </span><span class="style6"> <?php echo $ginfo[edate];?></span></td>
</tr>
<tr>
<td height="26"> <span class="style5"> <?php echo $ginfo[content];?></span></td>
</tr>
<tr>
<td height="26"> <span class="style8">联系人:<?php echo $ginfo[linkman];?> 联系电话:<?php echo $ginfo[tel];?></span></td>
</tr>
<tr>
<td height="3" background="Images/line1.gif"></td>
</tr>
</table>
<?php
}while($ginfo=mysql_fetch_array($gsql));
%展示结果
?>
<table width="543" height="27" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="543" height="27" colspan="3" align="right"> 共有
<?php
echo $total;
?>
条 每页显示 <?php echo $pagesize;?> 条 第 <?php echo $page;?> 页/共 <?php echo $pagecount; ?> 页
<?php
if($page>=2)
{
?>
<a href="index.php?page=1" title="首页"></a><a href="index.php?page=<?php echo $page-1;?>" title="前一页">
<?php
}
if($pagecount<=4){
for($i=1;$i<=$pagecount;$i++){
?>
<a href="index.php?page=<?php echo $i;?>"><?php echo $i;?></a>
<?php
}
}else{
for($i=1;$i<=4;$i++){
?>
<a href="index.php?page=<?php echo $i;?>"><?php echo $i;?></a>
<?php }?>
<a href="index.php?page=<?php echo $page-1;?>" title="后一页"></a> <a href="index.php?page=<?php echo $pagecount;?>" title="尾页"></a>
<?php }?></td>
</tr>
</table>
<?php
}
else{
?>
<table width="540" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center">暂无公寓信息资源!</td>
</tr>
</table>
<?php
}
?>
</td>
</tr>
</table>
</td>
</tr>
</table>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
发表评论
-
advertising.php源代码分析
2009-05-19 22:17 639<script>function StorePag ... -
advertising_ok.php
2009-05-20 21:48 526<script>function StorePag ... -
blank.php 和 bottom.php
2009-05-21 22:36 958<script>function StorePag ... -
chkadmin.php的源代码分析
2009-05-22 23:23 840<script>function StorePag ... -
del_ok.php源代码分析
2009-05-23 22:41 437<script>function StorePag ... -
find_fufei.php源码分析
2009-05-24 22:28 817<script>function StorePag ... -
find_gg.php源代码分析
2009-05-25 22:48 530<script>function StorePag ... -
find_mianfei.php源代码分析
2009-05-26 21:52 778<script>function StorePag ... -
fudel_ok.php源代码分析
2009-05-27 21:26 434<script>function StorePag ... -
gg_ok.php源代码分析
2009-05-28 21:21 465<script>function StorePag ... -
index.php源代码分析
2009-05-29 22:45 1352<script>function StorePag ... -
left.php源代码分析
2009-05-30 23:42 608<script>function StorePag ... -
login.php源代码分析
2009-05-31 22:14 1186<script>function StorePag ... -
release_content.php源代码分析
2009-06-01 22:54 873<script>function StorePag ... -
conn.php源代码分析
2009-06-02 23:42 1121<script>function StorePag ... -
car_info.php源代码分析
2009-06-03 21:55 759<script>function StorePag ... -
find_info.php源代码分析
2009-06-04 23:29 752<script>function StorePag ... -
foster_info.php源代码分析
2009-06-05 23:06 680<script>function StorePag ... -
house_info.php源代码分析
2009-06-06 23:01 644<script>function StorePag ... -
invitejob_info.php源代码分析
2009-06-07 23:49 775<script>function StorePag ...
相关推荐
这个系统可能包含了完整的源代码,对于PHP开发者或想要了解CMS工作原理的人来说,这是一个宝贵的资源。其丰富的功能和详细的代码表明,无论是用于学习、二次开发还是实际部署,这个CMS都有很高的价值。然而,要充分...
【标题】"postcards-main.rar" 是一个压缩文件,很可能包含了一个名为 "postcards-main" 的项目或应用的源代码。通常,这种命名方式表明这是一个主要的、核心的代码库或者是一个项目的主体部分。 【描述】...
”程序源代码的压缩包。这个资源对于初学者来说非常有价值,因为它涵盖了从传统到现代的多种编程语言,可以帮助新接触编程的人快速理解每种语言的基本语法和运行机制。 1. **C/C++**: C和C++是两种基础且广泛使用...
【标签】"源码" 指出这个压缩包里的内容是编程语言编写的源代码,可能是用Java、Python、PHP等语言实现的。源码允许用户查看、修改和学习项目的实现细节,这对于开发者来说是非常有价值的资源。 【压缩包子文件的...
它们通过解析PHP源代码,应用一套预定义的规则或自定义规则来查找可能的问题。例如,PHPMD可以检测冗余代码、未使用的变量、过深的嵌套循环,以及可能的坏味道设计模式。 在压缩包内的"PHP-Static-Analysis-main...
【标题】"TC_WEB-main.rar" 是一个压缩文件,很可能包含了一个完整的Web应用程序或网站的源代码。在IT行业中,这种类型的文件常常被用来分享、存储或者分发项目代码,以便于其他人能够下载、查看或者协作开发。 ...
【标题】"Web-Dev-main.rar" 是一个与Web开发相关的压缩文件,很可能包含了用于学习或项目的源代码。从文件名来看,它可能是某个Web开发主项目的主要代码库。 【描述】描述简单直接,"Web-Dev-main.rar" 暗示了这是...
"professionalWB-main.rar" 是一个压缩包文件,其主要包含的是与编程相关的源代码。从标签 "源码" 我们可以推断出,这个压缩文件极有可能是某个软件项目或者Web应用的源代码仓库。在这样的源码压缩包中,通常会包括...
【标题】"workspace-laravel-main.rar" 指的是一款基于 Laravel 框架的项目工作区,这个压缩包包含了整个 Laravel 项目的源代码。Laravel 是一个流行的、优雅的 PHP 开发框架,用于构建高质量的 web 应用程序。...
解压后,我们可以找到具体实现这一功能的源代码、文档或者示例项目。虽然我们没有具体的文件内容,但我们可以根据这个主题来讨论一般性的方法和技术。 1. **使用PHP扩展**: Python可以通过C扩展的方式被集成到PHP中...
标题中的"Web--main.zip"表明这是一个与Web开发相关的压缩文件,可能包含了项目的主要源代码、资源配置或者其他必要的组件。在Web开发中,"main"通常指的是应用的核心部分或主入口,这可能是一个启动文件或者一个...
1. **源代码文件**:可能使用Java、Python、C#或PHP等编程语言编写,负责实现系统逻辑。 - `models` 目录:包含学生、教师、课程等实体类的定义。 - `controllers` 目录:处理HTTP请求,与数据库交互,调用业务...
源代码中的http_protocol.c和http_main.c包含了错误处理的逻辑。 9. **虚拟主机**:Apache支持在一个进程中运行多个虚拟主机,每个主机有自己的配置和域名。这在http_core.c中的vhost_api.c中实现。 10. **URL映射...
这套源码已经内置大量解析接口和播放器,无需再寻找添加 数据库修改:wxApi/config/dbs.php aplication/database.php 后台:域名/tang.php 账号:admin 密码:123456 小程序:common-main.js找到url、mark、iv...
标题 "PHP域名url转发源码 支持隐性转发.zip" 暗示这是一个使用PHP编写的程序,其主要功能是实现域名URL的转发,并且支持隐性(或透明)转发。这种技术常用于网站管理和SEO优化,允许一个URL重定向到另一个URL,而...
1. **编译器**:如GCC(GNU Compiler Collection),用于编译PHP源代码。 2. **IDE(集成开发环境)**:例如Visual Studio Code、Eclipse等,这些工具可以帮助开发者更高效地阅读和理解源码。 3. **版本控制系统**:...
PHP源代码通常包含多个目录和文件,如`Zend`、` TSRM`、`main`、`ext`等。`Zend`目录是PHP的虚拟机,负责解释和执行PHP代码;`TSRM`(Thread Safe Resource Manager)处理线程安全问题;`main`包含了PHP的主体实现...
2022新版软件库APP前后端程序源码+独立后台,喜欢就下载吧。 正文: 之前分享的旧版本有人反馈需要授权,所以今天给大家重新找了...5.然后main.iyu,控制-界面事件-类模块,改成自己的网站域名,点开有提示的非常简单
环境要求 1.PHP版本高于5.6小于8.0 测试版本7.4 2.PHP SG11加密扩展 安装说明(宝塔) 1.上传源码 ...│ │ └─main 首页模板目录 │ │ │ ├─file 缓存文件目录 │ │ │ ├─template_c 模板编译后目录 │
【标题】"精美界面网址导航网站源码.rar" 指的是一款基于PHP语言开发的、具有美观界面的网址导航网站的源代码。这类源码通常包含完整的前端用户界面和后端管理系统的代码,用于搭建一个能够方便用户查找、收藏和分享...