• 每日总结4.9


    <?php
    session_start();
    include_once 'conn.php';
    $lb=$_GET["lb"];
    if($lb=="")
    {
    $lb=$_POST["lb"];
    }
    $biaoti=$_POST["biaoti"];
    ?>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">

    <HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD>
    <TITLE>化妆品销售网站</TITLE>
    <META http-equiv=Content-Type content="text/html; charset=gb2312">
    <LINK href="qtimages/style.css" type=text/css rel=stylesheet>



    <META content="MSHTML 6.00.2900.6058" name=GENERATOR></HEAD>
    <BODY>
    <?php include_once 'qttop.php';?>

    <TABLE cellSpacing=0 cellPadding=0 width=1120 align=center bgColor=#ffffff
    border=0>
    <TBODY>
    <TR>
    <TD width=5>&nbsp;</TD>
    <TD vAlign=top width=230>
    <?php include_once 'qtleft.php';?>
    </TD>
    <TD vAlign=top width=10>&nbsp;</TD>
    <TD vAlign=top>
    <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
    <TBODY>
    <TR>
    <TD vAlign=bottom height=40>
    <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
    <TBODY>
    <TR>
    <TD width=44 height=40><IMG height=35
    src="qtimages/B0039.gif"
    width=30></TD>
    <TD width=11>&nbsp;</TD>
    <TD width=209><span class="red"><strong><?php echo $lb;?></strong></span></TD>
    <TD vAlign=bottom align=right width=50></TD>
    <TD vAlign=bottom align=right width=45>&nbsp;</TD>
    <TD align=left width=291>&nbsp;&nbsp;</TD>
    </TR></TBODY></TABLE></TD></TR>
    <TR>
    <TD bgColor=#dadada height=1></TD></TR>
    <TR>
    <TD bgColor=#f6f6f6 height=4></TD></TR>
    <TR>
    <TD bgColor=#ffffff height=6><table width="99%" border="0" align="center" cellpadding="0" cellspacing="0" class="newsline">
    <?php
    $sql="select * from xinwentongzhi where 1=1";

    if ($biaoti!=""){$sql=$sql." and biaoti like '%$biaoti%'";}
    if($lb!=""){$sql=$sql." and leibie='$lb'";}
    $sql=$sql." order by id desc";

    $query=mysql_query($sql);
    $rowscount=mysql_num_rows($query);
    if($rowscount==0)
    {}
    else
    {
    $pagelarge=20;//每页行数;
    $pagecurrent=$_GET["pagecurrent"];
    if($rowscount%$pagelarge==0)
    {
    $pagecount=$rowscount/$pagelarge;
    }
    else
    {
    $pagecount=intval($rowscount/$pagelarge)+1;
    }
    if($pagecurrent=="" || $pagecurrent<=0)
    {
    $pagecurrent=1;
    }

    if($pagecurrent>$pagecount)
    {
    $pagecurrent=$pagecount;
    }
    $ddddd=$pagecurrent*$pagelarge;
    if($pagecurrent==$pagecount)
    {
    if($rowscount%$pagelarge==0)
    {
    $ddddd=$pagecurrent*$pagelarge;
    }
    else
    {
    $ddddd=$pagecurrent*$pagelarge-$pagelarge+$rowscount%$pagelarge;
    }
    }

    for($i=$pagecurrent*$pagelarge-$pagelarge;$i<$ddddd;$i++)
    {
    ?>
    <tr height="25">
    <td width="2%" align="left" class="newsline"><img src="qtimages/1.jpg"></td>
    <td width="70%" class="newsline"><a href="gg_detail.php?id=<?php echo mysql_result($query,$i,"id");?>"><?php echo mysql_result($query,$i,"biaoti");?></a></td>
    <td width="11%" class="newsline">被点击<?php echo mysql_result($query,$i,"dianjilv");?>次</td>
    <td width="17%" class="newsline"><?php echo mysql_result($query,$i,"addtime");?></td>
    </tr>
    <?php
    }
    }
    ?>
    </table>
    <p align="center" id="fenye"><a href="news.php?pagecurrent=1&lb=<?php echo $lb;?>">首页</a>, <a href="news.php?pagecurrent=<?php echo $pagecurrent-1;?>&lb=<?php echo $lb;?>">前一页</a> ,<a href="news.php?pagecurrent=<?php echo $pagecurrent+1;?>&lb=<?php echo $lb;?>">后一页</a>, <a href="news.php?pagecurrent=<?php echo $pagecount;?>&lb=<?php echo $lb;?>">末页</a>, 当前第<?php echo $pagecurrent;?>页,共<?php echo $pagecount;?>页 以上数据共
    <?php
    echo $rowscount;
    ?>
    条,
    <input name="Submit22" type="button" onClick="javascript:window.print();" value="打印本页" />
    </p></TD>
    </TR></TBODY></TABLE>
    </TD>
    <TD width=5>&nbsp;</TD></TR></TBODY></TABLE>
    <?php include_once 'qtdown.php';?></BODY></HTML>
  • 相关阅读:
    请求接口时params和data的区别
    深拷贝
    react学习笔记---父子组件间值得传递
    表单验证自定义二选一
    vue数据复杂时的表单验证
    jq获取路径参数的方法
    删除对象中的元素的方法
    iOS的URL处理
    cocoapod的下载安装解释
    初探博客园
  • 原文地址:https://www.cnblogs.com/wanghaoning/p/14915450.html
Copyright © 2020-2023  润新知