home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 6 / 06.iso / b / b077 / 1.img / SBGL.ZIP / GD4.PRG < prev    next >
Encoding:
Text File  |  1979-12-31  |  3.1 KB  |  144 lines

  1. clear
  2. set talk off
  3. set device to screen
  4. close database
  5. use gd
  6. a='        '
  7. clear
  8. @ 4,20 say "╟δ╚δ╓╒╓╣╚╒╞┌:" get a pict '99.99.99'
  9. read
  10. j1=substr(a,4,2)
  11. j2=substr(a,7,2)
  12. j3=substr(a,1,2)
  13. a=j1+'/'+j2+'/'+j3
  14. a=ctod(a) 
  15. loca for gd20-gd11*(a-gd4)/365<=gd17
  16. a2=.t.
  17. do while a2
  18. clear
  19. @ 1,1 say "╣▄╡└▒α║┼  ╣▄╡└├√│╞     ╔Φ╝╞▒┌║±  ═╢▓·╚╒╞┌  ─Ω╕»╩┤┴┐  ░▓╚½▒┌║±  ì
  20. ╙ª╕ⁿ╗╗╚╒╞┌"
  21. l=2
  22. do while .not. eof()
  23. x=gd4+(gd20-gd17)*365/gd11
  24. @ l,1 say " "+gd1
  25. @ l,11 say " "+gd2
  26. @ l,24 say " "+str(gd20,8,2)
  27. b=dtoc(gd4)
  28. j1=substr(b,7,2)
  29. j2=substr(b,1,2)
  30. j3=substr(b,4,2)
  31. b=j1+'.'+j2+'.'+j3
  32. @ l,34 say " "+b
  33. @ l,44 say " "+str(gd11,6,2)
  34. @ l,54 say " "+str(gd17,8,2)
  35. c=dtoc(x)
  36. j1=substr(c,7,2)
  37. j2=substr(c,1,2)
  38. j3=substr(c,4,2)
  39. c=j1+'.'+j2+'.'+j3
  40. @ l,64 say " "+c
  41. cont
  42. l=l+1
  43. if l>=9 .and. .not. eof()
  44. wait '░┤╚╬╥Γ╝ⁿ╝╠╨°úí'
  45. l=2
  46. exit
  47. endif
  48. enddo 
  49. if eof()
  50. exit
  51. endif
  52. enddo a2
  53. wait '┤≥╙í┬≡(Y/N) ' to w
  54. if w<>'y'
  55. close database
  56. retu
  57. endif
  58. set device to print
  59. set print on
  60. set cons off
  61. ? chr(27)+"II" 
  62. set print off
  63. set cons on
  64. goto top
  65. p=1
  66. loca for gd20-gd11*(a-gd4)/365<=gd17
  67. b=recno()
  68. a1=.t.
  69. do while a1
  70. @ prow()+1,55 say "                       ─Γ╕ⁿ╗╗╡─╣▄╡└"
  71. @ prow()+1,1 say "                 "
  72. @ prow()+1,144 say "╡┌"+str(p,2)+"╥│"
  73. @ prow()+1,1 say ì
  74. "=================================================================ì
  75. ================================================================================ì
  76. ============="
  77. @ prow()+1,1 say "|╣▄╡└▒α║┼ |╣▄╡└├√│╞    |╣µ╕±╨═║┼    ì
  78. |▓─        ╓╩|╣ñ╫≈╤╣┴ª|╣ñ╫≈╬┬╢╚|╣ñ╫≈╜Θ╓╩    |╣▄╡└│ñ╢╚|ì
  79. ╔Φ╝╞▒┌║±|═╢▓·╚╒╞┌|─Ω╕»╩┤┴┐|░▓╚½▒┌║±|─Γ╕ⁿ╗╗╚╒╞┌|      ░▓╫░╡╪╡π     ì
  80.  |"
  81. @ prow()+1,1 say ì
  82. "|---------|------------|------------|------------|--------|--------|----------ì
  83. --|--------|--------|--------|--------|--------|----------|-------ì
  84. -------------|"
  85. l=7
  86. do while .not. eof()
  87. x=gd4+(gd20-gd17)*365/gd11
  88. @ prow()+1,1 say "|"+gd1
  89. @ prow(),11 say "|"+gd2
  90. @ prow(),24 say "|"+gd3+"|"+gd5
  91. @ prow(),50 say "|"+str(gd7,3)
  92. @ prow(),59 say "|"+str(gd8,3)
  93. @ prow(),68 say "|"+gd9
  94. @ prow(),81 say "|"+str(gd14,8,2)
  95. @ prow(),90 say "|"+str(gd20,8,2)
  96. c=dtoc(gd4)
  97. j1=substr(c,7,2)
  98. j2=substr(c,1,2)
  99. j3=substr(c,4,2)
  100. c=j1+'.'+j2+'.'+j3
  101. @ prow(),99 say "|"+c
  102. @ prow(),108 say "|"+str(gd11,6,2)
  103. @ prow(),117 say "|"+str(gd17,8,2)
  104. y=dtoc(x)
  105. j1=substr(y,7,2)
  106. j2=substr(y,1,2)
  107. j3=substr(y,4,2)
  108. y=j1+'.'+j2+'.'+j3
  109. @ prow(),126 say "|"+y+"  |"+gd19+"|"
  110. cont
  111. l=l+1
  112. if .not. eof()
  113. if l>=50
  114. @ prow()+1,1 say ì
  115. "=================================================================ì
  116. ============================================================================================="
  117. ejec
  118. p=p+1
  119. exit
  120. else
  121. @ prow()+1,1 say ì
  122. "|---------|------------|------------|------------|--------|--------|----------ì
  123. --|--------|--------|--------|--------|--------|----------|-------ì
  124. -------------|"
  125. l=l+1
  126. endif
  127. else
  128. @ prow()+1,1 say ì
  129. "=================================================================ì
  130. ==================================================================ì
  131. ==========================="
  132. a1=.f.
  133. endif
  134. enddo
  135. enddo a1
  136. set print on
  137. ? chr(13)
  138. set print off
  139. close database
  140. set device to screen
  141. a1=.t.
  142. retu
  143.  
  144.