コード例 #1
0
ファイル: seminari.php プロジェクト: cbolk/renbukai-website
                            </div>
                            <div class='semdetails'><i class='fa fa-file-o'></i> locandina: <a  class='noborder' href='./stages/20160819.pdf'><i class='fa fa-file-pdf-o'></i></a></div>         
                    </div>
            <p></p>
        </div-->

		<div class="row">
			<h3>Seminari <?php 
echo "{$year}-" . ($year + 1);
?>
</h3>
        </div>
        <div class="row">
    		<div class="col-lg-12 col-xm-12"  id="seminarlist">
    		  	<?php 
$sem = $s->getSeminars(true);
$num = count($sem);
for ($i = 0; $i < $num; $i++) {
    $firstday = $sem[$i]['giornoinizio'];
    $lastday = $sem[$i]['giornofine'];
    $y = substr($firstday, 0, 4);
    $m = substr($util->getMonthMedNameFromNumber(substr($firstday, 5, 2)), 0, 3);
    $d = substr($firstday, 8, 2);
    $y2 = substr($lastday, 0, 4);
    $m2 = substr($util->getMonthMedNameFromNumber(substr($lastday, 5, 2)), 0, 3);
    $d2 = substr($lastday, 8, 2);
    echo "<div class='seminarwrapper col-lg-12 col-xs-12 col-md-12 ";
    if (strtotime($today) > strtotime($lastday)) {
        echo " passed";
    } else {
        if (strtotime($today) >= strtotime($firstday) && strtotime($today) <= strtotime($lastday)) {
コード例 #2
0
ファイル: calendar.php プロジェクト: cbolk/renbukai-website
{
    return strcmp($a, $b);
}
function select_diretto($name = "")
{
    return function ($elem) use($name) {
        if (strcmp($name, "*") == 0) {
            return true;
        }
        if (strpos($elem['diretto'], $name, 0) === false) {
            return false;
        }
        return true;
    };
}
$all = $s->getSeminars(true);
$from = date("Y", strtotime($all[0]['start']));
$to = date("Y", strtotime($all[count($all) - 1]['end']));
$instructors = $s->getInstructors();
$ni = count($instructors);
if ($ni >= 1) {
    usort($instructors, "sort_asc");
    $ddin = "<div class='controls'>insegnante: <select class='form-control instructor' id='instructor' name='instructor'>";
    for ($nii = 0; $nii < $ni; $nii++) {
        $ddin = $ddin . "<option  value='{$instructors[$nii]}'>" . $instructors[$nii] . "</option>";
    }
    $ddin = $ddin . "</select></div>";
}
$locations = $s->getLocations();
$nl = count($locations);
if ($nl >= 1) {