@ -46,263 +46,258 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx, int vout, int u
{
{
QString strHTML ;
QString strHTML ;
LOCK2 ( cs_main , wallet - > cs_wallet ) ;
strHTML . reserve ( 4000 ) ;
strHTML + = " <html><font face='verdana, arial, helvetica, sans-serif'> " ;
int64_t nTime = wtx . GetTxTime ( ) ;
int64_t nCredit = wtx . GetCredit ( ) ;
int64_t nDebit = wtx . GetDebit ( ) ;
int64_t nNet = nCredit - nDebit ;
strHTML + = " <b> " + tr ( " Status " ) + " :</b> " + FormatTxStatus ( wtx ) ;
int nRequests = wtx . GetRequestCount ( ) ;
if ( nRequests ! = - 1 )
{
{
LOCK ( wallet - > cs_wallet ) ;
if ( nRequests = = 0 )
strHTML . reserve ( 4000 ) ;
strHTML + = tr ( " , has not been successfully broadcast yet " ) ;
strHTML + = " <html><font face='verdana, arial, helvetica, sans-serif'> " ;
else if ( nRequests > 0 )
strHTML + = tr ( " , broadcast through %n node(s) " , " " , nRequests ) ;
int64_t nTime = wtx . GetTxTime ( ) ;
}
int64_t nCredit = wtx . GetCredit ( ) ;
strHTML + = " <br> " ;
int64_t nDebit = wtx . GetDebit ( ) ;
int64_t nNet = nCredit - nDebit ;
strHTML + = " <b> " + tr ( " Status " ) + " :</b> " + FormatTxStatus ( wtx ) ;
int nRequests = wtx . GetRequestCount ( ) ;
if ( nRequests ! = - 1 )
{
if ( nRequests = = 0 )
strHTML + = tr ( " , has not been successfully broadcast yet " ) ;
else if ( nRequests > 0 )
strHTML + = tr ( " , broadcast through %n node(s) " , " " , nRequests ) ;
}
strHTML + = " <br> " ;
strHTML + = " <b> " + tr ( " Date " ) + " :</b> " + ( nTime ? GUIUtil : : dateTimeStr ( nTime ) : " " ) + " <br> " ;
strHTML + = " <b> " + tr ( " Date " ) + " :</b> " + ( nTime ? GUIUtil : : dateTimeStr ( nTime ) : " " ) + " <br> " ;
//
//
// From
// From
//
//
if ( wtx . IsCoinBase ( ) )
if ( wtx . IsCoinBase ( ) )
{
{
strHTML + = " <b> " + tr ( " Source " ) + " :</b> " + tr ( " Generated " ) + " <br> " ;
strHTML + = " <b> " + tr ( " Source " ) + " :</b> " + tr ( " Generated " ) + " <br> " ;
}
}
else if ( wtx . mapValue . count ( " from " ) & & ! wtx . mapValue [ " from " ] . empty ( ) )
else if ( wtx . mapValue . count ( " from " ) & & ! wtx . mapValue [ " from " ] . empty ( ) )
{
{
// Online transaction
// Online transaction
strHTML + = " <b> " + tr ( " From " ) + " :</b> " + GUIUtil : : HtmlEscape ( wtx . mapValue [ " from " ] ) + " <br> " ;
strHTML + = " <b> " + tr ( " From " ) + " :</b> " + GUIUtil : : HtmlEscape ( wtx . mapValue [ " from " ] ) + " <br> " ;
}
}
else
else
{
// Offline transaction
if ( nNet > 0 )
{
{
// Offline transaction
// Credit
if ( nNet > 0 )
BOOST_FOREACH ( const CTxOut & txout , wtx . vout )
{
{
// Credit
if ( wallet - > IsMine ( txout ) )
BOOST_FOREACH ( const CTxOut & txout , wtx . vout )
{
{
if ( wallet - > IsMine ( txout ) )
CTxDestination address ;
if ( ExtractDestination ( txout . scriptPubKey , address ) & & IsMine ( * wallet , address ) )
{
{
CTxDestination address ;
if ( wallet - > mapAddressBook . count ( address ) )
if ( ExtractDestination ( txout . scriptPubKey , address ) & & IsMine ( * wallet , address ) )
{
{
if ( wallet - > mapAddressBook . count ( address ) )
strHTML + = " <b> " + tr ( " From " ) + " :</b> " + tr ( " unknown " ) + " <br> " ;
{
strHTML + = " <b> " + tr ( " To " ) + " :</b> " ;
strHTML + = " <b> " + tr ( " From " ) + " :</b> " + tr ( " unknown " ) + " <br> " ;
strHTML + = GUIUtil : : HtmlEscape ( CBitcoinAddress ( address ) . ToString ( ) ) ;
strHTML + = " <b> " + tr ( " To " ) + " :</b> " ;
if ( ! wallet - > mapAddressBook [ address ] . name . empty ( ) )
strHTML + = GUIUtil : : HtmlEscape ( CBitcoinAddress ( address ) . ToString ( ) ) ;
strHTML + = " ( " + tr ( " own address " ) + " , " + tr ( " label " ) + " : " + GUIUtil : : HtmlEscape ( wallet - > mapAddressBook [ address ] . name ) + " ) " ;
if ( ! wallet - > mapAddressBook [ address ] . name . empty ( ) )
else
strHTML + = " ( " + tr ( " own address " ) + " , " + tr ( " label " ) + " : " + GUIUtil : : HtmlEscape ( wallet - > mapAddressBook [ address ] . name ) + " ) " ;
strHTML + = " ( " + tr ( " own address " ) + " ) " ;
else
strHTML + = " <br> " ;
strHTML + = " ( " + tr ( " own address " ) + " ) " ;
strHTML + = " <br> " ;
}
}
}
break ;
}
}
break ;
}
}
}
}
}
}
}
//
// To
//
if ( wtx . mapValue . count ( " to " ) & & ! wtx . mapValue [ " to " ] . empty ( ) )
{
// Online transaction
std : : string strAddress = wtx . mapValue [ " to " ] ;
strHTML + = " <b> " + tr ( " To " ) + " :</b> " ;
CTxDestination dest = CBitcoinAddress ( strAddress ) . Get ( ) ;
if ( wallet - > mapAddressBook . count ( dest ) & & ! wallet - > mapAddressBook [ dest ] . name . empty ( ) )
strHTML + = GUIUtil : : HtmlEscape ( wallet - > mapAddressBook [ dest ] . name ) + " " ;
strHTML + = GUIUtil : : HtmlEscape ( strAddress ) + " <br> " ;
}
//
// Amount
//
if ( wtx . IsCoinBase ( ) & & nCredit = = 0 )
{
//
//
// To
// Coinbase
//
//
if ( wtx . mapValue . count ( " to " ) & & ! wtx . mapValue [ " to " ] . empty ( ) )
int64_t nUnmatured = 0 ;
{
BOOST_FOREACH ( const CTxOut & txout , wtx . vout )
// Online transaction
nUnmatured + = wallet - > GetCredit ( txout ) ;
std : : string strAddress = wtx . mapValue [ " to " ] ;
strHTML + = " <b> " + tr ( " Credit " ) + " :</b> " ;
strHTML + = " <b> " + tr ( " To " ) + " :</b> " ;
if ( wtx . IsInMainChain ( ) )
CTxDestination dest = CBitcoinAddress ( strAddress ) . Get ( ) ;
strHTML + = BitcoinUnits : : formatWithUnit ( unit , nUnmatured ) + " ( " + tr ( " matures in %n more block(s) " , " " , wtx . GetBlocksToMaturity ( ) ) + " ) " ;
if ( wallet - > mapAddressBook . count ( dest ) & & ! wallet - > mapAddressBook [ dest ] . name . empty ( ) )
else
strHTML + = GUIUtil : : HtmlEscape ( wallet - > mapAddressBook [ dest ] . name ) + " " ;
strHTML + = " ( " + tr ( " not accepted " ) + " ) " ;
strHTML + = GUIUtil : : HtmlEscape ( strAddress ) + " <br> " ;
strHTML + = " <br> " ;
}
}
else if ( nNet > 0 )
{
//
//
// Amoun t
// Credi t
//
//
if ( wtx . IsCoinBase ( ) & & nCredit = = 0 )
strHTML + = " <b> " + tr ( " Credit " ) + " :</b> " + BitcoinUnits : : formatWithUnit ( unit , nNet ) + " <br> " ;
{
}
//
else
// Coinbase
{
//
bool fAllFromMe = true ;
int64_t nUnmatured = 0 ;
BOOST_FOREACH ( const CTxIn & txin , wtx . vin )
BOOST_FOREACH ( const CTxOut & txout , wtx . vout )
fAllFromMe = fAllFromMe & & wallet - > IsMine ( txin ) ;
nUnmatured + = wallet - > GetCredit ( txout ) ;
strHTML + = " <b> " + tr ( " Credit " ) + " :</b> " ;
bool fAllToMe = true ;
if ( wtx . IsInMainChain ( ) )
BOOST_FOREACH ( const CTxOut & txout , wtx . vout )
strHTML + = BitcoinUnits : : formatWithUnit ( unit , nUnmatured ) + " ( " + tr ( " matures in %n more block(s) " , " " , wtx . GetBlocksToMaturity ( ) ) + " ) " ;
fAllToMe = fAllToMe & & wallet - > IsMine ( txout ) ;
else
strHTML + = " ( " + tr ( " not accepted " ) + " ) " ;
if ( fAllFromMe )
strHTML + = " <br> " ;
}
else if ( nNet > 0 )
{
{
//
//
// Cred it
// Debit
//
//
strHTML + = " <b> " + tr ( " Credit " ) + " :</b> " + BitcoinUnits : : formatWithUnit ( unit , nNet ) + " <br> " ;
}
else
{
bool fAllFromMe = true ;
BOOST_FOREACH ( const CTxIn & txin , wtx . vin )
fAllFromMe = fAllFromMe & & wallet - > IsMine ( txin ) ;
bool fAllToMe = true ;
BOOST_FOREACH ( const CTxOut & txout , wtx . vout )
BOOST_FOREACH ( const CTxOut & txout , wtx . vout )
fAllToMe = fAllToMe & & wallet - > IsMine ( txout ) ;
if ( fAllFromMe )
{
{
//
if ( wallet - > IsMine ( txout ) )
// Debit
continue ;
//
BOOST_FOREACH ( const CTxOut & txout , wtx . vout )
{
if ( wallet - > IsMine ( txout ) )
continue ;
if ( ! wtx . mapValue . count ( " to " ) | | wtx . mapValue [ " to " ] . empty ( ) )
if ( ! wtx . mapValue . count ( " to " ) | | wtx . mapValue [ " to " ] . empty ( ) )
{
// Offline transaction
CTxDestination address ;
if ( ExtractDestination ( txout . scriptPubKey , address ) )
{
{
// Offline transaction
strHTML + = " <b> " + tr ( " To " ) + " :</b> " ;
CTxDestination address ;
if ( wallet - > mapAddressBook . count ( address ) & & ! wallet - > mapAddressBook [ address ] . name . empty ( ) )
if ( ExtractDestination ( txout . scriptPubKey , address ) )
strHTML + = GUIUtil : : HtmlEscape ( wallet - > mapAddressBook [ address ] . name ) + " " ;
{
strHTML + = GUIUtil : : HtmlEscape ( CBitcoinAddress ( address ) . ToString ( ) ) ;
strHTML + = " <b> " + tr ( " To " ) + " :</b> " ;
strHTML + = " <br> " ;
if ( wallet - > mapAddressBook . count ( address ) & & ! wallet - > mapAddressBook [ address ] . name . empty ( ) )
strHTML + = GUIUtil : : HtmlEscape ( wallet - > mapAddressBook [ address ] . name ) + " " ;
strHTML + = GUIUtil : : HtmlEscape ( CBitcoinAddress ( address ) . ToString ( ) ) ;
strHTML + = " <br> " ;
}
}
}
strHTML + = " <b> " + tr ( " Debit " ) + " :</b> " + BitcoinUnits : : formatWithUnit ( unit , - txout . nValue ) + " <br> " ;
}
if ( fAllToMe )
{
// Payment to self
int64_t nChange = wtx . GetChange ( ) ;
int64_t nValue = nCredit - nChange ;
strHTML + = " <b> " + tr ( " Debit " ) + " :</b> " + BitcoinUnits : : formatWithUnit ( unit , - nValue ) + " <br> " ;
strHTML + = " <b> " + tr ( " Credit " ) + " :</b> " + BitcoinUnits : : formatWithUnit ( unit , nValue ) + " <br> " ;
}
}
int64_t nTxFee = nDebit - wtx . GetValueOut ( ) ;
strHTML + = " <b> " + tr ( " Debit " ) + " :</b> " + BitcoinUnits : : formatWithUnit ( unit , - txout . nValue ) + " <br> " ;
if ( nTxFee > 0 )
strHTML + = " <b> " + tr ( " Transaction fee " ) + " :</b> " + BitcoinUnits : : formatWithUnit ( unit , - nTxFee ) + " <br> " ;
}
}
else
if ( fAllToMe )
{
{
//
// Payment to self
// Mixed debit transaction
int64_t nChange = wtx . GetChange ( ) ;
//
int64_t nValue = nCredit - nChange ;
BOOST_FOREACH ( const CTxIn & txin , wtx . vin )
strHTML + = " <b> " + tr ( " Debit " ) + " :</b> " + BitcoinUnits : : formatWithUnit ( unit , - nValue ) + " <br> " ;
if ( wallet - > IsMine ( txin ) )
strHTML + = " <b> " + tr ( " Credit " ) + " :</b> " + BitcoinUnits : : formatWithUnit ( unit , nValue ) + " <br> " ;
strHTML + = " <b> " + tr ( " Debit " ) + " :</b> " + BitcoinUnits : : formatWithUnit ( unit , - wallet - > GetDebit ( txin ) ) + " <br> " ;
BOOST_FOREACH ( const CTxOut & txout , wtx . vout )
if ( wallet - > IsMine ( txout ) )
strHTML + = " <b> " + tr ( " Credit " ) + " :</b> " + BitcoinUnits : : formatWithUnit ( unit , wallet - > GetCredit ( txout ) ) + " <br> " ;
}
}
int64_t nTxFee = nDebit - wtx . GetValueOut ( ) ;
if ( nTxFee > 0 )
strHTML + = " <b> " + tr ( " Transaction fee " ) + " :</b> " + BitcoinUnits : : formatWithUnit ( unit , - nTxFee ) + " <br> " ;
}
}
else
{
//
// Mixed debit transaction
//
BOOST_FOREACH ( const CTxIn & txin , wtx . vin )
if ( wallet - > IsMine ( txin ) )
strHTML + = " <b> " + tr ( " Debit " ) + " :</b> " + BitcoinUnits : : formatWithUnit ( unit , - wallet - > GetDebit ( txin ) ) + " <br> " ;
BOOST_FOREACH ( const CTxOut & txout , wtx . vout )
if ( wallet - > IsMine ( txout ) )
strHTML + = " <b> " + tr ( " Credit " ) + " :</b> " + BitcoinUnits : : formatWithUnit ( unit , wallet - > GetCredit ( txout ) ) + " <br> " ;
}
}
strHTML + = " <b> " + tr ( " Net amount " ) + " :</b> " + BitcoinUnits : : formatWithUnit ( unit , nNet , true ) + " <br> " ;
strHTML + = " <b> " + tr ( " Net amount " ) + " :</b> " + BitcoinUnits : : formatWithUnit ( unit , nNet , true ) + " <br> " ;
//
//
// Message
// Message
//
//
if ( wtx . mapValue . count ( " message " ) & & ! wtx . mapValue [ " message " ] . empty ( ) )
if ( wtx . mapValue . count ( " message " ) & & ! wtx . mapValue [ " message " ] . empty ( ) )
strHTML + = " <br><b> " + tr ( " Message " ) + " :</b><br> " + GUIUtil : : HtmlEscape ( wtx . mapValue [ " message " ] , true ) + " <br> " ;
strHTML + = " <br><b> " + tr ( " Message " ) + " :</b><br> " + GUIUtil : : HtmlEscape ( wtx . mapValue [ " message " ] , true ) + " <br> " ;
if ( wtx . mapValue . count ( " comment " ) & & ! wtx . mapValue [ " comment " ] . empty ( ) )
if ( wtx . mapValue . count ( " comment " ) & & ! wtx . mapValue [ " comment " ] . empty ( ) )
strHTML + = " <br><b> " + tr ( " Comment " ) + " :</b><br> " + GUIUtil : : HtmlEscape ( wtx . mapValue [ " comment " ] , true ) + " <br> " ;
strHTML + = " <br><b> " + tr ( " Comment " ) + " :</b><br> " + GUIUtil : : HtmlEscape ( wtx . mapValue [ " comment " ] , true ) + " <br> " ;
strHTML + = " <b> " + tr ( " Transaction ID " ) + " :</b> " + TransactionRecord : : formatSubTxId ( wtx . GetHash ( ) , vout ) + " <br> " ;
strHTML + = " <b> " + tr ( " Transaction ID " ) + " :</b> " + TransactionRecord : : formatSubTxId ( wtx . GetHash ( ) , vout ) + " <br> " ;
// Message from normal bitcoin:URI (bitcoin:123...?message=example)
// Message from normal bitcoin:URI (bitcoin:123...?message=example)
foreach ( const PAIRTYPE ( string , string ) & r , wtx . vOrderForm )
foreach ( const PAIRTYPE ( string , string ) & r , wtx . vOrderForm )
if ( r . first = = " Message " )
if ( r . first = = " Message " )
strHTML + = " <br><b> " + tr ( " Message " ) + " :</b><br> " + GUIUtil : : HtmlEscape ( r . second , true ) + " <br> " ;
strHTML + = " <br><b> " + tr ( " Message " ) + " :</b><br> " + GUIUtil : : HtmlEscape ( r . second , true ) + " <br> " ;
//
//
// PaymentRequest info:
// PaymentRequest info:
//
//
foreach ( const PAIRTYPE ( string , string ) & r , wtx . vOrderForm )
foreach ( const PAIRTYPE ( string , string ) & r , wtx . vOrderForm )
{
if ( r . first = = " PaymentRequest " )
{
{
if ( r . first = = " PaymentRequest " )
PaymentRequestPlus req ;
{
req . parse ( QByteArray : : fromRawData ( r . second . data ( ) , r . second . size ( ) ) ) ;
PaymentRequestPlus req ;
QString merchant ;
req . parse ( QByteArray : : fromRawData ( r . second . data ( ) , r . second . size ( ) ) ) ;
if ( req . getMerchant ( PaymentServer : : getCertStore ( ) , merchant ) )
QString merchant ;
strHTML + = " <b> " + tr ( " Merchant " ) + " :</b> " + GUIUtil : : HtmlEscape ( merchant ) + " <br> " ;
if ( req . getMerchant ( PaymentServer : : getCertStore ( ) , merchant ) )
strHTML + = " <b> " + tr ( " Merchant " ) + " :</b> " + GUIUtil : : HtmlEscape ( merchant ) + " <br> " ;
}
}
}
}
if ( wtx . IsCoinBase ( ) )
if ( wtx . IsCoinBase ( ) )
{
{
quint32 numBlocksToMaturity = COINBASE_MATURITY + 1 ;
quint32 numBlocksToMaturity = COINBASE_MATURITY + 1 ;
strHTML + = " <br> " + tr ( " Generated coins must mature %1 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, its state will change to \" not accepted \" and it won't be spendable. This may occasionally happen if another node generates a block within a few seconds of yours. " ) . arg ( QString : : number ( numBlocksToMaturity ) ) + " <br> " ;
strHTML + = " <br> " + tr ( " Generated coins must mature %1 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, its state will change to \" not accepted \" and it won't be spendable. This may occasionally happen if another node generates a block within a few seconds of yours. " ) . arg ( QString : : number ( numBlocksToMaturity ) ) + " <br> " ;
}
}
//
//
// Debug view
// Debug view
//
//
if ( fDebug )
if ( fDebug )
{
{
strHTML + = " <hr><br> " + tr ( " Debug information " ) + " <br><br> " ;
strHTML + = " <hr><br> " + tr ( " Debug information " ) + " <br><br> " ;
BOOST_FOREACH ( const CTxIn & txin , wtx . vin )
BOOST_FOREACH ( const CTxIn & txin , wtx . vin )
if ( wallet - > IsMine ( txin ) )
if ( wallet - > IsMine ( txin ) )
strHTML + = " <b> " + tr ( " Debit " ) + " :</b> " + BitcoinUnits : : formatWithUnit ( unit , - wallet - > GetDebit ( txin ) ) + " <br> " ;
strHTML + = " <b> " + tr ( " Debit " ) + " :</b> " + BitcoinUnits : : formatWithUnit ( unit , - wallet - > GetDebit ( txin ) ) + " <br> " ;
BOOST_FOREACH ( const CTxOut & txout , wtx . vout )
BOOST_FOREACH ( const CTxOut & txout , wtx . vout )
if ( wallet - > IsMine ( txout ) )
if ( wallet - > IsMine ( txout ) )
strHTML + = " <b> " + tr ( " Credit " ) + " :</b> " + BitcoinUnits : : formatWithUnit ( unit , wallet - > GetCredit ( txout ) ) + " <br> " ;
strHTML + = " <b> " + tr ( " Credit " ) + " :</b> " + BitcoinUnits : : formatWithUnit ( unit , wallet - > GetCredit ( txout ) ) + " <br> " ;
strHTML + = " <br><b> " + tr ( " Transaction " ) + " :</b><br> " ;
strHTML + = GUIUtil : : HtmlEscape ( wtx . ToString ( ) , true ) ;
strHTML + = " <br><b> " + tr ( " Transaction " ) + " :</b><br> " ;
strHTML + = " <br><b> " + tr ( " Inputs " ) + " :</b> " ;
strHTML + = GUIUtil : : HtmlEscape ( wtx . ToString ( ) , true ) ;
strHTML + = " <ul> " ;
strHTML + = " <br><b> " + tr ( " Inputs " ) + " :</b> " ;
BOOST_FOREACH ( const CTxIn & txin , wtx . vin )
strHTML + = " <ul> " ;
{
COutPoint prevout = txin . prevout ;
CCoins prev ;
if ( pcoinsTip - > GetCoins ( prevout . hash , prev ) )
{
{
LOCK ( wallet - > cs_wallet ) ;
if ( prevout . n < prev . vout . size ( ) )
BOOST_FOREACH ( const CTxIn & txin , wtx . vin )
{
{
COutPoint prevout = txin . prevout ;
strHTML + = " <li> " ;
const CTxOut & vout = prev . vout [ prevout . n ] ;
CCoins prev ;
CTxDestination address ;
if ( pcoinsTip - > GetCoins ( prevout . hash , prev ) )
if ( ExtractDestination ( vout . scriptPubKey , address ) )
{
{
if ( prevout . n < prev . vout . size ( ) )
if ( wallet - > mapAddressBook . count ( address ) & & ! wallet - > mapAddressBook [ address ] . name . empty ( ) )
{
strHTML + = GUIUtil : : HtmlEscape ( wallet - > mapAddressBook [ address ] . name ) + " " ;
strHTML + = " <li> " ;
strHTML + = QString : : fromStdString ( CBitcoinAddress ( address ) . ToString ( ) ) ;
const CTxOut & vout = prev . vout [ prevout . n ] ;
CTxDestination address ;
if ( ExtractDestination ( vout . scriptPubKey , address ) )
{
if ( wallet - > mapAddressBook . count ( address ) & & ! wallet - > mapAddressBook [ address ] . name . empty ( ) )
strHTML + = GUIUtil : : HtmlEscape ( wallet - > mapAddressBook [ address ] . name ) + " " ;
strHTML + = QString : : fromStdString ( CBitcoinAddress ( address ) . ToString ( ) ) ;
}
strHTML = strHTML + " " + tr ( " Amount " ) + " = " + BitcoinUnits : : formatWithUnit ( unit , vout . nValue ) ;
strHTML = strHTML + " IsMine= " + ( wallet - > IsMine ( vout ) ? tr ( " true " ) : tr ( " false " ) ) + " </li> " ;
}
}
}
strHTML = strHTML + " " + tr ( " Amount " ) + " = " + BitcoinUnits : : formatWithUnit ( unit , vout . nValue ) ;
strHTML = strHTML + " IsMine= " + ( wallet - > IsMine ( vout ) ? tr ( " true " ) : tr ( " false " ) ) + " </li> " ;
}
}
}
}
strHTML + = " </ul> " ;
}
}
strHTML + = " </font></htm l> " ;
strHTML + = " </ul> " ;
}
}
strHTML + = " </font></html> " ;
return strHTML ;
return strHTML ;
}
}