[* $hadata= $param[0]; $dataref = $param[1]; $count = $param[2]; $start = $param[3]; $totalRecords = $param[4]; $pg = $param[5]; $jsontext = $param[6]; $escmode = 0; $show_flag=''; if(!defined($hadata->{FREESHOWROOM_URL_HT}) || $hadata->{FREESHOWROOM_URL_HT} eq '') { $show_flag = qq~
  Add at least two products with image and proper description.
~; } *]
[+$show_flag+]
Add New Products & Services
 
[* if($totalRecords > 0) { *]
[* $data=''; $pcid = ''; if(scalar(@{$dataref->{DATAHASH}}) > 0) { foreach $h(@{$dataref->{DATAHASH}}) { $h->{PIMAGE125} =~ s/imghost(\d?\.)indiamart\.com/images$1hellotrade.com/i if(defined($h->{PIMAGE125})); $h->{PIMAGE250} =~ s/imghost(\d?\.)indiamart\.com/images$1hellotrade.com/i if(defined($h->{PIMAGE250})); $h->{PIMAGE500} =~ s/imghost(\d?\.)indiamart\.com/images$1hellotrade.com/i if(defined($h->{PIMAGE500})); $flag = 0; $flag = 1 if(defined($h->{TYPE})); $pcid = $h->{PCID}; $id = $h->{PID}; $data .= ''; } } *] [+$data+]
Description Options
'; $item_img = 'http://images.hellotrade.com/default-image/add-image.gif'; $item_img = $h->{PIMAGE250} if(defined($h->{PIMAGE250})); $item_img = $h->{PIMAGE125} if(defined($h->{PIMAGE125})); $item_name = $h->{PNAME}; $item_desc = ''; if(defined($h->{PDESC}) && $h->{PDESC} eq $item_name) { $item_desc = 'No Description'; } else { $item_desc = $h->{PDESC}; } if(defined($h->{PIMAGE500})) { $data .= '
'.$item_name.'
'; } else { $data .= '
'.$item_name.'
'; } $data .= '
'; $data .= ''.$item_name.'
'.$item_desc; $data .= '
'; $posting_date = ''; if(defined($h->{PDATE})) { $posting_date = 'Posting Date: '.$h->{PDATE}.''; } $refresh_date = ''; if(defined($h->{PMODDATE})) { $refresh_date = 'Refreshed Date: '.$h->{PMODDATE}.''; } $expirey_date = ''; if(defined($h->{EXPDATE})) { $expirey_date = 'Expires On: '.$h->{EXPDATE}.''; } $data .= $posting_date.' '.$refresh_date.'
'.$expirey_date.'
'; $price = $h->{PSALE} || 0; $weight = $h->{PWEIGHT} || ''; $size = $h->{PSIZE} || ''; $moq = $h->{PMOQ} || ''; $data .= '
'; $data.=''; $data.='
[* $data = ''; $end = $start + 20; $searchurl = '/cgi-bin/controller.mp/offer/'; if($start == 1 && $end <= $totalRecords) { $pg_next = $pg; $data = ''; } elsif($start > 1 && $end <= $totalRecords) { $pg_next = $pg + 1; $pg_prev = $pg - 1; $data = ''; } elsif($end > $totalRecords && $start != 1) { $pg_prev = $pg - 1; $data = ''; } *] [+$data+]
  Next Next
Previous Previous   Next Next
Previous Previous  
[* } else { *]
No Result Found

[* } *]