<!--#include file="../SQLconn.asp"-->
<link rel="stylesheet" type="text/css" href="../css/style.css" />



<p>
  <script Language="JavaScript">
 function form_check(){
  if(document.form3.vid.value.length<1){window.alert("请输入序号");document.form3.vid.focus();return (false);}
   
                  }

  </script>
</p>

<%
   tname=request("tname")
   
   
   %>
      <form id="form3" name="form3" method="post" action="savesetQiShu.asp?tname=<%=tname%>"  onSubmit="return form_check();">
	  
	  <table width="588" border="1" align="center" cellpadding="3"   cellspacing="0"  bordercolor="#6D8DD8"  class="mtablehui"> 
<tr style="background-color:#D6E4FF"  class="TableHeader">      <td height="30" colspan="3" valign="middle"  align="center" nowrap class="NemuNot">
	  
      <table width="588" border="0" align="center" cellspacing="0" bordercolorlight="#11b1ff" bordercolordark="#f0f8ff">
      <tr align="middle">  <td class="STYLE1">&nbsp;</td>
      <td height="41" class="STYLE1"><div align="center">序号</div></td>
      <td align="center" valign="middle" class="STYLE1"><div align="left">
      <label><input name="vid" type="text" class="text" id="vid" size="5" /></label>
      </div></td><td>&nbsp;</td> </tr>
      <tr align="middle">
        <td class="STYLE1">&nbsp;</td>
        <td height="41" class="STYLE1"><div align="center">分期名称</div></td>
        <td align="center" valign="middle" class="STYLE1"><div align="left">
          <input name="vmingcheng" type="text" class="text" id="vmingcheng" />
        </div></td>
        <td>&nbsp;</td>
      </tr>
      <tr align="middle">
        <td class="STYLE1">&nbsp;</td>
        <td height="41" class="STYLE1"><div align="center">开始日期</div></td>
        <td align="center" valign="middle" class="STYLE1"><div align="left">
          <input name="begindate" type="text" class="text" id="begindate" size="15" />
        (格式： 2011-9-1)</div></td>
        <td>&nbsp;</td>
      </tr>
      <tr align="middle"> <td width="8" class="STYLE1">&nbsp;</td>
      <td width="71" height="41" class="STYLE1"><div align="center">结束日期</div></td>
      <td width="290" align="center" valign="middle" class="STYLE1"><div align="left">
	  <input name="enddate" type="text" class="text" id="enddate" size="15" />
        (格式： 2011-9-1)</div> 
        </label></td><td width="211"><input name="Submit" type="submit" class="topanniu" value="添加" /></td> </tr>
      <tr align="middle">
        <td class="STYLE1">&nbsp;</td>
        <td height="21" class="STYLE1">&nbsp;</td>
        <td align="center" valign="middle" class="STYLE1"><div align="left"></div></td>
        <td>&nbsp;</td>
      </tr>
      </table>
	   </td>    </tr>    </table> 
      <div align="center" class="STYLE1"></div>
      </form>

    <table width="588" align="center" border="1" cellpadding="3"   cellspacing="0"  bordercolor="#6D8DD8"  class="mtable">   
    <tr style="background-color:#D6E4FF"  class="TableHeader">
    <td align="center" nowrap class="STYLE1">序号</td>
    <td height="27" align="center" nowrap class="STYLE1"><div align="center">分期名称</div></td>
    <td align="center" nowrap class="STYLE1"><div align="center">时间段</div></td>
    <td width="145" align="center" nowrap class="STYLE1">操作</td>
    </tr>

   
   <%Set Rslist=Server.CreateObject("Adodb.Recordset")
   sqllist="select * from varset where  name='"&tname& "'  order by vid" 
   Rslist.open sqllist,conn,1,1
   while not Rslist.eof and not Rslist.bof%>
    <tr onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#EFF8FF'">
    <td width="39" height="27" align="center" nowrap class="STYLE1"><%=Rslist("vid")%></td>
    <td width="115" align="center" nowrap class="STYLE1"><%=Rslist("vname")%></td>
    <td width="207" align="center" nowrap class="STYLE1"><%=Rslist("shuoming")%></td>
    <td align="center" nowrap class="STYLE1"><a href="ModifyQiShu.asp?tname=<%=tname%>&id=<%=Rslist("id")%>">修改</a>&nbsp;&nbsp;&nbsp;<a href="deletesetQiShu.asp?tname=<%=tname%>&id=<%=Rslist("id")%>">删除</a>	</td>	
    </tr>
<%  Rslist.movenext
    wend
%>
</table>
