Пример #1
0
 /**
  * 获取可预约的时间
  */
 public function setmonth()
 {
     load_function('global', 'order');
     $d = $GLOBALS['d'];
     $dar = explode('-', $d);
     $month = $dar[1];
     $year = $dar[0];
     echo build_calendar($month, $year, '');
 }
Пример #2
0
echo date('M Y', strtotime($date));
?>
  </div>
  <div style = "float: right; width:50px">
    <a href="/schedule/month/<?php 
echo date('Y-m-d', strtotime('first day of next month', strtotime($date)));
?>
" >>></a>
  </div>
</h1>
<br style="clear: left;" />
</div>

<?php 
global $s;
print build_calendar($month, $year);
function stories_for_day($day)
{
    global $s;
    global $user;
    $data = $s[1];
    $today_events = array();
    foreach ($data as $val) {
        if ($val->field_date_value == $day) {
            if (isset($today_events[$val->np_nid])) {
                $today_events[$val->np_nid]['stories'][] = $val;
            } else {
                $today_events[$val->np_nid] = array('project_title' => $val->np_title, 'stories' => array($val));
            }
        }
    }
Пример #3
0
?>
                <input type="button" name="setid" id="setid" value="确认选择套餐" class="btn btn-submit"/>
                <div class="orderstate"><strong>2 选择体检机构:</strong></div>
                请选择城市:<select name="city" onchange="getmeclist(this.value)">
                <option value="0">请选择</option>
                <option value="30">北京</option>
                <option value="31">宝鸡</option>
                </select>
                <div id="wzlist"></div>
                <div class="orderstate"><strong>3 选择体检时间:</strong></div>
<div id="dateshow">
                <?php 
$dateComponents = getdate();
$month = $dateComponents['mon'];
$year = $dateComponents['year'];
echo build_calendar($month, $year, $dateArray);
?>
</div>
            </div>
<input type="text" name="tjtime" id="tjtime" value="0">
<input type="hidden" name="v"  value="save">
                <input type="submit" name="submit" value="提交">
            </form>
        </div>
    </div>


</div>
        <script type="text/javascript">
            function getmeclist(cityid) {
                $.getJSON("index.php?m=content&f=json&v=listing&cid="+cityid+"&pagesize=20&page=1", function(data) {
Пример #4
0
        // Increment counters
        $currentDay++;
        $dayOfWeek++;
        $displaycount++;
    }
    // Complete the row of the last week in month, if necessary
    //if ($dayOfWeek != 7) {
    //     $remainingDays = 7 - $dayOfWeek;
    //     $calendar .= "<div colspan='$remainingDays' class='not-month'>&nbsp;</div>";
    //}
    //$calendar .= "</li>";
    $calendar .= "</ul>";
    return $calendar;
}
function build_nextWeek($currentmonthdisplayed, $year, $monthString)
{
    global $lastdaydisplayed;
    global $currentmonthdisplayed;
    return "<div style='width: 33%; display:inline-block;'>&nbsp;</div><div style='width: 33%; display:inline-block; text-align:right;'><a href='/next-week/?d={$lastdaydisplayed}'>Next 7 Days -></a></div>";
}
echo build_calendar($startmonth, $startyear, $dateArray);
if ($displaycount < 8) {
    $nxtmonth = $startmonth + 1;
    echo add_to_list($nxtmonth, $startyear, $dateArray);
}
echo build_nextWeek($currentmonthdisplayed, $year, $monthString);
?>
</div>
</div>	
<?php 
get_footer();
Пример #5
0
        $dayOfWeek++;
    }
    // Complete the row of the last week in month, if necessary
    if ($dayOfWeek != 7) {
        $remainingDays = 7 - $dayOfWeek;
        $calendar .= "<td colspan='{$remainingDays}'>&nbsp;</td>";
    }
    $calendar .= "</tr>";
    $calendar .= "</table>";
    return $calendar;
}
?>

<div class="feelings">
<?php 
echo build_calendar($month, $year, $feelings);
?>

	<table class="log hide">
	<?php 
$moods = $this->moods_this_month;
$last_day = '';
$last_time = '';
foreach ($moods as $mood) {
    // hide linear dupes of dates/times
    $simple_date = '';
    if ($last_day == $mood->day) {
        $simple_date = ' class="linear_dupe"';
    }
    $dupe_time = '';
    if ($last_time == $mood->human_time) {
Пример #6
0
            case 6:
                $dayForTable = 'Sa';
                break;
        }
        $currentDayRel = str_pad($currentDay, 2, "0", STR_PAD_LEFT);
        $date = "{$year}-{$month}-{$currentDayRel}";
        //POPULATE Current Day
        if ($currentDayRel == $today_date) {
            $calendar .= "<td data-th='{$dayForTable}' class='day todayDate' id='today_date ' rel='{$date}'><b>{$currentDay}</b></td>";
        } else {
            $calendar .= "<td data-th='{$dayForTable}' class='day' rel='{$date}'><span class='positionCurrentDay'>{$currentDay}</span></td>";
        }
        // Increment counters
        $currentDay++;
        $dayOfWeek++;
    }
    // Complete the row of the last week in month, if necessary
    if ($dayOfWeek != 7) {
        $remainingDays = 7 - $dayOfWeek;
        $calendar .= "<td colspan='{$remainingDays}'>&nbsp;</td>";
    }
    $calendar .= "</tr>";
    $calendar .= "</tbody>";
    $calendar .= "</table>";
    return $calendar;
}
$dateComponents = getdate();
$month = $dateComponents['mon'];
$year = $dateComponents['year'];
echo build_calendar($month, $year);
Пример #7
0
        $calendar .= "</table>";
        return $calendar;
    }
    ?>

	<?php 
    $last_month = '';
    $last_date = '';
    foreach ($this->moods_year as $mood) {
        if ($last_month !== $mood->month) {
            // close if not the first block
            if ($last_month > 0) {
                echo '</table></div></div>';
            }
            echo '<div class="box bg-white recently">';
            echo build_calendar($mood->month, $mood->year, $feelings);
            echo '<div class="feelings"><table class="hide">';
        }
        $simple_date = '';
        if ($last_date !== $mood->human_date) {
            $simple_date = ' class="linear_dupe"';
        }
        ?>
			<tr class="feeling_<?php 
        echo $mood->feeling;
        ?>
">
				<td class="nowrap tiny">
					<span<?php 
        echo $simple_date;
        ?>
include_once dirname(__FILE__) . "/ressources/class.templates.inc";
include_once dirname(__FILE__) . "/ressources/class.users.menus.inc";
include_once dirname(__FILE__) . "/ressources/class.mini.admin.inc";
include_once dirname(__FILE__) . "/ressources/class.mysql.squid.builder.php";
include_once dirname(__FILE__) . "/ressources/class.user.inc";
include_once dirname(__FILE__) . "/ressources/class.calendar.inc";
ini_set('display_errors', 1);
ini_set('error_reporting', E_ALL);
ini_set('error_prepend_string', null);
ini_set('error_append_string', null);
if (isset($_GET["navcalendar"])) {
    build_calendar();
    exit;
}
if (isset($_GET["build-calendar"])) {
    build_calendar();
    exit;
}
if (isset($_GET["popup"])) {
    popup();
    exit;
}
if (isset($_GET["FormatQuery"])) {
    FormatQuery();
    exit;
}
js();
function js()
{
    header("content-type: application/x-javascript");
    $page = CurrentPageName();
Пример #9
0
<?php

echo "<div class='center width-70'><br/>";
outletList($_SESSION['outletID'], 'enabled', 'reservation_outlet_id', 'ON');
$dateComponents = getdate();
list($sy, $sm, $sd) = explode("-", $_SESSION['selectedDate']);
echo build_calendar($sm, $sy, $dateArray);
echo "</div><br/>";