_calendar01.tpl
5.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META name="GENERATOR" content="Microsoft FrontPage 4.0">
<META http-equiv="Content-Type" content="text/html;" charset="shift_jis" />
<META http-equiv="Content-Style-Type" content="text/css" />
<link rel="stylesheet" type="text/css" href="../../css/style.css" />
<TITLE>e-イベント</TITLE>
<SCRIPT LANGUAGE="JavaScript" type="text/javascript">
{literal}
<!--
function GmDisp(){
document.cldr.action = "calendar.php";
document.cldr.method="POST";
document.cldr.submit();
return;
}
function reload(strDate){
document.cldr.strMainDate.value=strDate;
document.cldr.action = "calendar.php";
document.cldr.method="POST";
document.cldr.submit();
return;
}
function event_input(strDate){
document.cldr.hiduke.value=strDate;
document.cldr.action = "usr_input.php";
document.cldr.method="POST";
document.cldr.submit();
return;
}
var message = new Array();
//**************** ポップアップガイダンス ****************
var layW = 250; //ウインドウの幅:IE用
function Init() {
scrX = document.body.clientWidth;
scrY = document.body.clientHeight;
lay = document.all("iL");
lay.style.visibility = "hidden";
Lflag = true;
}
function Mover(Disp_Cnt) {
//alert(document.getElementById("HidMsg"+Disp_Cnt).value);
if (Lflag) {
//alert(document.getElementById("HidMsg"+Disp_Cnt).value);
if (document.getElementById("HidMsg"+Disp_Cnt).value != "") {
layW = Get_Width(document.getElementById("HidMsg"+Disp_Cnt).value);
Select_visibility(0);
lay.innerHTML = document.getElementById("HidMsg"+Disp_Cnt).value;
lay.style.left = layX;
lay.style.top = layY;
lay.style.width = layW;
layH = lay.style.height;
lay.style.visibility = "visible";
}
}
}
function Get_Width(pMsg) {
var retWidth = "";
pMsg = pMsg.replace(/\r\n|\r|\n/g, "<br />")
var chkArr = pMsg.split("<br />");
var LenMax = 0;
for (i = 0; i <= chkArr.length - 1; i++) {
var ix_str, strcnt = 0;
for (ix_str = 0; ix_str < chkArr[i].length; ix_str++) {
if (escape(chkArr[i].charAt(ix_str)).length >= 4) strcnt += 2;
else strcnt++;
}
if (LenMax < strcnt) {
LenMax = strcnt;
}
}
//alert(LenMax);
if (LenMax <= 50) {
retWidth = 250;
} else {
retWidth = (LenMax / 2) * 10;
}
return retWidth;
}
function Select_visibility(flg) {
var MaxCount = document.cldr.getElementsByTagName("select").length;
for (i = 0; i < MaxCount; i++) {
if (flg == 0) {
document.cldr.getElementsByTagName("select")[i].style.visibility = "hidden";
} else {
document.cldr.getElementsByTagName("select")[i].style.visibility = "";
}
}
}
var scrX, scrY;
var layX, layY, layH;
var lay;
var Lflag = false;
document.onmousemove = Mmove;
function Mout(n) {
if (Lflag) {
lay.style.visibility = "hidden";
Select_visibility(1);
}
}
function Mmove(e) {
if (Lflag) {
layX = 10 + window.event.clientX + document.body.scrollLeft + "px";
layY = 10 + window.event.clientY + document.body.scrollTop + "px";
if ((layX + layW) >= scrX) {
layX = scrX - layW - 1;
if (layX <= 1) {
layX = 1;
}
}
if ((layY + layH) >= scrY) {
layY = scrY - layH - 1;
if (layY <= 1) {
layY = 1;
}
}
}
}
//-->
{/literal}
</SCRIPT>
</HEAD>
<BODY onload="javascript:Init();">
<div align="center">
<FORM METHOD="POST" name="cldr">
<!-- カレンダー表示 -->
<TABLE width=100% border="0" align="center" cellPadding=0 cellSpacing=0>
<TR><TD>{$header_memo}</TD></TR>
</TABLE>
<span="TinnyFont"><br /></span>
<TABLE width=100% border="0" align="center" cellPadding=0 cellSpacing=0 class="header">
<TR>
<TD align="left" width="350">
<a href="http://www.media-tek.co.jp/e_event/index.html" target="_blank">
<img src="../../image/titilemini.gif" alt="e-イベント" width="117" height="40" border="0" />
</a>
</TD>
<TD align="center">
<SELECT name="main_year" onChange="GmDisp()">{$Year_Data}</SELECT>
<SELECT name="main_mon" onChange="GmDisp()">{$Month_Data}</SELECT>
</TD>
<TD align="right" width="350"><INPUT type="button" value="<< 先月" onclick="return reload({$strDispDate[0]})"><INPUT type="submit" value=" 今月 " onclick="return reload({$strDispDate[1]})"><INPUT type="submit" value="来月 >>" onclick="return reload({$strDispDate[2]})"> </TD>
</TR>
</TABLE>
<TABLE width="100%" class="mainTbr">
<TR align="center">
<TD width="15%" bgcolor="#FDDFFD">日</TD>
<TD width="14%" bgcolor="#EAFDEA">月</TD>
<TD width="14%" bgcolor="#EAFDEA">火</TD>
<TD width="14%" bgcolor="#EAFDEA">水</TD>
<TD width="14%" bgcolor="#EAFDEA">木</TD>
<TD width="14%" bgcolor="#EAFDEA">金</TD>
<TD width="15%" bgcolor="#CCF8FB">土</TD>
</TR>
{section name=idx loop=$strCalData}
<TR>
<TD width="15%" height="50" bgcolor="#FDDFFD">{$strCalData[idx][0]}</TD>
<TD width="14%" height="50" bgcolor="#FFFFFF">{$strCalData[idx][1]}</TD>
<TD width="14%" height="50" bgcolor="#FFFFFF">{$strCalData[idx][2]}</TD>
<TD width="14%" height="50" bgcolor="#FFFFFF">{$strCalData[idx][3]}</TD>
<TD width="14%" height="50" bgcolor="#FFFFFF">{$strCalData[idx][4]}</TD>
<TD width="14%" height="50" bgcolor="#FFFFFF">{$strCalData[idx][5]}</TD>
<TD width="15%" height="50" bgcolor="#CCF8FB">{$strCalData[idx][6]}</TD>
</TR>
{/section}
</TABLE>
<address style="margin-bottom: 20px; ">
<a href="http://www.media-tek.co.jp/" target="_blank" title="メディアテック株式会社ホームページへ" style="color: #fff; ">Copyright (C) 2008 メディアテック株式会社 All rights reserved.</a><br />
</address>
<INPUT type="hidden" name="disp_nm" value="{$stDisp_Name}">
<INPUT type="hidden" name="sYear" value="">
<INPUT type="hidden" name="sMonth" value="">
<INPUT type="hidden" name="strMainDate" value="">
<INPUT type="hidden" name="hiduke" value="">
<INPUT type="hidden" name="usr_name" value="guest">
<INPUT type="hidden" name="usr_pword" value="guest">
<DIV CLASS="spanstyle" ID="iL"></DIV>
</FORM>
</div>
</BODY>
</HTML>