/beta/admin/editGL.asp

http://github.com/khaneh/Orders · ASP · 559 lines · 420 code · 47 blank · 92 comment · 28 complexity · 2fd6a78bb4bed3a7c0e0fe9736ca5f59 MD5 · raw file

  1. <%@LANGUAGE="VBSCRIPT" CODEPAGE="1256"%><%
  2. ' Admin
  3. PageTitle= " "
  4. SubmenuItem=9
  5. %>
  6. <!--#include file="top.asp" -->
  7. <!--#include File="../include_farsiDateHandling.asp"-->
  8. <!--#include File="../include_JS_InputMasks.asp"-->
  9. <%
  10. ' * * * * * * * *
  11. ' * * * * * * * *
  12. ' * * * * * * * *
  13. ' * * * * * * * *
  14. ' * * * * * * * *
  15. ' * * * * * * * *
  16. ' * * * * * * * *
  17. ' * * * * * * * * Account
  18. ' * * * * * * * *
  19. ' * * * * * * * *
  20. ' * * * * * * * *
  21. ' * * * * * * * *
  22. ' * * * * * * * *
  23. ' * * * * * * * *
  24. ' * * * * * * * *
  25. '-----------------------------------------------------------------------------------------------------
  26. '----------------------------------------------------------------------------- Edit GL Accounts submit
  27. '-----------------------------------------------------------------------------------------------------
  28. if request("act")="EditAccountSubmit" then
  29. ACCID = request("ACCID")
  30. name = request("name")
  31. GroupID = request("GroupID")
  32. accountType = request("accountType")
  33. If request("tafsil")="on" Then
  34. tafsil = 1
  35. Else
  36. tafsil = 0
  37. End If
  38. conn.Execute("UPDATE GLAccounts SET Name = N'"& name & "', HasAppendix = "&tafsil&", accountType=" & accountType & " WHERE (ID = "& ACCID & ") AND (GL = "& OpenGL & ")")
  39. response.redirect "AccountInfo.asp?act=account&GroupID=" & GroupID
  40. '-----------------------------------------------------------------------------------------------------
  41. '------------------------------------------------------------------------------ Add GL Accounts submit
  42. '-----------------------------------------------------------------------------------------------------
  43. elseif request("act")="NewAccountSubmit" then
  44. ACCID = request("ACCID")
  45. name = request("name")
  46. GroupID = request("GroupID")
  47. Set RS2 = conn.Execute("SELECT * FROM GLAccounts WHERE ID="& ACCID & " AND GL="& OpenGL )
  48. if not RS2.EOF then
  49. response.write "<BR><BR><BR><BR><CENTER>! "
  50. response.write "<BR><BR><A HREF='AccountInfo.asp?act=editAccountForms&GroupID="& GroupID & "&submit= '>ѐ</A></CENTER>"
  51. response.end
  52. else
  53. conn.Execute("INSERT INTO GLAccounts (GLGroup, Name, GL, ID) VALUES ("& GroupID & ", N'"& name & "',"& OpenGL & ", "& ACCID & ")")
  54. response.redirect "AccountInfo.asp?act=account&GroupID=" & GroupID
  55. end if
  56. '-----------------------------------------------------------------------------------------------------
  57. '---------------------------------------------------------------- Add / Delete / Edit GL Accounts Form
  58. '-----------------------------------------------------------------------------------------------------
  59. elseif request("act")="editAccountForms" then
  60. ACCID = request("ACCID")
  61. submit = request("submit")
  62. GroupID = request("GroupID")
  63. Set RS2 = conn.Execute("SELECT * from GLAccountGroups where id="& GroupID & " and GL="& OpenGL )
  64. GroupName=RS2("name")
  65. '========================================
  66. '====================================================
  67. if submit=" " then
  68. Set RS2 = conn.Execute("SELECT MAX(id) AS MaxID FROM GLAccounts WHERE GLGroup="& GroupID & " AND GL="& OpenGL )
  69. MaxID=RS2("MaxID")
  70. if isnull(MaxID) then MaxID= GroupID
  71. %>
  72. <BR><BR>
  73. <TABLE align=center>
  74. <FORM METHOD=POST ACTION="editGL.asp?act=NewAccountSubmit">
  75. <TR>
  76. <TD colspan=2 align=center><H3> </H3><BR>
  77. <%=GroupName%> ( <%=GroupID%>)<BR><BR>
  78. <%=OpenGLName%> ( <%=FiscalYear%>)
  79. <INPUT TYPE="hidden" name="GroupID" value="<%=GroupID%>">
  80. <BR><BR><BR>
  81. </TD>
  82. </TR>
  83. <TR>
  84. <TD> </TD>
  85. <TD><INPUT TYPE="text" NAME="ACCID" onkeypress="return maskNumber(this)" maxlength=5 value="<%=MaxID+1%>"></TD>
  86. </TR>
  87. <TR>
  88. <TD> </TD>
  89. <TD><INPUT TYPE="text" NAME="name"></TD>
  90. </TR>
  91. <TR>
  92. <TD colspan=2 align=center>
  93. <BR><BR>
  94. <INPUT TYPE="submit" value=""class="GenButton">
  95. <INPUT TYPE="button" value=""class="GenButton" onclick="window.location='AccountInfo.asp?act=account&GroupID=<%=GroupID%>'">
  96. </TD>
  97. </TR>
  98. </FORM>
  99. </TABLE>
  100. <SCRIPT LANGUAGE="JavaScript">
  101. <!--
  102. document.all.name.focus();
  103. //-->
  104. </SCRIPT>
  105. <%
  106. '========================================
  107. '====================================================
  108. elseif submit="" then
  109. Set RS2 = conn.Execute("SELECT * FROM GLAccounts WHERE ID="& ACCID & " AND GL="& OpenGL )
  110. AccountName=RS2("name")
  111. %>
  112. <BR><BR>
  113. <TABLE align=center>
  114. <FORM METHOD=POST ACTION="editGL.asp?act=EditAccountSubmit">
  115. <TR>
  116. <TD colspan=2 align=center><H3> </H3><BR>
  117. <%=GroupName%> ( <%=GroupID%>)<BR><BR>
  118. <%=OpenGLName%> ( <%=FiscalYear%>)
  119. <INPUT TYPE="hidden" name="GroupID" value="<%=GroupID%>">
  120. <BR><BR><BR>
  121. </TD>
  122. </TR>
  123. <TR>
  124. <TD> </TD>
  125. <TD><INPUT TYPE="text" NAME="ACCID" onkeypress="return maskNumber(this)" maxlength=5 value="<%=ACCID%>" readonly></TD>
  126. </TR>
  127. <TR>
  128. <TD> </TD>
  129. <TD><INPUT TYPE="text" NAME="name" value="<%=AccountName%>" ></TD>
  130. </TR>
  131. <tr>
  132. <td></td>
  133. <td><input type='checkbox' name='tafsil' <% If CBool(rs2("HasAppendix")) Then response.write " checked='checked' " %>></td>
  134. </tr>
  135. <tr>
  136. <td> </td>
  137. <td>
  138. <select name="accountType">
  139. <%
  140. set rs=Conn.Execute("select * from glAccountTypes")
  141. while not rs.eof
  142. %>
  143. <option <%if rs2("accountType")=rs("id") then response.write " selected='selected' "%> value="<%=rs("id")%>">
  144. <%=rs("name")& " (" &rs("name_en")& ")"%>
  145. </option>
  146. <%
  147. rs.moveNext
  148. wend
  149. %>
  150. </select>
  151. </td>
  152. </tr>
  153. <TR>
  154. <TD colspan=2 align=center>
  155. <BR><BR>
  156. <INPUT TYPE="submit" value=""class="GenButton">
  157. <INPUT TYPE="button" value=""class="GenButton" onclick="window.location='AccountInfo.asp?act=account&GroupID=<%=GroupID%>'">
  158. </TD>
  159. </TR>
  160. </FORM>
  161. </TABLE>
  162. <%
  163. '========================================
  164. '====================================================
  165. elseif submit="" then
  166. Set RS2 = conn.Execute("SELECT * FROM GLDocs INNER JOIN GLRows ON GLDocs.ID = GLRows.GLDoc WHERE (GLDocs.GL = "& OpenGL & ") AND (GLRows.GLAccount = "& ACCID & ")")
  167. if not RS2.EOF then
  168. response.write "<BR><BR><BR><BR><CENTER>! . ."
  169. response.write "<BR><BR><A HREF='AccountInfo.asp?act=account&GroupID=" & GroupID & "'>ѐ</A></CENTER>"
  170. response.end
  171. else
  172. conn.Execute("DELETE FROM GLAccounts WHERE (ID = "& ACCID & ") AND (GL = "& OpenGL & ")")
  173. response.redirect "AccountInfo.asp?act=account&GroupID=" & GroupID
  174. end if
  175. end if
  176. ' * * * * * * * *
  177. ' * * * * * * * *
  178. ' * * * * * * * *
  179. ' * * * * * * * *
  180. ' * * * * * * * *
  181. ' * * * * * * * *
  182. ' * * * * * * * *
  183. ' * * * * * * * * Account Groups
  184. ' * * * * * * * *
  185. ' * * * * * * * *
  186. ' * * * * * * * *
  187. ' * * * * * * * *
  188. ' * * * * * * * *
  189. ' * * * * * * * *
  190. ' * * * * * * * *
  191. '-----------------------------------------------------------------------------------------------------
  192. '----------------------------------------------------------------------- Edit GL Account Groups submit
  193. '-----------------------------------------------------------------------------------------------------
  194. elseif request("act")="EditAccountGroupSubmit" then
  195. GroupID = request("GroupID")
  196. name = request("name")
  197. SuperGroupID = request("SuperGroupID")
  198. conn.Execute("UPDATE GLAccountGroups SET Name = N'"& name & "' WHERE (ID = "& GroupID & ") AND (GL = "& OpenGL & ")")
  199. if cint(request("accountType"))<>-1 then
  200. conn.Execute("update glAccounts set accountType=" & request("accountType") &" where glGroup=" & groupID & " and gl=" & openGL)
  201. end if
  202. response.redirect "AccountInfo.asp?act=groups&SuperGroupID=" & SuperGroupID
  203. 'response.end
  204. '-----------------------------------------------------------------------------------------------------
  205. '------------------------------------------------------------------------ Add GL Account Groups submit
  206. '-----------------------------------------------------------------------------------------------------
  207. elseif request("act")="NewAccountGroupSubmit" then
  208. GroupID = request("GroupID")
  209. name = request("name")
  210. SuperGroupID = request("SuperGroupID")
  211. Set RS2 = conn.Execute("SELECT * FROM GLAccountGroups WHERE ID="& GroupID & " AND GL="& OpenGL )
  212. if not RS2.EOF then
  213. response.write "<BR><BR><BR><BR><CENTER>! "
  214. response.write "<BR><BR><A HREF='AccountInfo.asp?act=editAccountGroupForms&SuperGroupID="& SuperGroupID & "&submit= '>ѐ</A></CENTER>"
  215. response.end
  216. else
  217. conn.Execute("INSERT INTO GLAccountGroups (GLSuperGroup, Name, GL, ID) VALUES ("& SuperGroupID & ", N'"& name & "',"& OpenGL & ", "& GroupID & ")")
  218. response.redirect "AccountInfo.asp?act=groups&SuperGroupID=" & SuperGroupID
  219. end if
  220. '-----------------------------------------------------------------------------------------------------
  221. '---------------------------------------------------------- Add / Delete / Edit GL Account Groups Form
  222. '-----------------------------------------------------------------------------------------------------
  223. elseif request("act")="editAccountGroupForms" then
  224. GroupID = request("GroupID")
  225. submit = request("submit")
  226. SuperGroupID = request("SuperGroupID")
  227. Set RS2 = conn.Execute("SELECT * FROM GLAccountSuperGroups WHERE ID="& SuperGroupID & " AND GL="& OpenGL )
  228. SuperGroupName=RS2("name")
  229. '========================================
  230. '====================================================
  231. if submit=" " then
  232. Set RS2 = conn.Execute("SELECT MAX(id) AS MaxID FROM GLAccountGroups WHERE GLSuperGroup="& SuperGroupID & " AND GL="& OpenGL )
  233. MaxID=RS2("MaxID")
  234. if isnull(MaxID) then MaxID= SuperGroupID
  235. %>
  236. <BR><BR>
  237. <TABLE align=center>
  238. <FORM METHOD=POST ACTION="editGL.asp?act=NewAccountGroupSubmit">
  239. <TR>
  240. <TD colspan=2 align=center><H3> </H3><BR>
  241. ѐ <%=SuperGroupName%> ( <%=SuperGroupID%>)<BR><BR>
  242. <%=OpenGLName%> ( <%=FiscalYear%>)
  243. <INPUT TYPE="hidden" name="SuperGroupID" value="<%=SuperGroupID%>">
  244. <BR><BR><BR>
  245. </TD>
  246. </TR>
  247. <TR>
  248. <TD> </TD>
  249. <TD><INPUT TYPE="text" NAME="GroupID" onkeypress="return maskNumber(this)" maxlength=5 value="<%=MaxID+100%>"></TD>
  250. </TR>
  251. <TR>
  252. <TD> </TD>
  253. <TD><INPUT TYPE="text" NAME="name"></TD>
  254. </TR>
  255. <TR>
  256. <TD colspan=2 align=center>
  257. <BR><BR>
  258. <INPUT TYPE="submit" value=""class="GenButton">
  259. <INPUT TYPE="button" value=""class="GenButton" onclick="window.location='AccountInfo.asp?act=groups&SuperGroupID=<%=SuperGroupID%>'">
  260. </TD>
  261. </TR>
  262. </FORM>
  263. </TABLE>
  264. <%
  265. '========================================
  266. '====================================================
  267. elseif submit="" then
  268. Set RS2 = conn.Execute("SELECT * FROM GLAccountGroups WHERE ID="& GroupID & " AND GL="& OpenGL )
  269. GroupName=RS2("name")
  270. %>
  271. <BR><BR>
  272. <TABLE align=center>
  273. <FORM METHOD=POST ACTION="editGL.asp?act=EditAccountGroupSubmit">
  274. <TR>
  275. <TD colspan=2 align=center><H3> </H3><BR>
  276. ѐ <%=SuperGroupName%> ( <%=SuperGroupID%>)<BR><BR>
  277. <%=OpenGLName%> ( <%=FiscalYear%>)
  278. <INPUT TYPE="hidden" name="SuperGroupID" value="<%=SuperGroupID%>">
  279. <BR><BR><BR>
  280. </TD>
  281. </TR>
  282. <TR>
  283. <TD> </TD>
  284. <TD><INPUT TYPE="text" NAME="GroupID" onkeypress="return maskNumber(this)" maxlength=5 value="<%=GroupID%>" readonly></TD>
  285. </TR>
  286. <TR>
  287. <TD> </TD>
  288. <TD><INPUT TYPE="text" NAME="name" value="<%=GroupName%>" ></TD>
  289. </TR>
  290. <tr>
  291. <td> ȝ</td>
  292. <td>
  293. <select name="accountType">
  294. <option value="-1" selected="selected"> </option>
  295. <%
  296. set rs=Conn.Execute("select * from glAccountTypes")
  297. while not rs.eof
  298. %>
  299. <option value="<%=rs("id")%>">
  300. <%=rs("name")& " (" &rs("name_en")& ")"%>
  301. </option>
  302. <%
  303. rs.moveNext
  304. wend
  305. %>
  306. </select>
  307. </td>
  308. </tr>
  309. <tr>
  310. <td colspan="2">* ȝ </td>
  311. </tr>
  312. <TR>
  313. <TD colspan=2 align=center>
  314. <BR><BR>
  315. <INPUT TYPE="submit" value=""class="GenButton">
  316. <INPUT TYPE="button" value=""class="GenButton" onclick="window.location='AccountInfo.asp?act=groups&SuperGroupID=<%=SuperGroupID%>'">
  317. </TD>
  318. </TR>
  319. </FORM>
  320. </TABLE>
  321. <%
  322. '========================================
  323. '====================================================
  324. elseif submit="" then
  325. Set RS2 = conn.Execute("SELECT * FROM GLAccounts WHERE (GL = "& OpenGL & ") AND (GLGroup = "& GroupID & ")")
  326. if not RS2.EOF then
  327. response.write "<BR><BR><BR><BR><CENTER>! . ."
  328. response.write "<BR><BR><A HREF='AccountInfo.asp?act=groups&SuperGroupID=" & SuperGroupID & "'>ѐ</A></CENTER>"
  329. response.end
  330. else
  331. conn.Execute("DELETE FROM GLAccountGroups WHERE (ID = "& GroupID & ") AND (GL = "& OpenGL & ")")
  332. response.redirect "AccountInfo.asp?act=groups&SuperGroupID=" & SuperGroupID
  333. end if
  334. end if
  335. ' * * * * * * * *
  336. ' * * * * * * * *
  337. ' * * * * * * * *
  338. ' * * * * * * * *
  339. ' * * * * * * * *
  340. ' * * * * * * * *
  341. ' * * * * * * * *
  342. ' * * * * * * * * Account Super Groups
  343. ' * * * * * * * *
  344. ' * * * * * * * *
  345. ' * * * * * * * *
  346. ' * * * * * * * *
  347. ' * * * * * * * *
  348. ' * * * * * * * *
  349. ' * * * * * * * *
  350. '-----------------------------------------------------------------------------------------------------
  351. '----------------------------------------------------------------- Edit GL Account Super Groups submit
  352. '-----------------------------------------------------------------------------------------------------
  353. elseif request("act")="EditAccountSuperGroupSubmit" then
  354. name = request("name")
  355. SuperGroupID = request("SuperGroupID")
  356. SuperGroupType = request("type")
  357. conn.Execute("UPDATE GLAccountSuperGroups SET type="& SuperGroupType & ", Name = N'"& name & "' WHERE (ID = "& SuperGroupID & ") AND (GL = "& OpenGL & ")")
  358. if cint(request("accountType"))<>-1 then
  359. conn.Execute("update glAccounts set accountType=" & request("accountType") & "where gl=" & openGL & " and glGroup in (select id from GLAccountGroups where gl=" &openGL& " and glSuperGroup=" &SuperGroupID& ")")
  360. end if
  361. response.redirect "AccountInfo.asp"
  362. '-----------------------------------------------------------------------------------------------------
  363. '------------------------------------------------------------------ Add GL Account Super Groups submit
  364. '-----------------------------------------------------------------------------------------------------
  365. elseif request("act")="NewAccountSuperGroupSubmit" then
  366. name = request("name")
  367. SuperGroupID = request("SuperGroupID")
  368. SuperGroupType= request("type")
  369. Set RS2 = conn.Execute("SELECT * FROM GLAccountSuperGroups WHERE ID="& SuperGroupID & " AND GL="& OpenGL )
  370. if not RS2.EOF then
  371. response.write "<BR><BR><BR><BR><CENTER>! ѐ "
  372. response.write "<BR><BR><A HREF='AccountInfo.asp?act=editAccountSuperGroupForms&submit= ѐ'>ѐ</A></CENTER>"
  373. response.end
  374. else
  375. conn.Execute("INSERT INTO GLAccountSuperGroups (type, Name, GL, ID) VALUES ("& SuperGroupType & ", N'"& name & "',"& OpenGL & ", "& SuperGroupID & ")")
  376. response.redirect "AccountInfo.asp"
  377. end if
  378. '-----------------------------------------------------------------------------------------------------
  379. '---------------------------------------------------- Add / Delete / Edit GL Account Super Groups Form
  380. '-----------------------------------------------------------------------------------------------------
  381. elseif request("act")="editAccountSuperGroupForms" then
  382. submit = request("submit")
  383. SuperGroupID = request("SuperGroupID")
  384. '====================================== ѐ
  385. '====================================================
  386. if submit=" ѐ" then
  387. Set RS2 = conn.Execute("SELECT MAX(id) AS MaxID FROM GLAccountSuperGroups WHERE GL="& OpenGL )
  388. MaxID=RS2("MaxID")
  389. if isnull(MaxID) then MaxID= 0
  390. %>
  391. <BR><BR>
  392. <TABLE align=center>
  393. <FORM METHOD=POST ACTION="editGL.asp?act=NewAccountSuperGroupSubmit">
  394. <TR>
  395. <TD colspan=2 align=center><H3> ѐ</H3><BR>
  396. <%=OpenGLName%> ( <%=FiscalYear%>)
  397. <BR><BR><BR>
  398. </TD>
  399. </TR>
  400. <TR>
  401. <TD> ѐ</TD>
  402. <TD><INPUT TYPE="text" NAME="SuperGroupID" onkeypress="return maskNumber(this)" maxlength=5 value="<%=MaxID+1000%>"></TD>
  403. </TR>
  404. <TR>
  405. <TD> ѐ </TD>
  406. <TD><INPUT TYPE="text" NAME="name"></TD>
  407. </TR>
  408. <TR>
  409. <TD> ѐ</TD>
  410. <TD>
  411. <SELECT NAME="type">
  412. <option value=1> ( )</option>
  413. <option value=2> ( )</option>
  414. <option value=3> ( )</option>
  415. <option value=4> / </option>
  416. <option value=5> / </option>
  417. </SELECT>
  418. </TD>
  419. </TR>
  420. <TR>
  421. <TD colspan=2 align=center>
  422. <BR><BR>
  423. <INPUT TYPE="submit" value=""class="GenButton">
  424. <INPUT TYPE="button" value=""class="GenButton" onclick="window.location='AccountInfo.asp'">
  425. </TD>
  426. </TR>
  427. </FORM>
  428. </TABLE>
  429. <%
  430. '====================================== ѐ
  431. '====================================================
  432. elseif submit="" then
  433. Set RS2 = conn.Execute("SELECT * FROM GLAccountSuperGroups WHERE ID="& SuperGroupID & " AND GL="& OpenGL )
  434. SuperGroupName=RS2("name")
  435. SuperGroupType=RS2("type")
  436. %>
  437. <BR><BR>
  438. <TABLE align=center>
  439. <FORM METHOD=POST ACTION="editGL.asp?act=EditAccountSuperGroupSubmit">
  440. <TR>
  441. <TD colspan=2 align=center><H3> ѐ</H3><BR>
  442. <%=OpenGLName%> ( <%=FiscalYear%>)
  443. <BR><BR><BR>
  444. </TD>
  445. </TR>
  446. <TR>
  447. <TD> ѐ</TD>
  448. <TD><INPUT TYPE="text" NAME="SuperGroupID" onkeypress="return maskNumber(this)" maxlength=5 value="<%=SuperGroupID%>" readonly></TD>
  449. </TR>
  450. <TR>
  451. <TD> ѐ</TD>
  452. <TD><INPUT TYPE="text" NAME="name" value="<%=SuperGroupName%>" ></TD>
  453. </TR>
  454. <TR>
  455. <TD> ѐ</TD>
  456. <TD>
  457. <SELECT NAME="type">
  458. <option <% if SuperGroupType=1 then %>selected<% end if %> value=1> ( )</option>
  459. <option <% if SuperGroupType=2 then %>selected<% end if %> value=2> ( )</option>
  460. <option <% if SuperGroupType=3 then %>selected<% end if %> value=3> ( )</option>
  461. <option <% if SuperGroupType=4 then %>selected<% end if %> value=4> / </option>
  462. <option <% if SuperGroupType=5 then %>selected<% end if %> value=5> / </option>
  463. </SELECT>
  464. </TD>
  465. </TR>
  466. <tr>
  467. <td> ȝ</td>
  468. <td>
  469. <select name="accountType">
  470. <option value="-1" selected="selected"> </option>
  471. <%
  472. set rs=Conn.Execute("select * from glAccountTypes")
  473. while not rs.eof
  474. %>
  475. <option value="<%=rs("id")%>">
  476. <%=rs("name")& " (" &rs("name_en")& ")"%>
  477. </option>
  478. <%
  479. rs.moveNext
  480. wend
  481. %>
  482. </select>
  483. </td>
  484. </tr>
  485. <tr>
  486. <td colspan="2">* ȝ </td>
  487. </tr>
  488. <TR>
  489. <TD colspan=2 align=center>
  490. <BR><BR>
  491. <INPUT TYPE="submit" value=""class="GenButton">
  492. <INPUT TYPE="button" value=""class="GenButton" onclick="window.location='AccountInfo.asp'">
  493. </TD>
  494. </TR>
  495. </FORM>
  496. </TABLE>
  497. <%
  498. '======================================== ѐ
  499. '====================================================
  500. elseif submit="" then
  501. Set RS2 = conn.Execute("SELECT * FROM GLAccountGroups WHERE (GL = "& OpenGL & ") AND (GLSuperGroup = "& SuperGroupID & ")")
  502. if not RS2.EOF then
  503. response.write "<BR><BR><BR><BR><CENTER>! ѐ . ."
  504. response.write "<BR><BR><A HREF='AccountInfo.asp'>ѐ</A></CENTER>"
  505. response.end
  506. else
  507. conn.Execute("DELETE FROM GLAccountSuperGroups WHERE (ID = "& SuperGroupID & ") AND (GL = "& OpenGL & ")")
  508. response.redirect "AccountInfo.asp"
  509. end if
  510. end if
  511. end if
  512. %>