쇼핑몰관리자: #73 get_selected 함수 오작동 수정
This commit is contained in:
@ -442,7 +442,7 @@ $pg_anchor = '<ul class="anchor">
|
|||||||
$bank_account .= '<option value="">선택하십시오</option>'.PHP_EOL;
|
$bank_account .= '<option value="">선택하십시오</option>'.PHP_EOL;
|
||||||
for ($i=0; $i<count($str); $i++) {
|
for ($i=0; $i<count($str); $i++) {
|
||||||
$str[$i] = str_replace("\r", "", $str[$i]);
|
$str[$i] = str_replace("\r", "", $str[$i]);
|
||||||
$bank_account .= '<option value="'.$str[$i].'" '.get_selected($od_bank_account, $str[$i]).'>'.$str[$i].'</option>'.PHP_EOL;
|
$bank_account .= '<option value="'.$str[$i].'" '.get_selected($od['od_bank_account'], $str[$i]).'>'.$str[$i].'</option>'.PHP_EOL;
|
||||||
}
|
}
|
||||||
$bank_account .= "</select> ";
|
$bank_account .= "</select> ";
|
||||||
}
|
}
|
||||||
@ -564,7 +564,7 @@ $pg_anchor = '<ul class="anchor">
|
|||||||
$result = sql_query($sql);
|
$result = sql_query($sql);
|
||||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||||
?>
|
?>
|
||||||
<option value="<?=$row['dl_id']?>" <?=get_selected($dl_id, $row['dl_id'])?>><?=$row['dl_company']?></option>
|
<option value="<?=$row['dl_id']?>" <?=get_selected($od['dl_id'], $row['dl_id'])?>><?=$row['dl_company']?></option>
|
||||||
<?
|
<?
|
||||||
}
|
}
|
||||||
mysql_free_result($result);
|
mysql_free_result($result);
|
||||||
|
|||||||
@ -59,28 +59,28 @@ if ($default['de_sms_use'] == 'icode') { // 아이코드 사용
|
|||||||
<?
|
<?
|
||||||
$yy = date("Y");
|
$yy = date("Y");
|
||||||
for ($i=$yy; $i<=$yy+1; $i++) {
|
for ($i=$yy; $i<=$yy+1; $i++) {
|
||||||
echo '<option value="'.$i.'"'.get_selected($i, $yy).'>'.substr($i,-2).'</option>';
|
echo '<option value="'.$i.'">'.substr($i,-2).'</option>';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</select>년
|
</select> 년
|
||||||
<label for="reserved_month" class="sound_only">월 설정</label>
|
<label for="reserved_month" class="sound_only">월 설정</label>
|
||||||
<select name="reserved_month" id="reserved_month">
|
<select name="reserved_month" id="reserved_month">
|
||||||
<?
|
<?
|
||||||
$mm = date("n");
|
$mm = date("n");
|
||||||
for ($i=1; $i<=12; $i++) {
|
for ($i=1; $i<=12; $i++) {
|
||||||
echo '<option value="'.$i.'"'.get_selected($i, $mm).'>'.$i.'</option>';
|
echo '<option value="'.$i.'">'.$i.'</option>';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</select>월
|
</select> 월
|
||||||
<label for="reserved_day" class="sound_only">일 설정</label>
|
<label for="reserved_day" class="sound_only">일 설정</label>
|
||||||
<select name="reserved_day" id="reserved_day">
|
<select name="reserved_day" id="reserved_day">
|
||||||
<?
|
<?
|
||||||
$dd = date("j");
|
$dd = date("j");
|
||||||
for ($i=1; $i<=31; $i++) {
|
for ($i=1; $i<=31; $i++) {
|
||||||
echo '<option value="'.$i.'"'.get_selected($i, $dd).'>'.$i.'</option>';
|
echo '<option value="'.$i.'">'.$i.'</option>';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</select>일
|
</select> 일
|
||||||
<label for="reserved_hour" class="sound_only">시 설정</label>
|
<label for="reserved_hour" class="sound_only">시 설정</label>
|
||||||
<select name="reserved_hour" id="reserved_hour">
|
<select name="reserved_hour" id="reserved_hour">
|
||||||
<?
|
<?
|
||||||
@ -88,7 +88,7 @@ if ($default['de_sms_use'] == 'icode') { // 아이코드 사용
|
|||||||
echo '<option value="'.$i.'">'.$i.'</option>';
|
echo '<option value="'.$i.'">'.$i.'</option>';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</select>시
|
</select> 시
|
||||||
<label for="reserved_minute" class="sound_only">분 설정</label>
|
<label for="reserved_minute" class="sound_only">분 설정</label>
|
||||||
<select name="reserved_minute" id="reserved_minute">
|
<select name="reserved_minute" id="reserved_minute">
|
||||||
<?
|
<?
|
||||||
@ -96,7 +96,7 @@ if ($default['de_sms_use'] == 'icode') { // 아이코드 사용
|
|||||||
echo '<option value="'.$i.'">'.$i.'</option>';
|
echo '<option value="'.$i.'">'.$i.'</option>';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</select>분
|
</select> 분
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|||||||
Reference in New Issue
Block a user