php strict 적용

This commit is contained in:
chicpro
2013-04-30 18:22:34 +09:00
parent 2c8e90c973
commit b145b3970e
62 changed files with 1380 additions and 1380 deletions

View File

@ -1,4 +1,4 @@
<?
<?php
$sub_menu = '400730';
include_once('./_common.php');
@ -25,8 +25,8 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
?>
<form name="fbanner" action="./bannerformupdate.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="w" value="<?=$w ?>">
<input type="hidden" name="bn_id" value="<?=$bn_id ?>">
<input type="hidden" name="w" value="<?php echo $w; ?>">
<input type="hidden" name="bn_id" value="<?php echo $bn_id; ?>">
<section class="cbox">
<h2>배너 입력 수정</h2>
@ -40,7 +40,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
<th scope="row">이미지</th>
<td>
<input type="file" name="bn_bimg">
<?
<?php
$bimg_str = "";
$bimg = G4_DATA_PATH."/banner/{$bn['bn_id']}";
if (file_exists($bimg) && $bn['bn_id']) {
@ -67,70 +67,70 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
<tr>
<th scope="row"><label for="bn_alt">이미지 설명</label></th>
<td>
<?=help("img 태그의 alt, title 에 해당되는 내용입니다.\n배너에 마우스를 오버하면 이미지의 설명이 나옵니다.");?>
<input type="text" name="bn_alt" value="<?=$bn['bn_alt'] ?>" id="bn_alt" class="frm_input" size="80">
<?php echo help("img 태그의 alt, title 에 해당되는 내용입니다.\n배너에 마우스를 오버하면 이미지의 설명이 나옵니다."); ?>
<input type="text" name="bn_alt" value="<?php echo $bn['bn_alt']; ?>" id="bn_alt" class="frm_input" size="80">
</td>
</tr>
<tr>
<th scope="row"><label for="bn_url">링크</label></th>
<td>
<?=help("배너클릭시 이동하는 주소입니다.");?>
<input type="text" name="bn_url" size="80" value="<?=$bn['bn_url'] ?>" id="bn_url" class="frm_input">
<?php echo help("배너클릭시 이동하는 주소입니다."); ?>
<input type="text" name="bn_url" size="80" value="<?php echo $bn['bn_url']; ?>" id="bn_url" class="frm_input">
</td>
</tr>
<tr>
<th scope="row"><label for="bn_position">출력위치</label></th>
<td>
<?=help("왼쪽 : 쇼핑몰화면 왼쪽에 출력합니다.\n메인 : 쇼핑몰 메인화면(index.php)에만 출력합니다.", 50);?>
<?php echo help("왼쪽 : 쇼핑몰화면 왼쪽에 출력합니다.\n메인 : 쇼핑몰 메인화면(index.php)에만 출력합니다.", 50); ?>
<select name="bn_position" id="bn_position">
<option value="왼쪽" <?=get_selected($bn['bn_position'], '왼쪽')?>>왼쪽</option>
<option value="메인" <?=get_selected($bn['bn_position'], '메인')?>>메인</option>
<option value="왼쪽" <?php echo get_selected($bn['bn_position'], '왼쪽'); ?>>왼쪽</option>
<option value="메인" <?php echo get_selected($bn['bn_position'], '메인'); ?>>메인</option>
</select>
</td>
</tr>
<tr>
<th scope="row"><label for="bn_border">테두리</label></th>
<td>
<?=help("배너이미지에 테두리를 넣을지를 설정합니다.", 50);?>
<?php echo help("배너이미지에 테두리를 넣을지를 설정합니다.", 50); ?>
<select name="bn_border" id="bn_border">
<option value="0" <?=get_selected($bn['bn_border'], 0)?>>사용안함</option>
<option value="1" <?=get_selected($bn['bn_border'], 1)?>>사용</option>
<option value="0" <?php echo get_selected($bn['bn_border'], 0); ?>>사용안함</option>
<option value="1" <?php echo get_selected($bn['bn_border'], 1); ?>>사용</option>
</select>
</td>
</tr>
<tr>
<th scope="row"><label for="bn_new_win">새창</label></th>
<td>
<?=help("배너클릭시 새창을 띄울지를 설정합니다.", 50);?>
<?php echo help("배너클릭시 새창을 띄울지를 설정합니다.", 50); ?>
<select name="bn_new_win" id="bn_new_win">
<option value="0" <?=get_selected($bn['bn_new_win'], 0)?>>사용안함</option>
<option value="1" <?=get_selected($bn['bn_new_win'], 1)?>>사용</option>
<option value="0" <?php echo get_selected($bn['bn_new_win'], 0); ?>>사용안함</option>
<option value="1" <?php echo get_selected($bn['bn_new_win'], 1); ?>>사용</option>
</select>
</td>
</tr>
<tr>
<th scope="row"><label for="bn_begin_time">시작일시</label></th>
<td>
<?=help("배너 게시 시작일시를 설정합니다.");?>
<input type="text" name="bn_begin_time" value="<? echo $bn['bn_begin_time'] ?>" id="bn_begin_time" class="frm_input" size="21" maxlength="19">
<input type="checkbox" name="bn_begin_chk" value="<? echo date("Y-m-d 00:00:00", time()); ?>" id="bn_begin_chk" onclick="if (this.checked == true) this.form.bn_begin_time.value=this.form.bn_begin_chk.value; else this.form.bn_begin_time.value = this.form.bn_begin_time.defaultValue;">
<?php echo help("배너 게시 시작일시를 설정합니다."); ?>
<input type="text" name="bn_begin_time" value="<?php echo $bn['bn_begin_time']; ?>" id="bn_begin_time" class="frm_input" size="21" maxlength="19">
<input type="checkbox" name="bn_begin_chk" value="<?php echo date("Y-m-d 00:00:00", time()); ?>" id="bn_begin_chk" onclick="if (this.checked == true) this.form.bn_begin_time.value=this.form.bn_begin_chk.value; else this.form.bn_begin_time.value = this.form.bn_begin_time.defaultValue;">
<label for="bn_begin_chk">오늘</label>
</td>
</tr>
<tr>
<th scope="row"><label for="bn_end_time">종료일시</label></th>
<td>
<?=help("배너 게시 종료일시를 설정합니다.");?>
<input type="text" name="bn_end_time" value="<? echo $bn['bn_end_time'] ?>" id="bn_end_time" class="frm_input" size=21 maxlength=19>
<input type="checkbox" name="bn_end_chk" value="<? echo date("Y-m-d 23:59:59", time()+60*60*24*31); ?>" id="bn_end_chk" onclick="if (this.checked == true) this.form.bn_end_time.value=this.form.bn_end_chk.value; else this.form.bn_end_time.value = this.form.bn_end_time.defaultValue;">
<?php echo help("배너 게시 종료일시를 설정합니다."); ?>
<input type="text" name="bn_end_time" value="<?php echo $bn['bn_end_time']; ?>" id="bn_end_time" class="frm_input" size=21 maxlength=19>
<input type="checkbox" name="bn_end_chk" value="<?php echo date("Y-m-d 23:59:59", time()+60*60*24*31); ?>" id="bn_end_chk" onclick="if (this.checked == true) this.form.bn_end_time.value=this.form.bn_end_chk.value; else this.form.bn_end_time.value = this.form.bn_end_time.defaultValue;">
<label for="bn_end_chk">오늘+31일</label>
</td>
</tr>
<tr>
<th scope="row"><label for="bn_order">출력 순서</label></th>
<td>
<?=help("배너를 출력할 때 순서를 정합니다. 숫자가 작을수록 먼저 출력됩니다.");?>
<?=order_select("bn_order", $bn['bn_order'])?>
<?php echo help("배너를 출력할 때 순서를 정합니다. 숫자가 작을수록 먼저 출력됩니다."); ?>
<?php echo order_select("bn_order", $bn['bn_order']); ?>
</td>
</tr>
</tbody>
@ -144,6 +144,6 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
</form>
<?
<?php
include_once (G4_ADMIN_PATH.'/admin.tail.php');
?>