All pastes #26365 Raw Edit

Unnamed

public text v1 · immutable
#26365 ·published 2005-10-23 12:17 UTC
rendered paste body
// DISPLAY UPDATE SUMMARY
	    // ======================
	    if ( $display == 'update' ) { ?>
		  <tr>
		    <td>
		    
		      <p class="pLast"><b>From</b></p>
		      
		      <p class="pLast">Product ID:<?php echo $objProduct->getdbProperties('productID'); ?></p> <!-- Always show the product ID -->

		      <?php echo ( $objProduct->getdbProperties('manufacturerID')        != null ) ? '<p class="pLast">Manufacturer ID:        ' . $objProduct->getdbProperties('manufacturerID') . '</p>'        : null ?>
		      <?php echo ( $objProduct->getdbProperties('productType')           != null ) ? '<p class="pLast">Product Type:           ' . $objProduct->getdbProperties('productType') . '</p>'           : null ?>
		      <?php echo ( $objProduct->getdbProperties('productCountry')        != null ) ? '<p class="pLast">Product Country:        ' . $objProduct->getdbProperties('productCountry') . '</p>'        : null ?>
		      <?php echo ( $objProduct->getdbProperties('productRegion')         != null ) ? '<p class="pLast">ProductRegion:          ' . $objProduct->getdbProperties('productRegion') . '</p>'         : null ?>
		      <?php echo ( $objProduct->getdbProperties('description')           != null ) ? '<p class="pLast">description:            ' . $objProduct->getdbProperties('description') . '</p>'           : null ?>
		      <?php echo ( $objProduct->getdbProperties('additionalInformation') != null ) ? '<p class="pLast">Additional Information: ' . $objProduct->getdbProperties('additionalInformation') . '</p>' : null ?>
			
		      <?php echo ( $objProduct->getdbProperties('unit')                  != null ) ? '<p class="pLast">Unit:                   ' . $objProduct->getdbProperties('unit') . '</p>'                  : null ?>
		      <?php echo ( $objProduct->getdbProperties('unitOfMeasurement')     != null ) ? '<p class="pLast">Unit of Measurement:    ' . $objProduct->getdbProperties('unitOfMeasurement') . '</p>'     : null ?>
		      <?php echo ( $objProduct->getdbProperties('ingredient')            != null ) ? '<p class="pLast">Ingredient:             ' . $objProduct->getdbProperties('ingredient') . '</p>'            : null ?>

		      <?php echo ( $objProduct->getdbProperties('percentage')            != null ) ? '<p class="pLast">Percentage:             ' . $objProduct->getdbProperties('percentage') . '</p>'            : null ?>
		      <?php echo ( $objProduct->getdbProperties('content')               != null ) ? '<p class="pLast">Content:                ' . $objProduct->getdbProperties('content') . '</p>'               : null ?>

		    </td>
		    <td>
		    
		      <p class="pLast"><b>To</b></p>

		      <p class="pLast">Product ID:<?php echo $objProduct->getdbProperties('productID'); ?></p> <!-- Always show the product ID -->
			
		      <?php echo ( $objProduct->getformProperties('manufacturerID')        != null ) ? '<p class="pLast">Manufacturer ID:        ' . $objProduct->getformProperties('manufacturerID') . '</p>'        : null ?>
		      <?php echo ( $objProduct->getformProperties('productType')           != null ) ? '<p class="pLast">Product Type:           ' . $objProduct->getformProperties('productType') . '</p>'           : null ?>
		      <?php echo ( $objProduct->getformProperties('productCountry')        != null ) ? '<p class="pLast">Product Country:        ' . $objProduct->getformProperties('productCountry') . '</p>'        : null ?>
		      <?php echo ( $objProduct->getformProperties('productRegion')         != null ) ? '<p class="pLast">ProductRegion:          ' . $objProduct->getformProperties('productRegion') . '</p>'         : null ?>
		      <?php echo ( $objProduct->getformProperties('description')           != null ) ? '<p class="pLast">description:            ' . $objProduct->getformProperties('description') . '</p>'           : null ?>
		      <?php echo ( $objProduct->getformProperties('additionalInformation') != null ) ? '<p class="pLast">Additional Information: ' . $objProduct->getformProperties('additionalInformation') . '</p>' : null ?>
			
		      <?php echo ( $objProduct->getformProperties('unit')                  != null ) ? '<p class="pLast">Unit:                   ' . $objProduct->getformProperties('unit') . '</p>'                  : null ?>
		      <?php echo ( $objProduct->getformProperties('unitOfMeasurement')     != null ) ? '<p class="pLast">Unit of Measurement:    ' . $objProduct->getformProperties('unitOfMeasurement') . '</p>'     : null ?>
		      <?php echo ( $objProduct->getformProperties('ingredient')            != null ) ? '<p class="pLast">Ingredient:             ' . $objProduct->getformProperties('ingredient') . '</p>'            : null ?>

		      <?php echo ( $objProduct->getformProperties('percentage')            != null ) ? '<p class="pLast">Percentage:             ' . $objProduct->getformProperties('percentage') . '</p>'            : null ?>
		      <?php echo ( $objProduct->getformProperties('content')               != null ) ? '<p class="pLast">Content:                ' . $objProduct->getformProperties('content') . '</p>'               : null ?>
			
		    </td>
		  </tr>
		  <tr>
		    <td colspan="2">
		      <a class="updateSummaryLink" href="../../../WWW/admin/product/productDetails.php?productID=<?php echo $objProduct->getformProperties('productID'); ?>" accesskey="1">View product</a><br>
		      <a class="updateSummaryLink" href="../../../../WWW/admin/product/additionalDetails/listIngredients.php?productID=<?php echo $objProduct->getformProperties('productID'); ?>" accesskey="1">View ingredient list</a><br>
		      <a class="updateSummaryLink" href="../../../../WWW/admin/product/additionalDetails/listAlcoholContents.php?productID=<?php echo $objProduct->getformProperties('productID'); ?>" accesskey="1">View alcohol content list</a>
		    </td>
		  </tr>
	    <?php }