select box 나 redio button 에서 사용하기 위해 get_checked 함수 생성

This commit is contained in:
gnuboard
2013-10-04 17:59:39 +09:00
parent 6569f03fba
commit c40457c1cf

View File

@ -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']);