本文整理汇总了PHP中get_selected函数的典型用法代码示例。如果您正苦于以下问题:PHP get_selected函数的具体用法?PHP get_selected怎么用?PHP get_selected使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get_selected函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: get_wizard_selectoptions
function get_wizard_selectoptions($v)
{
global $langDefs;
$r = "<option value=\"\"" . get_selected($v, "") . ">[Choose...]</option>";
$keys = array_keys($langDefs);
foreach ($keys as $item) {
$r .= "<option value=\"" . $item . "\"" . get_selected($v, $item) . ">" . $item . "</option>";
}
return $r;
}
示例2: get_selected
<td>
<select name="cp_trunc" id="cp_trunc">
<option value="1"<?php
echo get_selected('1', $cp['cp_trunc']);
?>
>1원단위</option>
<option value="10"<?php
echo get_selected('10', $cp['cp_trunc']);
?>
>10원단위</option>
<option value="100"<?php
echo get_selected('100', $cp['cp_trunc']);
?>
>100원단위</option>
<option value="1000"<?php
echo get_selected('1000', $cp['cp_trunc']);
?>
>1,000원단위</option>
</select>
</td>
</tr>
<tr>
<th scope="row"><label for="cp_minimum">최소주문금액</label></th>
<td>
<input type="text" name="cp_minimum" value="<?php
echo stripslashes($cp['cp_minimum']);
?>
" id="cp_minimum" class="frm_input"> 원
</td>
</tr>
<tr id="tr_cp_maximum">
示例3: apms_rank_options
</select>
</td>
</tr>
<tr>
<td align="center">정렬설정</td>
<td>
<select name="wset[sort]">
<?php
echo apms_rank_options($wset['sort']);
?>
</select>
랭크표시
<select name="wset[rank]">
<option value=""<?php
echo get_selected('', $wset['rank']);
?>
>표시안함</option>
<?php
echo apms_color_options($wset['rank']);
?>
</select>
</td>
</tr>
<tr>
<td align="center">기간설정</td>
<td>
<select name="wset[term]">
<?php
echo apms_term_options($wset['term']);
?>
示例4: get_selected
<?php
if ($is_admin == 'super') {
?>
<!-- <a href="javascript:point_clear();">포인트정리</a> --><?php
}
?>
</div>
<form name="fsearch" id="fsearch" class="local_sch01 local_sch" method="get">
<select name="sfl" title="검색대상">
<option value="mb_id"<?php
echo get_selected($_GET['sfl'], "mb_id");
?>
>회원아이디</option>
<option value="po_content"<?php
echo get_selected($_GET['sfl'], "po_content");
?>
>내용</option>
</select>
<label for="stx" class="sound_only">검색어<strong class="sound_only"> 필수</strong></label>
<input type="text" name="stx" value="<?php
echo $stx;
?>
" id="stx" required class="required frm_input">
<input type="submit" class="btn_submit" value="검색">
</form>
<form name="fpointlist" id="fpointlist" method="post" action="./point_list_delete.php" onsubmit="return fpointlist_submit(this);">
<input type="hidden" name="sst" value="<?php
echo $sst;
?>
示例5: help
<th scope="row"><label for="nw_device">접속기기</label></th>
<td>
<?php
echo help("팝업레이어가 표시될 접속기기를 설정합니다.");
?>
<select name="nw_device" id="nw_device">
<option value="both"<?php
echo get_selected($nw['nw_device'], 'both', true);
?>
>PC와 모바일</option>
<option value="pc"<?php
echo get_selected($nw['nw_device'], 'pc');
?>
>PC</option>
<option value="mobile"<?php
echo get_selected($nw['nw_device'], 'mobile');
?>
>모바일</option>
</select>
</td>
</tr>
<tr>
<th scope="row"><label for="nw_disable_hours">시간<strong class="sound_only"> 필수</strong></label></th>
<td>
<?php
echo help("고객이 다시 보지 않음을 선택할 시 몇 시간동안 팝업레이어를 보여주지 않을지 설정합니다.");
?>
<input type="text" name="nw_disable_hours" value="<?php
echo $nw['nw_disable_hours'];
?>
" id="nw_disable_hours" required class="frm_input required" size="5"> 시간
示例6: help
</tr>
<tr>
<th scope="row"><label for="cf_level">문자전송가능 레벨</label></th>
<td>
<?php
echo help("문자전송을 허용할 회원레벨을 선택해주세요.");
?>
<select name="cf_level" id="cf_level">
<?php
for ($i = 1; $i <= 10; $i++) {
?>
<option value="<?php
echo $i;
?>
"<?php
echo get_selected($i, $sms5['cf_level']);
?>
> <?php
echo $i;
?>
</option>
<?php
}
?>
</select>
레벨 이상
</td>
</tr>
<tr>
<th scope="row"><label for="cf_point">문자전송 차감 포인트<strong class="sound_only"> 필수</strong></label></th>
<td>
示例7: help
</select>
</td>
</tr>
<tr>
<th scope="row"><label for="cf_sms_type">SMS 전송유형</label></th>
<td>
<?php
echo help("전송유형을 SMS로 선택하시면 최대 80바이트까지 전송하실 수 있으며<br>LMS로 선택하시면 90바이트 이하는 SMS로, 그 이상은 1500바이트까지 LMS로 전송됩니다.<br>요금은 건당 SMS는 16원, LMS는 48원입니다.");
?>
<select id="cf_sms_type" name="cf_sms_type">
<option value="" <?php
echo get_selected($config['cf_sms_type'], '');
?>
>SMS</option>
<option value="LMS" <?php
echo get_selected($config['cf_sms_type'], 'LMS');
?>
>LMS</option>
</select>
</td>
</tr>
<tr>
<th scope="row"><label for="cf_icode_id">아이코드 회원아이디</label></th>
<td>
<?php
echo help("아이코드에서 사용하시는 회원아이디를 입력합니다.");
?>
<input type="text" name="cf_icode_id" value="<?php
echo $config['cf_icode_id'];
?>
" id="cf_icode_id" class="frm_input" size="20">
示例8: get_selected
?>
>제목+내용</option>
<option value="mb_id,1"<?php
echo get_selected($sfl, 'mb_id,1');
?>
>회원아이디</option>
<option value="mb_id,0"<?php
echo get_selected($sfl, 'mb_id,0');
?>
>회원아이디(코)</option>
<option value="wr_name,1"<?php
echo get_selected($sfl, 'wr_name,1');
?>
>글쓴이</option>
<option value="wr_name,0"<?php
echo get_selected($sfl, 'wr_name,0');
?>
>글쓴이(코)</option>
</select>
<input name="stx" value="<?php
echo stripslashes($stx);
?>
" placeholder="검색어(필수)" required id="stx" class="required frm_input" size="15" maxlength="15">
<input type="submit" value="검색" class="btn_submit">
</form>
</fieldset>
<?php
if ($is_checkbox) {
?>
<script>
示例9: get_selected
<caption>SMS 설정</caption>
<colgroup>
<col class="grid_4">
<col>
</colgroup>
<tbody>
<tr>
<th scope="row"><label for="cf_sms_use">SMS 사용</label></th>
<td>
<select id="cf_sms_use" name="cf_sms_use">
<option value="" <?php
echo get_selected($config['cf_sms_use'], '');
?>
>사용안함</option>
<option value="icode" <?php
echo get_selected($config['cf_sms_use'], 'icode');
?>
>아이코드</option>
</select>
</td>
</tr>
<tr>
<th scope="row"><label for="cf_icode_id">아이코드 회원아이디</label></th>
<td>
<?php
echo help("아이코드에서 사용하시는 회원아이디를 입력합니다.");
?>
<input type="text" name="cf_icode_id" value="<?php
echo $config['cf_icode_id'];
?>
" id="cf_icode_id" class="frm_input" size="20">
示例10: get_selected
?>
>wr_subject desc : 제목 내림차순</option>
<option value="wr_name asc, wr_num, wr_reply" <?php
echo get_selected($board['bo_sort_field'], "wr_name asc, wr_num, wr_reply");
?>
>wr_name asc : 글쓴이 오름차순</option>
<option value="wr_name desc, wr_num, wr_reply" <?php
echo get_selected($board['bo_sort_field'], "wr_name desc, wr_num, wr_reply");
?>
>wr_name desc : 글쓴이 내림차순</option>
<option value="ca_name asc, wr_num, wr_reply" <?php
echo get_selected($board['bo_sort_field'], "ca_name asc, wr_num, wr_reply");
?>
>ca_name asc : 분류명 오름차순</option>
<option value="ca_name desc, wr_num, wr_reply" <?php
echo get_selected($board['bo_sort_field'], "ca_name desc, wr_num, wr_reply");
?>
>ca_name desc : 분류명 내림차순</option>
</select>
</td>
<td class="td_grpset">
<input type="checkbox" name="chk_grp_sort_field" value="1" id="chk_grp_sort_field">
<label for="chk_grp_sort_field">그룹적용</label>
<input type="checkbox" name="chk_all_sort_field" value="1" id="chk_all_sort_field">
<label for="chk_all_sort_field">전체적용</label>
</td>
</tbody>
</table>
</div>
</section>
示例11: get_selected
?>
</select>
<label for="sfl" class="sound_only">검색대상</label>
<select name="sfl" id="sfl">
<option value="it_name" <?php
echo get_selected($sfl, 'it_name');
?>
>상품명</option>
<option value="a.it_id" <?php
echo get_selected($sfl, 'a.it_id');
?>
>상품코드</option>
<!-- APMS - 2014.07.20 -->
<option value="a.pt_id" <?php
echo get_selected($sfl, 'a.pt_id');
?>
>파트너 아이디</option>
<!-- // -->
</select>
<label for="stx" class="sound_only">검색어<strong class="sound_only"> 필수</strong></label>
<input type="text" name="stx" value="<?php
echo $stx;
?>
" id="stx" required class="frm_input required">
<input type="submit" value="검색" class="btn_submit">
</form>
<form name="fitemqalist" method="post" action="./itemqalistupdate.php" onsubmit="return fitemqalist_submit(this);" autocomplete="off">
示例12: get_delivery_company
function get_delivery_company($company)
{
$option = '<option value="">없음</option>' . PHP_EOL;
$option .= '<option value="자체배송" ' . get_selected($company, '자체배송') . '>자체배송</option>' . PHP_EOL;
$dlcomp = explode(")", str_replace("(", "", G5_DELIVERY_COMPANY));
for ($i = 0; $i < count($dlcomp); $i++) {
if (trim($dlcomp[$i]) == "") {
continue;
}
list($value, $url, $tel) = explode("^", $dlcomp[$i]);
$option .= '<option value="' . $value . '" ' . get_selected($company, $value) . '>' . $value . '</option>' . PHP_EOL;
}
return $option;
}
示例13: get_input
function get_input($id)
{
$data = get_selected($id);
$data = get_data_pdf($data);
return $data;
}
示例14: get_selected
> 전체 </option>
<option value="0"<?php
echo get_selected('0', $fg_no);
?>
> 미분류 (<?php
echo number_format($no_count);
?>
) </option>
<?php
for ($i = 0; $i < count($group); $i++) {
?>
<option value="<?php
echo $group[$i]['fg_no'];
?>
"<?php
echo get_selected($fg_no, $group[$i]['fg_no']);
?>
> <?php
echo $group[$i]['fg_name'];
?>
(<?php
echo number_format($group[$i]['fg_count']);
?>
) </option>
<?php
}
?>
</select>
</form>
<ul class="emo_list" style="list-style: none; margin: 25px 0px; padding: 0;">
示例15: get_selected
echo $i;
?>
]" id="gr_device_<?php
echo $i;
?>
">
<option value="both"<?php
echo get_selected($row['gr_device'], 'both');
?>
>모두</option>
<option value="pc"<?php
echo get_selected($row['gr_device'], 'pc');
?>
>PC</option>
<option value="mobile"<?php
echo get_selected($row['gr_device'], 'mobile');
?>
>모바일</option>
</select>
</td>
<td class="td_mngsmall"><?php
echo $s_upd;
?>
</td>
</tr>
<?php
}
if ($i == 0) {
echo '<tr><td colspan="' . $colspan . '" class="empty_table">자료가 없습니다.</td></tr>';
}