Advertisement
Advertisement
| 10.14.2008 at 02:28AM PDT, ID: 23812118 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84: 85: 86: 87: 88: 89: 90: 91: 92: 93: 94: 95: 96: 97: 98: 99: 100: 101: 102: 103: 104: 105: 106: 107: 108: 109: 110: 111: 112: 113: 114: 115: 116: 117: 118: 119: 120: 121: 122: 123: 124: 125: 126: 127: 128: 129: 130: 131: |
<%
'NOW CONNECTS TO DISPLAY DATA FROM TABLE VINDEX
Dim adoCon
Dim SQL
Dim Recordset2
Dim oddsevens
'oddsevens = 1
Set adoCon = Server.CreateObject("ADODB.Connection")
adoCon.Open ("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("database.mdb"))
SQL= "SELECT vindex.VehID, vindex.Make, vindex.Model, vindex.Mark, vindex.Litre, vindex.InModelSort, vindex.SubModel, vindex.Ident, vindex.Fuel, vindex.Body, vindex.Drive, vindex.EngNo, vindex.cc, vindex.Valves, vindex.bhp, vindex.PS, vindex.kW, vindex.Cam, vindex.Cyl, vindex.FrmM, vindex.FrmY, vindex.ToM, vindex.ToY, vindex.CarParc, vindex.Petrol, vindex.Internalnotes, vindex.CreateDate, vindex.CreatedBy, vindex.UpdatedDate, vindex.UpdatedBy, vehiclepart.partno, vehiclepart.PartComments, vehiclepart.VehicleComments, vehiclepart.Internalnotes, vehiclepart.LinkDate, vehiclepart.LinkCreatedBy, vehiclepart.Altfrmm, vehiclepart.Altfrmy, vehiclepart.Alttom, vehiclepart.Alttoy, vehiclepart.Publish, vehiclepart.Partsort, parttable.shortdesc, parttable.partnotes, parttable.Category FROM parttable RIGHT JOIN (vindex LEFT JOIN vehiclepart ON vindex.VehID = vehiclepart.VehID) ON parttable.Partno = vehiclepart.partno WHERE (((vindex.Make)='" & vmake & "') AND ((vindex.Model)='" & vmodel &"') AND ((vindex.Litre)='" & vlitre &"') AND ((parttable.Category)='" & vapplication & "')) OR (((vindex.Make)='" & vmake & "') AND ((vindex.Model)='" & vmodel &"') AND ((vindex.Litre)='" & vlitre & "') AND ((parttable.Category) Is Null))ORDER BY vindex.InModelSort, vehiclepart.Partsort"
Set recordset2 = adoCon.Execute(SQL)
If recordset2.eof then
no_rows = True
End If
If no_rows Then
response.write "No Vehicle Matches"
Else
Dim lastValue, theColor
lastValue = ""
theColor = "#b4def5"
do while not recordset2.eof
If Cstr(lastValue) <> Cstr(recordset2.fields("VehID")) Then
If theColor = "#b4def5" Then
theColor = "#ffffff"
Else
theColor = "#b4def5"
End If
%>
<tr bgcolor="<%=theColor%>" >
<td><input name="<%response.write recordset2.fields("VehID")%>" type="text" id="<%response.write recordset2.fields("VehID")%>" value="<%response.write recordset2.fields ("InModelSort")%>" size="3" maxlength="3" /></td>
<td colspan="22" bgcolor="<%=theColor%>"><span class="style2">
<%Response.write recordset2.fields("model") %>
<%Response.write recordset2.fields("SubModel")%>
</span></td>
</tr>
<%End If%>
<tr bgcolor="<%=theColor%>">
<td height="12"> </td>
<td valign="middle"><span class="style14">
<%Response.write recordset2.fields("Ident")%>
</span></td>
<td width="4%" valign="middle"><span class="style14">
<%Response.write recordset2.fields("Litre")%>
</span></td>
<td width="5%" valign="middle"><span class="style14">
<%Response.write recordset2.fields("Fuel")%>
</span></td>
<td width="12%" valign="middle"><span class="style14">
<%Response.write recordset2.fields("Body")%>
</span></td>
<td width="4%" valign="middle"><span class="style14">
<%Response.write recordset2.fields("Drive")%>
</span></td>
<td width="8%" valign="middle"><span class="style14">
<%Response.write recordset2.fields("EngNo")%>
</span></td>
<td width="4%" valign="middle"><span class="style14">
<%Response.write recordset2.fields("cc")%>
</span></td>
<td width="4%" valign="middle"><span class="style14">
<%Response.write recordset2.fields("Valves")%>
</span></td>
<td width="4%" valign="middle"><span class="style14">
<%Response.write recordset2.fields("bhp")%>
</span></td>
<td width="4%" valign="middle"><span class="style14">
<%Response.write recordset2.fields("PS")%>
</span></td>
<td width="4%" valign="middle"><span class="style14">
<%Response.write recordset2.fields("kW")%>
</span></td>
<td width="4%" valign="middle"><span class="style14">
<%Response.write recordset2.fields("Cam")%>
</span></td>
<td width="4%" valign="middle"><span class="style14">
<%Response.write recordset2.fields("Cyl")%>
</span></td>
<td width="4%" valign="middle"><span class="style14">
<%Response.write recordset2.fields("FrmM")%>
</span></td>
<td width="4%" valign="middle"><span class="style14">
<%Response.write recordset2.fields("FrmY")%>
</span></td>
<td width="4%" valign="middle"><span class="style14">
<%Response.write recordset2.fields("ToM")%>
</span></td>
<td width="4%" valign="middle"><span class="style14">
<%Response.write recordset2.fields("ToY")%>
</span></td>
<td width="4%" valign="middle"><span class="style14">
<%Response.write recordset2.fields("CarParc")%>
</span></td>
<td width="4%"><input name="pub" type="checkbox" id="pub" value="<%response.write recordset2.fields("VehID")%>" /></td>
<td width="4%"><span class="style14">
<% Response.write recordset2.fields("partno")%>
</span></td>
<td width="2%"> </td>
<td width="3%"> </td>
</tr>
<% 'End If %>
<% 'oddsevens = oddsevens + 1 %>
<%
lastValue = recordset2.fields("VehID")
recordset2.MoveNext%>
<%Loop
End If%>
<tr bgcolor="#FFFFFF">
<td height="6" colspan="23"> </td>
</tr>
</table>
<p> </p>
<p> </p>
<p>
<%
rstSimple.Close
Set rstSimple = Nothing
cnnSimple.Close
Set cnnSimple = Nothing
%>
</p>
<p> </p></td>
</tr>
</table>
|