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 = '400620';
include_once('./_common.php');
@ -53,24 +53,24 @@ if ($search) // 검색 결과일 때만 처음 버튼을 보여줌
?>
<form name="flist">
<input type="hidden" name="doc" value="<?=$doc?>">
<input type="hidden" name="sort1" value="<?=$sort1?>">
<input type="hidden" name="sort2" value="<?=$sort2?>">
<input type="hidden" name="page" value="<?=$page?>">
<input type="hidden" name="doc" value="<?php echo $doc; ?>">
<input type="hidden" name="sort1" value="<?php echo $sort1; ?>">
<input type="hidden" name="sort2" value="<?php echo $sort2; ?>">
<input type="hidden" name="page" value="<?php echo $page; ?>">
<fieldset>
<legend>상품재고 검색</legend>
<span>
<?=$listall?>
전체 상품 <?=$total_count ?>개
<?php echo $listall; ?>
전체 상품 <?php echo $total_count; ?>개
</span>
<? // ##### // 웹 접근성 취약 지점 시작 - 지운아빠 2013-04-15 ?>
<?php // ##### // 웹 접근성 취약 지점 시작 - 지운아빠 2013-04-15 ?>
<label for="sel_ca_id" class="sound_only">분류선택</label>
<select name="sel_ca_id" id="sel_ca_id">
<option value=''>전체분류</option>
<?
<?php
$sql1 = " select ca_id, ca_name from {$g4['shop_category_table']} order by ca_id ";
$result1 = sql_query($sql1);
for ($i=0; $row1=mysql_fetch_array($result1); $i++) {
@ -81,16 +81,16 @@ if ($search) // 검색 결과일 때만 처음 버튼을 보여줌
}
?>
</select>
<? // ##### // 웹 접근성 취약 지점 끝 ?>
<?php // ##### // 웹 접근성 취약 지점 끝 ?>
<label for="sel_field" class="sound_only">검색대상</label>
<select name="sel_field" id="sel_field">
<option value="it_name" <?=get_selected($sel_field, 'it_name')?>>상품명</option>
<option value="it_id" <?=get_selected($sel_field, 'it_id')?>>상품코드</option>
<option value="it_name" <?php echo get_selected($sel_field, 'it_name'); ?>>상품명</option>
<option value="it_id" <?php echo get_selected($sel_field, 'it_id'); ?>>상품코드</option>
</select>
<label for="search" class="sound_only">검색어<strong class="sound_only"> 필수</strong></label>
<input type="text" name="search" value="<?=$search?>" required class="frm_input required">
<input type="text" name="search" value="<?php echo $search; ?>" required class="frm_input required">
<input type="submit" value="검색" class="btn_submit">
</fieldset>
@ -105,28 +105,28 @@ if ($search) // 검색 결과일 때만 처음 버튼을 보여줌
</div>
<form name="fitemstocklist" action="./itemstocklistupdate.php" method="post">
<input type="hidden" name="sort1" value="<?=$sort1 ?>">
<input type="hidden" name="sort2" value="<?=$sort2 ?>">
<input type="hidden" name="sel_ca_id" value="<?=$sel_ca_id ?>">
<input type="hidden" name="sel_field" value="<?=$sel_field ?>">
<input type="hidden" name="search" value="<?=$search ?>">
<input type="hidden" name="page" value="<?=$page ?>">
<input type="hidden" name="sort1" value="<?php echo $sort1; ?>">
<input type="hidden" name="sort2" value="<?php echo $sort2; ?>">
<input type="hidden" name="sel_ca_id" value="<?php echo $sel_ca_id; ?>">
<input type="hidden" name="sel_field" value="<?php echo $sel_field; ?>">
<input type="hidden" name="search" value="<?php echo $search; ?>">
<input type="hidden" name="page" value="<?php echo $page; ?>">
<table class="frm_basic">
<thead>
<tr>
<th scope="col"><a href="<?=title_sort("it_id") . "&amp;$qstr1"; ?>">상품코드<span class="sound_only"> 순 정렬</span></a></th>
<th scope="col"><a href="<?=title_sort("it_name") . "&amp;$qstr1"; ?>">상품명<span class="sound_only"> 순 정렬</span></a></th>
<th scope="col"><a href="<?=title_sort("it_stock_qty") . "&amp;$qstr1"; ?>">창고재고<span class="sound_only"> 순 정렬</span></a></th>
<th scope="col"><a href="<?php echo title_sort("it_id") . "&amp;$qstr1"; ?>">상품코드<span class="sound_only"> 순 정렬</span></a></th>
<th scope="col"><a href="<?php echo title_sort("it_name") . "&amp;$qstr1"; ?>">상품명<span class="sound_only"> 순 정렬</span></a></th>
<th scope="col"><a href="<?php echo title_sort("it_stock_qty") . "&amp;$qstr1"; ?>">창고재고<span class="sound_only"> 순 정렬</span></a></th>
<th scope="col">주문대기</th>
<th scope="col">가재고</th>
<th scope="col">재고수정</th>
<th scope="col"><a href="<?=title_sort("it_use") . "&amp;$qstr1"; ?>">판매<span class="sound_only"> 순 정렬</span></a></th>
<th scope="col"><a href="<?php echo title_sort("it_use") . "&amp;$qstr1"; ?>">판매<span class="sound_only"> 순 정렬</span></a></th>
<th scope="col">관리</th>
</tr>
</thead>
<tbody>
<?
<?php
for ($i=0; $row=mysql_fetch_array($result); $i++)
{
$href = G4_SHOP_URL."/item.php?it_id={$row['it_id']}";
@ -145,18 +145,18 @@ if ($search) // 검색 결과일 때만 처음 버튼을 보여줌
?>
<tr>
<td class="td_bignum">
<input type="hidden" name="it_id[<?=$i?>]" value="<?=$row['it_id']?>">
<?=$row['it_id']?>
<input type="hidden" name="it_id[<?php echo $i; ?>]" value="<?php echo $row['it_id']; ?>">
<?php echo $row['it_id']; ?>
</td>
<td><a href="<?=$href?>"><?=get_it_image($row['it_id'].'_s', 50, 50)?><?=cut_str(stripslashes($row['it_name']), 60, "&#133")?></a></td>
<td class="td_num"><?=number_format($row['it_stock_qty'])?></td>
<td class="td_num"><?=number_format($wait_qty)?></td>
<td class="td_num"><?=number_format($temporary_qty)?></td>
<td class="td_num"><input type="text" name="it_stock_qty[<?=$i?>]" value="<?=$row['it_stock_qty']?>" class="frm_input" size="10" autocomplete="off"></td>
<td class="td_chk"><input type="checkbox" name="it_use[<?=$i?>]" value="1" <?=($row['it_use'] ? "checked" : "")?>></td>
<td class="td_smallmng"><a href="./itemform.php?w=u&amp;it_id=<?=$row['it_id']?>&amp;ca_id=<?=$row['ca_id']?>&amp;$qstr">수정</a></td>
<td><a href="<?php echo $href; ?>"><?php echo get_it_image($row['it_id'].'_s', 50, 50); ?><?php echo cut_str(stripslashes($row['it_name']), 60, "&#133"); ?></a></td>
<td class="td_num"><?php echo number_format($row['it_stock_qty']); ?></td>
<td class="td_num"><?php echo number_format($wait_qty); ?></td>
<td class="td_num"><?php echo number_format($temporary_qty); ?></td>
<td class="td_num"><input type="text" name="it_stock_qty[<?php echo $i; ?>]" value="<?php echo $row['it_stock_qty']; ?>" class="frm_input" size="10" autocomplete="off"></td>
<td class="td_chk"><input type="checkbox" name="it_use[<?php echo $i; ?>]" value="1" <?php echo ($row['it_use'] ? "checked" : ""); ?>></td>
<td class="td_smallmng"><a href="./itemform.php?w=u&amp;it_id=<?php echo $row['it_id']; ?>&amp;ca_id=<?php echo $row['ca_id']; ?>&amp;$qstr">수정</a></td>
</tr><tr>
<?
<?php
}
if (!$i)
echo '<tr><td colspan="8" class="empty_table"><span>자료가 없습니다.</span></td></tr>';
@ -170,8 +170,8 @@ if ($search) // 검색 결과일 때만 처음 버튼을 보여줌
</section>
<?=get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&amp;page=");?>
<?php echo get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&amp;page="); ?>
<?
<?php
include_once (G4_ADMIN_PATH.'/admin.tail.php');
?>