本文整理汇总了PHP中cFecha::getMesNombre方法的典型用法代码示例。如果您正苦于以下问题:PHP cFecha::getMesNombre方法的具体用法?PHP cFecha::getMesNombre怎么用?PHP cFecha::getMesNombre使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类cFecha
的用法示例。
在下文中一共展示了cFecha::getMesNombre方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: b_week
function b_week($ignium)
{
if (!$ignium) {
$mesa = date("m");
$annoa = date("Y");
//$fecha = date("Y-m-d", strtotime("$annoa-$mesa-01"));
} else {
$mesa = date("m", strtotime($ignium)) - 1;
$annoa = date("Y", strtotime($ignium));
if ($mesa < 1) {
$mesa = 12;
$annoa = $annoa - 1;
}
}
$xF = new cFecha(0, "{$annoa}-{$mesa}-01");
$fecha = $xF->get();
$dias_mes = $xF->getDiasDelMes();
$idm = $xF->mes();
$month = $xF->getMesNombre();
//Valores Iniciales
$tdweek = "";
$colorweek = "#FFDFC6";
$nsemana = 1;
$tcal = "";
for ($i = 1; $i <= $dias_mes; $i++) {
$nowdate = "{$annoa}-{$idm}-{$i}";
$nday = date("l", strtotime($nowdate));
if ($nday == "Monday") {
$dia = dia_semana($nowdate);
$cnowdate = fecha_corta($nowdate);
if ($tcal == "cal_2") {
$tcal = "cal_1";
$tdweek = $tdweek . "<td class='{$tcal}' onclick='show_week(\"{$nowdate}\")'>SEMANA: {$nsemana} <br /> {$cnowdate}</td>";
} else {
$tcal = "cal_2";
$tdweek = $tdweek . "<td class='{$tcal}' onclick='show_week(\"{$nowdate}\")'>SEMANA: {$nsemana} <br /> {$cnowdate}</td>";
}
$nsemana++;
}
}
return "<hr />\n\t<center>\n\t<table class='calendar_week'\n\tcellpadding='2' cellspacing='2' border='2'>\n\t\t<tr>\n\t\t\t<td class='{$tcal}'><img src='../images/common/query_back_down.png' onclick='back_week(\"{$nowdate}\");' /></td>\n\t\t\t{$tdweek}\n\t\t\t<td class='{$tcal}'><img src='../images/common/query_next_down.png' onclick='next_week(\"{$nowdate}\");' /></td>\n\t\t</tr>\n\t</table>\n\t</center>\n\t<hr />";
}
开发者ID:Cywaithaka,项目名称:S.A.F.E.-Open-Source-Microfinance-Suite,代码行数:42,代码来源:frm_calendario_compromisos.php