<% Dim db Dim rsUsers Set db = Server.CreateObject("ADODB.Connection") db.open "Application Name=EyeforTransport; Provider=SQLOLEDB; Data Source=FCWDB1;Initial Catalog=fc; User Id=fclink; Password=1qa2ws" Set rsUsers = Server.CreateObject("ADODB.Recordset") %> <% '-------------------------------------------------------------------- ' Microsoft ADO ' ' (c) 1996 Microsoft Corporation. All Rights Reserved. ' ' ' ' ADO constants include file for VBScript ' '-------------------------------------------------------------------- '---- CursorTypeEnum Values ---- Const adOpenForwardOnly = 0 Const adOpenKeyset = 1 Const adOpenDynamic = 2 Const adOpenStatic = 3 '---- CursorOptionEnum Values ---- Const adHoldRecords = &H00000100 Const adMovePrevious = &H00000200 Const adAddNew = &H01000400 Const adDelete = &H01000800 Const adUpdate = &H01008000 Const adBookmark = &H00002000 Const adApproxPosition = &H00004000 Const adUpdateBatch = &H00010000 Const adResync = &H00020000 Const adNotify = &H00040000 Const adFind = &H00080000 '---- LockTypeEnum Values ---- Const adLockReadOnly = 1 Const adLockPessimistic = 2 Const adLockOptimistic = 3 Const adLockBatchOptimistic = 4 '---- ExecuteOptionEnum Values ---- Const adRunAsync = &H00000010 Const adAsyncExecute = &H00000010 Const adAsyncFetch = &H00000020 Const adAsyncFetchNonBlocking = &H00000040 '---- ConnectOptionEnum Values ---- Const adAsyncConnect = &H00000010 '---- ObjectStateEnum Values ---- Const adStateClosed = &H00000000 Const adStateOpen = &H00000001 Const adStateConnecting = &H00000002 Const adStateExecuting = &H00000004 Const adStateFetching = &H00000008 '---- CursorLocationEnum Values ---- Const adUseServer = 2 Const adUseClient = 3 '---- DataTypeEnum Values ---- Const adEmpty = 0 Const adTinyInt = 16 Const adSmallInt = 2 Const adInteger = 3 Const adBigInt = 20 Const adUnsignedTinyInt = 17 Const adUnsignedSmallInt = 18 Const adUnsignedInt = 19 Const adUnsignedBigInt = 21 Const adSingle = 4 Const adDouble = 5 Const adCurrency = 6 Const adDecimal = 14 Const adNumeric = 131 Const adBoolean = 11 Const adError = 10 Const adUserDefined = 132 Const adVariant = 12 Const adIDispatch = 9 Const adIUnknown = 13 Const adGUID = 72 Const adDate = 7 Const adDBDate = 133 Const adDBTime = 134 Const adDBTimeStamp = 135 Const adBSTR = 8 Const adChar = 129 Const adVarChar = 200 Const adLongVarChar = 201 Const adWChar = 130 Const adVarWChar = 202 Const adLongVarWChar = 203 Const adBinary = 128 Const adVarBinary = 204 Const adLongVarBinary = 205 Const adChapter = 136 '---- FieldAttributeEnum Values ---- Const adFldMayDefer = &H00000002 Const adFldUpdatable = &H00000004 Const adFldUnknownUpdatable = &H00000008 Const adFldFixed = &H00000010 Const adFldIsNullable = &H00000020 Const adFldMayBeNull = &H00000040 Const adFldLong = &H00000080 Const adFldRowID = &H00000100 Const adFldRowVersion = &H00000200 Const adFldCacheDeferred = &H00001000 '---- EditModeEnum Values ---- Const adEditNone = &H0000 Const adEditInProgress = &H0001 Const adEditAdd = &H0002 Const adEditDelete = &H0004 '---- RecordStatusEnum Values ---- Const adRecOK = &H0000000 Const adRecNew = &H0000001 Const adRecModified = &H0000002 Const adRecDeleted = &H0000004 Const adRecUnmodified = &H0000008 Const adRecInvalid = &H0000010 Const adRecMultipleChanges = &H0000040 Const adRecPendingChanges = &H0000080 Const adRecCanceled = &H0000100 Const adRecCantRelease = &H0000400 Const adRecConcurrencyViolation = &H0000800 Const adRecIntegrityViolation = &H0001000 Const adRecMaxChangesExceeded = &H0002000 Const adRecObjectOpen = &H0004000 Const adRecOutOfMemory = &H0008000 Const adRecPermissionDenied = &H0010000 Const adRecSchemaViolation = &H0020000 Const adRecDBDeleted = &H0040000 '---- GetRowsOptionEnum Values ---- Const adGetRowsRest = -1 '---- PositionEnum Values ---- Const adPosUnknown = -1 Const adPosBOF = -2 Const adPosEOF = -3 '---- BookmarkConstants Values ---- Const adBookmarkCurrent = 0.0 Const adBookmarkFirst = 1.0 Const adBookmarkLast = 2.0 '---- MarshalOptionsEnum Values ---- Const adMarshalAll = 0 Const adMarshalModifiedOnly = 1 '---- AffectEnum Values ---- Const adAffectCurrent = 1 Const adAffectGroup = 2 Const adAffectAll = 3 '---- ResyncEnum Values ---- Const adResyncUnderlyingValues = 1 Const adResyncAllValues = 2 '---- CompareEnum Values ---- Const adCompareLessThan = 0 Const adCompareEqual = 1 Const adCompareGreaterThan = 2 Const adCompareNotEqual = 3 Const adCompareNotComparable = 4 '---- FilterGroupEnum Values ---- Const adFilterNone = 0 Const adFilterPendingRecords = 1 Const adFilterAffectedRecords = 2 Const adFilterFetchedRecords = 3 Const adFilterPredicate = 4 Const adFilterConflictingRecords = 5 '---- SearchDirectionEnum Values ---- Const adSearchForward = 1 Const adSearchBackward = -1 '---- PersistFormatEnum Values ---- Const adPersistADTG = 0 Const adPersistXML = 1 Const adPersistHTML = 2 '---- StringFormatEnum Values ---- Const adStringXML = 0 Const adStringHTML = 1 Const adClipString = 2 '---- ConnectPromptEnum Values ---- Const adPromptAlways = 1 Const adPromptComplete = 2 Const adPromptCompleteRequired = 3 Const adPromptNever = 4 '---- ConnectModeEnum Values ---- Const adModeUnknown = 0 Const adModeRead = 1 Const adModeWrite = 2 Const adModeReadWrite = 3 Const adModeShareDenyRead = 4 Const adModeShareDenyWrite = 8 Const adModeShareExclusive = &Hc Const adModeShareDenyNone = &H10 '---- IsolationLevelEnum Values ---- Const adXactUnspecified = &Hffffffff Const adXactChaos = &H00000010 Const adXactReadUncommitted = &H00000100 Const adXactBrowse = &H00000100 Const adXactCursorStability = &H00001000 Const adXactReadCommitted = &H00001000 Const adXactRepeatableRead = &H00010000 Const adXactSerializable = &H00100000 Const adXactIsolated = &H00100000 '---- XactAttributeEnum Values ---- Const adXactCommitRetaining = &H00020000 Const adXactAbortRetaining = &H00040000 '---- PropertyAttributesEnum Values ---- Const adPropNotSupported = &H0000 Const adPropRequired = &H0001 Const adPropOptional = &H0002 Const adPropRead = &H0200 Const adPropWrite = &H0400 '---- ErrorValueEnum Values ---- Const adErrInvalidArgument = &Hbb9 Const adErrNoCurrentRecord = &Hbcd Const adErrIllegalOperation = &Hc93 Const adErrInTransaction = &Hcae Const adErrFeatureNotAvailable = &Hcb3 Const adErrItemNotFound = &Hcc1 Const adErrObjectInCollection = &Hd27 Const adErrObjectNotSet = &Hd5c Const adErrDataConversion = &Hd5d Const adErrObjectClosed = &He78 Const adErrObjectOpen = &He79 Const adErrProviderNotFound = &He7a Const adErrBoundToCommand = &He7b Const adErrInvalidParamInfo = &He7c Const adErrInvalidConnection = &He7d Const adErrNotReentrant = &He7e Const adErrStillExecuting = &He7f Const adErrOperationCancelled = &He80 Const adErrStillConnecting = &He81 Const adErrNotExecuting = &He83 '---- ParameterAttributesEnum Values ---- Const adParamSigned = &H0010 Const adParamNullable = &H0040 Const adParamLong = &H0080 '---- ParameterDirectionEnum Values ---- Const adParamUnknown = &H0000 Const adParamInput = &H0001 Const adParamOutput = &H0002 Const adParamInputOutput = &H0003 Const adParamReturnValue = &H0004 '---- CommandTypeEnum Values ---- Const adCmdUnknown = &H0008 Const adCmdText = &H0001 Const adCmdTable = &H0002 Const adCmdStoredProc = &H0004 Const adCmdFile = &H0100 '---- EventStatusEnum Values ---- Const adStatusOK = &H0000001 Const adStatusErrorsOccurred = &H0000002 Const adStatusCantDeny = &H0000003 Const adStatusCancel = &H0000004 Const adStatusUnwantedEvent = &H0000005 '---- EventReasonEnum Values ---- Const adRsnAddNew = 1 Const adRsnDelete = 2 Const adRsnUpdate = 3 Const adRsnUndoUpdate = 4 Const adRsnUndoAddNew = 5 Const adRsnUndoDelete = 6 Const adRsnRequery = 7 Const adRsnResynch = 8 Const adRsnClose = 9 Const adRsnMove = 10 Const adRsnFirstChange = 11 Const adRsnMoveFirst = 12 Const adRsnMoveNext = 13 Const adRsnMovePrevious = 14 Const adRsnMoveLast = 15 '---- SchemaEnum Values ---- Const adSchemaProviderSpecific = -1 Const adSchemaAsserts = 0 Const adSchemaCatalogs = 1 Const adSchemaCharacterSets = 2 Const adSchemaCollations = 3 Const adSchemaColumns = 4 Const adSchemaCheckConstraints = 5 Const adSchemaConstraintColumnUsage = 6 Const adSchemaConstraintTableUsage = 7 Const adSchemaKeyColumnUsage = 8 Const adSchemaReferentialContraints = 9 Const adSchemaTableConstraints = 10 Const adSchemaColumnsDomainUsage = 11 Const adSchemaIndexes = 12 Const adSchemaColumnPrivileges = 13 Const adSchemaTablePrivileges = 14 Const adSchemaUsagePrivileges = 15 Const adSchemaProcedures = 16 Const adSchemaSchemata = 17 Const adSchemaSQLLanguages = 18 Const adSchemaStatistics = 19 Const adSchemaTables = 20 Const adSchemaTranslations = 21 Const adSchemaProviderTypes = 22 Const adSchemaViews = 23 Const adSchemaViewColumnUsage = 24 Const adSchemaViewTableUsage = 25 Const adSchemaProcedureParameters = 26 Const adSchemaForeignKeys = 27 Const adSchemaPrimaryKeys = 28 Const adSchemaProcedureColumns = 29 Const adSchemaDBInfoKeywords = 30 Const adSchemaDBInfoLiterals = 31 Const adSchemaCubes = 32 Const adSchemaDimensions = 33 Const adSchemaHierarchies = 34 Const adSchemaLevels = 35 Const adSchemaMeasures = 36 Const adSchemaProperties = 37 Const adSchemaMembers = 38 %> <% Set rs2 = Server.CreateObject("ADODB.Recordset") Set rs = Server.CreateObject("ADODB.Recordset") 'set up variables pass = Request.querystring("pass") if pass="" or isnull(pass) then pass=0 end if if pass=0 then pass=1 end if 'Number of results to display noResults = Request("cboNoResults") if Request("cboNoResults")>10 then recordnumber = Request("cboNoResults") else recordnumber = 10 end if channels = Request("channels") channels2 = Request("channels2") channels3 = Request("channels3") cboDate=Request("cboDate") searchterm = request("searchterm") search = split(Request("searchterm")) howmany = recordnumber thismany = recordnumber if pass>0 then thismany = pass * howmany top = Request("top") news = Request("news") ch = Request("ch") ch2 = Request("ch2") ch3 = Request("ch3") searchterm = replace(Request("searchterm"),"'","") format = Request("format") 'end set up variables if ch="" and ch2="" and ch3="" and searchterm="" and pass="" and news="" and format="" then homepage=1 end if if Request("top") = 2 then sql = "SELECT * FROM CHANNELS2 WHERE industry = 'freight'" rs.open sql, db while not rs.EOF sql2 = "SELECT distinct COUNT(*) FROM CHANNELS2 c2 INNER JOIN (CHANNEL2_XREF x2 INNER JOIN (CHANNELS c INNER JOIN (REPORT r INNER JOIN CHANNEL_XREF x ON r.primarykey = x.item_id) ON x.channel_id = c.id) ON r.primarykey = x2.item_id) ON x2.channel2_id = c2.id left join (authors_xref ax inner join Authors a on ax.author_id = a.id) ON ax.story_id = r.primarykey WHERE c2.id = " & rs("id") if Request("ch") <> "" then sql2 = sql2 & " AND c.id = " & Request("ch") rs2.open sql2, db 'centralchannelhtml = centralchannelhtml & "SQL2::: " & sql2 & ":::end sql2" if not rs2(0)=0 then dim name name = rs("name") centralchannelhtml = centralchannelhtml & "  " & name & "(" & rs2(0) & ")" end if rs2.Close rs.MoveNext wend centralchannelhtml = centralchannelhtml & "" rs.Close elseif Request("top") = 1 then sql = "SELECT * FROM CHANNELS WHERE industry = 'freight'" rs.open sql, db while not rs.EOF sql2 = "SELECT distinct COUNT(*) FROM CHANNELS c INNER JOIN (CHANNEL_XREF x INNER JOIN (CHANNELS2 c2 INNER JOIN (REPORT r INNER JOIN CHANNEL2_XREF x2 ON r.primarykey = x2.item_id) ON x2.channel2_id = c2.id) ON r.primarykey = x.item_id) ON x.channel_id = c.id left join (authors_xref ax inner join Authors a on ax.author_id = a.id) ON ax.story_id = r.primarykey WHERE c.id = " & rs("id") if Request("ch2") <> "" then sql2 = sql2 & " AND c2.id = " & Request("ch2") rs2.open sql2, db 'centralchannelhtml = centralchannelhtml & "SQL2::: " & sql2 & ":::end sql2" 'pos = 0 if not rs2(0)=0 then 'if not pos = 0 then ' centralchannelhtml = centralchannelhtml & "
" 'end if 'pos = pos + 1 Select Case rs("id") Case 182 name = "Connectivity" Case 161 name = "Online Opps." Case 179 name = "Marketplaces" Case 159 name = "Govt. Issues" Case else name = rs("name") End Select centralchannelhtml = centralchannelhtml & "  " & name & "(" & rs2(0) & ")" end if rs2.Close rs.MoveNext wend centralchannelhtml = centralchannelhtml & "" rs.Close end if 'put channels here!! 'end channels if news<>"" then sql = "SELECT top 1 * FROM REPORT WHERE primarykey = " & news 'original sql set rsStats = Server.CreateObject("ADODB.Recordset") statssql = "update report set counter = counter + 1 where primarykey = " & news 'set counter = 0 so counter will work using this update but only the first time the database is used rsStats.Open statssql,db set rsStats = nothing if trim(Request("Source"))<>"" then if Trim(Request("source"))= "w" then statssql = "update report set NewsletterCounter = NewsletterCounter + 1 where primarykey = " & news elseif Trim(Request("Source")) = "dp" then statssql = "update report set DPNewsletterCounter = DPNewsletterCounter + 1 where primarykey = " & news elseif Trim(Request("Source")) = "wp" then statssql = "update report set WPNewsletterCounter = WPNewsletterCounter + 1 where primarykey = " & news elseif Trim(Request("Source")) = "d" then statssql = "update report set DNewsletterCounter = DNewsletterCounter + 1 where primarykey = " & news elseif Trim(Request("Source")) = "nf" then statssql = "update report set NFCounter = NFCounter + 1 where primarykey = " & news end if set rsStats = Server.CreateObject("ADODB.Recordset") rsStats.Open statssql,db set rsStats = nothing end if elseif searchterm<>"" and request("cboNoResults")="" then sql = "SELECT distinct top 100 thedate,subjectline,precis,image,primarykey,flag,link,format,exclusive, a.name,a.position,a.company FROM REPORT r left outer join(AUTHORS_xref ax left outer join AUTHORS a ON ax.author_id = a.id) ON r.primarykey = ax.story_id where r.industry='freight' AND " for srchloop = lbound(search) to ubound(search) sql = sql & " (r.subjectline like '%" & search(srchloop) sql = sql & "%' OR r.precis like '%" & search(srchloop) sql = sql & "%' OR r.bodytext like '%" & search(srchloop) sql = sql & "%' OR a.name like '%" & search(srchloop) sql = sql & "%' OR a.position like '%" & search(srchloop) sql = sql & "%' OR a.company like '%" & search(srchloop) sql = sql & "%')" if srchloop <> ubound(search) then sql = sql & " AND" end if 'add search terms to feedback_table sqlfeedback= "SELECT * FROM feedback WHERE industry = 'freight' AND query LIKE '" & search(srchloop) & "' AND source='news';" rsUsers.Open sqlfeedback, db, adOpenStatic, adLockOptimistic if not rsUsers.EOF then counting = rsUsers("number") rsUsers("number") = counting +1 rsUsers.Update rsUsers.close else rsusers.close sqlinput = "INSERT INTO feedback (query,number,industry, source) VALUES ('" & search(srchloop) & "','1','freight','news');" rsUsers.Open sqlinput, db end if 'end feedback next sql = sql & " order BY flag, thedate desc, primarykey DESC" channelname = "Search Results" elseif request("cboNoResults")<>"" then %> <% '-------------------------------------------------------- '© Nichestream August 2000 '-------------------------------------------------------- Channel = Request("channels").Count searchtype = "all" if instr(1, Request("channels"),",") then ChannelsArray = split(Request("channels"),",") end if 'Initial Statment depends on if we are searching for authors if(noResults<>"") then 'Initial SQL Statement sqlsearch= "SELECT distinct top 100 flag, thedate,subjectline,precis,image,primarykey,link,format,exclusive, a.name,a.position,a.company FROM REPORT r " '''''''''''''''''''''''''''''''''''''''''''''''''''' 'first set up relationships '''''''''''''''''''''''''''''''''''''''''''''''''''' 'Add inner join to channel table channels = Request("channels") if(channels<>"") then sqlsearch= sqlsearch& " INNER JOIN CHANNEL_XREF x ON r.primarykey = x.item_id" end if 'Add inner join to channel2 table channels2 = Request("channels2") if(channels2<>"") then sqlsearch= sqlsearch& " INNER JOIN CHANNEL2_XREF x2 ON r.primarykey = x2.item_id" end if 'Add inner join to channel2 table channels3 = Request("channels3") if(channels3<>"") then sqlsearch= sqlsearch& " INNER JOIN CHANNEL3_XREF x3 ON r.primarykey = x3.item_id" end if ' if request("searchterm")<>"" then 'A quick search is determined if we do not have a specified no of results returned from the submit form search = split(Request("searchterm")) sqlsearch= sqlsearch& " left outer join(AUTHORS_xref ax left outer join AUTHORS a ON ax.author_id = a.id) ON r.primarykey = ax.story_id " 'end if ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ''End set up relationships''''''''''' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' '''set up Query''''''''''''''''''''''''''''''''''''''''' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' sqlsearch= sqlsearch& " where r.industry ='freight' " if request("searchterm")<>"" then sqlsearch= sqlsearch& " and " for srchloop = lbound(search) to ubound(search) sqlsearch= sqlsearch& " (r.subjectline like '%" & search(srchloop) sqlsearch= sqlsearch& "%' OR r.precis like '%" & search(srchloop) sqlsearch= sqlsearch& "%' OR r.bodytext like '%" & search(srchloop) sqlsearch= sqlsearch& "%' OR a.name like '%" & search(srchloop) sqlsearch= sqlsearch& "%' OR a.position like '%" & search(srchloop) sqlsearch= sqlsearch& "%' OR a.company like '%" & search(srchloop) sqlsearch= sqlsearch& "%')" if srchloop <> ubound(search) then sqlsearch= sqlsearch& " AND" end if next end if 'Set the search tyoe to all for later compilation of the ChecksSQL end if 'COMPILE CHANNELS/CHANNELS2 sqlsearchString '---------------------------------------------------------------- 'This string gets inserted for every content type. This is done in the IF statment below if(channels2<>"") then IORs = false dim channels2SQL 'channels2SQL = "" if instr(1, Request("channels2"),",") then ChannelsArray = split(channels2,",") end if channels2SQL = "(" for each item in Request.Form("channels2") channels2count = channels2count + 1 if IORs = true then channels2SQL = channels2SQL & " OR " end if channels2SQL = channels2SQL & "x2.channel2_id = '" & trim(item) & "'" IORs = true next channels2SQL = channels2SQL & ")" end if '---------------------------------------------------------------- 'COMPILE SEARCH Content STRING if(channels<>"") then dim IORs IORs = false dim channelsSQL if instr(1, Request("channels"),",") then ChannelsArray = split(Request("channels"),",") end if channelsSQL = "(" for each item in split(Request("channels"),",") channelscount = channelscount + 1 if IORs = true then channelsSQL = channelsSQL & " OR " end if channelsSQL = channelsSQL & "x.channel_id = '" & trim(item) & "'" IORs = true next channelsSQL = channelsSQL & ")" end if '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' '''add media type channel2 if(channels2<>"") then IORs = false dim channelsSQL2 'channelsSQL3 = "" if instr(1, Request("channels2"),",") then ChannelsArray3 = split(Request("channels2"),",") end if channels2SQL = "(" for each item in split(Request("channels2"),",") channels2count = channels3count + 1 if IORs = true then channels2SQL = channels2SQL & " OR " end if channels2SQL = channels2SQL & "x2.channel2_id = '" & trim(item) & "'" IORs = true next channels2SQL = channels2SQL & ")" end if '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' '''add business type channel3 if(channels3<>"") then IORs = false dim channelsSQL3 'channelsSQL3 = "" if instr(1, Request("channels3"),",") then ChannelsArray3 = split(Request("channels3"),",") end if channels3SQL = "(" for each item in split(Request("channels3"),",") channels3count = channels3count + 1 if IORs = true then channels3SQL = channels3SQL & " OR " end if channels3SQL = channels3SQL & "x3.channel3_id = '" & trim(item) & "'" IORs = true next channels3SQL = channels3SQL & ")" et = " AND " channelsSQL = et & channelsSQL & et & channels2SQL & et & channels3SQL end if '---------------------------------------------------------------- 'COMPILE DATE SQL STRING dateSQL = "" TS = Request("cboDate") if(TS = "all") then 'Do nothing! end if if(TS = "1d") then dateToday = Date() dateSQL = "AND(theDate>'" & DateAdd("d",-1,dateToday) & "')" end if if(TS = "1w") then dateToday = Date() dateSQL = "AND(theDate>'" & DateAdd("ww",-1,dateToday) & "')" end if if(TS = "1m") then dateToday = Date() dateSQL = "AND(theDate>'" & DateAdd("m",-1,dateToday) & "')" end if if(TS = "3m") then dateToday = Date() dateSQL = "AND(theDate>'" & DateAdd("m",-3,dateToday) & "')" end if if(TS = "1y") then dateToday = Date() dateSQL = "AND(theDate>'" & DateAdd("yyyy",-1,dateToday) & "')" end if '------------------------------------------------------------ 'COMPILE CHECKS SQL STRING chkSQL = "" dim InsertORs InsertORs = false 'If they are searching for a phrase. if searchtype = "phrase" then chkSQL = chkSQL & "(SubjectLine LIKE '%" & searchterm & "%')" InsertORs=true 'Author if InsertORs = true then chkSQL = chkSQL & " OR " end if chkSQL = chkSQL & "(a.name LIKE '%" & searchterm & "%')" InsertORs = true 'Precis/Sub-title if InsertORs = true then chkSQL = chkSQL & " OR " end if chkSQL = chkSQL & "(Precis LIKE '%" & searchterm & "%')" InsertORs = true 'end if 'Body Text if InsertORs = true then chkSQL = chkSQL & " OR " end if chkSQL = chkSQL & "(bodytext LIKE '%" & searchterm & "%')" end if 'chkSQL = chkSQL & " AND" 'end if 'If they are searching for indicidual words, plus the basic search. if searchtype="all" or searchtype="any" then search = split(searchterm) for srchloop = lbound(search) to ubound(search) chkSQL = chkSQL & " ( " chkSQL = chkSQL & "(SubjectLine LIKE '%" & search(srchloop) & "%')" InsertORs=true 'Author if InsertORs = true then chkSQL = chkSQL & " OR " end if chkSQL = chkSQL & "(a.name LIKE '%" & search(srchloop) & "%')" InsertORs = true 'Precis/Sub-title if InsertORs = true then chkSQL = chkSQL & " OR " end if chkSQL = chkSQL & "(Precis LIKE '%" & search(srchloop) & "%')" InsertORs = true 'end if 'Body Text if InsertORs = true then chkSQL = chkSQL & " OR " end if chkSQL = chkSQL & "(bodytext LIKE '%" & search(srchloop) & "%')" chkSQL = chkSQL & " ) " if srchloop <> ubound(search) then if searchtype = "any" then chkSQL = chkSQL & " OR" elseif searchtype = "all" then chkSQL = chkSQL & " AND" end if InsertORs = true end if next end if 'Close of Chk SQL statment. if chkSQL<>"" then chkSQL = "AND(" & chkSQL & ")" end if '---------------------------------------------------------------- 'MERGE SQL STATMENTS 'Be careful when changing order of SQL strings merge sqlsearch = sqlsearch & dateSQL & chkSQL & channelsSQL '---------------------------------------------------------------- 'search = split(Request("searchTerm")) 'Response.Write "

advanced search SQL::

" &sqlsearch &"

" 'sql = "SELECT distinct top 100 thedate,subjectline,precis,image,primarykey,exclusive,flag,link,format FROM REPORT left outer join(AUTHORS_xref left outer join AUTHORS ON AUTHORS_xref.author_id = AUTHORS.id) ON REPORT.primarykey = AUTHORS_xref.story_id where report.industry='freight' AND " sqlsearch = sqlsearch & " order by thedate desc, flag, primarykey DESC" %> <% channelname = "Search Results" elseif not (ch = "" and ch2 = "" and ch3 = "") then if ch<>"" and ch2<>"" then sql = "SELECT DISTINCT TOP 100 thedate,subjectline,precis,image,primarykey,flag,link,format,exclusive, a.name,a.position,a.company FROM channels2 c2 INNER JOIN (channels c INNER JOIN (channel2_xref x2 INNER JOIN (report r INNER JOIN channel_xref x ON r.primarykey = x.item_id) ON r.primarykey = x2.item_id) ON x.channel_id = c.id) ON x2.channel2_id = c2.id left join (authors_xref ax inner join Authors a on ax.author_id = a.id) ON ax.story_id = r.primarykey WHERE c.id = " & ch & " AND c2.id = " & ch2 ' sql = "SELECT TOP 100 thedate,subjectline,precis,image,primarykey,flag,link,format,exclusive FROM channels2 c2 INNER JOIN (channels c INNER JOIN (channel2_xref x2 INNER JOIN (report r INNER JOIN channel_xref x ON r.primarykey = x.item_id) ON r.primarykey = x2.item_id) ON x.channel_id = c.id) ON x2.channel2_id = c2.id WHERE c.id = " & ch & " AND c2.id = " & ch2 elseif ch<>"" then sql = "SELECT DISTINCT TOP 100 thedate,subjectline,precis,image,primarykey,flag,link,format,exclusive, a.name,a.position,a.company FROM channels c INNER JOIN (report r INNER JOIN channel_xref x ON r.primarykey = x.item_id) ON x.channel_id = c.id left join (authors_xref ax inner join Authors a on ax.author_id = a.id) ON ax.story_id = r.primarykey WHERE c.id = " & ch elseif ch2<>"" then sql = "SELECT DISTINCT TOP 100 thedate,subjectline,precis,image,primarykey,flag,link,format,exclusive, a.name,a.position,a.company FROM channels2 c2 INNER JOIN (report r INNER JOIN channel2_xref x2 ON r.primarykey = x2.item_id) ON x2.channel2_id = c2.id left join (authors_xref ax inner join Authors a on ax.author_id = a.id) ON ax.story_id = r.primarykey WHERE c2.id = " & ch2 elseif ch3<>"" then sql = "SELECT DISTINCT TOP 100 thedate,subjectline,precis,image,primarykey,flag,link,format,exclusive, a.name,a.position,a.company FROM channels3 c3 INNER JOIN (report r INNER JOIN channel3_xref x3 ON r.primarykey = x3.item_id) ON x3.channel3_id = c3.id left join (authors_xref ax inner join Authors a on ax.author_id = a.id) ON ax.story_id = r.primarykey WHERE c3.id = " & ch3 end if sql = sql & " ORDER BY r.flag, r.thedate desc, r.primarykey DESC" 'indexprint = indexprint & sql if ch<>"" then sqlchanname = "SELECT TOP 1 channels.name from channels where channels.id = " & ch rsusers.open sqlchanname,db if not rsusers.eof then channelname = rsusers("name") end if rsusers.close end if if ch2<>"" then sqlchanname2 = "SELECT TOP 1 channels2.name from channels2 where channels2.id = " & ch2 rsusers.open sqlchanname2,db if not rsusers.eof then channel2name = rsusers("name") end if rsusers.close end if if ch3<>"" then sqlchanname2 = "SELECT TOP 1 channels3.name from channels3 where channels3.id = " & ch3 rsusers.open sqlchanname2,db if not rsusers.eof then channelname = rsusers("name") end if rsusers.close end if if request("top")=1 then centralchannelhtml = "" & centralchannelhtml end if if request("top")=2 then centralchannelhtml = "
" & centralchannelhtml end if elseif format <> "" then sql = "SELECT top 100 thedate,subjectline,precis,image,primarykey,link,format,exclusive, a.name,a.position,a.company FROM REPORT left join (authors_xref ax inner join Authors a on ax.author_id = a.id) ON ax.story_id = r.primarykey left join (authors_xref ax inner join Authors a on ax.author_id = a.id) ON ax.story_id = r.primarykey where format = '" & format & "' ORDER BY flag, thedate DESC, primarykey DESC" if format = "n" then channelname = "Latest News" elseif format="f" or format="l" then channelname = "Editorial Comment" elseif format="c" then channelname = "Conference Coverage" elseif format="e" then channelname = "Events" end if indexprint = indexprint & channelhtml & channel2html else homepage = 1 sql = "SELECT distinct TOP 100 primarykey,subjectline,precis,link,format,thedate,image,flag,exclusive, a.name,a.position,a.company FROM channels2 c2 INNER JOIN (report r INNER JOIN channel2_xref x2 ON r.primarykey = x2.item_id) ON x2.channel2_id = c2.id left join (authors_xref ax inner join Authors a on ax.author_id = a.id) ON ax.story_id = r.primarykey WHERE r.industry = 'freight' and c2.id=91 ORDER BY r.flag, r.thedate desc, r.primarykey DESC" end if if sqlsearch <> "" then sql = sqlsearch end if rsUsers.Open sql, db 'Response.Write centralchannelhtml indexprint = indexprint & "

" channelprint = channelname & " " & channel2name if news<>"" then indexprint = indexprint & "

 

" elseif not homepage=1 then indexprint = indexprint & "" indexprint = indexprint & "

" indexprint = indexprint & "
" indexprint = indexprint & "" indexprint = indexprint & "
" indexprint = indexprint & channelprint indexprint = indexprint & "
" indexprint = indexprint & "
" indexprint = indexprint & "" indexprint = indexprint & "

" else indexprint = indexprint & "
Transportation News Headlines
" end if move = thismany-howmany 'for i = 1 to move if not rsusers.EOF then rsusers.Move+ move 'next leftright = "left" lastprimarykey=0 do while not rsUsers.EOF while rsUsers("primarykey")=lastprimarykey if not rsusers("name") = "" then indexprint = indexprint & "
" & rsusers("name") & "": mtm=1 if not rsusers("position") = "" then indexprint = indexprint & "," & rsusers("position") & "" if not rsusers("company") = "" then indexprint = indexprint & ", " & rsusers("company") & "" rsUsers.MoveNext wend lastprimarykey=rsUsers("primarykey") if mtm=1 then indexprint = indexprint & "

": mtm=0 else mtm=0 end if count = count + 1 if count > cint(recordnumber) then exit do end if 'INCLUDE - go work out whether we need imageHTML!! %> <% 'if leftright = "left" then 'leftright = "right" 'else leftright = "left" 'end if imagehtml = "

" imagehtml = imagehtml & "" imagehtml = imagehtml & "" imagehtml = imagehtml & "" imagehtml = imagehtml & "
" imagehtml = imagehtml & "" imagehtml = imagehtml & "
" %> <% ' if we are on the full story/news page then if news<>"" then 'INCLUDE add print and send to a friend if appropriate %> <% printandsendfriendhtml = printandsendfriendhtml & "

Print versionSend to a friend!

" %> <% if not rsusers("format")="c" then indexprint = indexprint & printandsendfriendhtml 'subjectline as the title indexprint = indexprint & "
" if rsUsers("exclusive") = true then indexprint = indexprint & "

" elseif rsUsers("thedate") = date() then indexprint = indexprint & "" indexprint = indexprint & "

" end if indexprint = indexprint & "" & rsusers("subjectline") & "" else indexprint = indexprint & "
e-business for Transport Conference Coverage" end if indexprint = indexprint & "

" 'include printandsendfriendhtml!! if rsusers("format") = "n" or rsusers("format") = "f" or rsusers("format") = "e" then 'print precis & date indexprint = indexprint & "" & rsusers("precis") & "" indexprint = indexprint & "

(" & rsusers("thedate") & ")" if not trim(rsusers("image")) = "" and not isnull(rsusers("image")) then indexprint = indexprint & imagehtml end if indexprint = indexprint & "

" & rsusers("bodytext") & "" pagetitle = rsusers("subjectline") pageMetaContent = rsusers("precis") 'INCLUDE - AUTHORS include authorHTML!! %> <% 'if not rsusers("author") = "" and not isnull(rsusers("author")) then 'authors = split(rsusers("author"),",") set rsAuthors = CreateObject("ADODB.Recordset") 'for i = 0 to ubound(authors) 'rsSQL = "SELECT * FROM AUTHORS WHERE id = " & authors(i) rsSQL = "SELECT distinct top 10 authors.* FROM REPORT INNER JOIN (AUTHORS INNER JOIN AUTHORS_xref ON AUTHORS.id = AUTHORS_xref.author_id) ON AUTHORS_xref.story_id = REPORT.primarykey where REPORT.primarykey=" & rsusers("primarykey") 'response.write rsSQL rsAuthors.Open rsSQL, db while not rsAuthors.EOF authorhtml = authorhtml & rsAuthors("name") if not rsAuthors("position") = "" and not isnull(rsAuthors("position")) then authorhtml = authorhtml & " / " & rsAuthors("position") & "" end if if not rsAuthors("company") = "" and not isnull(rsAuthors("company")) then authorhtml = authorhtml & " / " & rsAuthors("company") & "

" end if rsAuthors.MoveNext wend rsAuthors.Close 'next 'end if %> <% if not trim(authorhtml) = "" and not trim(authorhtml) = "
" and not isnull(authorhtml) then indexprint = indexprint & "

Author: " indexprint = indexprint & authorhtml end if 'INCLUDE - RELATED STORIES - relatedHTML!! %> <% Set rs = Server.CreateObject("ADODB.Recordset") Set relatedstories = Server.CreateObject("ADODB.Recordset") sqlrelated = "select related1,related2 from relatedstories where related1 = " & rsusers("primarykey") & " order by related2 desc;" rs.Open sqlrelated,db if not rs.eof then relatedhtml = relatedhtml & "

Related Stories:

    " while not rs.EOF sqlrelatedstories = "select subjectline,thedate,precis,primarykey,link from report where primarykey = " & rs("related2") relatedstories.Open sqlrelatedstories,db if not relatedstories.EOF then relatedhtml = relatedhtml & "
  • " & relatedstories("subjectline") & " (" & relatedstories("thedate") & ")
  • " end if relatedstories.close rs.movenext wend end if relatedhtml = relatedhtml & "
" rs.Close set rs = nothing %> <% Set rschannel = Server.CreateObject("ADODB.Recordset") if ch="" or isnull(ch) then sqlchannels = "SELECT top 1 channel_id from channel_xref where item_id = " & news rschannel.Open sqlchannels,db if not rschannel.eof then ch = rschannel("channel_id") else ch=179 end if rschannel.close end if 'if not ch="" and not isnull(ch) then 'channellinks = channellinks & "

Sponsored Link:" 'channellinks = channellinks & "

RedPrairie Logistics Excellence Workshop Series: April 9 & 10 - Atlanta." 'channellinks = channellinks & "
Horizon Services Group, LLC, a logistics technology company with a record of proven results." 'channellinks = channellinks & "

eyefortransport Events: " 'channellinks = channellinks & "
The Cargo Security Forum USA 2003, 7-8 October 2003" 'channellinks = channellinks & "
The eyefortransport European 3PL Summit, 14-15 October 2003" 'channellinks = channellinks & "
Wireless Technology for Trucking Fleets, 2-3 December 2003
" channellinks = channellinks & "

" channellinks = channellinks & "" channellinks = channellinks & "
" channellinks = channellinks & "" channellinks = channellinks & "
" channellinks = channellinks & "Other Related Info:
" channellinks = channellinks & "
" channellinks = channellinks & "" channellinks = channellinks & "" channellinks = channellinks & "" channellinks = channellinks & "" channellinks = channellinks & "" channellinks = channellinks & "" channellinks = channellinks & "" ' END OF NEWS LINKS channellinks = channellinks & "" ' RESEARCH & CASE STUDIES COLUMNS BEGIN channellinks = channellinks & "" channellinks = channellinks & "" channellinks = channellinks & "" channellinks = channellinks & "" channellinks = channellinks & "" ' RESEARCH & REPORTS COLUMN BEGINS channellinks = channellinks & "" ' MIDDLE SPACE COLUMN channellinks = channellinks & "" ' CASE STUDIES COLUMN BEGINS channellinks = channellinks & "
" channellinks = channellinks & "
" channellinks = channellinks & "

News

" channellinks = channellinks & "
" channellinks = channellinks & "More News
" channellinks = channellinks & "
 
Research and Reports: Case Studies:
" channellinks = channellinks & "" channellinks = channellinks & "" channellinks = channellinks & "" channellinks = channellinks & "
" channellinks = channellinks & "
More Research and Reports" channellinks = channellinks & "
 " channellinks = channellinks & "" channellinks = channellinks & "" channellinks = channellinks & "" channellinks = channellinks & "
" channellinks = channellinks & "
More Case Studies" channellinks = channellinks & "
" channellinks = channellinks & "
" 'REDUNDANT CODE 'channellinks = channellinks & "

" ' 'channellinks = channellinks & "" 'channellinks = channellinks & "" ' ' sqlchannels = "SELECT DISTINCT TOP 5 thedate,subjectline,primarykey,link,format FROM channels2 c2 INNER JOIN (channels c INNER JOIN (channel2_xref x2 INNER JOIN (report r INNER JOIN channel_xref x ON r.primarykey = x.item_id) ON r.primarykey = x2.item_id) ON x.channel_id = c.id) ON x2.channel2_id = c2.id WHERE c.id = " & ch & " AND c2.id = 116 order by r.thedate desc;" ' rschannel.Open sqlchannels,db ' while not rschannel.eof ' channellinks = channellinks & "" ' rschannel.movenext ' wend ' rschannel.close ' 'channellinks = channellinks & "" 'channellinks = channellinks & "" 'channellinks = channellinks & "
" 'channellinks = channellinks & "Features
" 'channellinks = channellinks & "
" ' channellinks = channellinks & "" ' channellinks = channellinks & "" ' if not rschannel("format") = "e" and not rschannel("format") = "l" then ' channellinks = channellinks & "" & rschannel("subjectline") & " (" & rschannel("thedate") & ")" ' else ' channellinks = channellinks & "" & rschannel("subjectline") & " (" & rschannel("thedate") & ")" ' end ifchannellinks = channellinks & "
" ' channellinks = channellinks & "
" 'channellinks = channellinks & "More Features
" 'channellinks = channellinks & "

" 'channellinks = channellinks & "

" 'channellinks = channellinks & "" 'channellinks = channellinks & "" ' ' ' ' sqlchannels = "SELECT DISTINCT TOP 5 thedate,subjectline,primarykey,link,format FROM channels2 c2 INNER JOIN (channels c INNER JOIN (channel2_xref x2 INNER JOIN (report r INNER JOIN channel_xref x ON r.primarykey = x.item_id) ON r.primarykey = x2.item_id) ON x.channel_id = c.id) ON x2.channel2_id = c2.id WHERE c.id = " & ch & " AND c2.id = 114 order by r.thedate desc;" ' rschannel.Open sqlchannels,db ' while not rschannel.eof ' channellinks = channellinks & "" ' rschannel.movenext ' wend ' ' ' 'channellinks = channellinks & "" 'channellinks = channellinks & "" 'channellinks = channellinks & "
" 'channellinks = channellinks & "Editorial
" 'channellinks = channellinks & "
" ' channellinks = channellinks & "" ' channellinks = channellinks & "" ' if not rschannel("format") = "e" and not rschannel("format") = "l" then ' channellinks = channellinks & "" & rschannel("subjectline") & " (" & rschannel("thedate") & ")" ' else ' channellinks = channellinks & "" & rschannel("subjectline") & " (" & rschannel("thedate") & ")" ' end ifchannellinks = channellinks & "
" ' channellinks = channellinks & "
" 'channellinks = channellinks & "More Editorial
" 'channellinks = channellinks & "

" 'end if %> <% indexprint = indexprint & relatedhtml indexprint = indexprint & channellinks ' THESE ARE THE HEADERS FOR CONFERENCE MATERIALS elseif rsusers("format") = "c" then if rsUsers("exclusive") = true then indexprint = indexprint & "

" elseif rsUsers("thedate") = date() then indexprint = indexprint & "" indexprint = indexprint & "
" end if indexprint = indexprint & "" indexprint = indexprint & rsUsers("subjectline") indexprint = indexprint & "

" 'INCLUDE - AUTHORS include authorHTML!! %> <% 'if not rsusers("author") = "" and not isnull(rsusers("author")) then 'authors = split(rsusers("author"),",") set rsAuthors = CreateObject("ADODB.Recordset") 'for i = 0 to ubound(authors) 'rsSQL = "SELECT * FROM AUTHORS WHERE id = " & authors(i) rsSQL = "SELECT distinct top 10 authors.* FROM REPORT INNER JOIN (AUTHORS INNER JOIN AUTHORS_xref ON AUTHORS.id = AUTHORS_xref.author_id) ON AUTHORS_xref.story_id = REPORT.primarykey where REPORT.primarykey=" & rsusers("primarykey") 'response.write rsSQL rsAuthors.Open rsSQL, db while not rsAuthors.EOF authorhtml = authorhtml & rsAuthors("name") if not rsAuthors("position") = "" and not isnull(rsAuthors("position")) then authorhtml = authorhtml & " / " & rsAuthors("position") & "" end if if not rsAuthors("company") = "" and not isnull(rsAuthors("company")) then authorhtml = authorhtml & " / " & rsAuthors("company") & "

" end if rsAuthors.MoveNext wend rsAuthors.Close 'next 'end if %> <% indexprint = indexprint & authorhtml 'include linkHTML!! %> <% if rsUsers("link") <> "" then indexprint = indexprint & "" indexprint = indexprint & "Text" indexprint = indexprint & "

" end if if rsUsers("link1") <> "" then indexprint = indexprint & "" indexprint = indexprint & "View Slides" indexprint = indexprint & "

" end if if rsUsers("link2") <> "" then indexprint = indexprint & "" indexprint = indexprint & "Downloadable Slides" indexprint = indexprint & "

" end if if rsUsers("link3") <> "" then indexprint = indexprint & "" 'indexprint = indexprint & "" indexprint = indexprint & "Audio" indexprint = indexprint & "

" end if if rsUsers("link4") <> "" then indexprint = indexprint & "" indexprint = indexprint & "" indexprint = indexprint & "Video" indexprint = indexprint & "

" end if %> <% indexprint = indexprint & linkhtml 'include relatedHTML!! %> <% Set rs = Server.CreateObject("ADODB.Recordset") Set relatedstories = Server.CreateObject("ADODB.Recordset") sqlrelated = "select related1,related2 from relatedstories where related1 = " & rsusers("primarykey") & " order by related2 desc;" rs.Open sqlrelated,db if not rs.eof then relatedhtml = relatedhtml & "

Related Stories:

    " while not rs.EOF sqlrelatedstories = "select subjectline,thedate,precis,primarykey,link from report where primarykey = " & rs("related2") relatedstories.Open sqlrelatedstories,db if not relatedstories.EOF then relatedhtml = relatedhtml & "
  • " & relatedstories("subjectline") & " (" & relatedstories("thedate") & ")
  • " end if relatedstories.close rs.movenext wend end if relatedhtml = relatedhtml & "
" rs.Close set rs = nothing %> <% Set rschannel = Server.CreateObject("ADODB.Recordset") if ch="" or isnull(ch) then sqlchannels = "SELECT top 1 channel_id from channel_xref where item_id = " & news rschannel.Open sqlchannels,db if not rschannel.eof then ch = rschannel("channel_id") else ch=179 end if rschannel.close end if 'if not ch="" and not isnull(ch) then 'channellinks = channellinks & "

Sponsored Link:" 'channellinks = channellinks & "

RedPrairie Logistics Excellence Workshop Series: April 9 & 10 - Atlanta." 'channellinks = channellinks & "
Horizon Services Group, LLC, a logistics technology company with a record of proven results." 'channellinks = channellinks & "

eyefortransport Events: " 'channellinks = channellinks & "
The Cargo Security Forum USA 2003, 7-8 October 2003" 'channellinks = channellinks & "
The eyefortransport European 3PL Summit, 14-15 October 2003" 'channellinks = channellinks & "
Wireless Technology for Trucking Fleets, 2-3 December 2003
" channellinks = channellinks & "

" channellinks = channellinks & "" channellinks = channellinks & "
" channellinks = channellinks & "" channellinks = channellinks & "
" channellinks = channellinks & "Other Related Info:
" channellinks = channellinks & "
" channellinks = channellinks & "" channellinks = channellinks & "" channellinks = channellinks & "" channellinks = channellinks & "" channellinks = channellinks & "" channellinks = channellinks & "" channellinks = channellinks & "" ' END OF NEWS LINKS channellinks = channellinks & "" ' RESEARCH & CASE STUDIES COLUMNS BEGIN channellinks = channellinks & "" channellinks = channellinks & "" channellinks = channellinks & "" channellinks = channellinks & "" channellinks = channellinks & "" ' RESEARCH & REPORTS COLUMN BEGINS channellinks = channellinks & "" ' MIDDLE SPACE COLUMN channellinks = channellinks & "" ' CASE STUDIES COLUMN BEGINS channellinks = channellinks & "
" channellinks = channellinks & "
" channellinks = channellinks & "

News

" channellinks = channellinks & "
" channellinks = channellinks & "More News
" channellinks = channellinks & "
 
Research and Reports: Case Studies:
" channellinks = channellinks & "" channellinks = channellinks & "" channellinks = channellinks & "" channellinks = channellinks & "
" channellinks = channellinks & "
More Research and Reports" channellinks = channellinks & "
 " channellinks = channellinks & "" channellinks = channellinks & "" channellinks = channellinks & "" channellinks = channellinks & "
" channellinks = channellinks & "
More Case Studies" channellinks = channellinks & "
" channellinks = channellinks & "
" 'REDUNDANT CODE 'channellinks = channellinks & "

" ' 'channellinks = channellinks & "" 'channellinks = channellinks & "" ' ' sqlchannels = "SELECT DISTINCT TOP 5 thedate,subjectline,primarykey,link,format FROM channels2 c2 INNER JOIN (channels c INNER JOIN (channel2_xref x2 INNER JOIN (report r INNER JOIN channel_xref x ON r.primarykey = x.item_id) ON r.primarykey = x2.item_id) ON x.channel_id = c.id) ON x2.channel2_id = c2.id WHERE c.id = " & ch & " AND c2.id = 116 order by r.thedate desc;" ' rschannel.Open sqlchannels,db ' while not rschannel.eof ' channellinks = channellinks & "" ' rschannel.movenext ' wend ' rschannel.close ' 'channellinks = channellinks & "" 'channellinks = channellinks & "" 'channellinks = channellinks & "
" 'channellinks = channellinks & "Features
" 'channellinks = channellinks & "
" ' channellinks = channellinks & "" ' channellinks = channellinks & "" ' if not rschannel("format") = "e" and not rschannel("format") = "l" then ' channellinks = channellinks & "" & rschannel("subjectline") & " (" & rschannel("thedate") & ")" ' else ' channellinks = channellinks & "" & rschannel("subjectline") & " (" & rschannel("thedate") & ")" ' end ifchannellinks = channellinks & "
" ' channellinks = channellinks & "
" 'channellinks = channellinks & "More Features
" 'channellinks = channellinks & "

" 'channellinks = channellinks & "

" 'channellinks = channellinks & "" 'channellinks = channellinks & "" ' ' ' ' sqlchannels = "SELECT DISTINCT TOP 5 thedate,subjectline,primarykey,link,format FROM channels2 c2 INNER JOIN (channels c INNER JOIN (channel2_xref x2 INNER JOIN (report r INNER JOIN channel_xref x ON r.primarykey = x.item_id) ON r.primarykey = x2.item_id) ON x.channel_id = c.id) ON x2.channel2_id = c2.id WHERE c.id = " & ch & " AND c2.id = 114 order by r.thedate desc;" ' rschannel.Open sqlchannels,db ' while not rschannel.eof ' channellinks = channellinks & "" ' rschannel.movenext ' wend ' ' ' 'channellinks = channellinks & "" 'channellinks = channellinks & "" 'channellinks = channellinks & "
" 'channellinks = channellinks & "Editorial
" 'channellinks = channellinks & "
" ' channellinks = channellinks & "" ' channellinks = channellinks & "" ' if not rschannel("format") = "e" and not rschannel("format") = "l" then ' channellinks = channellinks & "" & rschannel("subjectline") & " (" & rschannel("thedate") & ")" ' else ' channellinks = channellinks & "" & rschannel("subjectline") & " (" & rschannel("thedate") & ")" ' end ifchannellinks = channellinks & "
" ' channellinks = channellinks & "
" 'channellinks = channellinks & "More Editorial
" 'channellinks = channellinks & "

" 'end if %> <% indexprint = indexprint & relatedhtml indexprint = indexprint & channellinks end if 'related stories where here!! else if not trim(rsusers("image")) = "" and not isnull(rsusers("image")) then end if ' NEWS STORIES FOR THE FRONT PAGE & SUBPAGES indexprint = indexprint & "

" if not rsusers("format") = "e" and not rsusers("format") = "l" then if rsUsers("exclusive") = true then indexprint = indexprint & "


" elseif rsUsers("thedate") = date() then indexprint = indexprint & "

" indexprint = indexprint & "
" end if indexprint = indexprint & "" & rsUsers("subjectline") & "" else if rsUsers("exclusive") = true then indexprint = indexprint & "
" elseif rsUsers("thedate") = date() then indexprint = indexprint & "" indexprint = indexprint & "
" end if indexprint = indexprint & "" & rsUsers("subjectline") & "" end if if not rsusers("precis") = "" then indexprint = indexprint & "
" indexprint = indexprint & "" indexprint = indexprint & rsUsers("precis") & "
(" indexprint = indexprint & rsUsers("thedate") & ")" if not rsusers("name") = "" then indexprint = indexprint & "
" & rsusers("name") & " / " if not rsusers("position") = "" then indexprint = indexprint & rsusers("position") if not rsusers("company") = "" then indexprint = indexprint & rsusers("company") & "" 'if not rsusers("name") = "" then indexprint = indexprint & "

" if leftright = "left" then leftright = "right" else leftright = "left" end if end if rsUsers.MoveNext loop 'no records if count = "" or count=0 then indexprint = indexprint & "No records found" end if 'include move next, move previous ''''''if its not advanced search code''''''''''' if Request("cboNoResults")="" then if rsUsers.EOF then endoffile = "y" rsUsers.Close indexprint = indexprint & "

" if pass > 1 then indexprint = indexprint & "Previous " & recordnumber & "" end if if endoffile <> "y" and pass > 1 then indexprint = indexprint & " | " end if if endoffile <> "y" then indexprint = indexprint & "Next " & recordnumber & "" end if else 'for advanced search'''''''''''''''''''''''''' 'include move next, move previous if rsUsers.EOF then endoffile = "y" rsUsers.Close indexprint = indexprint & "

" if endoffile <> "y" then indexprint = indexprint & "Next " & recordnumber & "" end if if endoffile <> "y" and pass > 1 then indexprint = indexprint & " | " end if if pass > 1 then indexprint = indexprint & "Previous " & recordnumber & "" end if end if if (ch2=91 and (ch="" or isnull(ch)) and (pass=1)) or (homepage=1) then indexprint = indexprint & "

" indexprint = indexprint & "Get these headlines for FREE on your site

" indexprint = indexprint & "" end if db.close set db=nothing %> EyeforTransport - Transport Newsfeed
 
  News : Analysis : Events



Transport News
Transport Events
Transport Research
Transport Reports
Transport Glossary
Features
Air
Asian News
Intermediaries
Intermodal
Logistics Service Provider (LSP)
Rail
Road
Sea
Shipper
Solutions Providers
About Us
Contact Us
Advertising Opportunites
   

Get the latest Transportation news for FREE on your site

Each week and day, our newsletters; Strategy and Technology for Transportation & Logistics, will bring you news on the most innovative and cutting edge developments in the Industry.

Packed with valuable insights, case study's, interviews with leading industry figures, and forecasts of future trends, every edition will give you a comprehensive view on the burning issues within the Transport & Logistics Industry.

If you want to unsubscribe or change the format you subscribe to, click here Contribute articles to the editor

The eyefortransport Newsletter is also your fully interactive forum, and we welcome contributions to the newsletter. If you wish to contribute articles or comment on the briefing, please email Jimmy Olsson

Past Newsletters

Click on the links below to view a selection of newsletters sent out over the last 4 years:

Contribute articles to the editor

The eyefortransport Newsletter is also your fully interactive forum, and we welcome contributions to the newsletter. If you wish to contribute articles or comment on the briefing, please email Jimmy Olsson

Find out more

Want to find out about speaker or sponsorship opportunites?

Click here to find out more about the upcoming EyeforTransport events.

Weekly Newsletter
Daily Newsletter
Asia Newsletter
HTML
TEXT
E-Mail Address
*
First Name
*
Last Name
*
Job Title
*
Company Name
*
Country
*

Business Type

*

 


10th North American Technology Forum
03/06-04/06/08
9th European Technology Forume
10/06-11/06/08
4th China 3PL Summit
23/06-25/06/08
6th eyefortransport 3PL Summit
23/06-25/06/08
4th Outsourcing Logistics Conference
23/06-25/06/08
4th Green Transportation & Logistics Summit
15/10-17/10/08
  Comprising:
Green Transportation & Logistics Summit
Green Manufacturing Summit
Green Purchasing Summit













home | contact us | advertise here | first conferences

© Copyright 2008 eyefortransport / First Conferences Ltd. All Rights Reserved.
This document contains original material which is protected by copyright.
No unauthorised use of material herein may be made without the prior consent of First Conferences Ltd.