黄历择日网php程序源码/日历老皇历万年历带免登录发布模块,不调用接口的,带数据库带黄历算法类,完整版免授权,完全开源程序,可二开!
演示地址:
https://s22.21sq.top/
手机端地址:
https://ms22.21sq.top/
V:kkmp326 目前价格 299 新客户不议价
源码说明:
1、不调用任何接口,黄历和择日信息全部由程序自身算法和本地数据库完成!!
2、程序自带的功能性板块,包括当月的吉日筛选页面,当年的吉日筛选页面无需更新,程序自动随当前时间而更新。
3、本程序包含文章系统,适合做权重站批量发文章。
4、送免登录发布插件+huo车tou头免登录发布模块。
5、完整的程序+数据库,自带千条数据+本地图片。
6、后台带采集,并带多条采集规则。
7、广告位丰富,店长可协助修改。
8、程序后续更新会涨价。
9、手机端列表页下拉无限加载。
10、手机端文章详情页下拉无限加载。
11、本程序不包含付费测算,演示站跳转到付费测算的为广告cps链接!
安装方法:
安装环境:php7以上,mysql,nginx。
本地用小皮(phpstudy)可协助安装!
其他环境未测试! 虚拟空间安装不了。【内附详细安装教程】
部分代码展示:
/***
*黄历月详情
作者:奥顺互联 V:kkmp326
https://s22.21sq.top/
*/
public function yuejiridetail(){
$ismobile = ismobile() || isset($_GET['is_wap']) ? true : false;
$site = get_config();
$y = $_GET['year']? $_GET['year'] : date('Y',time());
$n = $_GET['month']? $_GET['month'] : date('n',time());
$eventpinyin = $_GET['event'];
foreach($this->event as $v){
if ($v['pinyin'] == $eventpinyin){
$event = $v['keywords'][0];
$eventjie = $v['explain'];
$eventtitle = $v['event'];
}
}
$db=D('wannianli');
$days = $db->field('year,month,day,suici,gonglishijian,nonglishijian')->order('day ASC')->where(array('year'=>$y,'month'=>$n))->select();
$content = '';
foreach($days as $k=>$v) {
$jyi[$k] = Solar::fromYmd($y, $v['month'], $v['day'])->getLunar()->getDayYi();
$jji[$k] = Solar::fromYmd($y, $v['month'], $v['day'])->getLunar()->getDayJi();
$chong[$k] = Solar::fromYmd($y, $v['month'], $v['day'])->getLunar()->getDayShengXiao().'日冲'.Solar::fromYmd($y, $v['month'], $v['day'])->getLunar()->getChongDesc().' 煞'.Solar::fromYmd($y, $v['month'], $v['day'])->getLunar()->getSha();
$pengzu[$k] = Solar::fromYmd($y, $v['month'], $v['day'])->getLunar()->getPengZuGan().' '.Solar::fromYmd($y, $v['month'], $v['day'])->getLunar()->getPengZuZhi();
if(in_array($event, $jyi[$k])){
foreach($jji[$k] as $valji){
$jjihtml[$k] .= $valji.' ';
}
foreach($jyi[$k] as $valyi){
$jyihtml[$k] .= $valyi.' ';
}
$jyihtml[$k] = str_replace($event, '<span>'.$event.'</span>', $jyihtml[$k]);
$content .= "<div class='list-yiji'>
<p>
{$v['gonglishijian']} {$v['nonglishijian']} <a href='/{$y}-{$n}-{$v['day']}'>〖详细分析+吉时推荐〗</a>
</p>
<div class='yiji'>
<div class='yi'>
{$jyihtml[$k]}
</div>
<div class='ji'>
{$jjihtml[$k]}</div>
</div>
<div class='yiji-other yiji-other2'>
<div class='item'>
<span>冲煞:</span>
<p>{$chong[$k]}</p>
</div>
<div class='item'>
<span>彭祖百忌:</span>
<p>{$pengzu[$k]}</p>
</div>
</div>
</div>";
}
}
//print_r($content);
/
$yy = date('Y',time());
$nn = date('n',time());
$jj = date('j',time());
$week_td_count = [//每天对应的补全td个数
'星期一'=>['before'=>0,'after'=>6],
'星期二'=>['before'=>1,'after'=>5],
'星期三'=>['before'=>2,'after'=>4],
'星期四'=>['before'=>3,'after'=>3],
'星期五'=>['before'=>4,'after'=>2],
'星期六'=>['before'=>5,'after'=>1],
'星期日'=>['before'=>6,'after'=>0],
];
$db=D('wannianli');
$days = $db->field('year,month,day,nl_month,nl_day,gonglishijian,jieqi')->order('day ASC')->where(array('year'=>$yy,'month'=>$nn))->select();
$dayCount = count($days);
$lineMark = 0;
$datar['content'] = '<tr>';
foreach($days as $k=>$v) {
if($k == 0){//在每月第一天对前面这个星期天数进行补全
$week = explode(' ', $v['gonglishijian'])[1];
for($e=0;$e<$week_td_count[$week]['before'];$e++){
$lineMark++;
$datar['content'] .= "
<td></td>";
}
}
if($lineMark % 7 ==0){//一周7天,7个td后输出</tr>结束一行
$datar['content'] .= "
</tr>
<tr>";
}
if($jj == $v['day']){
//print_r($v['day']);
$datar['content'] .= "
<td><a class='active' id='MW-RIGHT-CALENDAR-DAY' href='/{$yy}-{$v['month']}-{$v['day']}.html'>{$v['day']}</a></td>";
}else{
$datar['content'] .= "
<td><a href='/{$yy}-{$v['month']}-{$v['day']}.html'>{$v['day']}</a></td>";
}
$lineMark++;
if($k + 1 == $dayCount){//在每月最后一天对前面这个星期天数进行补全
$week = explode(' ', $v['gonglishijian'])[1];
for($e=0;$e<$week_td_count[$week]['after'];$e++){
$datar['content'] .= "
<td></td>";
}
}
}
$datar['content'] .= '</tr>';
///
if($ismobile)
{
$targetDomain = "m.huangliwz.com"; // 目标域名
$currentPath = $_SERVER['REQUEST_URI']; // 获取当前页面路径
$_SERVER['HTTP_HOST'];
$_SERVER['REQUEST_SCHEME']; //=> http
if($_SERVER['HTTP_HOST']!=$targetDomain){
$newUrl = $_SERVER['REQUEST_SCHEME'].'://'.$targetDomain . "/" . ltrim($currentPath, '/');
header("Location: ".$newUrl);
}
include template('mobile','yuejiridetail');
}else{
$targetDomain = "www.huangliwz.com"; // 目标域名
$currentPath = $_SERVER['REQUEST_URI']; // 获取当前页面路径
$_SERVER['HTTP_HOST'];
$_SERVER['REQUEST_SCHEME']; //=> http
if($_SERVER['HTTP_HOST']!=$targetDomain){
$newUrl = $_SERVER['REQUEST_SCHEME'].'://'.$targetDomain . "/" . ltrim($currentPath, '/');
header("Location: ".$newUrl);
}
include template('huangli','yuejiridetail');
}
}
相关程序
黄历网站源码带文章系统带免登录发布模块
PHP黄道吉日查询网源码开源带数据黄历
S19测算引流文章系统带火车头免登录发布
S13仿农历网源码
S16节日倒计时网源码
S17宝宝起名网带文章系统源码
S7诗词起名网引流程序
S5粉红色UI老黄历日历网程序
S3棕色UI老黄历网程序源码
S15灵签网源码
S18周公解梦网源码
测算起名工具网源码