fpath = "./data/"; $this -> userfile = $this->fpath."sch"; $this -> lockfile = $this -> userfile.".lock"; $this -> self = getenv("SCRIPT_NAME"); $this -> titles[] = ""; $this -> errormessage = ""; $this -> readonly = $_ro; } //----- constructor end //----- footer function footer(){ $_now = getdate(); $_date = $_now["year"]."/".$_now["mon"]."/".$_now["mday"]; if(ereg("[?]",$this->self)) { $_act = $this->self."&";}else{$_act = $this->self."?";} $_act .= "scdate=".base64_encode("$_date"); $_actd = $_act."&sctype=".base64_encode("d"); $_actm = $_act."&sctype=".base64_encode("m"); $_actw = $_act."&sctype=".base64_encode("w"); print "
[今月][今週][今日] | "; print "
$_year 年 $_month 月の月間スケジュール | ||
<<前月 | 次月>> | "; print ""; print "
".$this->weekstr[$w]." | "; print "||
---|---|---|
".str_pad($c,2,"0",STR_PAD_LEFT);
print " ";
print " "; } elseif($c != "") { print " | ".str_pad($c,2,"0",STR_PAD_LEFT);
print " ";
print " "; } else { print " | "; } if($exists_title && $c!=""){ if(is_array($this->titles[$c])){ print ""; foreach($this->titles[$c] as $_v){ if($_v[6] != 0) $_pub = "(秘)"; else $_pub =""; if($_v[6] != 0 && $this->readonly){;}else{ if($_v[2]=="") $s=" ☆"; else $s=">".$_v[2]."- "; $s .= ""; $s .= $this->decode($_v[4]); $s .= "$_pub "; $_sd[] = $s; } } if(is_array($_sd)){ sort($_sd); foreach($_sd as $_v) print $_v; } unset($_sd); print ""; } } } } print " |
".$this->nickname."$_year 年 $_month 月 $_day 日からの週間スケジュール | |
<<前週 | 次週>> |
";
} else {
print "";
}
print "$_m/$_d (".$this->weekstr[$w].")";
print " ";
print " | ";
print "";
if($exists_title){
$_d += 0;
if(is_array($this->titles[$_d])){
foreach($this->titles[$_d] as $_v){
if($_v[6] != 0) $_pub = "(非公開)"; else $_pub ="";
if($_v[6] != 0 && $this->readonly){;}else{
if($_v[2]=="") $s = " ☆"; else $s = $_v[2]." - ";
$s .= $_v[3]." ";
$s .= $this->decode($_v[4]);
$s .= "$_pub | "; $_sd[] = $s; } } if(is_array($_sd)){ sort($_sd); foreach($_sd as $_v) print $_v; } } } unset($_sd); print " |
".$this->nickname."$_year 年 $_month 月 $_day 日のスケジュール |
[月間カレンダー][週間カレンダー] |
".str_pad($this->daytime[$i],2,"0",STR_PAD_LEFT).":00"; print " daytime[$i])."> | "; print "";
if($this->daytime[$i]==$this->daytimelast) $c=23; else $c=$this->daytime[$i+1];
if(is_array($_t)){
$_flag = false;
for($j=0;$j "; } print " |
".$this->nickname."$_year 年 $_month 月 $_day 日のスケジュール | ||
【 $_title 】< $s >$_pub | "; if(!$this->readonly){ //----- edit button print ""; //----- delete button print ""; } else { print "||
| ||
[月間カレンダー][週間カレンダー] |
$_year 年 $_month 月 $_day 日のスケジュール登録 |