Esempio n. 1
0
                            $alt_date = new WT_Date_Hijri($cal_date->minJD + $d - 1);
                            break;
                        case 'jalali':
                            $alt_date = new WT_Date_Jalali($cal_date->minJD + $d - 1);
                            break;
                        default:
                            break 2;
                    }
                    if (get_class($alt_date) != get_class($cal_date)) {
                        echo "<span class=\"rtl_cal_day\">" . $alt_date->format("%j %M") . "</span>";
                        // Just show the first conversion
                        break;
                    }
                }
                echo '<br style="clear: both;"><div class="details1" style="height: 150px; overflow: auto;">';
                echo calendar_list_text($cal_facts[$d], '', '', false);
                echo '</div>';
            }
            echo '</td>';
            if (($d + $cal_date->minJD - $week_start) % $days_in_week == 0) {
                echo '</tr>';
            }
        }
        echo '</table>';
        break;
}
echo '</div>';
//close "calendar-page"
/////////////////////////////////////////////////////////////////////////////////
// Filter a list of anniversaries
/////////////////////////////////////////////////////////////////////////////////
Esempio n. 2
0
                    print "<span class=\"cal_day current_day\">{$d_fmt}</span>";
                } else {
                    print "<span class=\"cal_day\">{$d_fmt}</span>";
                }
                // Show a converted date
                foreach (explode('_and_', $CALENDAR_FORMAT) as $convcal) {
                    $alt_date = $cal_date->convert_to_cal($convcal);
                    if ($alt_date->CALENDAR_ESCAPE() != $cal_date->CALENDAR_ESCAPE()) {
                        list($alt_date->y, $alt_date->m, $alt_date->d) = $alt_date->JDtoYMD($cal_date->minJD + $d - 1);
                        $alt_date->SetJDfromYMD();
                        print "<span class=\"rtl_cal_day\">" . $alt_date->Format("j M") . "</span>";
                        break;
                    }
                }
                print "<br style=\"clear: both\" /><div class=\"details1\" style=\"height: 150px; overflow: auto;\">";
                print calendar_list_text($cal_facts[$d], "", "", false);
                print "</div>";
            }
            print "</td>";
            if (($d + $cal_date->minJD - $week_start) % $days_in_week == 0) {
                print '</tr>';
            }
        }
        print '</table>';
        break;
}
if ($view == "preview") {
    // Print details of any filtering
    $filters = array();
    if ($filterof == 'living') {
        $filters[] = $pgv_lang['living_only'];