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 = '400400';
include_once('./_common.php');
@ -86,41 +86,41 @@ if ($search) // 검색렬일 때만 처음 버튼을 보여줌
</style>
<form name="frmorderlist">
<input type="hidden" name="doc" value="<? echo $doc ?>">
<input type="hidden" name="sort1" value="<? echo $sort1 ?>">
<input type="hidden" name="sort2" value="<? echo $sort2 ?>">
<input type="hidden" name="page" value="<? echo $page ?>">
<input type="hidden" name="save_search" value="<?=$search?>">
<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; ?>">
<input type="hidden" name="save_search" value="<?php echo $search; ?>">
<fieldset>
<legend>주문내역 검색</legend>
<span>
<?=$listall?>
전체 주문내역 <?=$total_count ?>건
<?php echo $listall; ?>
전체 주문내역 <?php echo $total_count; ?>건
</span>
<label for="sel_field" class="sound_only">검색대상</label>
<select name="sel_field" id="sel_field">
<option value="od_id" <?=get_selected($sel_field, 'od_id')?>>주문번호</option>
<option value="mb_id" <?=get_selected($sel_field, 'mb_id')?>>회원 ID</option>
<option value="od_name" <?=get_selected($sel_field, 'od_name')?>>주문자</option>
<option value="od_tel" <?=get_selected($sel_field, 'od_tel')?>>주문자전화</option>
<option value="od_hp" <?=get_selected($sel_field, 'od_hp')?>>주문자핸드폰</option>
<option value="od_b_name" <?=get_selected($sel_field, 'od_b_name')?>>받는분</option>
<option value="od_b_tel" <?=get_selected($sel_field, 'od_b_tel')?>>받는분전화</option>
<option value="od_b_hp" <?=get_selected($sel_field, 'od_b_hp')?>>받는분핸드폰</option>
<option value="od_deposit_name" <?=get_selected($sel_field, 'od_deposit_name')?>>입금자</option>
<option value="od_invoice" <?=get_selected($sel_field, 'od_invoice')?>>운송장번호</option>
<option value="od_id" <?php echo get_selected($sel_field, 'od_id'); ?>>주문번호</option>
<option value="mb_id" <?php echo get_selected($sel_field, 'mb_id'); ?>>회원 ID</option>
<option value="od_name" <?php echo get_selected($sel_field, 'od_name'); ?>>주문자</option>
<option value="od_tel" <?php echo get_selected($sel_field, 'od_tel'); ?>>주문자전화</option>
<option value="od_hp" <?php echo get_selected($sel_field, 'od_hp'); ?>>주문자핸드폰</option>
<option value="od_b_name" <?php echo get_selected($sel_field, 'od_b_name'); ?>>받는분</option>
<option value="od_b_tel" <?php echo get_selected($sel_field, 'od_b_tel'); ?>>받는분전화</option>
<option value="od_b_hp" <?php echo get_selected($sel_field, 'od_b_hp'); ?>>받는분핸드폰</option>
<option value="od_deposit_name" <?php echo get_selected($sel_field, 'od_deposit_name'); ?>>입금자</option>
<option value="od_invoice" <?php echo get_selected($sel_field, 'od_invoice'); ?>>운송장번호</option>
</select>
<label for="search" class="sound_only">검색어<strong class="sound_only"> 필수</strong></label>
<input type="text" name="search" value="<?=$search?>" id="search" required class="required frm_input" autocomplete="off">
<input type="text" name="search" value="<?php echo $search; ?>" id="search" required class="required frm_input" autocomplete="off">
<input type="submit" value="검색" class="btn_submit">
</fieldset>
</form>
<section class="cbox">
<h2>주문내역 목록</h2>
<p><?=help('<strong>주의!</strong> 주문번호를 클릭하여 나오는 주문상세내역의 주소를 외부에서 조회가 가능한곳에 올리지 마십시오.')?></p>
<p><?php echo help('<strong>주의!</strong> 주문번호를 클릭하여 나오는 주문상세내역의 주소를 외부에서 조회가 가능한곳에 올리지 마십시오.'); ?></p>
<div id="btn_add">
<a href="./orderprint.php" class="btn_add_optional">주문내역출력</a>
@ -130,18 +130,18 @@ if ($search) // 검색렬일 때만 처음 버튼을 보여줌
<table id="sodr_list">
<thead>
<tr>
<th scope="col"><a href="<?=title_sort("od_id", 1)."&amp;$qstr1";?>">주문번호<span class="sound_only"> 순 정렬</span><br>주문일시</a></th>
<th scope="col"><a href="<?php echo title_sort("od_id", 1)."&amp;$qstr1"; ?>">주문번호<span class="sound_only"> 순 정렬</span><br>주문일시</a></th>
<th scope="col">
<a href="<?=title_sort("od_name")."&amp;$qstr1";?>">주문자<span class="sound_only"> 순 정렬</span></a><br>
<a href="<?=title_sort("mb_id")."&amp;$qstr1"; ?>">회원ID<span class="sound_only"> 순 정렬</span>
<a href="<?php echo title_sort("od_name")."&amp;$qstr1"; ?>">주문자<span class="sound_only"> 순 정렬</span></a><br>
<a href="<?php echo title_sort("mb_id")."&amp;$qstr1"; ?>">회원ID<span class="sound_only"> 순 정렬</span>
</th>
<th scope="col"><a href="<?=title_sort("itemcount", 1)."&amp;$qstr1";?>">건수<span class="sound_only"> 순 정렬</span></a></th>
<th scope="col"><a href="<?=title_sort("orderamount", 1)."&amp;$qstr1";?>" class="order_sum">주문합계<span class="sound_only"> 순 정렬</span></a></th>
<th scope="col"><a href="<?=title_sort("ordercancel", 1)."&amp;$qstr1";?>">주문취소<span class="sound_only"> 순 정렬</span></a></th>
<th scope="col"><a href="<?=title_sort("od_dc_amount", 1)."&amp;$qstr1";?>">DC<span class="sound_only"> 순 정렬</span></a></th>
<th scope="col"><a href="<?=title_sort("receiptamount")."&amp;$qstr1";?>" class="order_sum">입금합계<span class="sound_only"> 순 정렬</span></a></th>
<th scope="col"><a href="<?=title_sort("receiptcancel", 1)."&amp;$qstr1";?>">입금취소<span class="sound_only"> 순 정렬</span></a></th>
<th scope="col"><a href="<?=title_sort("misu", 1)."&amp;$qstr1";?>" class="order_outstanding">미수금<span class="sound_only"> 순 정렬</span></a></th>
<th scope="col"><a href="<?php echo title_sort("itemcount", 1)."&amp;$qstr1"; ?>">건수<span class="sound_only"> 순 정렬</span></a></th>
<th scope="col"><a href="<?php echo title_sort("orderamount", 1)."&amp;$qstr1"; ?>" class="order_sum">주문합계<span class="sound_only"> 순 정렬</span></a></th>
<th scope="col"><a href="<?php echo title_sort("ordercancel", 1)."&amp;$qstr1"; ?>">주문취소<span class="sound_only"> 순 정렬</span></a></th>
<th scope="col"><a href="<?php echo title_sort("od_dc_amount", 1)."&amp;$qstr1"; ?>">DC<span class="sound_only"> 순 정렬</span></a></th>
<th scope="col"><a href="<?php echo title_sort("receiptamount")."&amp;$qstr1"; ?>" class="order_sum">입금합계<span class="sound_only"> 순 정렬</span></a></th>
<th scope="col"><a href="<?php echo title_sort("receiptcancel", 1)."&amp;$qstr1"; ?>">입금취소<span class="sound_only"> 순 정렬</span></a></th>
<th scope="col"><a href="<?php echo title_sort("misu", 1)."&amp;$qstr1"; ?>" class="order_outstanding">미수금<span class="sound_only"> 순 정렬</span></a></th>
<th scope="col">결제수단</th>
<th scope="col">관리</th>
</tr>
@ -149,18 +149,18 @@ if ($search) // 검색렬일 때만 처음 버튼을 보여줌
<tfoot>
<tr class="orderlist">
<th scope="row" colspan="2">합 계</td>
<td><?=(int)$tot_itemcount?>건</td>
<td><?=number_format($tot_orderamount)?></td>
<td><?=number_format($tot_ordercancel)?></td>
<td><?=number_format($tot_dc_amount)?></td>
<td><?=number_format($tot_receiptamount)?></td>
<td><?=number_format($tot_receiptcancel)?></td>
<td><?=number_format($tot_misu)?></td>
<td><?php echo (int)$tot_itemcount; ?>건</td>
<td><?php echo number_format($tot_orderamount); ?></td>
<td><?php echo number_format($tot_ordercancel); ?></td>
<td><?php echo number_format($tot_dc_amount); ?></td>
<td><?php echo number_format($tot_receiptamount); ?></td>
<td><?php echo number_format($tot_receiptcancel); ?></td>
<td><?php echo number_format($tot_misu); ?></td>
<td colspan="2"></td>
</tr>
</tfoot>
<tbody>
<?
<?php
for ($i=0; $i<count($lines[$i]); $i++)
{
// 결제 수단
@ -207,32 +207,32 @@ if ($search) // 검색렬일 때만 처음 버튼을 보여줌
?>
<tr class="orderlist">
<td class="td_odrnum2">
<a href="<?=G4_SHOP_URL?>/orderinquiryview.php?od_id=<?=$lines[$i]['od_id']?>&amp;uq_id=<?=$lines[$i]['uq_id']?>">
<?=$lines[$i]['od_id']?><br>
<span class="sound_only">주문일시 </span><?=$lines[$i]['od_time']?>
<a href="<?php echo G4_SHOP_URL; ?>/orderinquiryview.php?od_id=<?php echo $lines[$i]['od_id']; ?>&amp;uq_id=<?php echo $lines[$i]['uq_id']; ?>">
<?php echo $lines[$i]['od_id']; ?><br>
<span class="sound_only">주문일시 </span><?php echo $lines[$i]['od_time']; ?>
</a>
</td>
<!-- <td align=center><a href="<?=$_SERVER['PHP_SELF']?>?sort1=$sort1&amp;sort2=$sort2&amp;sel_field=od_name&amp;search=<?=$lines[$i]['od_name']?>'><span title="<?=$od_deposit_name?>"><?=cut_str($lines[$i]['od_name'],8,"")?></span></a></td> -->
<!-- <td align=center><a href="<?php echo $_SERVER['PHP_SELF']; ?>?sort1=$sort1&amp;sort2=$sort2&amp;sel_field=od_name&amp;search=<?php echo $lines[$i]['od_name']; ?>'><span title="<?php echo $od_deposit_name; ?>"><?php echo cut_str($lines[$i]['od_name'],8,""); ?></span></a></td> -->
<td class="td_name">
<?=$mb_nick?><br>
<a href="<?=$_SERVER['PHP_SELF']?>?sort1=<?=$sort1?>&amp;sort2=<?=$sort2?>&amp;sel_field=mb_id&amp;search=<?=$lines[$i]['mb_id']?>">
<?=$lines[$i]['mb_id']?>
<?php echo $mb_nick; ?><br>
<a href="<?php echo $_SERVER['PHP_SELF']; ?>?sort1=<?php echo $sort1; ?>&amp;sort2=<?php echo $sort2; ?>&amp;sel_field=mb_id&amp;search=<?php echo $lines[$i]['mb_id']; ?>">
<?php echo $lines[$i]['mb_id']; ?>
</a>
</td>
<td class="td_sodr_cnt"><b><?=$lines[$i]['itemcount']?></b>건<br>누적 <?=$row2['cnt']?>건</td>
<td class="td_sodr_sum"><?=number_format($lines[$i]['orderamount'])?></td>
<td><?=number_format($lines[$i]['ordercancel'])?></td>
<td><?=number_format($lines[$i]['od_dc_amount'])?></td>
<td class="td_sodr_sum"><?=number_format($lines[$i]['receiptamount'])?></td>
<td><?=number_format($lines[$i]['receiptcancel'])?></td>
<td class="td_sodr_nonpay"><?=number_format($lines[$i]['misu'])?></td>
<td><?=$s_receipt_way?></td>
<td class="td_sodr_cnt"><b><?php echo $lines[$i]['itemcount']; ?></b>건<br>누적 <?php echo $row2['cnt']; ?>건</td>
<td class="td_sodr_sum"><?php echo number_format($lines[$i]['orderamount']); ?></td>
<td><?php echo number_format($lines[$i]['ordercancel']); ?></td>
<td><?php echo number_format($lines[$i]['od_dc_amount']); ?></td>
<td class="td_sodr_sum"><?php echo number_format($lines[$i]['receiptamount']); ?></td>
<td><?php echo number_format($lines[$i]['receiptcancel']); ?></td>
<td class="td_sodr_nonpay"><?php echo number_format($lines[$i]['misu']); ?></td>
<td><?php echo $s_receipt_way; ?></td>
<td>
<a href="./orderform.php?od_id=<?=$lines[$i]['od_id']?>&amp;<?=$qstr?>"><img src="./img/icon_mod.jpg" alt="<?=$lines[$i]['od_id']?> 수정"></a>
<a href="./orderdelete.php?od_id=<?=$lines[$i]['od_id']?>&amp;uq_id=<?=$lines[$i]['uq_id']?>&amp;mb_id=<?=$lines[$i]['mb_id']?>&amp;<?=$qstr?>" onclick="return delete_confirm();"><img src="./img/icon_del.jpg" alt="<?=$lines[$i]['od_id']?> 삭제"></a>
<a href="./orderform.php?od_id=<?php echo $lines[$i]['od_id']; ?>&amp;<?php echo $qstr; ?>"><img src="./img/icon_mod.jpg" alt="<?php echo $lines[$i]['od_id']; ?> 수정"></a>
<a href="./orderdelete.php?od_id=<?php echo $lines[$i]['od_id']; ?>&amp;uq_id=<?php echo $lines[$i]['uq_id']; ?>&amp;mb_id=<?php echo $lines[$i]['mb_id']; ?>&amp;<?php echo $qstr; ?>" onclick="return delete_confirm();"><img src="./img/icon_del.jpg" alt="<?php echo $lines[$i]['od_id']; ?> 삭제"></a>
</td>
</tr>
<?
<?php
}
mysql_free_result($result);
if ($i == 0)
@ -242,8 +242,8 @@ if ($search) // 검색렬일 때만 처음 버튼을 보여줌
</table>
</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');
?>