From c40457c1cf373cf920bdc7321394e96dd6a7a838 Mon Sep 17 00:00:00 2001 From: gnuboard Date: Fri, 4 Oct 2013 17:59:39 +0900 Subject: [PATCH] =?UTF-8?q?select=20box=20=EB=82=98=20redio=20button=20?= =?UTF-8?q?=EC=97=90=EC=84=9C=20=EC=82=AC=EC=9A=A9=ED=95=98=EA=B8=B0=20?= =?UTF-8?q?=EC=9C=84=ED=95=B4=20get=5Fchecked=20=ED=95=A8=EC=88=98=20?= =?UTF-8?q?=EC=83=9D=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/common.lib.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/common.lib.php b/lib/common.lib.php index 8a8f473dd..ac4e564dd 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -1904,6 +1904,12 @@ function get_selected($field, $value) } +function get_checked($field, $value) +{ + return ($field==$value) ? ' checked="checked"' : ''; +} + + function is_mobile() { return preg_match('/'.G5_MOBILE_AGENT.'/i', $_SERVER['HTTP_USER_AGENT']);