Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by deZender.Net
- * @ deZender (PHP4 Decoder for eAccelerator & MMCache)
- *
- * @ Version : 1.1.3.0
- * @ Author : DeZender
- * @ Release on : 17.05.2011
- * @ Official site : http://DeZender.Net
- *
- */
- function myrendertemplatelistdatatable($rsResult) {
- $strIMG = '<img src="../images/dot.gif" width="14" height="14" alt="-">';
- $strALT = array( '', ' class="alt_grid"' );
- $intTRCount = 0;
- $strRet = '';
- while ($objRow = mysql_fetch_object( $rsResult )) {
- $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>';
- $strRet .= '</tr>';
- ++$intTRCount;
- }
- return $strRet;
- }
- function myrenderitemtemplate($intHandle, $rsResult, $strRights, $strDefaultStore, $intPOSPendTranskey) {
- $strIMG = '<img height="16" src="../images/line_okay.gif" width="20">';
- $strSRA = 'style="text-align: right"';
- $intTRCount = 0;
- $strRetT = '';
- $strRet = '';
- $strRet1 = '';
- $strRet2 = '';
- $strRet3 = '';
- $dateToday = date( 'Y-m-d', strtotime( 'now' ) );
- $totalPrice = 0;
- $intS = 0;
- $intB = 0;
- $intU = 0;
- $intO = 0;
- $intT = 0;
- while ($objRow = mysql_fetch_object( $rsResult )) {
- $isSetPurch = '';
- $txtQuantity = $objRow->Quantity;
- if (!( strlen( $objRow->SKUDesc ))) {
- $txtDescription = $objRow->SKUDescription;
- } else {
- $txtDescription = $objRow->SKUDesc;
- }
- ++$intTRCount;
- $arrSellPrice = explode( '|', mygetsellprice( $intHandle, $objRow->SKUCode, $strDefaultStore, $dateToday ) );
- if (strstr( $objRow->SKUCode, 'BKSTEMP' )) {
- $intQuantity = (int)$intQuantity = myselectitem( $intHandle, $objRow->SKUCode, 'StudMatlTemplateDetl', 'SKUCode', 'Quantity' );
- $arrSellPrice[2] = $intPrice = (int)$arrSellPrice[2] / $intQuantity;
- }
- $strQ = 'SELECT POSPendingTransDetl.Autokey, POSPendingTransDetl.Quantity FROM POSPendingTransDetl INNER JOIN POSPendingTransMain ON POSPendingTransMain.Autokey = POSPendingTransDetl.Issuedkey ';
- $strQ .= 'WHERE Issuedkey = \'' . $intPOSPendTranskey . '\' AND SKUCode = \'' . $objRow->SKUCode . '\' ';
- if (1 <= mysql_num_rows( $rsPend = myselectdb( $strQ, $intHandle ) )) {
- list( $intPendkey, $intPendQty ) = mysql_fetch_row( $rsPend );
- $txtChecked = 'checked';
- $fDisabled = '';
- ......................................................................................
- ........................................
- ..........
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement