<?php
$desktop_model					= array();
$tablet_model					= array();
$mobile_model				= array();
$desktop_model['version']		= "1.0.0";



$desktop_model['list']		= '
{"type":"list_check","width":"40px","level":"10","class":"list_check"},
{"field":"fn_pid","name":"W_PID","width":"50px","class":"num","type":"pid","class":"pid","responsive":"mb-show-desktop-large"},
{"field":"fn_board_name","name":"W_BOARD_NAME","width":"180px","mobile_width":"120px","responsive":"mb-hide-mobile mb-hide-tablet"},
{"field":"fn_action","name":"Action","width":"100px","type":"admin_action_type"},
{"field":"fn_content","name":"W_CONTENT","width":"","td_class":"text-left"},
{"field":"fn_user_name","name":"W_USER_REGDATE","width":"160px","type":"admin_user_name_pid_date","responsive":"mb-hide-mobile"},
{"field":"fn_user_pid","name":"W_USER_PID","type":"search"},
{"field":"fn_ip","name":"IP","width":"120px","type":"admin_ip_agent","level":"10","responsive":"mb-hide-mobile mb-hide-tablet"},
';

//글보기 스킨 수정
$desktop_model['view']		= '
{"tpl":"tag","tag_name":"table","type":"start","name":"W_VIEW_MSG","width":"20%,*","mobile_width":"90px,*","class":"table table-view"},
{"field":"fn_pid","name":"W_PID","width":"60px"},
{"field":"fn_board_name","name":"W_BOARD_NAME","width":"300px"},
{"field":"fn_mode","name":"Mode ","width":"300px"},
{"field":"fn_action","name":"Action","width":"300px"},
{"field":"fn_type","name":"Type","width":"300px"},
{"field":"fn_content","name":"Content","width":"300px"},
{"field":"fn_user_pid","name":"User Pid","width":"300px"},
{"field":"fn_user_name","name":"User Name","width":"300px"},
{"field":"fn_agent","name":"Agent","width":"300px"},
{"field":"fn_ip","name":"IP","width":"300px"},
{"field":"fn_reg_date","name":"W_REGDATE","width":"300px"},
{"tpl":"tag","tag_name":"table","type":"end"}
';



//글작성 스킨 수정
$desktop_model['write']		= '
{"tpl":"tag","tag_name":"table","type":"start","name":"W_WRITE","width":"20%,*","mobile_width":"90px,*","class":"table table-write"},
{"field":"fn_board_name","name":"W_BOARD_NAME","width":"300px"},
{"field":"fn_mode","name":"Mode ","width":"300px"},
{"field":"fn_action","name":"Action","width":"300px"},
{"field":"fn_type","name":"Type","width":"300px"},
{"field":"fn_content","name":"Content","width":"300px"},
{"field":"fn_user_pid","name":"User Pid","width":"300px"},
{"field":"fn_user_name","name":"User Name","width":"300px"},
{"tpl":"tag","tag_name":"table","type":"end"}
';

$tablet_model									= $desktop_model;
$mobile_model								= $desktop_model;
mbw_set_fields("select_board",$mb_fields["logs"]);

if(mbw_is_admin_page()){		//어드민 페이지에서만 실행
	if(mbw_get_request_mode()=="Frontend"){		// 게시판 모드일 경우에만
		add_action('mbw_board_skin_search', 'mbw_get_date_search_template');		// 기간 설정 템플릿 추가
	}
}

?>