<%@LANGUAGE="VBSCRIPT"%> <% Dim metiers Dim metiers_numRows Set metiers = Server.CreateObject("ADODB.Recordset") metiers.ActiveConnection = MM_mediatica_STRING metiers.Source = "SELECT * FROM metiers ORDER BY categorie ASC" metiers.CursorType = 0 metiers.CursorLocation = 2 metiers.LockType = 1 metiers.Open() metiers_numRows = 0 %> <% Dim secteurs Dim secteurs_numRows Set secteurs = Server.CreateObject("ADODB.Recordset") secteurs.ActiveConnection = MM_mediatica_STRING secteurs.Source = "SELECT * FROM secteur ORDER BY secteur ASC" secteurs.CursorType = 0 secteurs.CursorLocation = 2 secteurs.LockType = 1 secteurs.Open() secteurs_numRows = 0 %> <% Dim metiersel__MMColParam metiersel__MMColParam = "1" If (Request.QueryString("idcat") <> "") Then metiersel__MMColParam = Request.QueryString("idcat") End If %> <% Dim metiersel Dim metiersel_cmd Dim metiersel_numRows Set metiersel_cmd = Server.CreateObject ("ADODB.Command") metiersel_cmd.ActiveConnection = MM_mediatica_STRING metiersel_cmd.CommandText = "SELECT * FROM metiers WHERE idcat = ?" metiersel_cmd.Prepared = true metiersel_cmd.Parameters.Append metiersel_cmd.CreateParameter("param1", 5, 1, -1, metiersel__MMColParam) ' adDouble Set metiersel = metiersel_cmd.Execute metiersel_numRows = 0 %> <% Dim ref_metier__MMColParam ref_metier__MMColParam = "1" If (Request.QueryString("idcat") <> "") Then ref_metier__MMColParam = Request.QueryString("idcat") End If If (Request.QueryString("idsecteur") <> "") Then ref_metier__MMColParam = Request.QueryString("idsecteur") End If If (Request.QueryString("cible") <> "") Then ref_metier__MMColParam = Request.QueryString("cible") End If %> <% Dim secteur_sel__MMColParam secteur_sel__MMColParam = "1" If (Request.QueryString("idsecteur") <> "") Then secteur_sel__MMColParam = Request.QueryString("idsecteur") End If %> <% Dim secteur_sel Dim secteur_sel_cmd Dim secteur_sel_numRows Set secteur_sel_cmd = Server.CreateObject ("ADODB.Command") secteur_sel_cmd.ActiveConnection = MM_mediatica_STRING secteur_sel_cmd.CommandText = "SELECT * FROM secteur WHERE idsecteur = ?" secteur_sel_cmd.Prepared = true secteur_sel_cmd.Parameters.Append secteur_sel_cmd.CreateParameter("param1", 5, 1, -1, secteur_sel__MMColParam) ' adDouble Set secteur_sel = secteur_sel_cmd.Execute secteur_sel_numRows = 0 %> <% Dim ref__MMColParam ref__MMColParam = "1" If (Request.QueryString("idcat") <> "") Then ref__MMColParam = Request.QueryString("idcat") End If If (Request.QueryString("idsecteur") <> "") Then ref__MMColParam = Request.QueryString("idsecteur") End If If (Request.QueryString("cible") <> "") Then ref__MMColParam = Request.QueryString("cible") End If %> <% Dim ref Dim ref_cmd Dim ref_numRows Set ref_cmd = Server.CreateObject ("ADODB.Command") ref_cmd.ActiveConnection = MM_mediatica_STRING ref_cmd.CommandText = "SELECT * FROM reference WHERE secteur = ?" If (Request.QueryString("idsecteur") <> "") Then ref_cmd.CommandText = "SELECT * FROM reference WHERE secteur = ? ORDER BY nomref ASC" end if If (Request.QueryString("idcat") <> "") Then ref_cmd.CommandText = "SELECT * FROM reference WHERE catref = ? ORDER BY nomref ASC" end if ref_cmd.Prepared = true ref_cmd.Parameters.Append ref_cmd.CreateParameter("param1", 5, 1, -1, ref__MMColParam) ' adDouble Set ref = ref_cmd.Execute ref_numRows = 0 %> <% Dim Repeat1__numRows Dim Repeat1__index Repeat1__numRows = -1 Repeat1__index = 0 ref_numRows = ref_numRows + Repeat1__numRows %> <% Dim MM_paramName %> <% ' *** Go To Record and Move To Record: create strings for maintaining URL and Form parameters Dim MM_keepNone Dim MM_keepURL Dim MM_keepForm Dim MM_keepBoth Dim MM_removeList Dim MM_item Dim MM_nextItem ' create the list of parameters which should not be maintained MM_removeList = "&index=" If (MM_paramName <> "") Then MM_removeList = MM_removeList & "&" & MM_paramName & "=" End If MM_keepURL="" MM_keepForm="" MM_keepBoth="" MM_keepNone="" ' add the URL parameters to the MM_keepURL string For Each MM_item In Request.QueryString MM_nextItem = "&" & MM_item & "=" If (InStr(1,MM_removeList,MM_nextItem,1) = 0) Then MM_keepURL = MM_keepURL & MM_nextItem & Server.URLencode(Request.QueryString(MM_item)) End If Next ' add the Form variables to the MM_keepForm string For Each MM_item In Request.Form MM_nextItem = "&" & MM_item & "=" If (InStr(1,MM_removeList,MM_nextItem,1) = 0) Then MM_keepForm = MM_keepForm & MM_nextItem & Server.URLencode(Request.Form(MM_item)) End If Next ' create the Form + URL string and remove the intial '&' from each of the strings MM_keepBoth = MM_keepURL & MM_keepForm If (MM_keepBoth <> "") Then MM_keepBoth = Right(MM_keepBoth, Len(MM_keepBoth) - 1) End If If (MM_keepURL <> "") Then MM_keepURL = Right(MM_keepURL, Len(MM_keepURL) - 1) End If If (MM_keepForm <> "") Then MM_keepForm = Right(MM_keepForm, Len(MM_keepForm) - 1) End If ' a utility function used for adding additional parameters to these strings Function MM_joinChar(firstItem) If (firstItem <> "") Then MM_joinChar = "&" Else MM_joinChar = "" End If End Function %> <% ' *** Go To Record and Move To Record: create strings for maintaining URL and Form parameters ' create the list of parameters which should not be maintained MM_removeList = "&index=" If (MM_paramName <> "") Then MM_removeList = MM_removeList & "&" & MM_paramName & "=" End If MM_keepURL="" MM_keepForm="" MM_keepBoth="" MM_keepNone="" ' add the URL parameters to the MM_keepURL string For Each MM_item In Request.QueryString MM_nextItem = "&" & MM_item & "=" If (InStr(1,MM_removeList,MM_nextItem,1) = 0) Then MM_keepURL = MM_keepURL & MM_nextItem & Server.URLencode(Request.QueryString(MM_item)) End If Next ' add the Form variables to the MM_keepForm string For Each MM_item In Request.Form MM_nextItem = "&" & MM_item & "=" If (InStr(1,MM_removeList,MM_nextItem,1) = 0) Then MM_keepForm = MM_keepForm & MM_nextItem & Server.URLencode(Request.Form(MM_item)) End If Next ' create the Form + URL string and remove the intial '&' from each of the strings MM_keepBoth = MM_keepURL & MM_keepForm If (MM_keepBoth <> "") Then MM_keepBoth = Right(MM_keepBoth, Len(MM_keepBoth) - 1) End If If (MM_keepURL <> "") Then MM_keepURL = Right(MM_keepURL, Len(MM_keepURL) - 1) End If If (MM_keepForm <> "") Then MM_keepForm = Right(MM_keepForm, Len(MM_keepForm) - 1) End If ' a utility function used for adding additional parameters to these strings Function MM_joinChar(firstItem) If (firstItem <> "") Then MM_joinChar = "&" Else MM_joinChar = "" End If End Function %> Nos références
  Mediatica
Notre philosophie Nos compétences Nos métiers Nos références News Contact
   
<%If (Request.QueryString("idcat") <> "") Then critere=(metiersel.Fields.Item("categorie").Value) End If If (Request.QueryString("idsecteur") <> "") Then critere=(secteur_sel.Fields.Item("secteur").Value) End If If (Request.QueryString("cible") <> "") Then critere=(secteur_sel.Fields.Item("cible").Value) End If %> Critère de sélection: <%=critere%>


Par secteurs d'activité


<% While ((Repeat1__numRows <> 0) AND (NOT ref.EOF)) %> <% Repeat1__index=Repeat1__index+1 Repeat1__numRows=Repeat1__numRows-1 ref.MoveNext() Wend %>
" target="cote">" border="0"> " target="cote" class="txt-bl"><%=(ref.Fields.Item("nomref").Value)%>
 
 
   
<% metiers.Close() Set metiers = Nothing %> <% secteurs.Close() Set secteurs = Nothing %> <% metiersel.Close() Set metiersel = Nothing %> <% secteur_sel.Close() Set secteur_sel = Nothing %> <% ref.Close() Set ref = Nothing %>