源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

php日历制作代码分享

  • 时间:2021-04-26 09:18 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:php日历制作代码分享
  [img]http://files.jb51.net/file_images/article/201401/20140120152507.jpg?2014020152529[/img] calendar.class.php  
[url=?]   echo '<td><a href="?'.$this->prevMonth($this->year, $this->month).'">'.'<'.'</a></td>';    echo '<td colspan="3">';    echo '<form>';    echo '<select name="year" onchange="window.location=\''.$url.'?year=\'+this.options[selectedIndex].value+\'&month='.$this->month.'\'">';    for($sy=1970; $sy <= 2100; $sy++){     $selected = ($sy==$this->year) ? "selected" : "";     echo '<option '.$selected.' value="'.$sy.'">'.$sy.'</option>';    }    echo '</select>';    echo '<select name="month"  onchange="window.location=\''.$url.'?year='.$this->year.'&month=\'+this.options[selectedIndex].value">';    for($sm=1; $sm<=12; $sm++){     $selected1 = ($sm==$this->month) ? "selected" : "";     echo '<option '.$selected1.' value="'.$sm.'">'.$sm.'</option>';    }    echo '</select>';    echo '</form>';     echo '</td>';    echo '<td><a href="?'.$this->nextYear($this->year, $this->month).'">'.'>>'.'</a></td>';    echo '<td><a href="?'.$this->nextMonth($this->year, $this->month).'">'.'>'.'</a></td>';    echo '</tr>';   }  } ?>  
 test.php  
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部