tab4.php 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <form id="stock_option_form" method="POST">
  2. <header>
  3. <h2><?php echo $tab_name_3_2;?></h2>
  4. </header>
  5. <div>
  6. <label class="desc" id="option_filterstock_legend" for="option_filterstock">
  7. <?php echo $filter_stock;?>
  8. </label>
  9. <div>
  10. <select id="fsync_option_filterstock" name="fsync_option_filterstock" class="field select medium">
  11. <option value=""><?php echo $loading_data_please_wait; ?></option>
  12. </select>
  13. <input type="hidden" id="fsync_option_filterstock_hidden" value="<?php echo $option['fsync_option_filterstock'];?>" />
  14. <input type="hidden" id="fsync_shop_hidden" value="<?php echo (isset($_REQUEST['shop']) ? $_REQUEST['shop'] : '');?>" />
  15. </div>
  16. </div>
  17. <div>
  18. <fieldset>
  19. <legend id="auto_stock_sync_legend" class="desc">
  20. <?php echo $auto_stock_sync; ?>
  21. </legend>
  22. <div>
  23. <?php foreach($autoSyncOptions as $autoSyncOptionsElement): ?>
  24. <div>
  25. <input id="fsync_option_autosyncstock<?php echo $autoSyncOptionsElement['id']; ?>" name="fsync_option_autosyncstock" type="radio" value="<?php echo $autoSyncOptionsElement['id']; ?>"
  26. <?php if($autoSyncOptionsElement['id'] == $option['fsync_option_autosyncstock']): ?>
  27. checked="checked"
  28. <?php endif; ?>
  29. >
  30. <label class="choice" for="fsync_option_autosyncstock<?php echo $autoSyncOptionsElement['id'];?>"><?php echo $autoSyncOptionsElement['label']; ?></label>
  31. </div>
  32. <?php endforeach; ?>
  33. </div>
  34. </fieldset>
  35. </div>
  36. <div>
  37. <fieldset>
  38. <legend id="location_legend" class="desc">
  39. <?php echo $locations; ?>
  40. </legend>
  41. <div>
  42. <?php foreach($shopLocations as $shopLocation): ?>
  43. <div>
  44. <input id="fsync_option_location<?php echo $shopLocation['id']; ?>" name="fsync_option_locations[]" type="checkbox" value="<?php echo $shopLocation['id']; ?>"
  45. <?php if(
  46. (is_array($option['fsync_option_locations']) &&
  47. in_array($shopLocation['id'], $option['fsync_option_locations'])) ||
  48. is_null($option['fsync_option_locations'])): ?>
  49. checked="checked"
  50. <?php endif; ?>
  51. >
  52. <label class="choice" for="fsync_option_location<?php echo $shopLocation['id'];?>"><?php echo $shopLocation['name']; ?></label>
  53. </div>
  54. <?php endforeach; ?>
  55. </div>
  56. </fieldset>
  57. </div>
  58. <div class="center">
  59. <input type="hidden" name="action" value="save" />
  60. </div>
  61. <div class="center">
  62. <a href="javascript: void(0)" onclick="submitStockOptionForm();" class="btn btn-green" id="save-so-btn"><?php echo $save_btn;?></a>
  63. </div>
  64. </form>
  65. <!--<script>-->
  66. <!-- if($("#fsync_option_autosyncstockactiv").is(':checked')) {-->
  67. <!-- $('#fsync_option_link').show();-->
  68. <!-- } else {-->
  69. <!-- $('#fsync_option_link').hide();-->
  70. <!-- }-->
  71. <!---->
  72. <!-- $("#fsync_option_autosyncstockactiv").change(function() {-->
  73. <!-- if(this.checked) {-->
  74. <!-- $('#fsync_option_link').show();-->
  75. <!-- } else {-->
  76. <!-- $('#fsync_option_link').hide();-->
  77. <!-- }-->
  78. <!-- });-->
  79. <!---->
  80. <!-- $("#fsync_option_autosyncstockinactiv").change(function() {-->
  81. <!-- if(this.checked) {-->
  82. <!-- $('#fsync_option_link').hide();-->
  83. <!-- } else {-->
  84. <!-- $('#fsync_option_link').show();-->
  85. <!-- }-->
  86. <!-- });-->
  87. <!--</script>-->