|
 |
<%
Dim IsSearch
IsSearch = Trim(Request("IsSearch"))
Dim inter_cd
Dim prod_name
Dim txt_keyword
Dim category
Dim active_YN
Dim result_rows
Dim sort_by
inter_cd = Trim(Request("inter_cd"))
prod_name = Trim(Request("prod_name"))
txt_keyword = Trim(Request("txt_keyword"))
category = Trim(Request("category"))
active_YN = Trim(Request("active_YN"))
result_rows = Trim(Request("result_rows"))
IF result_rows = "" Then
result_rows = 10
End IF
sort_by = Trim(Request("sort_by"))
%>
<%'Start ========================================================================================================================%>
<%
Dim objCommonList
Dim objListProperty
Set objCommonList = New CommonListClass
Set objListProperty = New CommonListProperty
IF IsSearch = "true" Then
Dim strWhereCondition
strWhereCondition = " WHERE prod_cd is not null "
IF inter_cd <> "" Then
strWhereCondition = strWhereCondition & " AND inter_cd like '%" & inter_cd & "%'"
End IF
IF prod_name <> "" Then
strWhereCondition = strWhereCondition & " AND prod_name like '%" & prod_name & "%'"
End IF
IF txt_keyword <> "" Then
strWhereCondition = strWhereCondition & " AND txt_keyword like '%" & txt_keyword & "%'"
End IF
IF category <> "" Then
strWhereCondition = strWhereCondition & " AND category like '" & category & "%'"
End IF
IF active_YN <> "" Then
strWhereCondition = strWhereCondition & " AND active_YN = '" & active_YN & "'"
End If
objListProperty.Query = funcListSearchQuery(strWhereCondition, sort_by) '//Query
Else
objListProperty.Query = funcListQuery() '//Query
End If
objListProperty.PageRowSize = result_rows '//ÆäÀÌÁö »çÀÌÁî
objListProperty.ColumnTitle = Array("","Image","Category","Name","Price","Read","Active") '// ù ÀÚ¸®´Â Ç×»ó Key°¡ µé¾î°¨
objListProperty.ColumnTableWidth = "100%"
objListProperty.ColumnAlign = Array("","center","center","left","center","center","center") '//Key¸¦ À§ÇØ ÇÒ´çµÈ ÀÚ¸®À̹ǷΠ...
objListProperty.TDSize = Array("","10%","20%","30%", "15%","10%","10%") '//¹øÈ£¿À» À§ÇØ Ç×»ó Àüü 95%·Î À¯Áö
objListProperty.FontColor = Array("","#426BB5","#333333","#333333","#333333","#333333","#333333")
objListProperty.AnchorColumn = 3'//Link¸¦ °É¾îÁÙ ¹è¿¹øÈ£... 0ºÎÅÍ ½ÃÀÛÇÔ.
objListProperty.DisplayNoMsg = "No Result" '// Result°¡ ¾øÀ» ¶§ ¸Þ½ÃÁö
IF Trim(Request("IsSearch")) = "true" Then
objListProperty.AnchorURL = "./service_m_detail.asp?IsSearch="&Request("IsSearch")&"&s_inter_cd="&inter_cd&"&s_prod_name="&prod_name&"&s_txt_keyword="&txt_keyword&"&s_category="&category&"&s_active_YN="&active_YN&"&result_rows="&result_rows&"&sort_by="&sort_by&"&prod_cd="
objListProperty.CurrentURL = "./service_m.asp?IsSearch="&Request("IsSearch")&"&inter_cd="&inter_cd&"&prod_name="&prod_name&"&txt_keyword="&txt_keyword&"&category="&category&"&active_YN="&active_YN&"&result_rows="&result_rows&"&sort_by="&sort_by
Else
objListProperty.AnchorURL = "./service_m_detail.asp?prod_cd="
objListProperty.CurrentURL = "./service_m.asp"
End IF
objCommonList.funcAddProperty objListProperty
Set objListProperty = Nothing
Set objCommonList = Nothing
%>
|
<%'End =========================================================================================================================%>
|
 |
|