/beta/Inquiry/RevInvoiceInput.asp

http://github.com/khaneh/Orders · ASP · 409 lines · 386 code · 19 blank · 4 comment · 13 complexity · 4978620de0d27bcf5ddcc775e9333395 MD5 · raw file

  1. <%@LANGUAGE="VBSCRIPT" CODEPAGE="1256"%><%
  2. 'AR (6)
  3. PageTitle=" ѐ "
  4. SubmenuItem=4
  5. if not Auth(6 , 4) then NotAllowdToViewThisPage()
  6. %>
  7. <!--#include file="top.asp" -->
  8. <!--#include File="../include_farsiDateHandling.asp"-->
  9. <!--#include File="../include_JS_InputMasks.asp"-->
  10. <%
  11. function ShowErrorMessage(msg)
  12. response.write "<table align='center' cellpadding='5'><tr><td bgcolor='#FFCCCC' dir='rtl' align='center'> ! <br>"& msg & "<br></td></tr></table><br>"
  13. end function
  14. function Link2Trace(OrderNo)
  15. Link2Trace="<A HREF='../order/TraceOrder.asp?act=show&order="& OrderNo & "' target='_balnk'>"& OrderNo & "</A>"
  16. end function
  17. %>
  18. <style>
  19. Table { font-size: 9pt;}
  20. .InvRowInput { font-family:tahoma; font-size: 9pt; border: none; background-color: #F0F0F0; text-align:right;}
  21. .InvHeadInput { font-family:tahoma; font-size: 9pt; border: none; background-color: #CCCC88; text-align:center;}
  22. .InvRowInput2 { font-family:tahoma; font-size: 9pt; border: none; background-color: #F0FFF0; text-align:right;}
  23. .InvHeadInput2 { font-family:tahoma; font-size: 9pt; border: none; background-color: #AACC77; text-align:center;}
  24. .InvHeadInput3 { font-family:tahoma; font-size: 9pt; border: none; background-color: #F0F0F0; text-align:right;}
  25. .InvGenInput { font-family:tahoma; font-size: 9pt; border: none; }
  26. .InvGenButton { font-family:tahoma; font-size: 9pt; border: 1px solid black; }
  27. </style>
  28. <SCRIPT LANGUAGE="JavaScript">
  29. <!--
  30. var okToProceed=false;
  31. var currentRow=0;
  32. //-->
  33. </SCRIPT>
  34. <%
  35. if request("act")="submitsearch" then
  36. if trim(request("query")) <> "" then
  37. if isnumeric(request("query")) then
  38. SO_Order=clng(request("query"))
  39. SO_Action="return true;"
  40. SO_StepText="<br> : "
  41. %>
  42. <FORM METHOD=POST ACTION="?act=getInvoice">
  43. <!--#include File="include_SelectClosedOrdersByOrder.asp"-->
  44. </FORM>
  45. <%if Auth(6 , "K") then ' Has the priviledge to create a ReverseInvoice without an ORDER %>
  46. <p align='center' style='font-size:9pt;' dir='RTL'><a href='?act=getInvoice&selectedCustomer=<%=SO_Customer%>'> ...</a></p>
  47. <%end if%>
  48. <br>
  49. <% else
  50. SA_TitleOrName=request("query")
  51. SA_Action="return true;"
  52. SA_SearchAgainURL="RevInvoiceInput.asp"
  53. SA_StepText=" : "
  54. %>
  55. <FORM METHOD=POST ACTION="?act=selectOrder">
  56. <!--#include File="include_SelectAccount.asp"-->
  57. </FORM>
  58. <%
  59. end if
  60. else
  61. response.redirect "?errmsg=" & Server.URLEncode(" э !")
  62. end if
  63. elseif request("act")="selectOrder" then
  64. if request("selectedCustomer") <> "" then
  65. SO_Customer=request("selectedCustomer")
  66. SO_Action="return true;"
  67. SO_StepText="<br> : "
  68. %>
  69. <FORM METHOD=POST ACTION="?act=getInvoice">
  70. <!--#include File="include_SelectClosedOrder.asp"-->
  71. </FORM>
  72. <%if Auth(6 , "K") then ' Has the priviledge to create a ReverseInvoice without an ORDER %>
  73. <p align='center' style='font-size:9pt;' dir='RTL'><a href='?act=getInvoice&selectedCustomer=<%=SO_Customer%>'> ...</a></p>
  74. <%end if%>
  75. <br>
  76. <%
  77. end if
  78. elseif request("act")="getInvoice" then
  79. %>
  80. <!--#include file="include_JS_for_Invoices.asp" -->
  81. <%
  82. customerID=request("selectedCustomer")
  83. mySQL="SELECT * FROM Accounts WHERE (ID='"& CustomerID & "')"
  84. Set RS1 = conn.Execute(mySQL)
  85. customerName=RS1("AccountTitle")
  86. creationDate=shamsiToday()
  87. ' creationTime=Hour(creationTime)&":"&Minute(creationTime)
  88. ' if instr(creationTime,":")<3 then creationTime="0" & creationTime
  89. ' if len(creationTime)<5 then creationTime=Left(creationTime,3) & "0" & Right(creationTime,1)
  90. InvoiceLinesNo=1
  91. %>
  92. <!-- ѐ -->
  93. <br>
  94. <input type="hidden" Name='tmpDlgArg' value=''>
  95. <input type="hidden" Name='tmpDlgTxt' value=''>
  96. <table Border="0" align="center" Width="100%" Cellspacing="1" Cellpadding="0" Dir="RTL" bgcolor="#558855">
  97. <FORM METHOD=POST ACTION="?act=submitInvoice">
  98. <tr bgcolor='#C3C300'>
  99. <td colspan="2"><TABLE Border="0" Width="100%" Cellspacing="1" Cellpadding="0" Dir="RTL"><TR>
  100. <TD><table>
  101. <tr>
  102. <td align="left">:</td>
  103. <td align="right">
  104. <span id="customer"><%' after any changes in this span "./Customers.asp" must be revised%>
  105. <INPUT TYPE="hidden" NAME="customerID" value="<%=customerID%>"><span><%=CustomerName%></span>.
  106. </span></td>
  107. <td><INPUT class="InvGenButton" TYPE="button" value="" onClick="selectCustomer();"></td>
  108. </tr>
  109. </table></TD>
  110. <TD align="left"><table>
  111. <tr>
  112. <td align="left">:</td>
  113. <td dir="LTR">
  114. <INPUT class="InvGenInput" NAME="InvoiceDate" TYPE="text" maxlength="10" size="10" value="<%=CreationDate%>"></td>
  115. <td dir="RTL"><%=weekdayname(weekday(date))%></td>
  116. </tr>
  117. </table></TD>
  118. </TR></TABLE>
  119. </td>
  120. </tr>
  121. <tr bgcolor='#C3C300'>
  122. <TD align="right" width="50%">
  123. ():
  124. <span id="orders">
  125. <%
  126. tempWriteAnd=""
  127. for i=1 to request.form("selectedOrders").count
  128. response.write "<input type='hidden' name='selectedOrders' value='"& request.form("selectedOrders")(i)& "'>"
  129. response.write tempWriteAnd & Link2Trace(request.form("selectedOrders")(i))
  130. tempWriteAnd=" "
  131. next
  132. %>
  133. </span>&nbsp;
  134. <INPUT class="InvGenButton" TYPE="button" value="" onClick="selectOrder();">
  135. </TD>
  136. <TD align="left"><table>
  137. <tr>
  138. <td align="left">:</td>
  139. <td dir="LTR">
  140. <INPUT class="InvGenInput" NAME="InvoiceNo" style="border:1px solid black;" TYPE="text" maxlength="10" size="10"></td>
  141. <td dir="RTL"><INPUT TYPE="checkbox" NAME="IsA"> &nbsp;</td>
  142. </tr>
  143. </table></TD>
  144. </tr>
  145. <tr bgcolor='#CCCC88'>
  146. <TD colspan="10"><div>
  147. <TABLE Border="0" Cellspacing="1" Cellpadding="0" Dir="RTL" bgcolor="#558855">
  148. <tr bgcolor='#CCCC88'>
  149. <td align='center' width="25px"> # </td>
  150. <td><INPUT class="InvHeadInput" readonly TYPE="text" value="" size="3" ></td>
  151. <td><INPUT class="InvHeadInput2" readonly TYPE="text" value="" size="30"></td>
  152. <td><INPUT class="InvHeadInput2" readonly TYPE="text" Value="" size="2"></td>
  153. <td><INPUT class="InvHeadInput2" readonly TYPE="text" Value="" size="2"></td>
  154. <td><INPUT class="InvHeadInput2" readonly TYPE="text" Value="" size="3"></td>
  155. <td><INPUT class="InvHeadInput2" readonly TYPE="text" Value="" size="2"></td>
  156. <td><INPUT class="InvHeadInput" readonly TYPE="text" Value=" " size="6"></td>
  157. <td><INPUT class="InvHeadInput" readonly TYPE="text" Value="" size="7"></td>
  158. <td><INPUT class="InvHeadInput" readonly TYPE="text" Value="" size="9"></td>
  159. <!--S A M-->
  160. <td><INPUT class="InvHeadInput" readonly TYPE="text" Value=""size="7"></td>
  161. <td><INPUT class="InvHeadInput" readonly TYPE="text" Value="ѐ" size="5"></td>
  162. <td><INPUT class="InvHeadInput" readonly TYPE="text" Value="" size="6"></td>
  163. <td><INPUT class="InvHeadInput2" readonly TYPE="text" Value=" " size="9"></td>
  164. </tr>
  165. </TABLE></div></TD>
  166. </TR>
  167. <tr bgcolor='#CCCC88'>
  168. <TD colspan="10"><div style="overflow:auto; height:250px; width:*;">
  169. <TABLE Border="0" Cellspacing="1" Cellpadding="0" Dir="RTL" bgcolor="#558855">
  170. <Tbody id="InvoiceLines">
  171. <%
  172. for i=1 to 1
  173. %>
  174. <tr bgcolor='#F0F0F0' onclick="setCurrentRow(this.rowIndex);" >
  175. <td align='center' width="25px"><%=i%></td>
  176. <td dir="LTR"><INPUT class="InvRowInput" TYPE="text" NAME="Items" size="3" onKeyPress="return mask(this);" onfocus="setCurrentRow(this.parentNode.parentNode.rowIndex);" onBlur='check(this);'>
  177. <INPUT TYPE="hidden" name="type" value=0>
  178. <INPUT TYPE="hidden" name="fee" value=0>
  179. </td>
  180. <td dir="RTL"><INPUT class="InvRowInput2" TYPE="text" NAME="Descriptions" size="30"></td>
  181. <td dir="LTR"><INPUT class="InvRowInput2" TYPE="text" NAME="Lengths" size="2" onBlur="setFeeQtty(this);"></td>
  182. <td dir="LTR"><INPUT class="InvRowInput2" TYPE="text" NAME="Widths" size="2" onBlur="setFeeQtty(this);"></td>
  183. <td dir="LTR"><INPUT class="InvRowInput2" TYPE="text" NAME="Qttys" size="3" onBlur="setFeeQtty(this);"></td>
  184. <td dir="LTR"><INPUT class="InvRowInput2" TYPE="text" NAME="Sets" size="2" onBlur="setFeeQtty(this);"></td>
  185. <td dir="LTR"><INPUT class="InvRowInput" TYPE="text" NAME="AppQttys" size="6" onBlur="setPrice(this);"></td>
  186. <td dir="LTR"><INPUT class="InvRowInput" TYPE="text" NAME="Fees" size="7" onBlur="setPrice(this);"></td>
  187. <td dir="LTR"><INPUT class="InvRowInput" TYPE="text" NAME="Prices" size="9" readonly tabIndex="9999"></td>
  188. <!--S A M-->
  189. <td dir="LTR"><INPUT class="InvRowInput" TYPE="text" NAME="Discounts" size="7" onBlur="setPrice(this);"></td>
  190. <td dir="LTR"><INPUT class="InvRowInput" TYPE="text" NAME="Reverses" size="5" onBlur="setPrice(this);" onfocus="setCurrentRow(this.parentNode.parentNode.rowIndex);"></td>
  191. <td dir="LTR"><INPUT class="InvRowInput" TYPE="text" NAME="Vat" size="6" readonly></td>
  192. <td dir="LTR"><INPUT class="InvRowInput2" TYPE="text" NAME="AppPrices" size="9" readonly tabIndex="9999"></td>
  193. </tr>
  194. <%
  195. next
  196. %>
  197. <tr bgcolor='#F0F0F0' onclick="setCurrentRow(this.rowIndex);" >
  198. <td colspan="15">
  199. <INPUT class="InvGenButton" TYPE="button" value="" onkeyDown="if(event.keyCode==9) {setCurrentRow(this.parentNode.parentNode.rowIndex); return false;};" onClick="addRow();">
  200. </td>
  201. </tr>
  202. </Tbody></TABLE></div>
  203. </TD>
  204. </tr>
  205. <tr bgcolor='#CCCC88'>
  206. <TD colspan="10"><div>
  207. <TABLE Border="0" Cellspacing="1" Cellpadding="0" Dir="RTL" bgcolor="#CCCC88">
  208. <tr bgcolor='#CCCC88'>
  209. <td align='center' width="25px"> &nbsp; </td>
  210. <td><INPUT readonly class="InvHeadInput" TYPE="text" size="3" ></td>
  211. <td><INPUT readonly class="InvHeadInput" TYPE="text" size="30"></td>
  212. <td><INPUT readonly class="InvHeadInput" TYPE="text" size="2"></td>
  213. <td><INPUT readonly class="InvHeadInput" TYPE="text" size="2"></td>
  214. <td><INPUT readonly class="InvHeadInput" TYPE="text" size="3"></td>
  215. <td><INPUT readonly class="InvHeadInput" TYPE="text" size="2"></td>
  216. <td><INPUT readonly class="InvHeadInput" TYPE="text" size="6"></td>
  217. <td><INPUT readonly class="InvHeadInput" TYPE="text" size="7"></td>
  218. <td dir="LTR"><INPUT readonly class="InvHeadInput3" Name="TotalPrice" TYPE="text" size="9"></td>
  219. <td dir="LTR"><INPUT readonly class="InvHeadInput3" Name="TotalDiscount" TYPE="text" size="7"></td>
  220. <td dir="LTR"><INPUT readonly class="InvHeadInput3" Name="TotalReverse" TYPE="text" size="5"></td>
  221. <td dir="LTR"><INPUT readonly class="InvHeadInput3" Name="TotalVat" TYPE="text" size="6"
  222. <td dir="LTR"><INPUT readonly class="InvHeadInput3" Name="TotalAppPrice" TYPE="text" size="9"></td>
  223. </tr>
  224. <tr bgcolor='#CCCC88'>
  225. <td colspan="9"> &nbsp; </td>
  226. <td dir="LTR"><INPUT readonly class="InvHeadInput" TYPE="text" size="9"></td>
  227. <td dir="LTR"><INPUT readonly class="InvHeadInput3" TYPE="text" Name="TPDiscount" size="7"></td>
  228. <td dir="LTR"><INPUT readonly class="InvHeadInput3" TYPE="text" Name="TPReverse" size="5"></td>
  229. <td dir="LTR"><INPUT readonly class="InvHeadInput3" TYPE="text" value="3%" size="6"></td>
  230. <td dir="LTR"><INPUT readonly class="InvHeadInput" TYPE="text" size="9"></td>
  231. </tr>
  232. </TABLE></div></TD>
  233. </TR>
  234. </table><br>
  235. <TABLE Border="0" Cellspacing="5" Cellpadding="0" Dir="RTL" align='left'>
  236. <tr>
  237. <td align='center'><INPUT class="InvGenButton" TYPE="button" value=" ѐ ..." onclick="submitOperations();"></td>
  238. <td align='center'><INPUT class="InvGenButton" TYPE="button" value="" onclick="window.close();"></td>
  239. </tr>
  240. </TABLE>
  241. </FORM>
  242. <SCRIPT LANGUAGE="JavaScript">
  243. <!--
  244. document.getElementsByName("Items")[0].focus();
  245. //-->
  246. </SCRIPT>
  247. <%elseif request("act")="submitInvoice" then
  248. InvoiceDate=request.form("InvoiceDate")
  249. CustomerID=request.form("CustomerID")
  250. InvoiceNo=request.form("InvoiceNo")
  251. if request.form("IsA") = "on" then IsA=1 else IsA=0
  252. TotalPrice=text2value(request.form("TotalPrice"))
  253. TotalDiscount=text2value(request.form("TotalDiscount"))
  254. TotalReverse=text2value(request.form("TotalReverse"))
  255. TotalReceivable=text2value(request.form("TotalAppPrice"))
  256. TotalVat = text2value(request.form("TotalVat"))' S A M CHANGE THIS
  257. mySQL="INSERT INTO Invoices (IsReverse, CreatedDate, CreatedBy, Customer, Number, TotalPrice, TotalDiscount, TotalReverse, TotalReceivable, IsA, TotalVat) VALUES (1, N'"& InvoiceDate & "', '"& session("ID") & "', '"& CustomerID & "', '"& InvoiceNo & "', '"& TotalPrice & "', '"& TotalDiscount & "', '"& TotalReverse & "', '"& TotalReceivable & "', '"& IsA & "', '" & TotalVat & "')"
  258. conn.Execute(mySQL)
  259. mySQL="SELECT MAX(ID) AS lastID FROM Invoices WHERE (IsReverse=1 AND CreatedBy='"& session("ID") & "' AND Customer='"& CustomerID & "' AND TotalPrice='"& TotalPrice & "')"
  260. Set RS1 = conn.Execute(mySQL)
  261. InvoiceID=RS1("lastID")
  262. RS1.close
  263. %>
  264. <hr>
  265. <TABLE Border="0" Cellspacing="1" Cellpadding="0" Dir="RTL" bgcolor="#558855" align="center">
  266. <tr bgcolor='#CCCC88'>
  267. <td align='center' width="25px"> # </td>
  268. <td><INPUT readonly class="InvHeadInput" TYPE="text" value="" size="4" ></td>
  269. <td><INPUT readonly class="InvHeadInput2" TYPE="text" value="" size="30"></td>
  270. <td><INPUT readonly class="InvHeadInput2" TYPE="text" Value="" size="2"></td>
  271. <td><INPUT readonly class="InvHeadInput2" TYPE="text" Value="" size="2"></td>
  272. <td><INPUT readonly class="InvHeadInput2" TYPE="text" Value="" size="3"></td>
  273. <td><INPUT readonly class="InvHeadInput2" TYPE="text" Value="" size="2"></td>
  274. <td><INPUT readonly class="InvHeadInput" TYPE="text" Value=" " size="6"></td>
  275. <td><INPUT readonly class="InvHeadInput" TYPE="text" Value="" size="7"></td>
  276. <td><INPUT readonly class="InvHeadInput" TYPE="text" Value="" size="9"></td>
  277. <!--S A M-->
  278. <td><INPUT readonly class="InvHeadInput" TYPE="text" Value=""size="7"></td>
  279. <td><INPUT readonly class="InvHeadInput" TYPE="text" Value="ѐ" size="5"></td>
  280. <td><INPUT readonly class="InvHeadInput" TYPE="text" Value="" size="6"></td>
  281. <td><INPUT readonly class="InvHeadInput2" TYPE="text" Value=" " size="9"></td>
  282. </tr>
  283. <% for i=1 to request.form("Items").count
  284. theItem = text2value(request.form("Items")(i))
  285. theDescription = request.form("Descriptions")(i)
  286. theLength = text2value(request.form("Lengths")(i))
  287. theWidth = text2value(request.form("Widths")(i))
  288. theQtty = text2value(request.form("Qttys")(i))
  289. theSets = text2value(request.form("Sets")(i))
  290. theAppQtty = text2value(request.form("AppQttys")(i))
  291. theFee = text2value(request.form("Fees")(i))
  292. thePrice = text2value(request.form("Prices")(i))
  293. theDiscount = text2value(request.form("Discounts")(i))
  294. theReverse = text2value(request.form("Reverses")(i))
  295. theAppPrice = text2value(request.form("AppPrices")(i))
  296. theVat = text2value(reguest.form("Vat")(i))
  297. mySQL="INSERT INTO InvoiceLines (Invoice, Item, Description, Length, Width, Qtty, Sets, AppQtty, Price, Discount, Reverse, Vat) VALUES ('"& InvoiceID & "', '" & theItem & "', N'" & theDescription & "', '" & theLength & "', '" & theWidth & "', '" & theQtty & "', '" & theSets & "', '" & theAppQtty & "', '" & thePrice & "', '" & theDiscount & "', '" & theReverse & "', '" & theVat & "')"
  298. conn.Execute(mySQL)
  299. %>
  300. <tr bgcolor='#F0F0F0' height="20px">
  301. <td align='center' width="25px"><%=i%></td>
  302. <td align='right' dir="LTR"><%=Separate(theItem)%></td>
  303. <td dir="RTL" width="170px"><%=theDescription%></td>
  304. <td align='right' dir="LTR"><%=Separate(theLength)%></td>
  305. <td align='right' dir="LTR"><%=Separate(theWidth)%></td>
  306. <td align='right' dir="LTR"><%=Separate(theQtty)%></td>
  307. <td align='right' dir="LTR"><%=Separate(theSets)%></td>
  308. <td align='right' dir="LTR"><%=Separate(theAppQtty)%></td>
  309. <td align='right' dir="LTR"><%=Separate(theFee)%></td>
  310. <td align='right' dir="LTR"><%=Separate(thePrice)%></td>
  311. <td align='right' dir="LTR"><%=Separate(theDiscount)%></td>
  312. <td align='right' dir="LTR"><%=Separate(theReverse)%></td>
  313. <td align='right' dir="LTR"><%=Separate(theVat)%></td>
  314. <td align='right' dir="LTR"><%=Separate(theAppPrice)%></td>
  315. </tr>
  316. <% next %>
  317. <tr>
  318. <td colspan="13"></td>
  319. </tr>
  320. <tr bgcolor='#CCCC88' height="20px">
  321. <td colspan="9"> &nbsp; </td>
  322. <td align='right' dir="LTR" bgcolor="#F0F0F0"><%=Separate(TotalPrice)%></td>
  323. <td align='right' dir="LTR" bgcolor="#F0F0F0"><%=Separate(TotalDiscount)%></td>
  324. <td align='right' dir="LTR" bgcolor="#F0F0F0"><%=Separate(TotalReverse)%></td>
  325. <td align='right' dir="LTR" bgcolor="#F0F0F0"><%=Separate(TotalVat)%></td>
  326. <td align='right' dir="LTR" bgcolor="#F0F0F0"><%=Separate(TotalReceivable)%></td>
  327. </tr>
  328. <tr bgcolor='#CCCC88' height="20px">
  329. <td colspan="10"> &nbsp; </td>
  330. <td align='right' dir="LTR" bgcolor="#F0F0F0"><%=Pourcent(TotalDiscount,TotalPrice) & "%"%></td>
  331. <td align='right' dir="LTR" bgcolor="#F0F0F0"><%=Pourcent(TotalReverse,TotalPrice) & "%ѐ"%></td>
  332. <td align='right' dir="LTR" bgcolor="#F0F0F0"></td>
  333. <td>&nbsp;</td>
  334. </tr>
  335. </TABLE>
  336. <hr>
  337. <%
  338. for i=1 to request.form("selectedOrders").count
  339. theOrder=request.form("selectedOrders")(i)
  340. mySQL="INSERT INTO InvoiceOrderRelations (Invoice,[Order]) VALUES ('" & InvoiceID & "', '" & theOrder & "')"
  341. conn.Execute(mySQL)
  342. next
  343. %>
  344. <!-- ѐ ... -->
  345. <div dir='rtl'><B> ѐ ...</B>
  346. <br>:'<%=CustomerID%>'
  347. <br> ѐ :'<%=InvoiceID%>'<br>
  348. <input class="InvGenInput" type="button" value="" onclick="window.close();">
  349. </div>
  350. <%
  351. response.redirect "AccountReport.asp?act=showInvoice&invoice=" & InvoiceID
  352. else%>
  353. <!-- -->
  354. <%if Auth(6 , 4) then %>
  355. <br>
  356. <br>
  357. <FORM METHOD=POST ACTION="?act=submitsearch" onsubmit="if (document.all.query.value=='') return false;">
  358. <div dir='rtl'><B><FONT SIZE="" COLOR="red"> &nbsp; : </FONT><BR> </B>
  359. <INPUT TYPE="text" NAME="query">&nbsp;
  360. <INPUT TYPE="submit" value=""><br>
  361. </div>
  362. </FORM>
  363. <%end if %>
  364. <!-- -->
  365. <%if Auth(6 , 5) then %>
  366. <br>
  367. <hr>
  368. <br>
  369. <br>
  370. <FORM METHOD=POST ACTION="InvoiceEdit.asp?act=search" onsubmit="if (document.all.order.value=='' && document.all.invoice.value=='') return false;">
  371. <div dir='rtl'>&nbsp;<B><FONT SIZE="" COLOR="red"> :</FONT><BR> </B>
  372. <INPUT style="font-family:Tahoma;" TYPE="text" NAME="order">&nbsp;
  373. <INPUT style="font-family:Tahoma;" TYPE="submit" value="..."><br><br>
  374. <Blockquote>
  375. :<br><INPUT style="font-family:Tahoma;width:100px;" TYPE="text" NAME="invoice"><br>
  376. <INPUT style="font-family:Tahoma;" TYPE="submit" value="..."><br><br>
  377. </Blockquote>
  378. </div>
  379. </FORM>
  380. <%end if %>
  381. <SCRIPT LANGUAGE="JavaScript">
  382. <!--
  383. document.all.query.focus();
  384. //-->
  385. </SCRIPT>
  386. <%
  387. end if
  388. conn.Close
  389. %>
  390. <!--#include file="tah.asp" -->