<?php require_once '../libraries/tablemanager.class.php'; require_once '../inc/pubfun.inc.php'; require_once '../libraries/sqlrecordsmanager.php'; $actid = $_REQUEST['id']; if ($actid == "") { die('没有找到网页'); } ConnectDB(); $StrSql = 'update smg_tg set clickcount=clickcount+1 where id=' . $actid; $Record = mysql_query($StrSql) or die("update error"); CloseDB(); $sqlmanager = new SqlRecordsManager(); $pageindex = isset($_REQUEST['pageindex']) ? $_REQUEST['pageindex'] : 1; $news = $sqlmanager->GetRecords('SELECT * FROM smg_tg where id=' . $actid); $countnews = $sqlmanager->GetRecords('SELECT count(*) as total,sum(num) as zs FROM smg_tg_signup where tg_id=' . $actid); $comments = $sqlmanager->GetRecords('select * from smg_tg_comment where tg_id=' . $actid . ' order by createtime desc', $pageindex, 5); ?> <!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> <meta http-equiv=Content-Type content="text/html; charset=utf-8"> <meta http-equiv=Content-Language content=zh-CN> <title>SMG -团购详细</title> <link href="/css/smg.css" rel="stylesheet" type="text/css"> <script language="javascript" src="/js/smg.js"></script> </head> <body> <?php include '../inc/top.inc.html';
<!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> <meta http-equiv=Content-Type content="text/html; charset=utf-8"> <meta http-equiv=Content-Language content=zh-CN> <title>SMG -番茄团购列表</title> <link href="/css/smg.css" rel="stylesheet" type="text/css"> <script language="javascript" src="/js/smg.js"></script> </head> <body> <?php include '../inc/top.inc.html'; require_once '../libraries/sqlrecordsmanager.php'; $sqlmanager = new SqlRecordsManager(); $news = $sqlmanager->GetRecords('SELECT * FROM smg_tg where isadopt=1 order by createtime desc'); $news2 = $sqlmanager->GetRecords('select * from smg_news where main_cate_id=58 and isadopt=1 order by pubdate desc'); ?> <div id=bodys> <div id=fqtglist><a href="/">首页</a> > <a href="/fqtg/fqtglist.php">番茄团购列表</a></div> <div id=fqtglistcount> <div style="width:980px; font-size:14px; margin-top:10px; margin-left:10px; font-weight:bold; color:red; float:left; display:inline;">小番茄郑重承诺:番茄团购的宗旨就是为大家服务!团购的商品都是直接跟供应商联系,我们会尽力为大家争取到最低价格,在团购过程中番茄网绝不加价从中赚取利益!请大家监督!如果员工有什么渠道可以为大家提供产品团购,也欢迎联系我们!</div><br> <?php for ($i = 0; $i < count($news); $i++) { ?> <div class=context> <div class=cl> <img width=160 height=105 src="<?php echo $news[$i]->photourl; ?> " /><br>
<?php require_once '../libraries/tablemanager.class.php'; require_once '../libraries/sqlrecordsmanager.php'; require_once '../inc/pubfun.inc.php'; $page_size = 20; $id = $_REQUEST['id']; $sqlmanager = new SqlRecordsManager(); $tg = $sqlmanager->GetRecords('select * from smg_tg where id=' . $id); $count = $sqlmanager->GetRecords('select sum(num) as total from smg_tg_signup where tg_id=' . $id); $dept = $sqlmanager->GetRecords('SELECT * FROM smg_dept s where deptid<>0'); $page = isset($_REQUEST['page']) ? $_REQUEST['page'] : 1; $strsql = 'select * from smg_tg_signup where tg_id=' . $id . ' order by createtime desc'; $record = mysql_query($strsql) or die("select error1"); $record_num = mysql_num_rows($record); $rs_num = $record_num; if ($rs_num > 0) { if ($rs_num < $page_size) { $page_count = 1; } if ($rs_num % $page_size) { $page_count = (int) ($rs_num / $page_size) + 1; } else { $page_count = $rs_num / $page_size; } } else { $page_count = 0; } if ($page == "") { $page = 1; } if ($page > $page_count) {