当前位置: 首页>>代码示例>>PHP>>正文


PHP get_skin_dir函数代码示例

本文整理汇总了PHP中get_skin_dir函数的典型用法代码示例。如果您正苦于以下问题:PHP get_skin_dir函数的具体用法?PHP get_skin_dir怎么用?PHP get_skin_dir使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了get_skin_dir函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: get_mobile_skin_select

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;
}
开发者ID:dingdong2310,项目名称:g5_theme,代码行数:28,代码来源:admin.lib.php

示例2: get_mobile_skin_select

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;
}
开发者ID:kimyongyeon,项目名称:myproject,代码行数:13,代码来源:admin.lib.php

示例3: get_sms5_skin_select

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;
}
开发者ID:khk0613,项目名称:YHK,代码行数:13,代码来源:sms5.lib.php

示例4: get_skin_dir

                <?php 
$arr = get_skin_dir('member');
for ($i = 0; $i < count($arr); $i++) {
    if ($i == 0) {
        echo "<option value=\"\">선택</option>";
    }
    echo '<option value="' . $arr[$i] . '"' . get_selected($config['cf_member_skin'], $arr[$i]) . '>' . $arr[$i] . '</option>' . "\n";
}
?>
                </select>
            </td>
            <th scope="row"><label for="cf_mobile_member_skin">모바일<br>회원 스킨<strong class="sound_only">필수</strong></label></th>
            <td>
                <select name="cf_mobile_member_skin" id="cf_mobile_member_skin" required class="required">
                <?php 
$arr = get_skin_dir('member', G5_MOBILE_PATH . '/' . G5_SKIN_DIR);
for ($i = 0; $i < count($arr); $i++) {
    if ($i == 0) {
        echo "<option value=\"\">선택</option>";
    }
    echo '<option value="' . $arr[$i] . '"' . get_selected($config['cf_mobile_member_skin'], $arr[$i]) . '>' . $arr[$i] . '</option>' . "\n";
}
?>
                </select>
            </td>
        </tr>
        <tr>
            <th scope="row">홈페이지 입력</th>
            <td>
                <input type="checkbox" name="cf_use_homepage" value="1" id="cf_use_homepage" <?php 
echo $config['cf_use_homepage'] ? 'checked' : '';
开发者ID:eeewq123,项目名称:aaa,代码行数:31,代码来源:config_form.php

示例5: apms_cache

                }
                apms_cache('apms_mobile_bbs_menu', 0, "apms_chk_auto_menu(1,1)");
                apms_cache('apms_pc_bbs_menu', 0, "apms_chk_auto_menu(1)");
            }
        }
    }
    //Move
    goto_url('./apms.groupsubmenu.php?gr_id=' . $gr_id . '&amp;cid=' . $cid);
}
auth_check($auth[$sub_menu], 'r');
//읽기 권한
include_once G5_LIB_PATH . '/apms.widget.lib.php';
$skinlist = array();
$headlist = array();
$skinlist = get_skin_dir('page', G5_SKIN_PATH);
$headlist = get_skin_dir('header', G5_SKIN_PATH);
$row1 = sql_fetch("select bo_subject from {$g5['apms_page']} where id = '{$cid}' ");
include_once G5_PATH . '/head.sub.php';
?>
<script src="<?php 
echo G5_ADMIN_URL;
?>
/admin.js"></script>
<script src="<?php 
echo G5_ADMIN_URL;
?>
/apms_admin/apms.admin.js"></script>

<style>
	.sp { height:6px; }
	.sp1 { height:10px; }
开发者ID:peb317,项目名称:gbamn,代码行数:31,代码来源:apms.groupsubmenu.php

示例6: get_skin_dir

            $g5_shop_skin_path = G5_PATH . '/' . G5_SKIN_DIR . '/shop/' . $ca['ca_skin_dir'];
        }
    }
    if (!$ca['ca_mobile_skin_dir']) {
        $g5_mshop_skin_path = G5_MSHOP_SKIN_PATH;
    } else {
        if (preg_match('#^theme/(.+)$#', $ca['ca_mobile_skin_dir'], $match)) {
            $g5_mshop_skin_path = G5_THEME_MOBILE_PATH . '/' . G5_SKIN_DIR . '/shop/' . $match[1];
        } else {
            $g5_mshop_skin_path = G5_MOBILE_PATH . '/' . G5_SKIN_DIR . '/shop/' . $ca['ca_mobile_skin_dir'];
        }
    }
} else {
    // APMS - 2014.07.25
    $itemskin = get_skin_dir('item', G5_SKIN_PATH . '/apms');
    $listskin = get_skin_dir('list', G5_SKIN_PATH . '/apms');
}
?>

<form name="fcategoryform" action="./categoryformupdate.php" onsubmit="return fcategoryformcheck(this);" method="post" enctype="multipart/form-data">

<input type="hidden" name="codedup"  value="<?php 
echo $default['de_code_dup_use'];
?>
">
<input type="hidden" name="w" value="<?php 
echo $w;
?>
">
<input type="hidden" name="sst" value="<?php 
echo $sst;
开发者ID:peb317,项目名称:gbamn,代码行数:31,代码来源:categoryform.php

示例7: subtitle

<tr><td colspan=4 class=line2></td></tr>
<tr><td colspan=4 class=ht></td></tr>


<tr class='ht'>
    <td colspan=4 align=left><?php 
echo subtitle("회원가입 설정");
?>
</td>
</tr>
<tr><td colspan=4 class=line1></td></tr>
<tr class='ht'>
    <td>회원 스킨</td>
    <td colspan=3><select id=cf_member_skin name=cf_member_skin required itemname="회원가입 스킨">
        <?php 
$arr = get_skin_dir("member");
for ($i = 0; $i < count($arr); $i++) {
    echo "<option value='{$arr[$i]}'>{$arr[$i]}</option>\n";
}
?>
</select>
        <script type="text/javascript"> document.getElementById('cf_member_skin').value="<?php 
echo $config[cf_member_skin];
?>
";</script>
    </td>
</tr>
<tr class='ht'>
    <td>홈페이지 입력</td>
    <td>
        <input type='checkbox' name='cf_use_homepage' value='1' <?php 
开发者ID:jin255ff,项目名称:company_website,代码行数:31,代码来源:config_form.php

示例8: get_list_skin_options

                <input type="checkbox" name="de_mobile_rel_list_use" value="1" id="de_mobile_rel_list_use" <?php 
echo $default['de_mobile_rel_list_use'] ? "checked" : "";
?>
>
            </td>
        </tr>
        <tr>
            <th scope="row">검색상품출력</th>
            <td>
                <label for="de_search_list_skin">스킨</label>
				<select name="de_search_list_skin" id="de_search_list_skin">
				<?php 
if (USE_G5_THEME) {
    echo get_list_skin_options("^list.[0-9]+\\.skin\\.php", G5_SHOP_SKIN_PATH, $default['de_search_list_skin']);
} else {
    $listskin = get_skin_dir('search', G5_SKIN_PATH . '/apms');
    for ($k = 0; $k < count($listskin); $k++) {
        echo "<option value=\"" . $listskin[$k] . "\"" . get_selected($default['de_search_list_skin'], $listskin[$k]) . ">" . $listskin[$k] . "</option>\n";
    }
}
?>
				</select>
				<label for="de_search_img_width">이미지폭</label>
                <input type="text" name="de_search_img_width" value="<?php 
echo $default['de_search_img_width'];
?>
" id="de_search_img_width" class="frm_input" size="3">
                <label for="de_search_img_height">이미지높이</label>
                <input type="text" name="de_search_img_height" value="<?php 
echo $default['de_search_img_height'];
?>
开发者ID:peb317,项目名称:gbamn,代码行数:31,代码来源:configform.php

示例9: get_selected

for ($i = 0; $i < count($arr); $i++) {
    if ($i == 0) {
        echo "<option value=\"\">선택</option>";
    }
    echo "<option value=\"" . $arr[$i] . "\"" . get_selected($ca['ca_skin_dir'], $arr[$i]) . ">" . $arr[$i] . "</option>\n";
}
?>
                </select>
            </td>
        </tr>
        <tr>
            <th scope="row"><label for="ca_mobile_skin_dir">모바일용 스킨명</label></th>
            <td colspan="3">
                <select name="ca_mobile_skin_dir" id="ca_mobile_skin_dir">
                <?php 
$arr = get_skin_dir('shop', G5_MOBILE_PATH . '/' . G5_SKIN_DIR);
for ($i = 0; $i < count($arr); $i++) {
    if ($i == 0) {
        echo "<option value=\"\">선택</option>";
    }
    echo "<option value=\"" . $arr[$i] . "\"" . get_selected($ca['ca_mobile_skin_dir'], $arr[$i]) . ">" . $arr[$i] . "</option>\n";
}
?>
                </select>
            </td>
        </tr>
        <tr>
            <th scope="row">본인확인 체크</th>
            <td>
                <input type="radio" name="ca_cert_use" value="1" id="ca_cert_use_yes" <?php 
if ($ca['ca_cert_use']) {
开发者ID:ned3y2k,项目名称:youngcart5,代码行数:31,代码来源:categoryform.php

示例10: get_selected

?>
>PC 전용</option>
                <option value="mobile"<?php 
echo get_selected($group['gr_device'], 'mobile');
?>
>모바일 전용</option>
            </select>
        </td>
    </tr>
	<tr>
		<th scope="row"><label for="as_main">PC 그룹스킨</label></th>
		<td>
			<select name="as_main" id="as_main">
				<option value="">사용안함</option>
				<?php 
$groupskin = get_skin_dir('group');
for ($i = 0; $i < count($groupskin); $i++) {
    echo "<option value=\"" . $groupskin[$i] . "\"" . get_selected($group['as_main'], $groupskin[$i]) . ">" . $groupskin[$i] . "</option>\n";
}
?>
			</select>
		</td>
	</tr>
	<tr>
		<th scope="row"><label for="as_mobile_main">모바일 그룹스킨</label></th>
		<td>
			<select name="as_mobile_main" id="as_mobile_main">
				<option value="">사용안함</option>
				<?php 
for ($i = 0; $i < count($groupskin); $i++) {
    echo "<option value=\"" . $groupskin[$i] . "\"" . get_selected($group['as_mobile_main'], $groupskin[$i]) . ">" . $groupskin[$i] . "</option>\n";
开发者ID:peb317,项目名称:gbamn,代码行数:31,代码来源:boardgroup_form.php

示例11: sql_query

                    $n = $cn[$i];
                    $id = $_POST['id'][$n];
                    if (!$id) {
                        continue;
                    }
                    sql_query(" delete from {$g5['apms_page']} where id = '{$id}' ", false);
                }
            }
        }
    }
    //Move
    goto_url($go_url);
}
//Header
include_once G5_LIB_PATH . '/apms.widget.lib.php';
$headskin = get_skin_dir('header');
//Group List
$html_gr = array();
$result = sql_query("select gr_id, gr_subject from {$g5['group_table']} order by gr_order", false);
for ($i = 0; $row = sql_fetch_array($result); $i++) {
    $html_gr[$i][0] = $row['gr_id'];
    $html_gr[$i][1] = $row['gr_subject'];
}
$result = sql_query("select * from {$g5['apms_page']} where as_html = '0' order by gr_id desc, id ");
$row_cnt = @sql_num_rows($result);
?>
<div class="local_ov01 local_ov">
	회원가입, 현재접속자, 새글모음, 전체검색, 마이페이지, 장바구니, 주문서 등
</div>

<form id="pageform" name="pageform" method="post">
开发者ID:peb317,项目名称:gbamn,代码行数:31,代码来源:apms.page.basic.php

示例12: get_skin_dir

<?php

$g5_path = '../../..';
include_once $g5_path . '/common.php';
include_once EYOOM_PATH . '/common.php';
@(include_once EYOOM_INC_PATH . '/hookedfile.header.php');
include_once G5_PATH . '/head.sub.php';
$emo = $_GET['emo'];
if (!$emo) {
    $emo = 'rabbit';
}
$emoticon = $eb->get_emoticon($emo);
$emo_type = get_skin_dir('emoticon', EYOOM_THEME_PATH . '/' . $theme);
function get_skin_dir($skin, $skin_path = G5_SKIN_PATH)
{
    global $g5;
    $result_array = array();
    $dirname = $skin_path . '/' . $skin . '/';
    $handle = opendir($dirname);
    while ($file = readdir($handle)) {
        if ($file == '.' || $file == '..') {
            continue;
        }
        if (is_dir($dirname . $file)) {
            $result_array[] = $file;
        }
    }
    closedir($handle);
    sort($result_array);
    return $result_array;
}
开发者ID:l2zeo,项目名称:eyoom_builder-1,代码行数:31,代码来源:emoticon.php

示例13: sql_query

                    $id = $_POST['id'][$n];
                    if (!$id) {
                        continue;
                    }
                    sql_query(" delete from {$g5['apms_page']} where id = '{$id}' ", false);
                }
            }
        }
    }
    //Move
    goto_url($go_url);
}
//Header
include_once G5_LIB_PATH . '/apms.widget.lib.php';
$headskin = get_skin_dir('header');
$pageskin = get_skin_dir('page');
//Group List
$html_gr = array();
$result = sql_query("select gr_id, gr_subject from {$g5['group_table']} order by gr_order", false);
for ($i = 0; $row = sql_fetch_array($result); $i++) {
    $html_gr[$i][0] = $row['gr_id'];
    $html_gr[$i][1] = $row['gr_subject'];
}
$result = sql_query("select * from {$g5['apms_page']} where as_html = '1' order by gr_id desc, id ");
$row_cnt = @sql_num_rows($result);
?>

<div class="local_ov01 local_ov">
	사이트 소개, 회원약관, 개인정보보호방침, 이용안내 등
</div>
开发者ID:peb317,项目名称:gbamn,代码行数:30,代码来源:apms.page.normal.php

示例14: get_skin_dir

        <table>
        <caption>회원가입 설정</caption>
        <colgroup>
            <col class="grid_4">
            <col>
            <col class="grid_4">
            <col>
        </colgroup>
        <tbody>
		
            <div class="row">
		         <div class="form-group col-md-3">
                    <label for="cf_member_skin">회원 스킨<strong class="sound_only">필수</strong></label>
					<select name="cf_member_skin" id="cf_member_skin" required class="required form-control">
                    <?php 
$arr = get_skin_dir('member');
for ($i = 0; $i < count($arr); $i++) {
    if ($i == 0) {
        echo "<option value=\"\">선택</option>";
    }
    echo '<option value="' . $arr[$i] . '"' . get_selected($config['cf_member_skin'], $arr[$i]) . '>' . $arr[$i] . '</option>' . "\n";
}
?>
                </select>
                </div>
			
		        <div class="form-group col-md-3">
                    <label for="cf_register_level">회원가입시 권한</label>
					<?php 
echo get_member_level_select('cf_register_level', 1, 9, $config['cf_register_level']);
?>
开发者ID:kimyongyeon,项目名称:myproject,代码行数:31,代码来源:config_form.php

示例15: get_skin_dir

    <h2 class="h2_frm">테마 메니저<span class='exp'>각 테마별로 다양한 설정을 하실 수 있습니다.</span></h2>

    <div class="tbl_frm01 tbl_wrap">
		<input type="hidden" name="shop_theme" id="shop_theme" value="<?php 
echo $shop_theme;
?>
">
		<input type="hidden" name="theme_target" id="theme_target" value="">
        <table style="background:#f5f5f5;border:1px solid #eaeaea;">
        <caption>테마설정</caption>
        <tbody>
        <tr>
            <td>
			<div id="theme_select">
			<?php 
$arr = get_skin_dir('theme', EYOOM_PATH);
for ($i = 0; $i < count($arr); $i++) {
    if ($arr[$i] == 'countdown') {
        continue;
    }
    $config_file = $arr[$i] == 'basic' ? eyoom_config : G5_DATA_PATH . '/eyoom.' . $arr[$i] . '.config.php';
    if (file_exists($config_file)) {
        include $config_file;
        ?>
			<div class="themes">
				<div class="theme_name"><?php 
        echo $arr[$i];
        ?>
 <span style='font-weight:normal;'><?php 
        if ($tminfo[$arr[$i]]['tm_alias']) {
            echo "(" . $tminfo[$arr[$i]]['tm_alias'] . ")";
开发者ID:l2zeo,项目名称:eyoom_builder-1,代码行数:31,代码来源:theme_manager.php


注:本文中的get_skin_dir函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。