관리자: 쇼핑몰 따옴표 없거나 홑따옴표 쌍따옴표로

This commit is contained in:
whitedot
2013-01-30 16:18:00 +09:00
parent a8d750659c
commit 6c85d1a566
49 changed files with 795 additions and 794 deletions

View File

@ -32,7 +32,7 @@ form { display: inline; }
<div id="container">
<div class="searcharea">
<form id="fitem" method="get" action="./coupon_item.php?w=<? echo $w; ?>">
<input type="text" name="stx" class="ed" size="30" value="<? echo stripslashes($stx); ?>" />
<input type="text" id="stx" name="stx" class="ed" size="30" value="<? echo stripslashes($stx); ?>" />
<input type="submit" class="btn1" value="검색" />
</form>
</div>
@ -46,7 +46,7 @@ form { display: inline; }
<colgroup width="90" />
<colgroup width="90" />
<tr>
<th><input type="checkbox" name="check_all" /></th>
<th><input type="checkbox" id="check_all" name="check_all" /></th>
<th>상품코드</th>
<th>상품명</th>
<th>가격</th>
@ -55,7 +55,7 @@ form { display: inline; }
for($i=0; $row=sql_fetch_array($result); $i++) {
?>
<tr>
<td align="center"><input type="checkbox" name="s_it_id[]" value="<? echo $row['it_id']; ?>" /></td>
<td align="center"><input type="checkbox" id="s_it_id[]" name="s_it_id[]" value="<? echo $row['it_id']; ?>" /></td>
<td align="center"><? echo $row['it_id']; ?></td>
<td align="center"><? echo $row['it_name']; ?></td>
<td align="center"><? echo number_format($row['it_amount']); ?></td>
@ -78,7 +78,7 @@ form { display: inline; }
<script>
$(function() {
$("#fitem").submit(function() {
var stx = $.trim($("input[name=stx]").val());
var stx = $.trim($("input[id="stx" name="stx"]").val());
if(stx == "") {
alert("검색어를 입력해 주세요.");
return false;
@ -87,7 +87,7 @@ $(function() {
return true;
});
$("input[name=check_all]").click(function() {
$("input[id="check_all" name="check_all"]").click(function() {
if($(this).is(":checked")) {
$("input[name^=s_it_id]").attr("checked", true);
} else {
@ -124,7 +124,7 @@ $(function() {
}
});
$opener.$("input[name=it_id]").val(itid);
$opener.$("input[id="it_id" name="it_id"]").val(itid);
self.close();
return false;