package com.basic.x01.securityCheck; public class SecurityCheckUtil { public final static int CHECK_WAY_PHOTO = 1; public final static int CHECK_WAY_VIDEO = 2; public final static String[] checkWays=new String[]{ CHECK_WAY_PHOTO+"", "拍照", CHECK_WAY_VIDEO+"", "视频" }; public final static int CHECK_TIME_DAY = 1; public final static int CHECK_TIME_WEEK = 7; public final static int CHECK_TIME_MONTH = 30; public final static int CHECK_TIME_SEASON = 91; public final static int CHECK_TIME_HALF_YEAR = 182; public final static int CHECK_TIME_YEAR = 365; public final static String[] CHECK_TIME_STRING = new String[]{ CHECK_TIME_DAY+"", "每天", CHECK_TIME_WEEK+"", "每周", CHECK_TIME_MONTH+"", "每月", CHECK_TIME_SEASON+"", "每季度", CHECK_TIME_HALF_YEAR+"", "每半年", CHECK_TIME_YEAR+"", "每年", }; public final static String getSelectBoxHtml(String time){ if(time==null){ time = ""; } time = "/" + time + "/"; StringBuffer s = new StringBuffer(""); return s.toString(); } public static String getCheckWayHtml4Edit(String checkWay){ if(checkWay==null){ checkWay=""; } checkWay="/"+checkWay+"/"; StringBuffer s = new StringBuffer(); for(int i=0; i") .append(txt).append(""); } return s.toString(); } public static String getCheckWayText4Display(String checkWay){ if(checkWay==null){ checkWay=""; } checkWay="/"+checkWay+"/"; StringBuffer s = new StringBuffer(); for(int i=0; i0){ s.deleteCharAt(0); } return s.toString(); } public static boolean isCheckWay(String checkWay, int val){ if(checkWay==null){ checkWay=""; } checkWay="/"+checkWay+"/"; return checkWay.contains("/"+val+"/"); } }