回复:DNT首页快速登录 for Discuz!NT 1.0正式版(SQL/ACCESS通用)
<div class="maintable" align="center"><br />
<%if {userid}==-1%>
<form id="loginform" name="loginform" method="post" action="login.aspx">
<b>用户:</b><input name="username" type="text" id="username" size="10" class="colorblur" />
<b>密码:</b><input name="password" type="password" id="password" size="10" class="colorblur" />
<b>验证码:</b><span class="altbg2 smalltext"><%template _vcode%></span>
<b>保存登录</b>
<input type="radio" name="expires" value="5256000" /><label>是</label>
<input type="radio" name="expires" value="0" checked="checked" /><label>不</label>
<select name="templateid">
<option value="0">默认风格</option>
</select>
<input name="login" type="submit" id="login" value="登录" class="button" />
<input name="cancel" type="button" id="cancel2" value="取消" class="button" />
<a href="register.aspx" title="立即注册 (ALT + R)"><b>轻松注册</b></a>/<a href="getpassword.aspx" title="忘记密码"><b>忘记密码?</b></a> </td>
</form>
<%/if%>
</div>
这段代码放在哪里?是否是index.aspx里呢?