Advertisement
Guest User

Untitled

a guest
May 15th, 2017
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.64 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by deZender.Net
  5. * @ deZender (PHP4 Decoder for eAccelerator & MMCache)
  6. *
  7. * @ Version : 1.1.3.0
  8. * @ Author : DeZender
  9. * @ Release on : 17.05.2011
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function myrendertemplatelistdatatable($rsResult) {
  15. $strIMG = '<img src="../images/dot.gif" width="14" height="14" alt="-">';
  16. $strALT = array( '', ' class="alt_grid"' );
  17. $intTRCount = 0;
  18. $strRet = '';
  19.  
  20. while ($objRow = mysql_fetch_object( $rsResult )) {
  21. $strRet = $strRet = $strRet = $strRet . '<tr' . $strALT[$intTRCount % 2] . ( '><td>' . $strIMG ) . '<td><a href="javascript:GoEdit(' . $objRow->Autokey . ')">' . htmlspecialchars( $objRow->CourseDesc . ' / ' . $objRow->YearDesc ) . '</a></td>' . '<td>' . htmlspecialchars( trim( $objRow->Remarks ) ) . '</td>';
  22. $strRet .= '</tr>';
  23. ++$intTRCount;
  24. }
  25.  
  26. return $strRet;
  27. }
  28.  
  29. function myrenderitemtemplate($intHandle, $rsResult, $strRights, $strDefaultStore, $intPOSPendTranskey) {
  30. $strIMG = '<img height="16" src="../images/line_okay.gif" width="20">';
  31. $strSRA = 'style="text-align: right"';
  32. $intTRCount = 0;
  33. $strRetT = '';
  34. $strRet = '';
  35. $strRet1 = '';
  36. $strRet2 = '';
  37. $strRet3 = '';
  38. $dateToday = date( 'Y-m-d', strtotime( 'now' ) );
  39. $totalPrice = 0;
  40. $intS = 0;
  41. $intB = 0;
  42. $intU = 0;
  43. $intO = 0;
  44. $intT = 0;
  45.  
  46. while ($objRow = mysql_fetch_object( $rsResult )) {
  47. $isSetPurch = '';
  48. $txtQuantity = $objRow->Quantity;
  49.  
  50. if (!( strlen( $objRow->SKUDesc ))) {
  51. $txtDescription = $objRow->SKUDescription;
  52. } else {
  53. $txtDescription = $objRow->SKUDesc;
  54. }
  55.  
  56. ++$intTRCount;
  57. $arrSellPrice = explode( '|', mygetsellprice( $intHandle, $objRow->SKUCode, $strDefaultStore, $dateToday ) );
  58.  
  59. if (strstr( $objRow->SKUCode, 'BKSTEMP' )) {
  60. $intQuantity = (int)$intQuantity = myselectitem( $intHandle, $objRow->SKUCode, 'StudMatlTemplateDetl', 'SKUCode', 'Quantity' );
  61. $arrSellPrice[2] = $intPrice = (int)$arrSellPrice[2] / $intQuantity;
  62. }
  63.  
  64. $strQ = 'SELECT POSPendingTransDetl.Autokey, POSPendingTransDetl.Quantity FROM POSPendingTransDetl INNER JOIN POSPendingTransMain ON POSPendingTransMain.Autokey = POSPendingTransDetl.Issuedkey ';
  65. $strQ .= 'WHERE Issuedkey = \'' . $intPOSPendTranskey . '\' AND SKUCode = \'' . $objRow->SKUCode . '\' ';
  66.  
  67. if (1 <= mysql_num_rows( $rsPend = myselectdb( $strQ, $intHandle ) )) {
  68. list( $intPendkey, $intPendQty ) = mysql_fetch_row( $rsPend );
  69. $txtChecked = 'checked';
  70. $fDisabled = '';
  71. ......................................................................................
  72. ........................................
  73. ..........
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement