0) ) { $s_name = isset($_POST['nama']) ? $_POST['nama'] : $_SESSION['membership_session']['membershipusername']; $s_pass = isset($_POST['pass']) ? $_POST['pass'] : $_SESSION['membership_session']['membershippassword']; $sql = 'SELECT * FROM `adm_membership` WHERE `membershipusername` = \''.mysql_real_escape_string($s_name).'\' AND `membershippassword` = \''.mysql_real_escape_string($s_pass).'\' AND `status` = \'Active\' LIMIT 1'; $res = mysql_query($sql); $num = @mysql_num_rows($res); } if(intval($num) < 1 ) { unset($_SESSION['membership_session']); header('location: login.html'); exit(); } ?> JPM Trading - custom made window furnishing at direct factory price
'; while($row = mysql_fetch_assoc($res)) { echo ''; } echo '
 
 
'; } echo '
  SPECIFICATIONS  
    '; while($row = mysql_fetch_assoc($res)) { echo '
'.$row['product_newstitle'].'
'; } else { echo ''; echo ''; echo '
Back
'; } ?>
 
'; } echo '
  Select a Product  
    '; while($row = mysql_fetch_assoc($res)) { echo '
'.$row['product_name'].'
'; } ?>
 
  Communications  
    '; echo '
News Letter
'.$row['product_name'].'
'; } ?>
 
  Customer Service  
   
Email Customer Service

 
  Send Feedback  
   
Email Feedback
 
  Logout  
 
 


'; echo '



'; echo '

'.$row3['product_name'].'

'.html_entity_decode($row['product_description']).''; $sql = 'SELECT * FROM `tproduct_news` WHERE `product_id` =\''.$product_id.'\' ORDER BY `product_newstime` DESC LIMIT 25 '; $res = mysql_query($sql); $num = @mysql_num_rows($res); if($num) { echo '

Recent Updates

'; while($row = mysql_fetch_assoc($res)) { echo ''; } echo '
'.date('d-M-Y', strtotime($row['product_newstime'])).''.nl2br($row['product_newsdesc']).'
'; } /* echo '
 '; $sql = 'SELECT * FROM `tproduct_gallery` WHERE `product_id` =\''.$product_id.'\' ORDER BY RAND() LIMIT 5 '; $res = mysql_query($sql); $num = @mysql_num_rows($res); if($num) { while($row = mysql_fetch_assoc($res)) { $col_image = $row['mainimagename'] != '' && is_file('./upload/thumb_'.$row['mainimagename']) ? ''.$row['mainimagename'].'' : ' '; echo $col_image.'

'; } } echo '
'; */ $sql = 'SELECT product_newstitle, product_newsid FROM `tproduct_details` WHERE product_id=\''.$row3['product_id'].'\' ORDER BY priority ASC '; $res = mysql_query($sql); $num = @mysql_num_rows($res); if($num) { echo ' '; echo '

'.$row3['product_name'].' Specifications

'; echo ''; } else { echo ' '; } echo ''; } } elseif(isset($_GET['pdesc'])) { $product_newsid = intval($_GET['pdesc']); $sql = 'SELECT tproduct_details.*, tproduct_main.product_name FROM `tproduct_details` LEFT JOIN tproduct_main ON tproduct_main.product_id=tproduct_details.product_id WHERE tproduct_details.product_newsid=\''.$product_newsid.'\' '; $res = mysql_query($sql); $num = @mysql_num_rows($res); if($num) { echo ''; echo '



'; $row = mysql_fetch_assoc($res); echo '

'.$row['product_newstitle'].'

'.html_entity_decode($row['product_newsdesc']).''; echo '
 '; $sql = 'SELECT product_newstitle, product_newsid FROM `tproduct_details` WHERE product_id=\''.$row['product_id'].'\' ORDER BY priority ASC '; $res = mysql_query($sql); $num = @mysql_num_rows($res); if($num) { echo '

'.$row['product_name'].' Specifications

'; echo ''; } echo '
'; } } elseif(isset($_GET['pdf'])) { $product_id = intval($_GET['pdf']); $sql = 'SELECT * FROM `tproduct_pdf` WHERE product_id=\''.$product_id.'\' '; $res = mysql_query($sql); $num = @mysql_num_rows($res); if($num) { $row = mysql_fetch_assoc($res); echo '

'.$row['product_name'].'

'.html_entity_decode($row['product_description']).''; $sql = 'SELECT * FROM `tproduct_pdf_file` WHERE `product_id` = \''.$product_id.'\' '; $res = mysql_query($sql); $num = @mysql_num_rows($res); if($num) { echo '

Click on a thumbnail below to download a Brochure.

'; echo ''; $i=0; while($row = mysql_fetch_assoc($res)) { if($i==0) { echo ''; } $icon_download = is_file('./upload/thumb_'.$row['mainimagename']) ? 'Download' : 'Download'; echo ''; $i++; if($i==3) { echo ''; $i=0; } } if($i> 0) { while($i<3) { echo ''; $i++; } echo ''; } echo '
'.$icon_download.'
'. $row['pdf_file_name'] .'
'.date('d-M-Y', strtotime($row['pdf_file_time'])).'

 
'; } } } elseif($_GET['newsletter']) { echo '

Recent Updates

'; $sql = 'SELECT newsletter_id, timestamp, newsletter_tittle, mainimagename6 FROM `tnewsletter` ORDER BY `timestamp` DESC LIMIT 0, 25 '; $res = mysql_query($sql); $num = @mysql_num_rows($res); if($num) { echo 'Click on a thumbnail below to view newsletter details.

'; echo ''; $i=0; while($row = mysql_fetch_assoc($res)) { if($i==0) { echo ''; } $icon_download = is_file('./upload/'.$row['mainimagename6']) ? 'Download' : 'Download'; echo ''; $i++; if($i==3) { echo ''; $i=0; } } if($i> 0) { while($i<3) { echo ''; $i++; } echo ''; } echo '
'.$icon_download.'
'. $row['newsletter_tittle'] .'
'.date('d-M-Y', strtotime($row['timestamp'])).'

 
'; } } else { echo ''; } ?>