short_open_tag Off 환경에서 문제되는 부분 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3395 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
bnu 2007-12-21 17:24:58 +00:00
parent a1ea7634f9
commit 2ee20a77d3
4 changed files with 17 additions and 17 deletions

View file

@ -148,7 +148,7 @@
if(!eregi("^([a-z0-9\_\.])",$path)) return $str1;
$path = preg_replace('/^(\.\/|\/)/','',$path);
$path = '<?=$this->tpl_path?>'.$path;
$path = '<?php echo $this->tpl_path?>'.$path;
$output = str_replace($str2, $path, $str1);
return $output;
}

View file

@ -172,14 +172,14 @@ $before_month_month_day = convertDatetoDay( $month == 1 ? $year - 1 : $year, $mo
<div class="go">
<select name="year" class="selectTypeY" onchange="submit()">
<? for($i = $max_year; $i >= $min_year; $i--):?>
<?php for($i = $max_year; $i >= $min_year; $i--):?>
<option value="<?php echo $i?>" <?php echo $year == $i? "selected":""?> class="<?php echo $i%10?($i%2?"select_color1":"select_color2"):"select_color10"?>"><?php echo $i?></option>
<?endfor?>
<?php endfor?>
</select>
<select name="month" class="selectTypeM" onchange="submit()">
<? for($i = 1; $i <= 12; $i++):?>
<?php for($i = 1; $i <= 12; $i++):?>
<option value="<?php echo $i?>" <?php echo $month == $i? "selected":""?> class="<?php echo $i%2?"select_color1":"select_color2"?>"><?php echo sprintf("%02d",$i)?></option>
<?endfor?>
<?php endfor?>
</select>
</div>
<br /><br />
@ -188,15 +188,15 @@ $before_month_month_day = convertDatetoDay( $month == 1 ? $year - 1 : $year, $mo
<table cellspacing="0" class="dd">
<tr>
<?for($y = 0; $y < 7; $y++) {?>
<?php for($y = 0; $y < 7; $y++) {?>
<td class="<?php echo $y==0?"sun":($y==6?"sat":"")?>"><?php echo $dayName[$y]?></td>
<?}?>
<?php }?>
</tr>
<?php
//1주~6주
for($i = 0; $i < 6; $i++) {
?>
<tr class="<?if($i == 0){?>first<?}elseif($i == 5){?>last<?}?>">
<tr class="<?php if($i == 0){?>first<?php }elseif($i == 5){?>last<?php }?>">
<?php
//요일
for($j = 0; $j < 7; $j++) {
@ -235,13 +235,13 @@ $before_month_month_day = convertDatetoDay( $month == 1 ? $year - 1 : $year, $mo
$date_str = $y.sprintf("%02d", $m).sprintf("%02d", $day);
?>
<td class="<?php echo $class_name?>" <?if($day){?> onclick="selectDate('<?php echo $date?>','<?php echo $date_str?>','<?php echo $callback_func?>')"<?}?>>
<?if($m == $month){?><?if(date("Ymd")==$date_str){?><strong><?}?>
<?if($day){?><?php echo $day?><?}else{?>&nbsp;<?}?>
<?if(date("Ymd")==$date_str){?></strong><?}?>
<?}else{?>
<span class="disable"><?if($day){?><?php echo $day?><?}else{?>&nbsp;<?}?></span>
<?}?>
<td class="<?php echo $class_name?>" <?php if($day){?> onclick="selectDate('<?php echo $date?>','<?php echo $date_str?>','<?php echo $callback_func?>')"<?php }?>>
<?php if($m == $month){?><?php if(date("Ymd")==$date_str){?><strong><?php }?>
<?php if($day){?><?php echo $day?><?php }else{?>&nbsp;<?php }?>
<?php if(date("Ymd")==$date_str){?></strong><?php }?>
<?php }else{?>
<span class="disable"><?php if($day){?><?php echo $day?><?php }else{?>&nbsp;<?php }?></span>
<?php }?>
</td>
<?php
}

View file

@ -768,7 +768,7 @@
else $group_check_code = "true";
$attribute = sprintf(
'node_srl="%s" text="<?=(%s?"%s":"")?>" url="%s" expand="%s" document_count="%d" ',
'node_srl="%s" text="<?php echo (%s?"%s":"")?>" url="%s" expand="%s" document_count="%d" ',
$category_srl,
$group_check_code,
$title,

View file

@ -1,4 +1,4 @@
<?
<?php
/*
FREE TO USE
Simple OpenID PHP Class