當(dāng)前位置:首頁文章首頁 IT學(xué)院 IT技術(shù)

非數(shù)據(jù)庫實(shí)現(xiàn)數(shù)據(jù)對(duì)象的實(shí)例及說明

作者:  來源:  發(fā)布時(shí)間:2011-6-15 15:23:37  點(diǎn)擊:
<%

    If Sign="+" Then    '如果為只讀屬性

%>

<input type="hidden" name="<%=AttrID %>" value="" />系統(tǒng)計(jì)算:<%=Values(3) %>

<%

Else

  '按照類型進(jìn)行顯示

      If Values(1)="BOOL" Then

        Response.Write "<input type=""checkbox"" name=""" & AttrID & """ value=""1"" />"

      Else

        If Values(1)="DICTIONARY" Then

          'ENVIRONMENT為Scripting.Dictionary對(duì)象

'ENVIRONMENT.Item(“ROOT”)中存儲(chǔ)了該程序管理的根目錄

          FName = ENVIRONMENT.Item("ROOT") & "\dictionary\" & Values(2) & ".dic"

%>

          <select name="<%=AttrID %>">

<%

          If FSO.FileExists(FName) Then

            Set F = FSO.OpenTextFile(FName, 1, False)

            Do While Not F.AtEndOfStream

              sValue = F.ReadLine

              Pos = InStr(sValue, "=")

              If Pos>0 Then

                Response.Write "<option value=""" & Left(sValue, Pos-1) & """>" & Right(sValue, Len(sValue)-Pos) & "</option>"

              End If

            Loop

            F.Close

          End If

%>

          </select>

<%

        Else

          Response.Write "<input type=""textbox"" name=""" & AttrID & """ size=""30"" />"

        End If

      End If

    End If

%>

                            </td>

                     </tr>

<%

    'Count = Count + 1

  End If

Next

%>

                     <tr>

                            <td width="10%"> </td>

                            <td> </td>

                     </tr>

                     <tr>

                            <td width="10%"> </td>

                            <td> </td>

                     </tr>

              </table>

              </td>

       </tr>

       <tr>

首頁 上一頁 [1] [2] [3] [4]  下一頁 尾頁

相關(guān)軟件

相關(guān)文章

文章評(píng)論

軟件按字母排列: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z