git-svn-id: http://xe-core.googlecode.com/svn/trunk@1816 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-06-28 02:18:54 +00:00
parent 996fc97b7e
commit c62c515195
8 changed files with 72 additions and 60 deletions

View file

@ -56,7 +56,7 @@
<script type="text/javascript" src="../js/xml_handler.js"></script>
<link rel="stylesheet" href="../css/default.css" type="text/css" />
<link rel="stylesheet" href="./css/popup.css" type="text/css" />
<link rel="stylesheet" href="../../modules/admin/tpl/css/admin.css" type="text/css" />
<link rel="stylesheet" href="./css/calendar.css" type="text/css" />
<script type="text/javascript">
@ -82,39 +82,41 @@
</head>
<body>
<div id="popup_content" class="calendar_box">
<div class="calendar_title">
<form action="./calendar.php" method="get">
<input type="hidden" name="fo_id" value="<?=$fo_id?>"/>
<input type="hidden" name="callback_func" value="<?=$callback_func?>"/>
<div id="popHeadder">
<h1>Calendar</h1>
</div>
<table width="100%" border="0" cellspacing="0" cellpadding="2" align="center">
<tr>
<td width="40">
<a href="#" onclick="location.href='./calendar.php?fo_id=<?=$fo_id?>&amp;year=<?=$year?>&amp;month=<?=$month?>&amp;method=prev_year&amp;callback_func=<?=$callback_func?>';return false;"><img src="./images/icon_pprev.gif" border="0" alt="prev year" /></a>
<a href="#" onclick="location.href='./calendar.php?fo_id=<?=$fo_id?>&amp;year=<?=$year?>&amp;month=<?=$month?>&amp;method=prev_month&amp;callback_func=<?=$callback_func?>';return false;"><img src="./images/icon_prev.gif" border="0" alt="prev month" /></a>
</td>
<td align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><input type="text" name="year" value="<?=$year?>" class="calendar_input_year" maxlength="4" />-<input type="text" name="month" value="<?=$month?>" maxlength="2" class="calendar_input_month" /></td>
<td><input type="image" src="./images/calendar.gif" class="calendar_btn" /></td>
</tr>
</table>
</td>
<td width="40">
<a href="#" onclick="location.href='./calendar.php?fo_id=<?=$fo_id?>&amp;year=<?=$year?>&amp;month=<?=$month?>&amp;method=next_month&amp;callback_func=<?=$callback_func?>';return false;"><img src="./images/icon_nnext.gif" border="0" alt="next month" /></a>
<a href="#" onclick="location.href='./calendar.php?fo_id=<?=$fo_id?>&amp;year=<?=$year?>&amp;month=<?=$month?>&amp;method=next_year&amp;callback_func=<?=$callback_func?>';return false;"><img src="./images/icon_next.gif" border="0" alt="next year" /></a>
</td>
</tr>
</table>
<form action="./calendar.php" method="get">
<input type="hidden" name="fo_id" value="<?=$fo_id?>"/>
<input type="hidden" name="callback_func" value="<?=$callback_func?>"/>
</form>
</div>
<div id="popBody">
<div class="calendar">
<div class="yymm">
<div class="yy">
<a href="./calendar.php?fo_id=<?=$fo_id?>&amp;year=<?=$year?>&amp;month=<?=$month?>&amp;method=prev_year&amp;callback_func=<?=$callback_func?>" class="left"><img src="../img/buttonLeft2.gif" alt="prev" width="11" height="11" /></a><?=$year?><a href="./calendar.php?fo_id=<?=$fo_id?>&amp;year=<?=$year?>&amp;month=<?=$month?>&amp;method=next_year&amp;callback_func=<?=$callback_func?>" class="right"><img src="../img/buttonRight2.gif" alt="next" width="11" height="11" /></a>
</div>
<div class="mm">
<p><?=date("M", mktime(0,0,0,$month,1,$year))?></p>
<a href="./calendar.php?fo_id=<?=$fo_id?>&amp;year=<?=$year?>&amp;month=<?=$month?>&amp;method=prev_month&amp;callback_func=<?=$callback_func?>" class="left"><img src="../img/buttonLeft2.gif" alt="prev" width="11" height="11" /></a><span><?=$month?></span><a href="./calendar.php?fo_id=<?=$fo_id?>&amp;year=<?=$year?>&amp;month=<?=$month?>&amp;method=next_month&amp;callback_func=<?=$callback_func?>" class="right"><img src="../img/buttonRight2.gif" alt="next" width="11" height="11" /></a>
</div>
<div class="go">
<input type="text" class="inputTypeY" value="<?=$year?>" />
<input type="text" class="inputTypeM" value="<?=$month?>" />
<input name="" type="image" src="../img/buttonGo.gif" alt="Go" />
</div>
</div>
<table cellspacing="0" class="dd">
<div class="calendar_list">
<?php
for($i=0;$i<5;$i++) {
for($i=0;$i<6;$i++) {
?>
<tr class="<?if($i==0){?>first<?}elseif($i==5){?>last<?}?>">
<?php
for($j=0;$j<7;$j++) {
$m = $month;
$y = $year;
@ -143,25 +145,36 @@
}
}
if($j==0) $class_name = "sunday";
elseif($j==6) $class_name = "saturday";
if($j==0) $class_name = "sun";
else $class_name= "";
$date = date("Y. m. d", mktime(0,0,0,$m, $day, $y));
$date_str = date("Ymd", mktime(0,0,0,$m, $day, $y));
if(date("Ymd")==$date_str) $sel_class = "today";
else $sel_class = "";
?>
<div class="calendar_cell <?=$sel_class?> <?=$class_name?>" onclick="selectDate('<?=$date?>','<?=$date_str?>','<?=$callback_func?>');return false;"><div><?=$day?></div></div>
<td class="<?=$class_name?>">
<?if(date("Ymd")==$date_str){?><strong><?}?>
<?if($day){?><a href="#" onclick="selectDate('<?=$date?>','<?=$date_str?>','<?=$callback_func?>');return false;"><?=$day?></a><?}else{?>&nbsp;<?}?>
<?if(date("Ymd")==$date_str){?></strong><?}?>
</td>
<?
}
?>
</tr>
<?
}
?>
</table>
</div>
</div>
</form>
<div id="popFooter">
<span class="close"><a href="#" onclick="window.close();" class="buttonTypeA"><img src="../img/blank.gif" alt="" class="leftCap" />close<img src="../img/blank.gif" alt="" class="rightCap" /></a></span>
</div>
<script type="text/javascript">
xAddEventListener(window,'load', setFixedPopupSize);
</script>

View file

@ -1,8 +0,0 @@
@charset "utf-8";
body {
margin:0px;
padding:0px;
border-width:0px;
border-style:none;
}