Bar and Club Listings Featured Bands of the Month! Places open after 3am! Photo galleries of nightlife in broad ripple! Posts your thoughts about Broad Ripple!
 
<% ' FileName="Connection_odbc_conn_dsn.htm" ' Type="ADO" ' HTTP="false" ' Catalog="" ' Schema="" MM_connDUpics_STRING = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & Server.MapPath("_private\DUpics.mdb") %> <% '**************************************************************************************** '** Copyright Notice '** Copyright 2003 DUware All Rights Reserved. '** This program is free software; you can modify (at your own risk) any part of it '** under the terms of the License that accompanies this software and use it both '** privately and commercially. '** All copyright notices must remain in tacked in the scripts and the '** outputted HTML. '** You may use parts of this program in your own private work, but you may NOT '** redistribute, repackage, or sell the whole or any part of this program even '** if it is modified or reverse engineered in whole or in part without express '** permission from the author. '** You may not pass the whole or any part of this application off as your own work. '** All links to DUware and powered by logo's must remain unchanged and in place '** and must remain visible when the pages are viewed unless permission is first granted '** by the copyright holder. '** This program is distributed in the hope that it will be useful, '** but WITHOUT ANY WARRANTY; without even the implied warranty of '** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR ANY OTHER '** WARRANTIES WHETHER EXPRESSED OR IMPLIED. '** No official support is available for this program but you may post support questions at: - '** http://www.duware.com/support '**************************************************************************************** %> <% If Request.QueryString("iPic") <> "" Then set rsJustVoted = Server.CreateObject("ADODB.Recordset") rsJustVoted.ActiveConnection = MM_connDUpics_STRING rsJustVoted.Source = "SELECT * FROM PICTURES WHERE PIC_APPROVED = 1 AND PIC_ID = " & Request.QueryString("iPic") rsJustVoted.CursorType = 0 rsJustVoted.CursorLocation = 2 rsJustVoted.LockType = 3 rsJustVoted.Open() rsJustVoted_numRows = 0 Dim voteAverage, voteCount, voteValue voteCount = rsJustVoted.Fields.Item("PIC_VOTE_COUNT").Value voteValue = rsJustVoted.Fields.Item("PIC_VOTE_VALUE").Value If voteCount <> 0 Then voteAverage = (voteValue/voteCount) Dim imageWidth, imageHeight, imagePercent, imageFixWidth, imageFixHeight imageWidth = rsJustVoted.Fields.Item("PIC_WIDTH").Value imageHeight = rsJustVoted.Fields.Item("PIC_HEIGHT").Value imageFixWidth = 135 imagePercent = (imageFixWidth/imageWidth) imageFixHeight = (imageHeight*imagePercent) End If %>
<% If Request.QueryString("iPic") <> "" Then %> <% End If %>
" width="<%= imageFixWidth %>" height="<%= imageFixHeight %>">
<%=(rsJustVoted.Fields.Item("PIC_NAME").Value)%>
Your Vote: <%= Request.Cookies(Request.QueryString("iPic")) %>
Total Votes: <%= voteCount %>
Average: <%= FormatNumber(voteAverage, 1, -2, -2, -2) %>
 
» Vote 4 Males
» Vote 4 Females
» Submit Your Picture
» View All Pictures

Sponsored by:


<% If Request.QueryString("iPic") <> "" Then rsJustVoted.Close() End If %>
<% ' FileName="Connection_odbc_conn_dsn.htm" ' Type="ADO" ' HTTP="false" ' Catalog="" ' Schema="" MM_connDUpics_STRING = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & Server.MapPath("_private\DUpics.mdb") %> <% '**************************************************************************************** '** Copyright Notice '** Copyright 2003 DUware All Rights Reserved. '** This program is free software; you can modify (at your own risk) any part of it '** under the terms of the License that accompanies this software and use it both '** privately and commercially. '** All copyright notices must remain in tacked in the scripts and the '** outputted HTML. '** You may use parts of this program in your own private work, but you may NOT '** redistribute, repackage, or sell the whole or any part of this program even '** if it is modified or reverse engineered in whole or in part without express '** permission from the author. '** You may not pass the whole or any part of this application off as your own work. '** All links to DUware and powered by logo's must remain unchanged and in place '** and must remain visible when the pages are viewed unless permission is first granted '** by the copyright holder. '** This program is distributed in the hope that it will be useful, '** but WITHOUT ANY WARRANTY; without even the implied warranty of '** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR ANY OTHER '** WARRANTIES WHETHER EXPRESSED OR IMPLIED. '** No official support is available for this program but you may post support questions at: - '** http://www.duware.com/support '**************************************************************************************** %> <% '*** Pure ASP File Upload 2.1.7 Dim GP_uploadAction,UploadQueryString PureUploadSetup If (CStr(Request.QueryString("GP_upload")) <> "") Then Dim pau_thePath,pau_Extensions,pau_Form,pau_Redirect,pau_storeType,pau_sizeLimit,pau_nameConflict,pau_requireUpload,pau_minWidth,pau_minHeight,pau_maxWidth,pau_maxHeight,pau_saveWidth,pau_saveHeight,pau_timeout,pau_progressBar,pau_progressWidth,pau_progressHeight pau_thePath = """pictures""" pau_Extensions = "GIF,JPG,JPEG,BMP,PNG" pau_Form = "form1" pau_Redirect = "" pau_storeType = "file" pau_sizeLimit = "" pau_nameConflict = "uniq" pau_requireUpload = "true" pau_minWidth = "" pau_minHeight = "" pau_maxWidth = "" pau_maxHeight = "" pau_saveWidth = "PIC_WIDTH" pau_saveHeight = "PIC_HEIGHT" pau_timeout = "600" pau_progressBar = "" pau_progressWidth = "300" pau_progressHeight = "100" Dim RequestBin, UploadRequest CheckPureUploadVersion 2.17 ProcessUpload pau_thePath,pau_Extensions,pau_Redirect,pau_storeType,pau_sizeLimit,pau_nameConflict,pau_requireUpload,pau_minWidth,pau_minHeight,pau_maxWidth,pau_maxHeight,pau_saveWidth,pau_saveHeight,pau_timeout end if %> <% ' *** Edit Operations: (Modified for File Upload) declare variables MM_editAction = CStr(Request.ServerVariables("URL")) 'MM_editAction = CStr(Request("URL")) If (UploadQueryString <> "") Then MM_editAction = MM_editAction & "?" & UploadQueryString End If ' boolean to abort record edit MM_abortEdit = false ' query string to execute MM_editQuery = "" %> <% ' *** Insert Record: (Modified for File Upload) set variables If (CStr(UploadFormRequest("MM_insert")) <> "") Then MM_editConnection = MM_connDUpics_STRING MM_editTable = "PICTURES" MM_editRedirectUrl = "added.asp" MM_fieldsStr = "PIC_NAME|value|EMAIL|value|SEX|value|PIC_IMAGE|value|PIC_WIDTH|value|PIC_HEIGHT|value" MM_columnsStr = "PIC_NAME|',none,''|EMAIL|',none,''|SEX|',none,''|PIC_IMAGE|',none,''|PIC_WIDTH|',none,''|PIC_HEIGHT|',none,''" ' create the MM_fields and MM_columns arrays MM_fields = Split(MM_fieldsStr, "|") MM_columns = Split(MM_columnsStr, "|") ' set the form values For i = LBound(MM_fields) To UBound(MM_fields) Step 2 MM_fields(i+1) = CStr(UploadFormRequest(MM_fields(i))) Next ' append the query string to the redirect URL If (MM_editRedirectUrl <> "" And UploadQueryString <> "") Then If (InStr(1, MM_editRedirectUrl, "?", vbTextCompare) = 0 And UploadQueryString <> "") Then MM_editRedirectUrl = MM_editRedirectUrl & "?" & UploadQueryString Else MM_editRedirectUrl = MM_editRedirectUrl & "&" & UploadQueryString End If End If End If %> <% ' *** Insert Record: (Modified for File Upload) construct a sql insert statement and execute it If (CStr(UploadFormRequest("MM_insert")) <> "") Then ' create the sql insert statement MM_tableValues = "" MM_dbValues = "" For i = LBound(MM_fields) To UBound(MM_fields) Step 2 FormVal = MM_fields(i+1) MM_typeArray = Split(MM_columns(i+1),",") Delim = MM_typeArray(0) If (Delim = "none") Then Delim = "" AltVal = MM_typeArray(1) If (AltVal = "none") Then AltVal = "" EmptyVal = MM_typeArray(2) If (EmptyVal = "none") Then EmptyVal = "" If (FormVal = "") Then FormVal = EmptyVal Else If (AltVal <> "") Then FormVal = AltVal ElseIf (Delim = "'") Then ' escape quotes FormVal = "'" & Replace(FormVal,"'","''") & "'" Else FormVal = Delim + FormVal + Delim End If End If If (i <> LBound(MM_fields)) Then MM_tableValues = MM_tableValues & "," MM_dbValues = MM_dbValues & "," End if MM_tableValues = MM_tableValues & MM_columns(i) MM_dbValues = MM_dbValues & FormVal Next MM_editQuery = "insert into " & MM_editTable & " (" & MM_tableValues & ") values (" & MM_dbValues & ")" If (Not MM_abortEdit) Then ' execute the insert Set MM_editCmd = Server.CreateObject("ADODB.Command") MM_editCmd.ActiveConnection = MM_editConnection MM_editCmd.CommandText = MM_editQuery MM_editCmd.Execute MM_editCmd.ActiveConnection.Close If (MM_editRedirectUrl <> "") Then Response.Redirect(MM_editRedirectUrl) End If End If End If %>

Get Listed On Broadripplenightlife.com Door cover charge pricing! Purchase tickets to events! Weekly specials at your favorite club/bar! Fun links and resources! Contact Broadripplenightlife.com
Copyright © 2003 Star Graphix Indianapolis, IN . All Rights Reserved.

Star Graphix - Where the sky is the limit!