function StringBuffer() { this.__strings__ = new Array; } StringBuffer.prototype.append = function (str) { this.__strings__.push(str); }; StringBuffer.prototype.toString = function () { return this.__strings__.join(""); }; function pageLinks(buffer, pageNo, totalPages) { buffer.append('
');
if (pageNo > 1) {
buffer.append('![]() | ');
buffer.append('');
var minPage = pageNo - 5;
if (minPage <= 0) {
minPage = 1;
}
var maxPage = pageNo + 5;
if (maxPage > totalPages) { maxPage = totalPages; }
buffer.append(' | ');
buffer.append('');
if (pageNo < totalPages) {
buffer.append('![]() | ');
buffer.append('
'+str+'
'); buffer.append(''+str+'
');*/ buffer.append('![]() | ');
}
buffer.append(''); } listing_text(buffer, firstIndex + i, listings[i]); if (two_col == true){ buffer.append(' | '); if (i % 2 == 1 || i == listings.length - 1) { buffer.append('
');
// todo: property type
if (listing.mls != null && listing.mls != undefined) {
buffer.append(' ' + index + '. ');
buffer.append('Số MLS' + ': ' + listing.mls);
buffer.append(' | ');
buffer.append('');
if (listing.clientId == 505743 && listing.idxListing) {
buffer.append('![]() ');
buffer.append('');
showPhoto(buffer, listing.pict);
buffer.append('');
buffer.append(' ');
buffer.append(' | ');
buffer.append('
');
buffer.append('![]() | |
');
buffer.append('![]() |