<% if request("page")="home" then page = "Welcome to our Web site" elseif request("page")="about" then page = "Company Profile" elseif request("page")="service" then page = "Our Services" elseif request("page")="texture" then page = "Colours > Texture" elseif request("page")="ash" then page = "Colours > Ash" elseif request("page")="gloss" then page = "Colours > Gloss" elseif request("page")="satin" then page = "Colours > Satin and Perl" elseif request("page")="melamine" then page = "Colours > Melamine" elseif request("page")="timber" then page = "Colours > Timber" elseif request("page")="panel" then page = "Designs > Panel" elseif request("page")="silhouette" then page = "Designs > Silhouette" elseif request("page")="designer" then page = "Designs > Designer" elseif request("page")="heritage" then page = "Designs > Heritage" elseif request("page")="profile" then page = "Edging Profiles" elseif request("page")="showroom" then page = "Showroom" elseif request("page")="accessories" then page = "Accessories" elseif request("page")="roller" then page = "Roller Doors" elseif request("page")="maintenance" then page = "Care & Maintenance Instructions" elseif request("page")="colour" then page = "Colours" elseif request("page")="contact" then page = "Contact Information" elseif request("page")="mission" then page = "Mission Statement" elseif request("page")="terms" then page = "Terms & Conditions" else page = "Just Kitchen Designs" end if %> <% if request("page")="home" then slogan = "Complete Kitchen & Cabinet Solutions" elseif request("page")="about" then slogan = "Reliable Service" elseif request("page")="service" then slogan = "Kitchen & Cabinet Industry Professionals" elseif request("page")="contact" then slogan = "Quality Service Since 1994" elseif request("page")="testimonial" then slogan = "Customer Satisfaction Guaranteed" elseif request("page")="gallery" then slogan = "Professional service and quality finish to suit everyone" elseif request("page")="mission" then slogan = "Reliability, quality, on time completion and affordable pricing" else slogan = "Just Kitchen Designs" end if %> <% ' Create forward only recordset using current database and passed SQL statement '------------------------------- sub openrs(rs, sql) Set rs = Server.CreateObject("ADODB.Recordset") rs.CursorLocation = adUseServer rs.Open sql, cn, adOpenForwardOnly, adLockReadOnly, adCmdText end sub '------------------------------- ' Create static only recordset using current database and passed SQL statement '------------------------------- sub openStaticRS(rs, sql) Set rs = Server.CreateObject("ADODB.Recordset") rs.CursorLocation = adUseServer rs.Open sql, cn, adOpenStatic, adLockReadOnly, adCmdText end sub '=============================== '=============================== ' Site Initialization '------------------------------- ' Specify Debug mode (true/false) Dim bDebug : bDebug = false '------------------------------- ' Obtain the path where this site is located on the server '------------------------------- Dim sAppPath : sAppPath = left(Request("PATH_TRANSLATED"), instrrev(Request("PATH_TRANSLATED"), "\")) '------------------------------- ' Create Header and Footer Path variables '------------------------------- Dim sHeaderFileName : sHeaderFileName = sAppPath & "Header.html" Dim sFooterFileName : sFooterFileName = sAppPath & "Footer1.html" '=============================== '=============================== ' Common functions '------------------------------- ' Convert non-standard characters to HTML '------------------------------- function ToHTML(strValue) if IsNull(strValue) then ToHTML = "" else ToHTML = Server.HTMLEncode(strValue) end if end function '------------------------------- 'convert the benchtop lenght and width up to 100 '------------------------------- function RoundUpTo100(NumIn) If NumIn <> 100 * Int(NumIn / 100) then NumIn = 100 * (Int(NumIn / 100) + 1) RoundUpTo100 = NumIn else RoundUpTo100 = NumIn end if End Function '------------------------------- ' Convert value to URL '------------------------------- function ToURL(strValue) if IsNull(strValue) then strValue = "" ToURL = Server.URLEncode(strValue) end function '------------------------------- ' Obtain HTML value of a field '------------------------------- function GetValueHTML(rs, strFieldName) GetValueHTML = ToHTML(GetValue(rs, strFieldName)) end function '------------------------------- ' Obtain database field value '------------------------------- function GetValue(rs, strFieldName) on error resume next if rs is nothing then GetValue = "" elseif (not rs.EOF) and (strFieldName <> "") then res = rs(strFieldName) if isnull(res) then res = "" end if if VarType(res) = vbBoolean then if res then res = "1" else res = "0" end if GetValue = res else GetValue = "" end if if bDebug then response.write err.Description on error goto 0 end function '------------------------------- ' Obtain specific URL Parameter from URL string '------------------------------- function GetParam(ParamName) if Request.QueryString(ParamName).Count > 0 then Param = Request.QueryString(ParamName) elseif Request.Form(ParamName).Count > 0 then Param = Request.Form(ParamName) else Param = "" end if if Param = "" then GetParam = Empty else GetParam = Param end if end function '------------------------------- ' Convert value for use with SQL statament '------------------------------- Function ToSQL(Value, sType) Dim Param : Param = Value if Param = "" then ToSQL = "Null" else if sType = "Number" then ToSQL = replace(CDbl(Param), ",", ".") else ToSQL = "'" & Replace(Param, "'", "''") & "'" end if end if end function '------------------------------- ' Lookup field in the database based on provided criteria ' Input: Table (Table), Field Name (fName), criteria (sWhere) '------------------------------- function DLookUp(Table, fName, sWhere) on error resume next Dim Res : Res = cn.execute("select " & fName & " from " & Table & " where " & sWhere).Fields(0).Value if IsNull(Res) then Res = "" DLookUp = Res if bDebug then response.write err.Description on error goto 0 end function '------------------------------- ' Obtain Checkbox value depending on field type '------------------------------- function getCheckBoxValue(sVal, CheckedValue, UnCheckedValue, sType) if isempty(sVal) then if UnCheckedValue = "" then getCheckBoxValue = "Null" else if sType = "Number" then getCheckBoxValue = UnCheckedValue else getCheckBoxValue = "'" & Replace(UnCheckedValue, "'", "''") & "'" end if end if else if CheckedValue = "" then getCheckBoxValue = "Null" else if sType = "Number" then getCheckBoxValue = CheckedValue else getCheckBoxValue = "'" & Replace(CheckedValue, "'", "''") & "'" end if end if end if end function '------------------------------- ' Obtain lookup value from array containing List Of Values '------------------------------- function getValFromLOV(sVal, aArr) Dim i Dim sRes : sRes = "" if (ubound(aArr) mod 2) = 1 then for i = 0 to ubound(aArr) step 2 if cstr(sVal) = cstr(aArr(i)) then sRes = aArr(i+1) next end if getValFromLOV = sRes end function '------------------------------- ' Process Errors '------------------------------- function ProcessError() if cn.Errors.Count > 0 then ProcessError = cn.Errors(0).Description & " (" & cn.Errors(0).Source & ")" elseif not (Err.Description = "") then ProcessError = Err.Description else ProcessError = "" end if end Function '------------------------------- ' Verify user's security level and redirect to login page if needed '------------------------------- function CheckSecurity(iLevel) if Session("UserID") = "" then cn.Close Set cn = Nothing response.redirect("../company/Login.asp?QueryString=" & toURL(request.serverVariables("QUERY_STRING")) & "&ret_page=" & toURL(request.serverVariables("SCRIPT_NAME"))) else if CLng(Session("UserRights")) < CLng(iLevel) then cn.Close Set cn = Nothing response.redirect("../company/home.asp") 'response.redirect("home.asp?QueryString=" & toURL(request.serverVariables("QUERY_STRING")) & "&ret_page=" & toURL(request.serverVariables("SCRIPT_NAME"))) end if End if end function '=============================== Function DispDate(inpDate, format) Dim Res: Res = "" Dim fdDay, fdMonth, fdYear, fdHour, fdMinute, fdSecond, fdAMPM, ISOHour if IsDate(inpDate) = True then fdDay = Day(inpDate) fdMonth = Month(inpDate) fdYear = Year(inpDate) ISOHour = Hour(inpDate) fdHour = Hour(inpDate) if Hour(inpDate) = 12 then fdAMPM = "PM" end if if Hour(inpDate) = 0 then fdAMPM = "AM" fdHour = fdHour + 12 end if if Hour(inpDate) >= 1 AND Hour(inpDate) <= 11 then if Hour(inpDate) >= 0 AND Hour(inpDate) <= 9 then fdHour = "0" & fdHour end if fdAMPM = "AM" end if if Hour(inpDate) >= 13 AND Hour(inpDate) <= 23 then fdAMPM = "PM" fdHour = fdHour - 12 if Hour(inpDate) >= 13 AND Hour(inpDate) <= 21 then fdHour = "0" & fdHour end if end if If Len(Minute(inpDate))=1 Then fdMinute = "0" & Minute(inpDate) Else fdMinute = Minute(inpDate) End If If Len(Second(inpDate))=1 Then fdSecond = "0" & Second(inpDate) Else fdSecond = Second(inpDate) End If if fdDay <> "" AND fdMonth <> "" AND fdYear <> "" then if fdDay < 10 then fdDay = "0" & fdDay end if if fdMonth < 10 then fdMonth = "0" & fdMonth end if select case format case 1 outDate = fdDay & "/" & fdMonth & "/"& fdYear &_ " " & fdHour &":"& fdMinute &":"&_ fdSecond &" "& fdAMPM case 2 outDate = fdDay & "/" & fdMonth & "/"& fdYear case 3 outDate = fdMonth & "/" & fdDay & "/"& fdYear case 4 outDate = fdYear & "-" & Right(Cstr(fdMonth + 100),2) &_ "-" & Right(Cstr(fdDay + 100),2) &" "&_ ISOHour & ":" & fdMinute & ":" & fdSecond case 5 outDate = fdYear & "-" & Right(Cstr(fdMonth + 100),2) &_ "-" & Right(Cstr(fdDay + 100),2) end select else outDate = "" end if Res = outDate DispDate = Res end if end function '=============================== Function DispMonth(inpDate, format) Dim Res1: Res1 = "" Dim fdDay, fdMonth, fdYear, fdHour, fdMinute, fdSecond, fdAMPM, ISOHour if IsDate(inpDate) = True then fdDay = Day(inpDate) fdMonth = Month(inpDate) fdYear = Year(inpDate) ISOHour = Hour(inpDate) fdHour = Hour(inpDate) if Hour(inpDate) = 12 then fdAMPM = "PM" end if if Hour(inpDate) = 0 then fdAMPM = "AM" fdHour = fdHour + 12 end if if Hour(inpDate) >= 1 AND Hour(inpDate) <= 11 then if Hour(inpDate) >= 0 AND Hour(inpDate) <= 9 then fdHour = "0" & fdHour end if fdAMPM = "AM" end if if Hour(inpDate) >= 13 AND Hour(inpDate) <= 23 then fdAMPM = "PM" fdHour = fdHour - 12 if Hour(inpDate) >= 13 AND Hour(inpDate) <= 21 then fdHour = "0" & fdHour end if end if If Len(Minute(inpDate))=1 Then fdMinute = "0" & Minute(inpDate) Else fdMinute = Minute(inpDate) End If If Len(Second(inpDate))=1 Then fdSecond = "0" & Second(inpDate) Else fdSecond = Second(inpDate) End If if fdDay <> "" AND fdMonth <> "" AND fdYear <> "" then if fdDay < 10 then fdDay = "0" & fdDay end if if fdMonth < 10 then fdMonth = "0" & fdMonth end if select case format case 1 outMonth = fdDay case 2 outMonth = fdMonth case 3 outMonth = fdYear end select else outMonth = "" end if Res1 = outMonth DispMonth = Res1 end if end function '=============================== ' GlobalFuncs begin ' GlobalFuncs end '=============================== %> <% function key dim arrays(9) arrays(0) = "1" arrays(1) = "2" arrays(2) = "3" arrays(3) = "4" arrays(4) = "5" 'arrays(5) = "6" 'arrays(6) = "7" 'arrays(7) = "8" 'arrays(8) = "9" randomize 'Do while len (output) < digit number = arrays(INT((4 + 1) * RND)) output = output + number 'Loop key = output End function %> <% 'adminlogo="admin.jpg" ' cabinet adminlogo="admin1.jpg" ' business 'homelogo="cabhome.jpg" ' cabinet homelogo="bushome.jpg" ' business 'title_head = "Cabinet Solution V2 - Digital World IT" ' cabinet title_head = "Nu Door Pty Ltd" ' business tk = "#7DACED" td1 = "#B0D0EE" td2 = "#D0E3ED" 'copyright = "Digital World IT. All rights reserved." title_head = "" icon = "../images/powered.jpg" ykm = "#FF0000" webalizer = "" 'http://www.digitalit.com.au/webalizer/default.html 'slogan = "Each type of Concreting works with plans and specifications you require." 'slogan = "Each type of Bricklaying works with plans and specifications you require." 'slogan = "Supply and Installation of Kitchens with designs and plans you require." 'slogan1 = "Style, Technology and Quality" %> Just Kitchen Designs <%end if%>
           <% file="sliding" 'file = replace(file,"/","") 'file = replace(file,".","") Set fs = CreateObject("Scripting.FileSystemObject") Wfile=Server.MapPath("admin/product/sliding/"&file&".txt") Set a = fs.OpenTextFile(Wfile) hits1 = (a.ReadLine) a.Close %>  
Home Company Profile Our Mission Services Doors Benchtops Boards Showroom Contact Us
Designed and Powered by Digital World IT Copyright © 2009 Just Kitchen Designs. All Rights Reserved