Exemplo n.º 1
0
    <div id="calendarwrap">
		   
    <!-- #customize your modal window here -->
    
    <div id="calendar" class="window modalwin">
	<?php 
$tmonth = date('m', time());
$tyear = date('y', time());
if ($tmonth < 12) {
    $nmonth = $tmonth + 1;
    $nyear = $tyear;
} else {
    $nmonth = 1;
    $nyear = $tyear + 1;
}
echo showCalendar($product->delivery_method_id, 25);
?>
 
	<a href="#" class="close">X <img src="<?php 
echo theme_url() . '/images/close-button.png';
?>
" alt="<?php 
echo lang('Close');
?>
" /></a>
    
    </div><!-- End of Calendar //-->
    <!-- Do not remove div#mask, because you'll need it to fill the whole screen --> 
    
    </div><!-- Calendar Wrap //-->
             
                 
                <!-- #customize your modal window here -->
             
                <div id="calendar" class="window modalwin">
                    <?php 
$tmonth = date('m', time());
$tyear = date('y', time());
if ($tmonth < 12) {
    $nmonth = $tmonth + 1;
    $nyear = $tyear;
} else {
    $nmonth = 1;
    $nyear = $tyear + 1;
}
echo showCalendar($row->delivery_method_id, 25, date('d-m-Y', strtotime($row->delivery_date)));
?>
 
                    <a href="#" class="close"><img src="<?php 
echo theme_url() . '/images/close-button.png';
?>
" /></a>
             
                </div>
                <!-- Do not remove div#mask, because you'll need it to fill the whole screen --> 

            </div>
            
            <div id="postalcode-info" class="modalwin" style="display:none;">
                    <a href="#" class="closepostal"><img src="<?php 
echo theme_url();
Exemplo n.º 3
0
<?php

include "system-header.php";
include "rotacalendar.php";
showCalendar(true);
include "system-footer.php";
Exemplo n.º 4
0
Arquivo: index.php Projeto: annhv/php
			<input type="submit" value="Say hello" />
		</form>
			
		<?php 
sayHello();
?>
			
		<hr />
			
		<h3>Task2</h3>
	
		<form>
			Month:
			<?php 
printMonthSelect();
?>
				
			Year:
			<?php 
printYearSelect();
?>
				
			<input type="submit" value="Show"/>
		</form>
		
		<?php 
showCalendar();
?>
	
	</body>
</html>
Exemplo n.º 5
0
<?php

include "system-header.php";
include "rotacalendar.php";
showCalendar(false);
include "system-footer.php";
Exemplo n.º 6
0
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <meta charset="UTF-8">
    </head>
    <body>
        <h3>2016年2月の予定</h3>
        <?php 
showStyleTag();
// 2016年2月のカレンダーを作成する
$yotei = array(10 => "市川由衣さんの誕生日", 23 => "中島みゆきさんの誕生日");
showCalendar(2016, 2, $yotei);
//--------------------------------------------------------------------
//カレンダーを表示する関数
function showCalendar($year, $mon, $yotei)
{
    $week_list = array("日", "月", "火", "水", "木", "金", "土");
    $colors = array(0 => "#fff0f0", 6 => "#f0f0ff");
    $cur = strtotime("{$year}-{$mon}-1");
    // 初日のタイムスタンプを求める
    echo "<table>";
    for (;;) {
        // 月番号、日付、曜日を得る
        $cur_mon = intval(date("m", $cur));
        if ($cur_mon > $mon) {
            break;
        }
 private function showCalendarForMonth($year, $month)
 {
     $date = "{$year}-{$month}-1";
     showCalendar($this->page->slug, $date);
 }