Count Lines in Pages

Contents of Page: mmmain2.asp Number of Lines: 108 Last Modified: 8/22/2018 1:32:55 PM
0001: <% @Language = "VBScript" %>
0002: 
0003: <!-- #include FILE="include/adovbs.inc" -->
0004: <!-- #include FILE="include/constants.inc" -->
0005: 
0006: <%
0007: 	Set rs = Server.CreateObject("ADODB.Recordset")
0008: 	sqlString = "SELECT NumEntries FROM mmEntries WHERE Season = " & season
0009: 	rs.Open sqlString, conn, adOpenStatic, adLockReadOnly, adCmdText
0010: 	totEntries = rs.RecordCount
0011: 	Do Until Rs.EOF
0012: 	npks = rs("NumEntries").Value
0013: 	totPicks = totPicks + npks
0014:     rs.MoveNext
0015: 		Loop
0016: 		
0017: 	rs.Close
0018: 	Set rs = Nothing
0019: %>
0020: <html>
0021: 
0022: <head>
0023: <title>Joe Toledo's March Madness Contest - Benefiting Charity</title>
0024: </head>
0025: 
0026: <body bgcolor="#ffffff">
0027: <div align="center"><center>
0028: 
0029: <table cellspacing="0" border="1" cellpadding="5" width="680" bordercolor="#FED87B"
0030: align="center" height="381">
0031:   <tr bgcolor="#FFFAF0">
0032:     <td VALIGN="TOP" width="666" colspan="2" height="16"><span style="font-family:Arial"><font size="2"><b><font color="#FF0000">Total # of Entries to Date:</font></b></font><b><font color="#0000FF" size="3">&nbsp;<%= totPicks%>&nbsp;&nbsp;&nbsp;&nbsp;</font></b></span>
0033:     </td>
0034:   </tr>
0035:   <tr bgcolor="#FFFAF0">
0036:     <td VALIGN="TOP" width="544" height="287">
0037:         <p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-family:Arial">This
0038:         contest allows you to enjoy the upcoming 2004 NCAA Men’s Basketball
0039:         Tournament being held from March 18<sup>th</sup>  thru April 5<sup>th</sup>
0040:         and help two charities in the process: The <strong>City of Hope</strong>
0041:         Cancer Research Institute and the <strong>Antonio Toledo Memorial
0042:         Scholarship Fund.</strong><b><br>
0043:         <br>
0044:         </b>The cost to participate is only a <strong>$20 donation</strong>  per
0045:         entry, with half of the proceeds going to the two charities above and
0046:         the other half being distributed amongst the pool participants winners.&nbsp;
0047:         This contest rewards the top <strong>10%</strong>&nbsp; of all entries
0048:         with prizes up to <strong>$500 or more </strong>based on the number of
0049:         entries.<br>
0050:         <u2:p>
0051:         </u2:p>
0052:         <br>
0053:         Last year we had 197 entries and we were able to raise nearly $2000 for
0054:         cancer research and education.<o:p>
0055:         </o:p>
0056:         </span></p>
0057:         <p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-family:Arial">You
0058:         can register anytime and you will be notified via email when you will be
0059:         able to make your pick selections.<o:p>
0060:         </o:p>
0061:         </span></p>
0062:         <p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-family:Arial">You
0063:         only have<span style="color:red"> <script language="JavaScript">
0064: <!--
0065: 
0066: var today = new Date()
0067: var targetdate = new Date("March 18, 2004")
0068: var msPerDay = 24 * 60 * 60 * 1000 ;
0069: var daysLeft = (targetdate.getTime() - today.getTime()) / msPerDay;
0070: daysLeft = Math.ceil(daysLeft);
0071: 
0072: document.write(daysLeft + " days");
0073: //-->
0074:   </script>
0075:         <b>&nbsp;left </b></span>to register for the contest and make your
0076:         picks.<o:p>
0077:         &nbsp;
0078:         </span></p>
0079:     </td>
0080:     <td VALIGN="TOP" width="122" height="287"><span style="mso-bidi-font-size:10.0pt;font-family:Arial"><font size="2"><br>
0081:       <font color="#008080">If you don't care to make selections on who is going
0082:       to win the 2004 NCAA Men’s Basketball Tournament and would just like to
0083:       make a donation of <strong>any
0084:         amount </strong>to these two worthy causes, just click on the PayPal
0085:       Icon below to do so <strong>right now</strong>.</font></font></span>
0086:          <form action="https://www.paypal.com/cgi-bin/webscr" method=post
0087:   enctype="application/x-www-form-urlencoded" target="_blank">
0088:   <span
0089:   style='display:none;mso-hide:all'><INPUT TYPE="hidden" NAME="return" VALUE="http://www.lusogolf.org/thankyou2.html"><INPUT TYPE="hidden" NAME="item_number" VALUE="Please specify amount"><INPUT TYPE="hidden" NAME="item_name" VALUE="Cash Donation"><INPUT TYPE="hidden" NAME="business" VALUE="joe@lusogolf.org"><INPUT TYPE="hidden" NAME="cmd" VALUE="_xclick"></span>
0090:   <p align="center"><INPUT TYPE="image" ACTION="https://www.paypal.com/cgi-bin/webscr" SRC="http://images.paypal.com/images/x-click-but04.gif" METHOD="post" NAME="I1"
0091:   ACTION="https://www.paypal.com/cgi-bin/webscr" METHOD=post
0092:   ACTION="https://www.paypal.com/cgi-bin/webscr" METHOD=post
0093:   ACTION="https://www.paypal.com/cgi-bin/webscr" METHOD=post border=0
0094:   alt="Make payments with PayPal - it's fast, free and secure!"></p>
0095:   </form>
0096:     </td>
0097:   </tr>
0098:   <tr bgcolor="#FFFAF0">
0099:     <td VALIGN="TOP" width="666" colspan="2" height="19">
0100:       <p align="center">
0101:         <strong><span style="mso-bidi-font-size: 13.5pt; font-family: Arial"><font size="3" color="#008080">Thank
0102:         you for visiting Joe Toledo's Annual March Madness Contest for Charity.</font></span></strong>&nbsp;</p>
0103:     </td>
0104:   </tr>
0105: </table>
0106: </center></div>
0107: </body>
0108: </html>