// +-- // | Loop through the products. // +-- foreach ($prodlist as $num => $prod) { // +-- // | Print a table row opener. // +-- print '<tr class="' . $trclass . '">' . $eol . $eol; // +-- // | Print the tds and their content. // +-- $prodname = $this->xhtml_encode($prod['name']); $prodid = $this->xhtml_encode($prod['id']); $prodlink = $this->link_namespace($app,'prodshow',$prod['id']); $proddesc = $this->xhtml_encode($prod['descshort']); $imgname = $prod['imgsm']; $add_ok = 1; if (($prod['useinv']) && (!($prod['invlevel'] > 0))) {$add_ok = 0;} if ($prod['pricestatus'] == 'D') {$add_ok = 0;} $quandisp = 0; $quanform = $this->globals('khxc_cgi.' . $formid . '--' . $prodid . '--quantity'); if (isset($quanform)) {$quandisp = $quanform;} if ($add_ok) { print '<td class="' . $tdclass . '">' . $eol . $eol; print '<label for="' . $formid . '--' . $prodid . '--quantity'; print '" class="hidden">Quantity</label>' . $eol; print '<input class="khxc_formfield" type="text" name="'; print $formid . '--' . $prodid . '--quantity'; print '" id="' . $formid . '--' . $prodid . '--quantity'; print '" value="' . $quandisp . '" size="5" maxlength="5" />' . $eol; print '</td>' . $eol . $eol; } else { print '<td class="' . $tdclass . '"> ' . $eol . $eol; print '<label for="' . $formid . '--' . $prodid . '--quantity'; print '" class="hidden">Quantity</label>' . $eol; print '<p class="hidden"><input type="hidden" name="'; print $formid . '--' . $prodid . '--quantity'; print '" id="' . $formid . '--' . $prodid . '--quantity'; print '" value="' . $quandisp . '" /></p>' . $eol; print '</td>' . $eol . $eol; } // End of if statement. $image_ok = 0; if ((!(empty($imgname))) && ($imgname != 'none.png')) {$image_ok = 1;} if ($image_ok) { $imgurl = 'media/' . $app . '/prodsm/' . $imgname; $imgtag = '<a href="' . $prodlink . '" title="' . $prodname . '">'; $imgtag .= '<img src="' . $imgurl . '" '; if ($imgwidth) {$imgtag .= 'width="' . $imgwidth . '" ';} $imgtag .= 'alt="' . $prodname . '" /></a>'; print '<td class="' . $tdclass . '">' . $imgtag . '</td>' . $eol . $eol; } else { if ($multi_images) { print '<td class="' . $tdclass . '"> </td>' . $eol . $eol; } // End of if statement. } // End of if statement. print '<td class="' . $tdclass . '">'; print '<p><a href="' . $prodlink . '" title="' . $prodname . '">'; print $prodname . '</a></p>' . $eol; if (!(empty($proddesc))) {print '<p>' . $proddesc . '</p>' . $eol;} $this->globals('ecom.prod_proddisp',$prod); $this->globals('ecom.prod_priceinfo',$prod['khxc.priceinfo']); $this->include_file($app,'pricedisp.php'); if ($add_ok) { $this->include_namespace($app,'prodshowoptlite',array('form' => $formid . '--' . $prodid, 'showquan' => 0, 'headfoot' => 0)); } // End of if statement. print '</td>' . $eol . $eol; // +-- // | Close the table row. // +-- print '</tr>' . $eol . $eol; } // End of foreach statement.
// +-- // | Loop through the products. // +-- $counter = 0; //Init the counter foreach ($prodlist as $num => $prod) { //Leave the below line at the top of the loop $counter++; //Increment the counter with each product //The counter starts at 1 and counts up // +-- // | Print a table row opener. // +-- print '<tr class="' . $trclass . '">' . $eol . $eol; // +-- // | Print the tds and their content. // +-- $prodname = $this->xhtml_encode($prod['name']); $prodid = $this->xhtml_encode($prod['id']); $prodlink = $this->link_namespace($app,'prodshow',$prod['id']); $proddesc = $this->xhtml_encode($prod['descshort']); $imgname = $prod['imgsm']; $add_ok = 1; if (($prod['useinv']) && (!($prod['invlevel'] > 0))) {$add_ok = 0;} if ($prod['pricestatus'] == 'D') {$add_ok = 0;} $quandisp = 0; $quanform = $this->globals('khxc_cgi.' . $formid . '--' . $prodid . '--quantity'); if (isset($quanform)) {$quandisp = $quanform;} if ($add_ok) { print '<td class="' . $tdclass . '">' . $eol . $eol; print '<label for="' . $formid . '--' . $prodid . '--quantity'; print '" class="hidden">Quantity</label>' . $eol; print '<input class="khxc_formfield" type="text" name="'; print $formid . '--' . $prodid . '--quantity'; print '" id="' . $formid . '--' . $prodid . '--quantity'; print '" value="' . $quandisp . '" size="5" maxlength="5" />' . $eol; print '</td>' . $eol . $eol; } else { print '<td class="' . $tdclass . '"> ' . $eol . $eol; print '<label for="' . $formid . '--' . $prodid . '--quantity'; print '" class="hidden">Quantity</label>' . $eol; print '<p class="hidden"><input type="hidden" name="'; print $formid . '--' . $prodid . '--quantity'; print '" id="' . $formid . '--' . $prodid . '--quantity'; print '" value="' . $quandisp . '" /></p>' . $eol; print '</td>' . $eol . $eol; } // End of if statement. $image_ok = 0; if ((!(empty($imgname))) && ($imgname != 'none.png')) {$image_ok = 1;} if ($image_ok) { $imgurl = 'media/' . $app . '/prodsm/' . $imgname; $imgtag = '<a href="' . $prodlink . '" title="' . $prodname . '">'; $imgtag .= '<img src="' . $imgurl . '" '; if ($imgwidth) {$imgtag .= 'width="' . $imgwidth . '" ';} $imgtag .= 'alt="' . $prodname . '" /></a>'; print '<td class="' . $tdclass . '">' . $imgtag . '</td>' . $eol . $eol; } else { if ($multi_images) { print '<td class="' . $tdclass . '"> </td>' . $eol . $eol; } // End of if statement. } // End of if statement. print '<td class="' . $tdclass . '">'; print '<p><a href="' . $prodlink . '" title="' . $prodname . '">'; print $prodname . '</a></p>' . $eol; if (!(empty($proddesc))) {print '<p>' . $proddesc . '</p>' . $eol;} $this->globals('ecom.prod_proddisp',$prod); $this->globals('ecom.prod_priceinfo',$prod['khxc.priceinfo']); $this->include_file($app,'pricedisp.php'); if ($add_ok) { $this->include_namespace($app,'prodshowoptlite',array('form' => $formid . '--' . $prodid, 'showquan' => 0, 'headfoot' => 0)); } // End of if statement. print '</td>' . $eol . $eol; // +-- // | Close the table row. // +-- print '</tr>' . $eol . $eol; } // End of foreach statement.
// +-- // | Print a table row opener. // +-- if ($counter >= 1) { print '<tr>'; }
<?php $app = $this->globals('khxc_display.app'); $ns = $this->globals('khxc.namespace'); $ref = $this->globals('khxc.ref'); $eol = $this->globals('khxc.eol'); $prodlist = $this->globals('ecom.prod_prodlist'); $navarray = $this->globals('ecom.prod_navarray'); $imgwidth = $this->globals('khxc_settings.' . $app . '.imgsizeprodsm'); $disablewl = $this->globals('khxc_settings.' . $app . '.disablewishlist'); $supsort = $this->globals('ecom.prod_suppress_sort'); $showsort = $this->globals('khxc_settings.' . $app . '.showsortopts'); $catshow = $this->globals('ecom.cat_catshow'); $catid = $catshow['id']; $columns = 2; if ($catid == 'test') { $prodcount = count($prodlist); // +-- // | In this step we determine whether we will be showing // | images in this display. // +-- $multi_images = 0; foreach ($prodlist as $num => $prod) { if ((!(empty($prod['imgsm']))) && ($prod['imgsm'] != 'none.png')) {$multi_images = 1;} } // End of foreach statement. // +-- // | Define the header text. // +-- $header = $this->globals('ecom.prod_store_header'); if (empty($header)) { if ($ns == 'prodshow') {$header = 'Related Items';} else {$header = 'Items';} } else { $header .= ' Featured Items'; } // End of if statement. $header = $this->xhtml_encode($header); $random = 'x' . $this->random_key(8); // +-- // | Print the products header. // +-- print '<div class="khxc_storehead">' . $header . '</div>' . $eol . $eol; // +-- // | Print the form opener. // +-- $nsid = 'ns'; $formid = $app . '--prodaddtocartM'; $this->xhtml_quickform_header($formid,$app,'addcart',array($nsid => $ns)); // +-- // | Print multi-add table header. // +-- if (empty($disablewl)) { print ''; } else { print ''; } // End of if statement. print '<table id="khxc--cptbl--' . $random . '" class="khxc_sorttable">' . $eol . $eol; $trclass = 'khxc_sorttable'; $tdclass = 'khxc_sorttable'; print '<tr class="khxc_sorttable">' . $eol . $eol; print '<th class="khxc_sorttable">Quantity</th>' . $eol; if ($multi_images) { print '<th class="khxc_sorttable"><p class="hidden">Image</p></th>' . $eol; print '<th class="khxc_sorttable">Item</th>' . $eol; } else { print '<th class="khxc_sorttable">Item</th>' . $eol; } // End of if statement. print '</tr>' . $eol . $eol; // +-- // | Loop through the products. // +-- $counter = 0; //Init the counter foreach ($prodlist as $num => $prod) { //Leave the below line at the top of the loop $counter++; //Increment the counter with each product //The counter starts at 1 and counts up // +-- // | Print a table row opener. // +-- print '<tr class="' . $trclass . '">' . $eol . $eol; // +-- // | Print the tds and their content. // +-- $prodname = $this->xhtml_encode($prod['name']); $prodid = $this->xhtml_encode($prod['id']); $prodlink = $this->link_namespace($app,'prodshow',$prod['id']); $proddesc = $this->xhtml_encode($prod['descshort']); $imgname = $prod['imgsm']; $add_ok = 1; if (($prod['useinv']) && (!($prod['invlevel'] > 0))) {$add_ok = 0;} if ($prod['pricestatus'] == 'D') {$add_ok = 0;} $quandisp = 0; $quanform = $this->globals('khxc_cgi.' . $formid . '--' . $prodid . '--quantity'); if (isset($quanform)) {$quandisp = $quanform;} if ($add_ok) { print '<td class="' . $tdclass . '">' . $eol . $eol; print '<label for="' . $formid . '--' . $prodid . '--quantity'; print '" class="hidden">Quantity</label>' . $eol; print '<input class="khxc_formfield" type="text" name="'; print $formid . '--' . $prodid . '--quantity'; print '" id="' . $formid . '--' . $prodid . '--quantity'; print '" value="' . $quandisp . '" size="5" maxlength="5" />' . $eol; print '</td>' . $eol . $eol; } else { print '<td class="' . $tdclass . '"> ' . $eol . $eol; print '<label for="' . $formid . '--' . $prodid . '--quantity'; print '" class="hidden">Quantity</label>' . $eol; print '<p class="hidden"><input type="hidden" name="'; print $formid . '--' . $prodid . '--quantity'; print '" id="' . $formid . '--' . $prodid . '--quantity'; print '" value="' . $quandisp . '" /></p>' . $eol; print '</td>' . $eol . $eol; } // End of if statement. $image_ok = 0; if ((!(empty($imgname))) && ($imgname != 'none.png')) {$image_ok = 1;} if ($image_ok) { $imgurl = 'media/' . $app . '/prodsm/' . $imgname; $imgtag = '<a href="' . $prodlink . '" title="' . $prodname . '">'; $imgtag .= '<img src="' . $imgurl . '" '; if ($imgwidth) {$imgtag .= 'width="' . $imgwidth . '" ';} $imgtag .= 'alt="' . $prodname . '" /></a>'; print '<td class="' . $tdclass . '">' . $imgtag . '</td>' . $eol . $eol; } else { if ($multi_images) { print '<td class="' . $tdclass . '"> </td>' . $eol . $eol; } // End of if statement. } // End of if statement. print '<td class="' . $tdclass . '">'; print '<p><a href="' . $prodlink . '" title="' . $prodname . '">'; print $prodname . '</a></p>' . $eol; if (!(empty($proddesc))) {print '<p>' . $proddesc . '</p>' . $eol;} $this->globals('ecom.prod_proddisp',$prod); $this->globals('ecom.prod_priceinfo',$prod['khxc.priceinfo']); $this->include_file($app,'pricedisp.php'); if ($add_ok) { $this->include_namespace($app,'prodshowoptlite',array('form' => $formid . '--' . $prodid, 'showquan' => 0, 'headfoot' => 0)); } // End of if statement. print '</td>' . $eol . $eol; // +-- // | Close the table row. // +-- print '</tr>' . $eol . $eol; } // End of foreach statement. ?>
<?php $app = $this->globals('khxc_display.app'); $ns = $this->globals('khxc.namespace'); $ref = $this->globals('khxc.ref'); $eol = $this->globals('khxc.eol'); $prodlist = $this->globals('ecom.prod_prodlist'); $navarray = $this->globals('ecom.prod_navarray'); $imgwidth = $this->globals('khxc_settings.' . $app . '.imgsizeprodsm'); $disablewl = $this->globals('khxc_settings.' . $app . '.disablewishlist'); $supsort = $this->globals('ecom.prod_suppress_sort'); $showsort = $this->globals('khxc_settings.' . $app . '.showsortopts'); $catshow = $this->globals('ecom.cat_catshow'); $catid = $catshow['id']; $columns = 2; // if ($catid == 'test') { $prodcount = count($prodlist); // +-- // | In this step we determine whether we will be showing // | images in this display. // +-- $multi_images = 0; foreach ($prodlist as $num => $prod) { if ((!(empty($prod['imgsm']))) && ($prod['imgsm'] != 'none.png')) {$multi_images = 1;} } // End of foreach statement. // +-- // | Define the header text. // +-- $header = $this->globals('ecom.prod_store_header'); if (empty($header)) { if ($ns == 'prodshow') {$header = 'Related Items';} else {$header = 'Items';} } else { $header .= ' Featured Items'; } // End of if statement. $header = $this->xhtml_encode($header); $random = 'x' . $this->random_key(8); // +-- // | Print the products header. // +-- print '<div class="khxc_storehead">' . $header . '</div>' . $eol . $eol; // +-- // | Print the form opener. // +-- $nsid = 'ns'; $formid = $app . '--prodaddtocartM'; $this->xhtml_quickform_header($formid,$app,'addcart',array($nsid => $ns)); // +-- // | Print multi-add table header. // +-- if (empty($disablewl)) { print ''; } else { print ''; } // End of if statement. print '<table id="khxc--cptbl--' . $random . '" class="khxc_sorttable">' . $eol . $eol; // +-- // | Loop through the products. // +-- $counter = 0; foreach ($prodlist as $num => $prod) { //Leave the below line at the top of the loop $counter++; //Increment the counter with each product //The counter starts at 1 and counts up // +-- // | Print a table row opener. // +-- // print '<tr class="' . $trclass . '">' . $eol . $eol; // +-- // | Print the tds and their content. // +-- $prodname = $this->xhtml_encode($prod['name']); $prodid = $this->xhtml_encode($prod['id']); $prodlink = $this->link_namespace($app,'prodshow',$prod['id']); $proddesc = $this->xhtml_encode($prod['descshort']); $imgname = $prod['imgsm']; $add_ok = 1; if (($prod['useinv']) && (!($prod['invlevel'] > 0))) {$add_ok = 0;} if ($prod['pricestatus'] == 'D') {$add_ok = 0;} $quandisp = 0; $quanform = $this->globals('khxc_cgi.' . $formid . '--' . $prodid . '--quantity'); if (isset($quanform)) {$quandisp = $quanform;} if ($add_ok) { print '<td class="' . $tdclass . '">' . $eol . $eol; print '<label for="' . $formid . '--' . $prodid . '--quantity'; print '" class="hidden">Quantity</label>' . $eol; print '<input class="khxc_formfield" type="text" name="'; print $formid . '--' . $prodid . '--quantity'; print '" id="' . $formid . '--' . $prodid . '--quantity'; print '" value="' . $quandisp . '" size="5" maxlength="5" />' . $eol; print '</td>' . $eol . $eol; } else { print '<td class="' . $tdclass . '"> ' . $eol . $eol; print '<label for="' . $formid . '--' . $prodid . '--quantity'; print '" class="hidden">Quantity</label>' . $eol; print '<p class="hidden"><input type="hidden" name="'; print $formid . '--' . $prodid . '--quantity'; print '" id="' . $formid . '--' . $prodid . '--quantity'; print '" value="' . $quandisp . '" /></p>' . $eol; print '</td>' . $eol . $eol; } // End of if statement. $image_ok = 0; if ((!(empty($imgname))) && ($imgname != 'none.png')) {$image_ok = 1;} if ($image_ok) { $imgurl = 'media/' . $app . '/prodsm/' . $imgname; $imgtag = '<a href="' . $prodlink . '" title="' . $prodname . '">'; $imgtag .= '<img src="' . $imgurl . '" '; if ($imgwidth) {$imgtag .= 'width="' . $imgwidth . '" ';} $imgtag .= 'alt="' . $prodname . '" /></a>'; print '<td class="' . $tdclass . '">' . $imgtag . '</td>' . $eol . $eol; } else { if ($multi_images) { print '<td class="' . $tdclass . '"> </td>' . $eol . $eol; } // End of if statement. } // End of if statement. print '<td class="' . $tdclass . '">'; print '<p><a href="' . $prodlink . '" title="' . $prodname . '">'; print $prodname . '</a></p>' . $eol; if (!(empty($proddesc))) {print '<p>' . $proddesc . '</p>' . $eol;} $this->globals('ecom.prod_proddisp',$prod); $this->globals('ecom.prod_priceinfo',$prod['khxc.priceinfo']); $this->include_file($app,'pricedisp.php'); if ($add_ok) { $this->include_namespace($app,'prodshowoptlite',array('form' => $formid . '--' . $prodid, 'showquan' => 0, 'headfoot' => 0)); } // End of if statement. print '</td>' . $eol . $eol; // +-- // | Close the table row. // +-- //print '</tr>' . $eol . $eol; } // End of foreach statement. if ($counter == 5) { // +-- // | Close the table row. // +-- print '</tr>' . $eol . $eol; // +-- // | Print a table row opener. // +-- print '<tr class="' . $trclass . '">' . $eol . $eol; $counter = 0; } ?>
<?php $app = $this->globals('khxc_display.app'); $ns = $this->globals('khxc.namespace'); $ref = $this->globals('khxc.ref'); $eol = $this->globals('khxc.eol'); $prodlist = $this->globals('ecom.prod_prodlist'); $navarray = $this->globals('ecom.prod_navarray'); $imgwidth = $this->globals('khxc_settings.' . $app . '.imgsizeprodsm'); $disablewl = $this->globals('khxc_settings.' . $app . '.disablewishlist'); $supsort = $this->globals('ecom.prod_suppress_sort'); $showsort = $this->globals('khxc_settings.' . $app . '.showsortopts'); // $catshow = $this->globals('ecom.cat_catshow'); // $catid = $catshow['id']; $columns = 2; // if ($catid == 'test') { $prodcount = count($prodlist); // +-- // | In this step we determine whether we will be showing // | images in this display. // +-- $multi_images = 0; foreach ($prodlist as $num => $prod) { if ((!(empty($prod['imgsm']))) && ($prod['imgsm'] != 'none.png')) {$multi_images = 1;} } // End of foreach statement. // +-- // | Define the header text. // +-- $header = $this->globals('ecom.prod_store_header'); if (empty($header)) { if ($ns == 'prodshow') {$header = 'Related Items';} else {$header = 'Items';} } else { $header .= ' Featured Items'; } // End of if statement. $header = $this->xhtml_encode($header); $random = 'x' . $this->random_key(8); // +-- // | Print the products header. // +-- print '<div class="khxc_storehead">' . $header . '</div>' . $eol . $eol; // +-- // | Print the form opener. // +-- $nsid = 'ns'; $formid = $app . '--prodaddtocartM'; $this->xhtml_quickform_header($formid,$app,'addcart',array($nsid => $ns)); // +-- // | Print multi-add table header. // +-- if (empty($disablewl)) { print ''; } else { print ''; } // End of if statement. print '<table id="khxc--cptbl--' . $random . '" class="khxc_sorttable">' . $eol . $eol; // +-- // | Print a table row opener. // +-- print '<tr class="' . $trclass . '">' . $eol . $eol; // +-- // | Loop through the products. // +-- $counter = 0; foreach ($prodlist as $num => $prod) { //Leave the below line at the top of the loop $counter++; //Increment the counter with each product //The counter starts at 1 and counts up // +-- // | Print the tds and their content. // +-- $prodname = $this->xhtml_encode($prod['name']); $prodid = $this->xhtml_encode($prod['id']); $prodlink = $this->link_namespace($app,'prodshow',$prod['id']); $proddesc = $this->xhtml_encode($prod['descshort']); $imgname = $prod['imgsm']; $add_ok = 1; if (($prod['useinv']) && (!($prod['invlevel'] > 0))) {$add_ok = 0;} if ($prod['pricestatus'] == 'D') {$add_ok = 0;} $quandisp = 0; $quanform = $this->globals('khxc_cgi.' . $formid . '--' . $prodid . '--quantity'); if (isset($quanform)) {$quandisp = $quanform;} if ($add_ok) { print '<td class="' . $tdclass . '">' . $eol . $eol; print '<label for="' . $formid . '--' . $prodid . '--quantity'; print '" class="hidden">Quantity</label>' . $eol; print '<input class="khxc_formfield" type="text" name="'; print $formid . '--' . $prodid . '--quantity'; print '" id="' . $formid . '--' . $prodid . '--quantity'; print '" value="' . $quandisp . '" size="5" maxlength="5" />' . $eol; print '</td>' . $eol . $eol; } else { print '<td class="' . $tdclass . '"> ' . $eol . $eol; print '<label for="' . $formid . '--' . $prodid . '--quantity'; print '" class="hidden">Quantity</label>' . $eol; print '<p class="hidden"><input type="hidden" name="'; print $formid . '--' . $prodid . '--quantity'; print '" id="' . $formid . '--' . $prodid . '--quantity'; print '" value="' . $quandisp . '" /></p>' . $eol; print '</td>' . $eol . $eol; } // End of if statement. $image_ok = 0; if ((!(empty($imgname))) && ($imgname != 'none.png')) {$image_ok = 1;} if ($image_ok) { $imgurl = 'media/' . $app . '/prodsm/' . $imgname; $imgtag = '<a href="' . $prodlink . '" title="' . $prodname . '">'; $imgtag .= '<img src="' . $imgurl . '" '; if ($imgwidth) {$imgtag .= 'width="' . $imgwidth . '" ';} $imgtag .= 'alt="' . $prodname . '" /></a>'; print '<td class="' . $tdclass . '">' . $imgtag . '</td>' . $eol . $eol; } else { if ($multi_images) { print '<td class="' . $tdclass . '"> </td>' . $eol . $eol; } // End of if statement. } // End of if statement. print '<td class="' . $tdclass . '">'; print '<p><a href="' . $prodlink . '" title="' . $prodname . '">'; print $prodname . '</a></p>' . $eol; if (!(empty($proddesc))) {print '<p>' . $proddesc . '</p>' . $eol;} $this->globals('ecom.prod_proddisp',$prod); $this->globals('ecom.prod_priceinfo',$prod['khxc.priceinfo']); $this->include_file($app,'pricedisp.php'); if ($add_ok) { $this->include_namespace($app,'prodshowoptlite',array('form' => $formid . '--' . $prodid, 'showquan' => 0, 'headfoot' => 0)); } // End of if statement. print '</td>' . $eol . $eol; // +-- // | Close the table row. // +-- //print '</tr>' . $eol . $eol; if ($counter == 2) { // +-- // | Close the table row. // +-- print '</tr>' . $eol . $eol; // +-- // | Print a table row opener. // +-- print '<tr class="' . $trclass . '">' . $eol . $eol; $counter = 0; } } // End of foreach statement. // +-- // | Print the table closure. // +-- print '</table>' . $eol . $eol; // +-- // | Print the form closure. // +-- $this->xhtml_quickform_footer($formid,'Add To Purchase List',1); // +-- // | Print navigation links if we have any. // +-- if (!(empty($navarray))) { $this->include_file($app,'prodnav.php'); } // End of if statement. // } // End of if statement. ?>
| DaniWeb Message | |
| Cancel Changes | |