Wrox Programmer Forums
|
ASP E-commerce As of Oct 5, 2005, this forum is now locked. No posts have been deleted. Please use "Classic ASP Professional" at: http://p2p.wrox.com/forum.asp?FORUM_ID=56 for discussions similar to the old ASP Pro Code Clinic or one of the other many remaining ASP and ASP.NET forums here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP E-commerce section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 24th, 2005, 08:48 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default code explanation

can anyone tell me what this code is doing?

 <tr>
         <td colspan="3"><input type="text" class="input" tabindex="4" name="depdt" maxlength=5 size="13" onfocus="removeYear('depdt')" onblur="return checkdate('/T2AgIBE/html/calendar.html','window.opener.document.fexp.depdt. value','window.opener.document.fexp.deptm.value',' dep',document.fexp.crdate.value,document.fexp.seld ate.value,'depdt')" onChange="javascript:this.value=this.value.toUpper Case();">
           <a href="#"><img src="images/hd_icon_calender.gif" align="middle" alt="Calendar" width="21" height="15" border=0 onClick="shodt('calendar.html','document.fexp.depd t.value','document.fexp.deptm.value','dep',documen t.fexp.crdate.value,document.fexp.seldate.value,'d epdt')" onmouseover="docTips.show('formulae13');style.curs or='hand'" onmouseout="docTips.hide()"></a>&nbsp;
           <Select style="height: 20; font-size : 10;" Name="deptm">
             <%for i=0 to 23%>
             <%if i=0 then%>
             <option value="">Any Time</option>
             <%elseif i>0 and i<9 then%>
             <option value="0<%=i%>00">0<%=i%>:00</option>
             <%elseif i=9 then%>
             <option value="" Selected>Any Time</option>
             <option value="0<%=i%>00">0<%=i%>:00</option>
             <%elseif i >9 and i<=23 then%>
             <option value="<%=i%>00"><%=i%>:00</option>
             <%end if%>
             <%next%>
             <option value="">Any Time</option>
           </Select>
           <input type="hidden" name="depdt1">
           </td>
         </tr>
       <tr>

__________________
_______________________
Ayrshire Minis - a Mini E-Community
http://www.ayrshireminis.com
http://www.crmpicco.co.uk
 
Old January 24th, 2005, 10:56 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Yeah, for hour zero, it plugs in any time, for hour 1 to 9, it outputs 0<number>00, for example 0900. For 10 through 23, it outputs the whole number, because the nmber is two digits: 1000, 2300.

Brian





Similar Threads
Thread Thread Starter Forum Replies Last Post
code explanation Amitava Deewan Access VBA 2 August 8th, 2005 03:26 PM
explanation crmpicco Classic ASP Components 3 February 2nd, 2005 12:14 AM
i need explanation ... amahja56 C++ Programming 2 October 28th, 2004 05:01 PM
Need Explanation Plz ! augustine Biztalk 0 July 11th, 2004 07:58 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.