コード例 #1
0
ファイル: admin.lib.php プロジェクト: dingdong2310/g5_theme
function get_mobile_skin_select($skin_gubun, $id, $name, $selected = '', $event = '')
{
    global $config;
    $skins = array();
    if (defined('G5_THEME_PATH') && $config['cf_theme']) {
        $dirs = get_skin_dir($skin_gubun, G5_THEME_MOBILE_PATH . '/' . G5_SKIN_DIR);
        if (!empty($dirs)) {
            foreach ($dirs as $dir) {
                $skins[] = 'theme/' . $dir;
            }
        }
    }
    $skins = array_merge($skins, get_skin_dir($skin_gubun, G5_MOBILE_PATH . '/' . G5_SKIN_DIR));
    $str = "<select id=\"{$id}\" name=\"{$name}\" {$event}>\n";
    for ($i = 0; $i < count($skins); $i++) {
        if ($i == 0) {
            $str .= "<option value=\"\">선택</option>";
        }
        if (preg_match('#^theme/(.+)$#', $skins[$i], $match)) {
            $text = '(테마) ' . $match[1];
        } else {
            $text = $skins[$i];
        }
        $str .= option_selected($skins[$i], $selected, $text);
    }
    $str .= "</select>";
    return $str;
}
コード例 #2
0
ファイル: admin.lib.php プロジェクト: kimyongyeon/myproject
function get_mobile_skin_select($skin_gubun, $id, $name, $selected = '', $event = '')
{
    $skins = get_skin_dir($skin_gubun, G5_MOBILE_PATH . '/' . G5_SKIN_DIR);
    $str = "<select class=\"form-control\" id=\"{$id}\" name=\"{$name}\" {$event}>\n";
    for ($i = 0; $i < count($skins); $i++) {
        if ($i == 0) {
            $str .= "<option value=\"\">선택</option>";
        }
        $str .= option_selected($skins[$i], $selected);
    }
    $str .= "</select>";
    return $str;
}
コード例 #3
0
ファイル: sms5.lib.php プロジェクト: khk0613/YHK
function get_sms5_skin_select($skin_gubun, $id, $name, $selected = '', $event = '')
{
    $skins = get_skin_dir($skin_gubun, G5_SMS5_PATH);
    $str = "<select id=\"{$id}\" name=\"{$name}\" {$event}>\n";
    for ($i = 0; $i < count($skins); $i++) {
        if ($i == 0) {
            $str .= "<option value=\"\">선택</option>";
        }
        $str .= option_selected($skins[$i], $selected);
    }
    $str .= "</select>";
    return $str;
}
コード例 #4
0
ファイル: config_form.php プロジェクト: dingdong2310/g5_theme
        </tr>
        <tr>
            <th scope="row" class="cf_cert_service"><label for="cf_cert_hp">휴대폰 본인확인</label></th>
            <td class="cf_cert_service">
                <select name="cf_cert_hp" id="cf_cert_hp">
                    <?php 
echo option_selected("", $config['cf_cert_hp'], "사용안함");
?>
                    <?php 
echo option_selected("kcb", $config['cf_cert_hp'], "코리아크레딧뷰로(KCB) 휴대폰 본인확인");
?>
                    <?php 
echo option_selected("kcp", $config['cf_cert_hp'], "한국사이버결제(KCP) 휴대폰 본인확인");
?>
                    <?php 
echo option_selected("lg", $config['cf_cert_hp'], "LG유플러스 휴대폰 본인확인");
?>
                </select>
            </td>
        </tr>
        <tr>
            <th scope="row" class="cf_cert_service"><label for="cf_cert_kcb_cd">코리아크레딧뷰로<br>KCB 회원사ID</label></th>
            <td class="cf_cert_service">
                <?php 
echo help('KCB 회원사ID를 입력해 주십시오.<br>서비스에 가입되어 있지 않다면, KCB와 계약체결 후 회원사ID를 발급 받으실 수 있습니다.<br>이용하시려는 서비스에 대한 계약을 아이핀, 휴대폰 본인확인 각각 체결해주셔야 합니다.<br>아이핀 본인확인 테스트의 경우에는 KCB 회원사ID가 필요 없으나,<br>휴대폰 본인확인 테스트의 경우 KCB 에서 따로 발급 받으셔야 합니다.');
?>
                <input type="text" name="cf_cert_kcb_cd" value="<?php 
echo $config['cf_cert_kcb_cd'];
?>
" id="cf_cert_kcb_cd" class="frm_input" size="20"> <a href="http://sir.kr/main/service/b_ipin.php" target="_blank" class="btn_frmline">KCB 아이핀 서비스 신청페이지</a>
                <a href="http://sir.kr/main/service/b_cert.php" target="_blank" class="btn_frmline">KCB 휴대폰 본인확인 서비스 신청페이지</a>
コード例 #5
0
ファイル: board_form.php プロジェクト: kimyongyeon/myproject
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_use_cert">본인확인 사용</label></th>
            <td>
                <?php 
echo help("본인확인 여부에 따라 게시물을 조회 할 수 있도록 합니다.");
?>
                <select id="bo_use_cert" name="bo_use_cert">
                    <?php 
echo option_selected("", $board['bo_use_cert'], "사용안함");
if ($config['cf_cert_use']) {
    echo option_selected("cert", $board['bo_use_cert'], "본인확인된 회원전체");
    echo option_selected("adult", $board['bo_use_cert'], "본인확인된 성인회원만");
    echo option_selected("hp-cert", $board['bo_use_cert'], "휴대폰 본인확인된 회원전체");
    echo option_selected("hp-adult", $board['bo_use_cert'], "휴대폰 본인확인된 성인회원만");
}
?>
                </select>
            </td>
            <td class="td_grpset">
                <input type="checkbox" name="chk_grp_use_cert" value="1" id="chk_grp_use_cert">
                <label for="chk_grp_use_cert">그룹적용</label>
                <input type="checkbox" name="chk_all_use_cert" value="1" id="chk_all_use_cert">
                <label for="chk_all_use_cert">전체적용</label>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="bo_upload_count">파일 업로드 개수<strong class="sound_only">필수</strong></label></th>
            <td>
                <?php 
コード例 #6
0
ファイル: config_form.php プロジェクト: eeewq123/aaa
?>
                </select>
            </td>
        </tr>
        <tr>
            <th scope="row" class="cf_cert_service"><label for="cf_cert_hp">휴대폰 본인확인</label></th>
            <td class="cf_cert_service">
                <select name="cf_cert_hp" id="cf_cert_hp">
                    <?php 
echo option_selected("", $config['cf_cert_hp'], "사용안함");
?>
                    <?php 
echo option_selected("kcb", $config['cf_cert_hp'], "코리아크레딧뷰로(KCB) 휴대폰 본인확인");
?>
                    <?php 
echo option_selected("kcp", $config['cf_cert_hp'], "한국사이버결제(KCP) 휴대폰 본인확인");
?>
                </select>
            </td>
        </tr>
        <tr>
            <th scope="row" class="cf_cert_service"><label for="cf_cert_kcb_cd">코리아크레딧뷰로<br>KCB 회원사ID</label></th>
            <td class="cf_cert_service">
                <?php 
echo help('KCB 회원사ID를 입력해 주십시오.<br>서비스에 가입되어 있지 않다면, KCB와 계약체결 후 회원사ID를 발급 받으실 수 있습니다.<br>이용하시려는 서비스에 대한 계약을 아이핀, 휴대폰 본인확인 각각 체결해주셔야 합니다.<br>아이핀 본인확인 테스트의 경우에는 KCB 회원사ID가 필요 없으나,<br>휴대폰 본인확인 테스트의 경우 KCB 에서 따로 발급 받으셔야 합니다.');
?>
                <input type="text" name="cf_cert_kcb_cd" value="<?php 
echo $config['cf_cert_kcb_cd'];
?>
" id="cf_cert_kcb_cd" class="frm_input" size="20"> <a href="http://sir.co.kr/main/provider/b_ipin.php" target="_blank" class="btn_frmline">KCB 아이핀 서비스 신청페이지</a>
                <a href="http://sir.co.kr/main/provider/b_cert.php" target="_blank" class="btn_frmline">KCB 휴대폰 본인확인 서비스 신청페이지</a>
コード例 #7
0
ファイル: common.lib.php プロジェクト: sungkyuchun/gnuboard5
function get_group_select($name, $selected = '', $event = '')
{
    global $g5, $is_admin, $member;
    $sql = " select gr_id, gr_subject from {$g5['group_table']} a ";
    if ($is_admin == "group") {
        $sql .= " left join {$g5['member_table']} b on (b.mb_id = a.gr_admin)\n                  where b.mb_id = '{$member['mb_id']}' ";
    }
    $sql .= " order by a.gr_id ";
    $result = sql_query($sql);
    $str = "<select id=\"{$name}\" name=\"{$name}\" {$event}>\n";
    for ($i = 0; $row = sql_fetch_array($result); $i++) {
        if ($i == 0) {
            $str .= "<option value=\"\">선택</option>";
        }
        $str .= option_selected($row['gr_id'], $selected, $row['gr_subject']);
    }
    $str .= "</select>";
    return $str;
}
コード例 #8
0
ファイル: qawrite.php プロジェクト: najinsu/nsle
     for ($i = 0; $i < count($category); $i++) {
         $category_option .= option_selected($category[$i], $write['qa_category']);
     }
 } else {
     alert('1:1문의 설정에서 분류를 설정해 주십시오');
 }
 //제품명 카테고리
 $catesql = " select ca_id, ca_name from {$g5['g5_shop_category_table']} where length(ca_id) = '2' and ca_use = '1' order by ca_order, ca_id ";
 $cateresult = sql_query($catesql);
 $cate_option = '';
 for ($i = 0; $row = sql_fetch_array($cateresult); $i++) {
     $sql2 = " select ca_id, ca_name from {$g5['g5_shop_category_table']} where LENGTH(ca_id) = '2' and SUBSTRING(ca_id,1,2) = '{$row['ca_id']}' and ca_use = '1' order by ca_order, ca_id ";
     $result2 = sql_query($sql2);
     $count = mysql_num_rows($result2);
     for ($j = 0; $row2 = sql_fetch_array($result2); $j++) {
         $cate_option .= option_selected($row2['ca_id'], $write['qa_1'], $row2['ca_name']);
     }
 }
 $is_dhtml_editor = false;
 // 모바일에서는 DHTML 에디터 사용불가
 if ($config['cf_editor'] && $qaconfig['qa_use_editor'] && !G5_IS_MOBILE) {
     $is_dhtml_editor = true;
 }
 // 추가질문에서는 제목을 공백으로
 if ($w == 'r') {
     $write['qa_subject'] = '';
 }
 $content = '';
 if ($w == '') {
     $content = $qaconfig['qa_insert_content'];
 } else {
コード例 #9
0
}
?>
                </div>
                <div id="boxTwo" class="innerBox">
                    <p class="sectionLabel center">Manage TA Status</p>
                    <div id="adminTAList">
                        <?php 
if (count($_SESSION['ta_applicant_list']) > 0) {
    foreach ($_SESSION['ta_applicant_list'] as $ta) {
        $name = $ta->get_full_name();
        $uid = $ta->get_uid();
        $recLevel = $ta->get_recommend();
        echo "\n                                <div class='inlineGroup'>\n                                    <p class='adminTA'>{$name}</p>\n                                    <p class='adminTASelect'>\n                                        <select id='taRec' name={$uid}>";
        for ($i = 0; $i < 5; $i++) {
            $recommend = get_recommendation($i);
            if (option_selected($i, $recLevel)) {
                echo "<option value={$i} selected>{$recommend}</option>";
            } else {
                echo "<option value={$i}>{$recommend}</option>";
            }
        }
        echo "\n                                        </select>\n                                    </p>\n                                </div>\n\n                            ";
    }
} else {
    echo "<p class='center'>No TAs available</p>";
}
?>
                    </div>
                </div>
                <div id="updateTextBox">
                    <p class="center">
コード例 #10
0
ファイル: qa_config.php プロジェクト: khk0613/YHK
?>
" id="qa_admin_email" class="frm_input"  size="50">
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="qa_use_editor">DHTML 에디터 사용</label></th>
            <td>
                <?php 
echo help('글작성시 내용을 DHTML 에디터 기능으로 사용할 것인지 설정합니다. 스킨에 따라 적용되지 않을 수 있습니다.');
?>
                <select name="qa_use_editor" id="qa_use_editor">
                    <?php 
echo option_selected(0, $qaconfig['qa_use_editor'], '사용안함');
?>
                    <?php 
echo option_selected(1, $qaconfig['qa_use_editor'], '사용함');
?>
                </select>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="qa_subject_len">제목 길이<strong class="sound_only"> 필수</strong></label></th>
            <td>
                <?php 
echo help('목록에서의 제목 글자수');
?>
                <input type="text" name="qa_subject_len" value="<?php 
echo $qaconfig['qa_subject_len'];
?>
" id="qa_subject_len" required class="required numeric frm_input"  size="4">
            </td>
コード例 #11
0
ファイル: qawrite.php プロジェクト: davis00/test
         if (!$is_admin) {
             if ($write['qa_type'] == 0 && $write['qa_status'] == 1) {
                 alert('답변이 등록된 문의글은 수정할 수 없습니다.');
             }
             if ($write['mb_id'] != $member['mb_id']) {
                 alert('게시글을 수정할 권한이 없습니다.\\n\\n올바른 방법으로 이용해 주십시오.', G5_URL);
             }
         }
     }
 }
 // 분류
 $category_option = '';
 if (trim($qaconfig['qa_category'])) {
     $category = explode('|', $qaconfig['qa_category']);
     for ($i = 0; $i < count($category); $i++) {
         $category_option .= option_selected($category[$i], $write['qa_category']);
     }
 } else {
     alert('1:1문의 설정에서 분류를 설정해 주십시오');
 }
 $is_dhtml_editor = false;
 if ($config['cf_editor'] && $qaconfig['qa_use_editor'] && (!is_mobile() || defined('G5_IS_MOBILE_DHTML_USE') && G5_IS_MOBILE_DHTML_USE)) {
     $is_dhtml_editor = true;
 }
 // 추가질문에서는 제목을 공백으로
 if ($w == 'r') {
     $write['qa_subject'] = '';
 }
 $content = '';
 if ($w == '') {
     $content = $qaconfig['qa_insert_content'];