<?phprequire_once(dirname(__FILE__)."/../include/common.inc.php");require_once(DEDEINC."/channelunit.func.php");$db = new dedesql();$curtime = time();//获得时间戳if(empty($date)){ $timestamp = $curtime; $date =date('Y-n-d',$timestamp);}else{ $timestamp = strtotime($date);} $selectedyear = date('Y',$timestamp); $selectedmonth = date('n',$timestamp); $selectedday = date('d',$timestamp); $starttime = mktime(0,0,0,$selectedmonth,$selectedday,$selectedyear); $endtime = $starttime+86400;$where = '';$tid = intval($tid);if($tid > 0){ $where = " and typeid=$tid";}$pagesize = 30;//默认一页30条数据$maxpages=9;//$pagepre=4;//分页用$pageno = isset($_GET["pageno"]) ? intval($_GET["pageno"]) : 1;$csql = "select count(*) as c from #@__archives,#@__arctype where pubdate>$starttime and pubdate <$endtime $where AND #@__arctype.id = #@__archives.typeid";$crow = $db->GetOne($csql);$GLOBALS['datacount']=$datacount = $crow['c'];//总条数$startrow =($pageno-1) * $pagesize;//开始数$rili = rili($date,'',true,$db);if($datacount>0)//获取页码 { $maxpage = $datacount%$pagesize;// if($maxpage>0) { $maxpage= ceil($datacount/$pagesize); }else{ $maxpage= $datacount/$pagesize;//获取总页数 } }else{ $maxpage=0; }if($pageno>$maxpage&&$maxpage!=0){ echo "<script>alert('好像没有这么多页数据!');history.go(-1);</script>"; exit();}$query = "select #@__archives.id,#@__archives.pubdate,#@__archives.title,#@__archives.senddate,#@__archives.ismake,#@__archives.arcrank,#@__archives.money,#@__arctype.namerule,#@__arctype.typedir,#@__archives.typeid from #@__archives,#@__arctype where pubdate>$starttime and pubdate <$endtime and ismake=1 $where AND #@__arctype.id = #@__archives.typeid LIMIT $startrow,$pagesize";$db->setquery($query);$db->execute();$list = array();while($row = $db->getarray()){ $row['time'] = date('20y-m-d H:i',$row['pubdate']); $row['pubdate'] = date('20ymd',$row['pubdate']); $list[] = $row;}require_once(dirname(__FILE__)."/../date/date.htm");function GetArcUrl($aid,$typeid,$timetag,$title,$ismake=0,$rank=0,$namerule="",$artdir="",$money=0){ return GetFileUrl($aid,$typeid,$timetag,$title,$ismake,$rank,$namerule,$artdir,$money); }function rili($date, $file = '/date/index.php', $nomax = false,$db=''){ $curtime = time(); //获得时间戳 if(empty($date)){ $timestamp = $curtime; }else{ $timestamp = strtotime($date); } $selectedyear = date('Y',$timestamp); $selectedmonth = date('n',$timestamp); $selectedday = date('d',$timestamp); //给定月份第一天星期几 $firstday = date('w',mktime(0,0,0,$selectedmonth,1,$selectedyear)); ////给定月份所应有的天数 $lastday = date('t',$timestamp);//给定月份所应有的天数 $preyear = date('Y',mktime(0,0,0,$selectedmonth,0,$selectedyear)); $nextyear = date('Y',mktime(0,0,0,$selectedmonth,$lastday+1,$selectedyear)); $premonth = date('n',mktime(0,0,0,$selectedmonth,0,$selectedyear)); $nextmonth = date('n',mktime(0,0,0,$selectedmonth,$lastday+1,$selectedyear)); $premonthdays = date('t',mktime(0,0,0,$selectedmonth,0,$selectedyear)); $nextmonthdays = date('t',mktime(0,0,0,$selectedmonth,$lastday+1,$selectedyear)); $preday = min($selectedday,$premonthdays); $nextday = min($selectedday,$nextmonthdays); //显示日历头 $days = array("日","一","二","三","四","五","六"); $months = array("一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"); $monthName = $months[$selectedmonth-1]; $str = "<table bgcolor=\"#F0F9EE\">"; $str .= "<caption valign=\"center\"><a href=\"$file?date=$preyear-$premonth-$preday\"><<</a> <b> $selectedyear $monthName</b> "; if($nomax && mktime(0,0,0,$nextmonth,1,$nextyear) > $curtime){ $str .= ">></caption>"; }else{ $str .= "<a href=\"$file?date=$nextyear-$nextmonth-$nextday\">>></a></caption>"; } $str .= "<tr>"; for($i=0;$i<7;$i++){ $str .= "<td width=10%>$days[$i]</td>"; } $str .= "</tr>"; //空出当月第一天的位置 $i = 0; while($i < $firstday){ $str .= "<td></td>"; $i++; } $day = 0; while($day < $lastday){ if(($i % 7) == 0){ $str .= "</tr><tr>"; } $day++; $i++; //查找每天是否存在文章 $starttime = mktime(0,0,0,$selectedmonth,$day,$selectedyear); $endtime = $starttime+86400; $csql2 = "select count(*) as c from #@__archives,#@__arctype where pubdate>$starttime and pubdate <$endtime and ismake=1 $where AND #@__arctype.id = #@__archives.typeid"; $crow = $db->GetOne($csql2); $datacount = $crow['c']; //所选当天不存在文章 if($day == $selectedday&&!$datacount) { $prevdate=date('Y-m-d',$GLOBALS['articleDate']); //如果当天之前到月初都没有文章,则找上个月 if(!$GLOBALS['articleDate']) { $csql2 = "select pubdate from #@__archives,#@__arctype where pubdate<=$starttime and ismake=1 $where AND #@__arctype.id = #@__archives.typeid order by pubdate desc"; $crow = $db->GetOne($csql2); $prevdate=date('Y-m-d ',$crow['pubdate']); } header("Location:index.php?date=".$prevdate); exit(); } //当天用红色表示 if($day == $selectedday){ $str .= "<td class=calendarToday align=center><font color=#ffffff>$day</font>($datacount)</td>"; }elseif($nomax && mktime(0,0,0,$selectedmonth,$day,$selectedyear) > $curtime){ $str .= "<td>$day</td>"; }elseif($datacount) { $str .= "<td><a href=\"$file?date=$selectedyear-$selectedmonth-$day\">$day</a>($datacount)</td>"; $currenttime=mktime(0,0,0,$selectedmonth,$selectedday,$selectedyear); if($starttime<=$currenttime) $GLOBALS['articleDate']=$starttime; } else $str.="<td>$day</td>"; } $str .= "</tr></table>"; return $str;}?>
回复讨论(解决方案)
求大神指点一二啊
大神,求详细使用方法啊,我在百度,Google都搜索了好些天了,真心没办法啊。

Laravel은 직관적 인 플래시 방법을 사용하여 임시 세션 데이터 처리를 단순화합니다. 응용 프로그램에 간단한 메시지, 경고 또는 알림을 표시하는 데 적합합니다. 데이터는 기본적으로 후속 요청에만 지속됩니다. $ 요청-

PHP 로깅은 웹 애플리케이션을 모니터링하고 디버깅하고 중요한 이벤트, 오류 및 런타임 동작을 캡처하는 데 필수적입니다. 시스템 성능에 대한 귀중한 통찰력을 제공하고 문제를 식별하며 더 빠른 문제 해결을 지원합니다.

PHP 클라이언트 URL (CURL) 확장자는 개발자를위한 강력한 도구이며 원격 서버 및 REST API와의 원활한 상호 작용을 가능하게합니다. PHP CURL은 존경받는 다중 프로모토콜 파일 전송 라이브러리 인 Libcurl을 활용하여 효율적인 execu를 용이하게합니다.

Laravel은 간결한 HTTP 응답 시뮬레이션 구문을 제공하여 HTTP 상호 작용 테스트를 단순화합니다. 이 접근법은 테스트 시뮬레이션을보다 직관적으로 만들면서 코드 중복성을 크게 줄입니다. 기본 구현은 다양한 응답 유형 단축키를 제공합니다. Illuminate \ support \ Facades \ http를 사용하십시오. http :: 가짜 ([ 'google.com'=> 'Hello World', 'github.com'=> [ 'foo'=> 'bar'], 'forge.laravel.com'=>

고객의 가장 긴급한 문제에 실시간 인스턴트 솔루션을 제공하고 싶습니까? 라이브 채팅을 통해 고객과 실시간 대화를 나누고 문제를 즉시 해결할 수 있습니다. 그것은 당신이 당신의 관습에 더 빠른 서비스를 제공 할 수 있도록합니다.

기사는 PHP 5.3에 도입 된 PHP의 LSB (Late STATIC BING)에 대해 논의하여 정적 방법의 런타임 해상도가보다 유연한 상속을 요구할 수있게한다. LSB의 실제 응용 프로그램 및 잠재적 성능

Alipay PHP ...

이 기사에서는 프레임 워크에 사용자 정의 기능 추가, 아키텍처 이해, 확장 지점 식별 및 통합 및 디버깅을위한 모범 사례에 중점을 둡니다.


핫 AI 도구

Undresser.AI Undress
사실적인 누드 사진을 만들기 위한 AI 기반 앱

AI Clothes Remover
사진에서 옷을 제거하는 온라인 AI 도구입니다.

Undress AI Tool
무료로 이미지를 벗다

Clothoff.io
AI 옷 제거제

AI Hentai Generator
AI Hentai를 무료로 생성하십시오.

인기 기사

뜨거운 도구

VSCode Windows 64비트 다운로드
Microsoft에서 출시한 강력한 무료 IDE 편집기

WebStorm Mac 버전
유용한 JavaScript 개발 도구

DVWA
DVWA(Damn Vulnerable Web App)는 매우 취약한 PHP/MySQL 웹 애플리케이션입니다. 주요 목표는 보안 전문가가 법적 환경에서 자신의 기술과 도구를 테스트하고, 웹 개발자가 웹 응용 프로그램 보안 프로세스를 더 잘 이해할 수 있도록 돕고, 교사/학생이 교실 환경 웹 응용 프로그램에서 가르치고 배울 수 있도록 돕는 것입니다. 보안. DVWA의 목표는 다양한 난이도의 간단하고 간단한 인터페이스를 통해 가장 일반적인 웹 취약점 중 일부를 연습하는 것입니다. 이 소프트웨어는

SecList
SecLists는 최고의 보안 테스터의 동반자입니다. 보안 평가 시 자주 사용되는 다양한 유형의 목록을 한 곳에 모아 놓은 것입니다. SecLists는 보안 테스터에게 필요할 수 있는 모든 목록을 편리하게 제공하여 보안 테스트를 더욱 효율적이고 생산적으로 만드는 데 도움이 됩니다. 목록 유형에는 사용자 이름, 비밀번호, URL, 퍼징 페이로드, 민감한 데이터 패턴, 웹 셸 등이 포함됩니다. 테스터는 이 저장소를 새로운 테스트 시스템으로 간단히 가져올 수 있으며 필요한 모든 유형의 목록에 액세스할 수 있습니다.

Atom Editor Mac 버전 다운로드
가장 인기 있는 오픈 소스 편집기
