From 28bb520652d0b52541edcc0d742108a5b180dada Mon Sep 17 00:00:00 2001 From: gnuboard Date: Tue, 15 Jan 2013 19:00:20 +0900 Subject: [PATCH] =?UTF-8?q?option=5Fselected=20=ED=95=A8=EC=88=98=EB=AA=85?= =?UTF-8?q?=20=EC=B6=A9=EB=8F=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/common.lib.php | 50 ++++++++++++++++++++++++++++++++++++---------- 1 file changed, 39 insertions(+), 11 deletions(-) diff --git a/lib/common.lib.php b/lib/common.lib.php index af32393c9..518091671 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -778,28 +778,48 @@ function get_group_select($name, $selected='', $event='') $sql .= " order by a.gr_id "; $result = sql_query($sql); - $str = ""; return $str; } +// 스킨디렉토리를 SELECT 형식으로 얻음 +function get_skin_select($skin_gubun, $id, $name, $selected='', $event='') +{ + $skins = get_skin_dir($skin_gubun); + $str = ""; + $str = ""; return $str; @@ -1598,4 +1618,12 @@ function abs_ip2long($ip='') $ip = $ip ? $ip : $_SERVER['REMOTE_ADDR']; return abs(ip2long($ip)); } + + +/* +function option_selected($field, $value) +{ + return ($field==$value) ? ' selected="selected"' : ''; +} +*/ ?> \ No newline at end of file