广告联盟网

标题: 求帮把这句 if then 改成 select case..... [打印本页]

作者: Default.PhP    时间: 2007-7-15
标题: 求帮把这句 if then 改成 select case.....
<br><br><div class="msgbody"><div class="msgheader"><div class="right"><a href="###" class="smalltxt" onclick="copycode($('code0'));">[Copy to clipboard]</a> <a class="smalltxt" href="###" onclick="toggle_collapse('code0');">[ <span id="code0_symbol">-</span> ]</a></div>CODE:</div><div class="msgborder" id="code0"> <br /><br />谢谢了.<br /><br />&lt;%<br />if rs(&quot;opendate&quot;)&lt;&gt;&quot;&quot; then response.write year(rs(&quot;opendate&quot;))&amp;&quot;年/&quot;&amp;month(rs(&quot;opendate&quot;))&amp;&quot;月/&quot;&amp;day(rs(&quot;opendate&quot;))&amp;&quot;日/&quot;%&gt;&lt;%<br />if hour(rs(&quot;Sifu_opendate&quot;))&gt;=0 and hour(rs(&quot;Sifu_opendate&quot;))&lt;7 then <br />response.write &quot;凌晨&quot;&amp;hour(rs(&quot;Sifu_opendate&quot;))&amp;&quot;点&quot; <br />else <br />if hour(rs(&quot;Sifu_opendate&quot;))&gt;17 and hour(rs(&quot;Sifu_opendate&quot;))&lt;24 then <br />response.write &quot;晚上&quot;&amp;hour(rs(&quot;Sifu_opendate&quot;))-12&amp;&quot;点&quot; <br />else <br />if hour(rs(&quot;Sifu_opendate&quot;))&lt;12 then <br />response.write &quot;上午&quot;&amp;hour(rs(&quot;Sifu_opendate&quot;))&amp;&quot;点&quot; <br />else <br />if hour(rs(&quot;Sifu_opendate&quot;))&gt;12 and hour(rs(&quot;Sifu_opendate&quot;))&lt;=17 then <br />response.write &quot;下午&quot;&amp;hour(rs(&quot;Sifu_opendate&quot;))-12&amp;&quot;点&quot; <br />else <br />if hour(rs(&quot;Sifu_opendate&quot;))=12 then <br />response.write &quot;中午&quot;&amp;hour(rs(&quot;Sifu_opendate&quot;))&amp;&quot;点&quot; <br />end if <br />end if <br />end if <br />end if <br />end if%&gt;</div></div><br>
作者: tlsdhy    时间: 2007-7-15
<img src="images/smilies/lol.gif" smilieid="9" border="0" alt="" />
作者: Default.PhP    时间: 2007-7-15
<br><br><div class="msgbody"><div class="msgheader">QUOTE:</div><div class="msgborder">原帖由 <i>tlsdhy</i> 于 2007-7-15 17:00 发表 <a href="http://www.im286.com/redirect.php?goto=findpost&amp;pid=20558790&amp;ptid=2068288" target="_blank"><img src="http://www.im286.com/images/common/back.gif" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://www.im286.com/images/common/back.gif');}" onmousewheel="return imgzoom(this);" alt="" /></a><br /><img src="images/smilies/lol.gif" smilieid="9" border="0" alt="" /> </div></div><br>就知道落伍有很多你这种没技术的人.<img src="images/smilies/ohh.gif" smilieid="19" border="0" alt="" />&nbsp;&nbsp;装酷啊.&nbsp; &nbsp;<img src="images/smilies/mad.gif" smilieid="6" border="0" alt="" /> 会也不告诉偶一声,纯表情T向火星
作者: Default.PhP    时间: 2007-7-15
<img src="images/smilies/sad.gif" smilieid="2" border="0" alt="" /> 你们会也不告诉我一下.草地了.




欢迎光临 广告联盟网 (https://bbs.ggads.com/) Powered by Discuz! X3.2