GX-Bug #45329 » GoogleExportAvailabilityFix.patch
src/admin/html/compatibility/product/product_master_data.inc.php (revision ) | ||
---|---|---|
276 | 276 |
|
277 | 277 |
/** |
278 | 278 |
* ##################################################################################################################### |
279 |
* Set google export availability values |
|
280 |
* ##################################################################################################################### |
|
281 |
*/ |
|
282 |
|
|
283 |
$googleExportAvailabilityArray[] = array('id' => '', 'text' => $languageTextManager->get_text('text_please_select','product_item_codes') ); |
|
284 |
|
|
285 |
$availabilitySql = "SELECT google_export_availability_id, availability FROM google_export_availability ORDER BY google_export_availability_id"; |
|
286 |
$availabilityResult = xtc_db_query($availabilitySql); |
|
287 |
while($availabilityResultArray = xtc_db_fetch_array($availabilityResult)) |
|
288 |
{ |
|
289 |
$googleExportAvailabilityArray[] = array('id' => $availabilityResultArray['google_export_availability_id'], 'text' => $availabilityResultArray['availability'] ); |
|
290 |
} |
|
291 |
|
|
292 |
|
|
293 |
/** |
|
294 |
* ##################################################################################################################### |
|
279 | 295 |
* Set gm motion values |
280 | 296 |
* ##################################################################################################################### |
281 | 297 |
*/ |
... | ... | |
549 | 565 |
</div> |
550 | 566 |
<div class="span6"> |
551 | 567 |
<?php echo xtc_draw_pull_down_menu('gm_changefreq', $siteMapChangeFreqArray, $pInfo->gm_changefreq); ?> |
568 |
</div> |
|
569 |
</div> |
|
570 |
<div class="grid control-group remove-border"> |
|
571 |
<div class="span6"> |
|
572 |
<label><?php echo $languageTextManager->get_text('label_availability','product_item_codes') ?>:</label> |
|
573 |
</div> |
|
574 |
<div class="span6"> |
|
575 |
<?php echo xtc_draw_pull_down_menu('google_export_availability_id', $googleExportAvailabilityArray, $pInfo->google_export_availability_id, 'style="width: 130px"'); ?> |
|
552 | 576 |
</div> |
553 | 577 |
</div> |
554 | 578 |
</div> |