Exemplo n.º 1
0
function getMenuShowSelect($site, $table, $j, $parent, $depth, $uid, $hidden, $id)
{
    global $cat, $_isUid;
    static $j;
    $CD = getDbSelect($table, ($site ? 'site=' . $site . ' and ' : '') . 'depth=' . ($depth + 1) . ' and parent=' . $parent . ($hidden ? ' and hidden=0' : '') . ' order by gid asc', '*');
    while ($C = db_fetch_array($CD)) {
        $nId = ($id ? $id . '/' : '') . $C[$_isUid . 'id'];
        $j++;
        echo '<option class="selectcat' . $C['depth'] . '" value="' . $nId . '"' . ($nId == $cat ? ' selected' : '') . '>';
        for ($i = 1; $i < $C['depth']; $i++) {
            echo '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
        }
        if ($C['depth'] > 1) {
            echo 'ㄴ';
        }
        echo $C['name'] . ($C['num'] ? ' (' . $C['num'] . ')' : '') . '</option>';
        if ($C['is_child']) {
            getMenuShowSelect($site, $table, $j, $C['uid'], $C['depth'], $uid, $hidden, $nId);
        }
    }
}
Exemplo n.º 2
0
    echo $g['img_core'];
    ?>
/_public/ico_q.gif" alt="도움말" title="도움말" class="hand" onclick="__layerShowHide('guide_sosokmenu','block','none');" />				
			</td>
			<td class="td2">
				<select name="sosokmenu" class="select1">
				<option value="">&nbsp;+ 사용안함</option>
				<option value="">--------------------------------</option>
				<?php 
    include_once $g['path_core'] . 'function/menu1.func.php';
    ?>
				<?php 
    $cat = $R['sosokmenu'];
    ?>
				<?php 
    getMenuShowSelect($s, $table['s_menu'], 0, 0, 0, 0, 0, '');
    ?>
				</select>
				<div id="guide_sosokmenu" class="guide hide">
				이 페이지의 소속메뉴가 종종 필요할 수 있습니다.<br />
				특정메뉴의 서브페이지로 사용되기를 원할경우 지정해 주세요.<br />
				</div>
			</td>
		</tr>
		<tr>
			<td class="td1">허 용 등 급</td>
			<td class="td2">
				<select name="perm_l" class="select1">
				<option value="">&nbsp;+ 전체허용</option>
				<option value="">--------------------------------</option>
				<?php