Ejemplo n.º 1
0
 function displaySettings()
 {
     $contents = xtc_draw_form('modules', 'easymarketing.php', 'content=save', 'post');
     $module_keys = $this->keys();
     $keys_extra = array();
     for ($j = 0, $k = sizeof($module_keys); $j < $k; $j++) {
         $key_value_query = xtc_db_query("SELECT configuration_key,\n                                              configuration_value,\n                                              use_function,\n                                              set_function\n                                         FROM " . TABLE_CONFIGURATION . "\n                                        WHERE configuration_key = '" . $module_keys[$j] . "'");
         $key_value = xtc_db_fetch_array($key_value_query);
         if ($key_value['configuration_key'] != '') {
             $keys_extra[$module_keys[$j]]['title'] = constant(strtoupper($key_value['configuration_key'] . '_TITLE'));
         }
         $keys_extra[$module_keys[$j]]['value'] = $key_value['configuration_value'];
         if ($key_value['configuration_key'] != '') {
             $keys_extra[$module_keys[$j]]['description'] = constant(strtoupper($key_value['configuration_key'] . '_DESC'));
         }
         $keys_extra[$module_keys[$j]]['use_function'] = $key_value['use_function'];
         $keys_extra[$module_keys[$j]]['set_function'] = $key_value['set_function'];
     }
     $module_info['keys'] = $keys_extra;
     while (list($key, $value) = each($module_info['keys'])) {
         $contents .= '<b>' . $value['title'] . '</b><br />' . $value['description'] . '<br />';
         if ($value['set_function']) {
             eval('$contents .= ' . $value['set_function'] . "'" . $value['value'] . "', '" . $key . "');");
         } else {
             $contents .= xtc_draw_input_field('configuration[' . $key . ']', $value['value']);
         }
         $contents .= '<br/><br/>';
     }
     $contents .= '<br/>' . xtc_button(BUTTON_SAVE);
     $contents .= '<hr />' . xtc_button_link(MODULE_EM_UNINSTALL_BUTTON, xtc_href_link('easymarketing.php', xtc_get_all_get_params(array('content')) . 'content=check_uninstall'));
     return $contents;
 }
Ejemplo n.º 2
0
        $contents = array('form' => xtc_draw_form('campaigns', FILENAME_CAMPAIGNS, 'page=' . $_GET['page'] . '&cID=' . $cInfo->campaigns_id . '&action=save', 'post', 'enctype="multipart/form-data"'));
        $contents[] = array('text' => TEXT_EDIT_INTRO);
        $contents[] = array('text' => '<br />' . TEXT_CAMPAIGNS_NAME . '<br />' . xtc_draw_input_field('campaigns_name', $cInfo->campaigns_name));
        $contents[] = array('text' => '<br />' . TEXT_CAMPAIGNS_REFID . '<br />' . xtc_draw_input_field('campaigns_refID', $cInfo->campaigns_refID));
        $contents[] = array('align' => 'center', 'text' => '<br />' . xtc_button(BUTTON_SAVE) . '&nbsp;' . xtc_button_link(BUTTON_CANCEL, xtc_href_link(FILENAME_CAMPAIGNS, 'page=' . $_GET['page'] . '&cID=' . $cInfo->campaigns_id)));
        break;
    case 'delete':
        $heading[] = array('text' => '<b>' . TEXT_HEADING_DELETE_CAMPAIGN . '</b>');
        $contents = array('form' => xtc_draw_form('campaigns', FILENAME_CAMPAIGNS, 'page=' . $_GET['page'] . '&cID=' . $cInfo->campaigns_id . '&action=deleteconfirm'));
        $contents[] = array('text' => TEXT_DELETE_INTRO);
        $contents[] = array('text' => '<br /><b>' . $cInfo->campaigns_name . '</b>');
        if ($cInfo->refferers_count > 0) {
            $contents[] = array('text' => '<br />' . xtc_draw_checkbox_field('delete_refferers') . ' ' . TEXT_DELETE_REFFERERS);
            $contents[] = array('text' => '<br />' . sprintf(TEXT_DELETE_WARNING_REFFERERS, $cInfo->refferers_count));
        }
        $contents[] = array('align' => 'center', 'text' => '<br />' . xtc_button(BUTTON_DELETE) . '&nbsp;' . xtc_button_link(BUTTON_CANCEL, xtc_href_link(FILENAME_CAMPAIGNS, 'page=' . $_GET['page'] . '&cID=' . $cInfo->campaigns_id)));
        break;
    default:
        if (is_object($cInfo)) {
            $heading[] = array('text' => '<b>' . $cInfo->campaigns_name . '</b>');
            $contents[] = array('align' => 'center', 'text' => xtc_button_link(BUTTON_EDIT, xtc_href_link(FILENAME_CAMPAIGNS, 'page=' . $_GET['page'] . '&cID=' . $cInfo->campaigns_id . '&action=edit')) . '&nbsp;' . xtc_button_link(BUTTON_DELETE, xtc_href_link(FILENAME_CAMPAIGNS, 'page=' . $_GET['page'] . '&cID=' . $cInfo->campaigns_id . '&action=delete')));
            $contents[] = array('text' => '<br />' . TEXT_DATE_ADDED . ' ' . xtc_date_short($cInfo->date_added));
            if (xtc_not_null($cInfo->last_modified)) {
                $contents[] = array('text' => TEXT_LAST_MODIFIED . ' ' . xtc_date_short($cInfo->last_modified));
            }
            $contents[] = array('text' => TEXT_REFERER . '?refID=' . $cInfo->campaigns_refID);
        }
        break;
}
if (xtc_not_null($heading) && xtc_not_null($contents)) {
    echo '            <div class="col-md-4 col-sm-12 col-xs-12 pull-right">' . "\n";
                        echo '&nbsp;&nbsp;&nbsp;' . DL_COUNT . ' <input type="text" name="' . $current_value_id . '_download_count" value="' . (isset($attr_dl_array['products_attributes_maxcount']) ? $attr_dl_array['products_attributes_maxcount'] : '') . '" size="6">' . PHP_EOL;
                        echo '&nbsp;&nbsp;&nbsp;' . DL_EXPIRE . ' <input type="text" name="' . $current_value_id . '_download_expire" value="' . (isset($attr_dl_array['products_attributes_maxdays']) ? $attr_dl_array['products_attributes_maxdays'] : '') . '" size="6"></td>' . PHP_EOL;
                        echo '</tr>' . PHP_EOL;
                    }
                    // Download function end
                    echo '<tr class="' . $rowClass . ' hidden-lg hidden-md">' . PHP_EOL;
                    #hidden-lg hidden-md
                    echo '<td colspan="2" class="main" style="width:150px"><hr></td>' . PHP_EOL;
                    echo '</tr>';
                }
                if ($i == $matches2) {
                    $i = 0;
                }
            }
        } else {
            echo '<tr>' . PHP_EOL;
            echo '<td class="main"><small>No values under this option.</small></td>' . PHP_EOL;
            echo '</tr>' . PHP_EOL;
        }
    }
}
echo "</table></div>";
?>
    <div class="col-xs-12">
      <?php 
echo xtc_button(BUTTON_SAVE) . '&nbsp;';
echo xtc_button_link(BUTTON_BACK, xtc_href_link(FILENAME_NEW_ATTRIBUTES, $param));
?>
    </div>
</form>
</div>
Ejemplo n.º 4
0
 function display()
 {
     return array('text' => '<br/>' . xtc_button(BUTTON_REVIEW_APPROVE) . '&nbsp;' . xtc_button_link(BUTTON_CANCEL, xtc_href_link(FILENAME_MODULE_EXPORT, 'set=' . $_GET['set'] . '&module=easybill')));
 }
Ejemplo n.º 5
0
        break;
    case 'edit':
        $heading[] = array('text' => '<b>' . TEXT_HEADING_EDIT_WHOLESALER . '</b>');
        $contents = array('form' => xtc_draw_form('wholesalers', FILENAME_WHOLESALERS, 'page=' . $_GET['page'] . '&wID=' . $mInfo->wholesaler_id . '&action=save', 'post', 'enctype="multipart/form-data"'));
        $contents[] = array('text' => TEXT_EDIT_INTRO);
        $contents[] = array('text' => '<br />' . TEXT_WHOLESALERS_NAME . '<br />' . xtc_draw_input_field('wholesaler_name', $mInfo->wholesaler_name));
        $contents[] = array('text' => '<br />' . TEXT_WHOLESALERS_EMAIL . '<br />' . xtc_draw_input_field('wholesaler_email', $mInfo->wholesaler_email));
        $contents[] = array('text' => '<br />' . TEXT_WHOLESALERS_FILE . '<br />' . xtc_draw_input_field('wholesaler_email_template', $mInfo->wholesaler_email_template));
        $contents[] = array('align' => 'center', 'text' => '<br />' . xtc_button(BUTTON_SAVE) . '&nbsp;' . xtc_button_link(BUTTON_CANCEL, xtc_href_link(FILENAME_WHOLESALERS, 'page=' . $_GET['page'] . '&wID=' . $mInfo->wholesaler_id)));
        break;
    case 'delete':
        $heading[] = array('text' => '<b>' . TEXT_HEADING_DELETE_WHOLESALER . '</b>');
        $contents = array('form' => xtc_draw_form('wholesalers', FILENAME_WHOLESALERS, 'page=' . $_GET['page'] . '&wID=' . $mInfo->wholesaler_id . '&action=deleteconfirm'));
        $contents[] = array('text' => TEXT_DELETE_INTRO);
        $contents[] = array('text' => '<br /><b>' . $mInfo->wholesaler_name . '</b>');
        $contents[] = array('align' => 'center', 'text' => '<br />' . xtc_button(BUTTON_DELETE) . '&nbsp;' . xtc_button_link(BUTTON_CANCEL, xtc_href_link(FILENAME_WHOLESALERS, 'page=' . $_GET['page'] . '&wID=' . $mInfo->wholesaler_id)));
        break;
    default:
        if (is_object($mInfo)) {
            $heading[] = array('text' => '<b>' . $mInfo->wholesaler_name . '</b>');
            $contents[] = array('align' => 'center', 'text' => xtc_button_link(BUTTON_EDIT, xtc_href_link(FILENAME_WHOLESALERS, 'page=' . $_GET['page'] . '&wID=' . $mInfo->wholesaler_id . '&action=edit#edit-box')) . '&nbsp;' . xtc_button_link(BUTTON_DELETE, xtc_href_link(FILENAME_WHOLESALERS, 'page=' . $_GET['page'] . '&wID=' . $mInfo->wholesaler_id . '&action=delete#edit-box')));
        }
        break;
}
if (xtc_not_null($heading) && xtc_not_null($contents)) {
    echo '            <div class="col-md-3 col-sm-12 col-xs-12 pull-right edit-box-class" >' . "\n";
    $box = new box();
    echo $box->infoBox($heading, $contents);
    echo '            </div>' . "\n";
    ?>
    <script>
Ejemplo n.º 6
0
 function display()
 {
     $interval_array = array(array('id' => '86400', 'text' => '24 Stunden'), array('id' => '43200', 'text' => '12 Stunden'), array('id' => '21600', 'text' => '6 Stunden'), array('id' => '10800', 'text' => '3 Stunden'), array('id' => '3600', 'text' => '1 Stunden'));
     return array('text' => '<br/><b>' . MODULE_JANOLAW_UPDATE_INTERVAL_TITLE . '</b>
                         <br/>' . MODULE_JANOLAW_UPDATE_INTERVAL_DESC . '<br/>' . xtc_draw_pull_down_menu('configuration[MODULE_JANOLAW_UPDATE_INTERVAL]', $interval_array, MODULE_JANOLAW_UPDATE_INTERVAL) . '<br />' . '<br /><div align="center">' . xtc_button('OK') . xtc_button_link(BUTTON_CANCEL, xtc_href_link(FILENAME_MODULE_EXPORT, 'set=' . $_GET['set'] . '&module=janolaw')) . "</div>");
 }
">
                        <input type="hidden" name="option_id" value="<?php 
            echo $values_values['products_options_id'];
            ?>
">
                      </td>
                      <td align="center" class="smallText">&nbsp;<select name="option_id"><?php 
            echo $options_dropdown_select;
            ?>
</select>&nbsp;</td>
                      <td class="smallText"><?php 
            echo $inputs;
            ?>
</td>
                      <td align="center" class="smallText update">&nbsp;<?php 
            echo xtc_button(BUTTON_UPDATE);
            ?>
&nbsp;<?php 
            echo xtc_button_link(BUTTON_CANCEL, xtc_href_link(FILENAME_PRODUCTS_ATTRIBUTES, 'value_page=' . $_GET['value_page'] . $option_filter, 'NONSSL'));
            ?>
&nbsp;</td>
                    </tr>
                    </form>
<?php 
            // ############ EOF UPDATE ##############//
        } else {
            // ############ BOF LISTE ##############//
            ?>
                  <tr class="<?php 
            echo floor($rows / 2) == $rows / 2 ? 'attributes-even' : 'attributes-odd';
            ?>
 function display()
 {
     return array('text' => IMAGE_EXPORT_TYPE . '<br>' . IMAGE_EXPORT . '<br>' . '<br>' . xtc_button(BUTTON_REVIEW_APPROVE) . '&nbsp;' . xtc_button_link(BUTTON_CANCEL, xtc_href_link(FILENAME_MODULE_EXPORT, 'set=' . $_GET['set'] . '&module=image_processing_category')));
 }
Ejemplo n.º 9
0
 function display()
 {
     $customers_statuses_array = xtc_get_customers_statuses();
     // build Currency Select
     $curr = '';
     $currencies = xtc_db_query("SELECT code FROM " . TABLE_CURRENCIES);
     while ($currencies_data = xtc_db_fetch_array($currencies)) {
         $curr .= xtc_draw_radio_field('currencies', $currencies_data['code'], true) . $currencies_data['code'] . '<br>';
     }
     $campaign_array = array(array('id' => '', 'text' => TEXT_NONE));
     $campaign_query = xtc_db_query("select campaigns_name, campaigns_refID from " . TABLE_CAMPAIGNS . " order by campaigns_id");
     while ($campaign = xtc_db_fetch_array($campaign_query)) {
         $campaign_array[] = array('id' => 'refID=' . $campaign['campaigns_refID'] . '&', 'text' => $campaign['campaigns_name']);
     }
     $text = EXPORT_STATUS_TYPE . '<br>' . EXPORT_STATUS . '<br>' . xtc_draw_pull_down_menu('status', $customers_statuses_array, '1') . '<br>' . '<br><b>W&auml;hrung</b><br>' . $curr . '<br><b>Kampagne</b><br>' . xtc_draw_pull_down_menu('campaign', $campaign_array) . '<br>' . '<br><b>Speicherart</b><br>' . xtc_draw_radio_field('export', 'no', true) . EXPORT_NO . '<br>' . xtc_draw_radio_field('export', 'yes', false) . EXPORT_YES . '<br>' . '<br>' . xtc_button(BUTTON_EXPORT);
     $text = str_replace('<hr noshade>', '<br>', $text);
     $text = str_replace('<b>Kundengruppe:</b>', '<b>Kundengruppe</b>', $text);
     $text = str_replace('Bitte w&auml;hlen Sie die Kundengruppe, die Basis f&uuml;r den Exportierten Preis bildet. (Falls Sie keine Kundengruppenpreise haben, w&auml;hlen Sie <i>Gast</i>):</b>', 'Standard ist Gast', $text);
     return array('text' => $text);
 }
Ejemplo n.º 10
0
 public function display()
 {
     $tools = new tools();
     $missing_config_query = xtc_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_IDEALO_REALTIME_MISSING_CONFIG' LIMIT 1");
     $missing_config_db = xtc_db_fetch_array($missing_config_query);
     $missing_config_db = $missing_config_db['configuration_value'];
     $missing_config_user = '';
     $missing_config_url_input = '';
     $missing_config_shop_id_input = '';
     $missing_config_password_input = '';
     $missing_config_pagesize_input = '';
     $missing_config_shipping = '';
     $missing_config_payment = '';
     $missing_config_costs_idealo_DE_active = '';
     $missing_config_costs_idealo_DE_active = '';
     if ($missing_config_db != '') {
         if (strpos($missing_config_db, "user") !== false) {
             $missing_config_user = IDEALO_TEXT_MISSING_CONFIG;
         }
         if (strpos($missing_config_db, "url_input") !== false) {
             $missing_config_url_input = IDEALO_TEXT_MISSING_CONFIG;
         }
         if (strpos($missing_config_db, "shop_id_input") !== false) {
             $missing_config_shop_id_input = IDEALO_TEXT_MISSING_CONFIG;
         }
         if (strpos($missing_config_db, "password_input") !== false) {
             $missing_config_password_input = IDEALO_TEXT_MISSING_CONFIG;
         }
         if (strpos($missing_config_db, "pagesize_input") !== false) {
             $missing_config_page_size_input = IDEALO_TEXT_MISSING_CONFIG;
         }
         if (strpos($missing_config_db, "shipping") !== false && strpos($missing_config_db, "shippingDE") === false) {
             $missing_config_shipping = IDEALO_TEXT_MISSING_SHIPPING;
         }
         if (strpos($missing_config_db, "payment") !== false) {
             $missing_config_payment = IDEALO_TEXT_MISSING_PAYMENT;
         }
         if (strpos($missing_config_db, "idealo_DE_active") !== false) {
             $missing_config_costs_idealo_DE_active = IDEALO_TEXT_MISSING_COSTS_IDEALO_DE;
         }
         if (strpos($missing_config_db, "idealo_AT_active") !== false) {
             $missing_config_costs_idealo_AT_active = IDEALO_TEXT_MISSING_COSTS_IDEALO_DE;
         }
         if (strpos($missing_config_db, "shippingDElenght") !== false || strpos($missing_config_db, "shippingDEone") !== false) {
             $missing_config_format_idealo_DE_shipping = '<font color="#FF0000"><b>* ' . IDEALO_TEXT_WRONG_COSTS_FORMAT_DE . '</b></font>';
         }
         if (strpos($missing_config_db, "shippingATlenght") !== false || strpos($missing_config_db, "shippingATone") !== false) {
             $missing_config_format_idealo_AT_shipping = '<font color="#FF0000"><b>* ' . IDEALO_TEXT_WRONG_COSTS_FORMAT_AT . '</b></font>';
         }
     }
     $realtime_link = $path = HTTP_CATALOG_SERVER . DIR_WS_CATALOG . IDEALO_REALTIME_LINK;
     $shipping_input_query = xtc_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_IDEALO_REALTIME_SHIPPINGCOMMENT' LIMIT 1");
     $shipping_comment_db = xtc_db_fetch_array($shipping_input_query);
     $shipping_comment_text = $shipping_comment_db !== false ? $shipping_comment_db['configuration_value'] : '';
     $shop_id_query = xtc_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_IDEALO_REALTIME_SHOP_ID' LIMIT 1");
     $shop_id_db = xtc_db_fetch_array($shop_id_query);
     $shop_id = $shop_id_db['configuration_value'];
     $password_query = xtc_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_IDEALO_REALTIME_PASSWORD' LIMIT 1");
     $password_db = xtc_db_fetch_array($password_query);
     $password = $password_db['configuration_value'];
     $pagesize_query = xtc_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_IDEALO_REALTIME_PAGESIZE' LIMIT 1");
     $pagesize_db = xtc_db_fetch_array($pagesize_query);
     $pagesize = $pagesize_db['configuration_value'];
     $customers_statuses_array = xtc_get_customers_statuses();
     $campaign_array[] = array('id' => '0', 'text' => 'no');
     $campaign_array[] = array('id' => 'refID=' . CAMPAIGN . '&', 'text' => '94511215 (idealo)');
     $campaign_query = xtc_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_IDEALO_CAMPAIGN' LIMIT 1");
     $campaign_db = xtc_db_fetch_array($campaign_query);
     $campaign = $campaign_db['configuration_value'];
     $ship_text = '';
     $tools->getShipping();
     $this->shipping = $tools->shipping;
     foreach ($this->shipping as $ship) {
         if ($ship['country'] == 'DE') {
             $ship_text .= $this->getDisplayShip($ship, $missing_config_costs_idealo_DE_active, $missing_config_format_idealo_DE_shipping);
         }
         if ($ship['country'] == 'AT') {
             $ship_text .= $this->getDisplayShip($ship, $missing_config_costs_idealo_AT_active, $missing_config_format_idealo_AT_shipping);
         }
     }
     $payment_text = '';
     $tools->getPayment();
     $this->payment = $tools->payment;
     foreach ($this->payment as $payment) {
         $payment_text .= $this->getDisplayPayment($payment);
     }
     $testmode_query = xtc_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_IDEALO_REALTIME_TESTMODE' LIMIT 1");
     $testmode_db = xtc_db_fetch_array($testmode_query);
     $testmode_db = $testmode_db['configuration_value'];
     $textfile_array[] = array('id' => 'yes', 'text' => 'ja');
     $textfile_array[] = array('id' => 'no', 'text' => 'nein');
     $certificate_query = xtc_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_IDEALO_REALTIME_CERTIFICATE' LIMIT 1");
     $certificate_db = xtc_db_fetch_array($certificate_query);
     $certificate_db = $certificate_db['configuration_value'];
     $certificate_array[] = array('id' => '1', 'text' => 'ja');
     $certificate_array[] = array('id' => '0', 'text' => 'nein');
     $testmode = IDEALO_REALTIME_TESTMODE_ACTIVE . '<br>' . xtc_draw_pull_down_menu('testmode', $textfile_array, $testmode_db) . '<br>';
     $article_filter_array[] = array('id' => 'filter', 'text' => 'filtern');
     $article_filter_array[] = array('id' => 'export', 'text' => 'exportieren');
     $article_filter_query = xtc_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_IDEALO_REALTIME_ARTICLE_FILTER' LIMIT 1");
     $article_filter_db = xtc_db_fetch_array($article_filter_query);
     $article_value = $article_filter_db['configuration_value'];
     $article_filter_value_query = xtc_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_IDEALO_REALTIME_ARTICLE_FILTER_VALUE' LIMIT 1");
     $article_filter_value_db = xtc_db_fetch_array($article_filter_value_query);
     $article_filter_value = $article_filter_value_db['configuration_value'];
     $article_filter = IDEALO_REALTIME_ARTICLE_FILTER . '<br>' . IDEALO_REALTIME_ARTICLE_FILTER_SELECTION . '<br>' . xtc_draw_pull_down_menu('article_filter', $article_filter_array, $article_value) . '<br><br>' . IDEALO_REALTIME_ARTICLE_FILTER_TEXT . '<br>' . xtc_draw_input_field('article_filter_value', $article_filter_value) . '<br><br>';
     $brand_filter_array[] = array('id' => 'filter', 'text' => 'filtern');
     $brand_filter_array[] = array('id' => 'export', 'text' => 'exportieren');
     $brand_filter_query = xtc_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_IDEALO_REALTIME_BRAND_FILTER' LIMIT 1");
     $brand_filter_db = xtc_db_fetch_array($brand_filter_query);
     $brand_value = $brand_filter_db['configuration_value'];
     $brand_filter_value_query = xtc_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_IDEALO_REALTIME_BRAND_FILTER_VALUE' LIMIT 1");
     $brand_filter_value_db = xtc_db_fetch_array($brand_filter_value_query);
     $brand_filter_value = $brand_filter_value_db['configuration_value'];
     $brand_filter = IDEALO_REALTIME_BRAND_FILTER . '<br>' . IDEALO_REALTIME_BRAND_FILTER_SELECTION . '<br>' . xtc_draw_pull_down_menu('brand_filter', $brand_filter_array, $brand_value) . '<br><br>' . IDEALO_REALTIME_BRAND_FILTER_TEXT . '<br>' . xtc_draw_input_field('brand_filter_value', $brand_filter_value) . '<br><br>';
     $cat_filter_array[] = array('id' => 'filter', 'text' => 'filtern');
     $cat_filter_array[] = array('id' => 'export', 'text' => 'exportieren');
     $cat_filter_query = xtc_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_IDEALO_REALTIME_CAT_FILTER' LIMIT 1");
     $cat_filter_db = xtc_db_fetch_array($cat_filter_query);
     $cat_value = $cat_filter_db['configuration_value'];
     $cat_filter_value_query = xtc_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_IDEALO_REALTIME_CAT_FILTER_VALUE' LIMIT 1");
     $cat_filter_value_db = xtc_db_fetch_array($cat_filter_value_query);
     $cat_filter_value = $cat_filter_value_db['configuration_value'];
     $cat_filter = IDEALO_REALTIME_CAT_FILTER . '<br>' . IDEALO_REALTIME_CAT_FILTER_SELECTION . '<br>' . xtc_draw_pull_down_menu('cat_filter', $cat_filter_array, $cat_value) . '<br><br>' . IDEALO_REALTIME_CAT_FILTER_TEXT . '<br>' . xtc_draw_input_field('cat_filter_value', $cat_filter_value) . '<br><br>';
     $tools->getMinorderValues();
     $minOrderDisplay = IDEALO_REALTIME_MIN_ORDER_TITLE . '<br><br>' . IDEALO_REALTIME_MIN_ORDER_VALUE . '<br>' . xtc_draw_input_field('idealo_realtime_minOrder_input', $tools->minOrder) . '<br>' . IDEALO_REALTIME_MIN_ORDER_TEXT . '<br><br>' . IDEALO_REALTIME_MIN_EXTRA_COSTS . '<br>' . xtc_draw_input_field('idealo_realtime_minOrderPrice_input', $tools->minOrderPrice) . '<br>' . IDEALO_REALTIME_MIN_ORDER_BORDER_TEXT . '<br>' . IDEALO_REALTIME_MIN_ORDER_BORDER_VALUE . '<br>' . xtc_draw_input_field('idealo_realtime_minOrderBorder_input', $tools->idealoMinorderBorder) . '<br>' . IDEALO_REALTIME_MIN_ORDER_PRICE_TEXT;
     return array('text' => $missing_config_user . '<br><br>' . $testmode . '<br>' . SHOP_ID . '<br>' . SHOP_ID_HINT . '<br>' . xtc_draw_input_field('shop_id_input', $shop_id) . '<br>' . $missing_config_shop_id_input . '<br><br>' . PASSWORT . '<br>' . PASSWORT_HINT . '<br>' . xtc_draw_password_field('password_input', $password) . '<br>' . $missing_config_password_input . '<br><br>' . PAGESIZE . '<br>' . PAGESIZE_HINT . '<br>' . xtc_draw_input_field('pagesize_input', $pagesize) . '<br>' . $missing_config_page_size_input . '<br><br>' . CERTIFICATE_TEXT . '<br>' . CERTIFICATE_TEXT_DESCRIPTION . '<br>' . xtc_draw_pull_down_menu('certificate', $certificate_array, $certificate_db) . '<br>' . SHIPPING . '<br>' . $missing_config_shipping . '<br><br>' . $ship_text . PAYMENT . '<br>' . $missing_config_payment . '<br><br>' . $payment_text . SHIPPINGCOMMENT . '<br>' . SHIPPINGCOMMENT_HINT . '<br>' . xtc_draw_input_field('shippingcomment_input', $shipping_comment_text) . '<br><br>' . CAMPAIGNS . '<br>' . CAMPAIGNS_DESC . '<br>' . xtc_draw_pull_down_menu('campaign', $campaign_array, $campaign) . '<br><br>' . $article_filter . $brand_filter . $cat_filter . $minOrderDisplay . $this->displayExportKonfigs() . IDEALO_REALTIME_EXPORT_TEXT . '<br>' . REAL_TEXT . '<br><br>' . $realtime_link . '<br><br>' . xtc_draw_checkbox_field('hardReset', '', $checked = false) . IDEALO_TEXT_HARD_RESET_BUTTON_TEXT . '<br>' . IDEALO_TEXT_HARD_RESET_TEXT . '<br>' . xtc_button(IDEALO_TEXT_SOFT_RESET_BUTTON_TEXT) . '<font size="+1">*</font> ' . '<br>' . IDEALO_TEXT_SOFT_RESET_TEXT . '<br><br>' . xtc_button_link(BUTTON_CANCEL, xtc_href_link(FILENAME_MODULE_EXPORT, 'set=' . $_GET['set'] . '&module=idealo_real')) . '<input id ="come_from" type="hidden" name="come_from" value="' . $_SERVER['HTTP_REFERER'] . '"> <br><br>' . EXPORT . '<br><br>' . TEXT_WARANTY_IDEALO_REALTIME);
 }
 function display()
 {
     return array('text' => '<br />' . '<br />' . xtc_button(BUTTON_SAVE) . xtc_button_link(BUTTON_CANCEL, xtc_href_link(FILENAME_MODULE_EXPORT, 'set=' . $_GET['set'] . '&module=it_recht_kanzlei')));
 }
 function display()
 {
     global $UseGoogle;
     $campaign_array = array(array('id' => '', 'text' => TEXT_NONE));
     $campaign_query = xtc_db_query("select campaigns_name, campaigns_refID from " . TABLE_CAMPAIGNS . " order by campaigns_id");
     $PSMFound = false;
     while ($campaign = xtc_db_fetch_array($campaign_query)) {
         $campaign_array[] = array('id' => 'refID=' . $campaign['campaigns_refID'] . '&', 'text' => $campaign['campaigns_name']);
         $PSMFound |= $campaign['campaigns_refID'] == "psm";
     }
     if (!$PSMFound) {
         xtc_db_query("INSERT INTO " . TABLE_CAMPAIGNS . " VALUES (NULL, 'Preissuchmaschine (automatisch)', 'psm', '0', NOW(), NOW())");
         $campaign_array[] = array('id' => 'refID=psm&', 'text' => "Preissuchmaschine (automatisch)");
     }
     return array('text' => '<br>' . HTTP_CATALOG_SERVER . DIR_WS_CATALOG . MODULE_PREISSUCHMASCHINE_EXPORT_LINK . MODULE_PREISSUCHMASCHINE_FILE . '<br><br>' . MODULE_PREISSUCHMASCHINE_EXPORT_LINK_SEND . MODULE_PREISSUCHMASCHINE_CAMPAIGNS . '<br>' . MODULE_PREISSUCHMASCHINE_CAMPAIGNS_DESC . xtc_draw_pull_down_menu('campaign', $campaign_array, 'refID=psm&') . '<br>' . MODULE_PREISSUCHMASCHINE_psmgoogleHeader . '<br>' . MODULE_PREISSUCHMASCHINE_psmgoogle_DESC . '<br>' . xtc_draw_radio_field('psmgoogle', 'no', !$UseGoogle) . MODULE_PREISSUCHMASCHINE_psmgoogle_NO . '<br>' . xtc_draw_radio_field('psmgoogle', 'yes', $UseGoogle) . MODULE_PREISSUCHMASCHINE_psmgoogle_YES . '<br><br>' . MODULE_PREISSUCHMASCHINE_EXPORT_TYPE . '<br>' . MODULE_PREISSUCHMASCHINE_EXPORT . '<br>' . xtc_draw_radio_field('export', 'no', true) . MODULE_PREISSUCHMASCHINE_EXPORT_NO . '<br>' . xtc_draw_radio_field('export', 'yes', false) . MODULE_PREISSUCHMASCHINE_EXPORT_YES . '<br><br>' . str_replace("Exportieren", "Produkte aktualisieren", xtc_button(BUTTON_EXPORT)) . xtc_button_link(BUTTON_CANCEL, xtc_href_link(FILENAME_MODULE_EXPORT, 'set=' . $_GET['set'] . '&module=preissuchmaschine')));
 }
Ejemplo n.º 13
0
 function display()
 {
     /* Auswahl Kundengruppe vorbeiten */
     $customers_statuses_array = xtc_get_customers_statuses();
     /* Auswahl Währung vorbereiten */
     $curr = '';
     $currencies = xtc_db_query("SELECT code FROM " . TABLE_CURRENCIES . " ORDER BY currencies_id DESC");
     while ($currencies_data = xtc_db_fetch_array($currencies)) {
         $curr .= xtc_draw_radio_field('currencies', $currencies_data['code'], true) . $currencies_data['code'] . '<br>';
     }
     /* Auswahl Sprachen vorbereiten (ich)*/
     $lang = '';
     $languages = xtc_db_query("SELECT languages_id, name FROM " . TABLE_LANGUAGES . " ORDER BY sort_order ASC");
     while ($languages_data = xtc_db_fetch_array($languages)) {
         $lang .= xtc_draw_radio_field('languages_id', $languages_data['languages_id'], true) . $languages_data['name'] . '<br>';
     }
     /* Auswahl Kampagnen vorbereiten */
     $campaign_array = array(array('id' => '', 'text' => TEXT_NONE));
     $campaign_query = xtc_db_query("select campaigns_name, campaigns_refID from " . TABLE_CAMPAIGNS . " order by campaigns_id");
     while ($campaign = xtc_db_fetch_array($campaign_query)) {
         $campaign_array[] = array('id' => 'refID=' . $campaign['campaigns_refID'] . '&', 'text' => $campaign['campaigns_name']);
     }
     /* Ausgabe */
     return array('text' => EXPORT_STATUS_TYPE . '<br>' . EXPORT_STATUS . '<br>' . xtc_draw_pull_down_menu('status', $customers_statuses_array, '1') . '<br>' . LANGUAGE . '<br>' . LANGUAGE_DESC . '<br>' . $lang . CURRENCY . '<br>' . CURRENCY_DESC . '<br>' . $curr . CAMPAIGNS . '<br>' . CAMPAIGNS_DESC . '<br>' . xtc_draw_pull_down_menu('campaign', $campaign_array) . '<br>' . EXPORT_TYPE . '<br>' . EXPORT . '<br>' . xtc_draw_radio_field('export', 'no', false) . EXPORT_NO . '<br>' . xtc_draw_radio_field('export', 'yes', true) . EXPORT_YES . '<br>' . '<br>' . xtc_button(BUTTON_EXPORT) . xtc_button_link(BUTTON_CANCEL, xtc_href_link(FILENAME_MODULE_EXPORT, 'set=' . $_GET['set'] . '&module=billiger')) . '');
 }
        }
        $contents[] = array('text' => '<br />' . TEXT_MANUFACTURERS_URL . $manufacturer_inputs_string);
        $contents[] = array('text' => '<br />' . TEXT_MANUFACTURERS_META_TITLE . $manufacturers_meta_title_string);
        $contents[] = array('text' => '<br />' . TEXT_MANUFACTURERS_META_DESCRIPTION . $manufacturers_meta_description_string);
        $manufacturers_description_string = '';
        $manufacturers_description_more_string = '';
        $manufacturers_short_description_string = '';
        for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
            $manufacturers_description_string .= '<table width="600px"><tr><td class="infoBoxContent" width="1%" valign="top">' . xtc_image(DIR_WS_LANGUAGES . $languages[$i]['directory'] . '/admin/images/' . $languages[$i]['image'], $languages[$i]['name']) . '</td><td>' . xtc_draw_textarea_field('manufacturers_description[' . $languages[$i]['id'] . ']', 'soft', '70', '25', $manufacturers_description[$languages[$i]['id']] ? stripslashes($manufacturers_description[$languages[$i]['id']]) : xtc_get_manufacturers_description($mInfo->manufacturers_id, $languages[$i]['id']), 'style="width: 99%;"') . '</td></tr></table>';
            $manufacturers_description_more_string .= '<table width="600px"><tr><td class="infoBoxContent" width="1%" valign="top">' . xtc_image(DIR_WS_LANGUAGES . $languages[$i]['directory'] . '/admin/images/' . $languages[$i]['image'], $languages[$i]['name']) . '</td><td>' . xtc_draw_textarea_field('manufacturers_description_more[' . $languages[$i]['id'] . ']', 'soft', '70', '25', $manufacturers_description_more[$languages[$i]['id']] ? stripslashes($manufacturers_description_more[$languages[$i]['id']]) : xtc_get_manufacturers_description_more($mInfo->manufacturers_id, $languages[$i]['id']), 'style="width: 99%;"') . '</td></tr></table>';
            $manufacturers_short_description_string .= '<table width="600px"><tr><td class="infoBoxContent" width="1%" valign="top">' . xtc_image(DIR_WS_LANGUAGES . $languages[$i]['directory'] . '/admin/images/' . $languages[$i]['image'], $languages[$i]['name']) . '</td><td>' . xtc_draw_textarea_field('manufacturers_short_description[' . $languages[$i]['id'] . ']', 'soft', '70', '25', $manufacturers_short_description[$languages[$i]['id']] ? stripslashes($manufacturers_short_description[$languages[$i]['id']]) : xtc_get_manufacturers_short_description($mInfo->manufacturers_id, $languages[$i]['id']), 'style="width: 99%;"') . '</td></tr></table>';
        }
        $contents[] = array('text' => '<br />' . TEXT_MANUFACTURERS_DESC . $manufacturers_description_string);
        $contents[] = array('text' => '<br />' . TEXT_MANUFACTURERS_MORE_DESC . $manufacturers_description_more_string);
        $contents[] = array('text' => '<br />' . TEXT_MANUFACTURERS_SHORT_DESC . $manufacturers_short_description_string);
        $contents[] = array('align' => 'center', 'text' => '<br />' . xtc_button(BUTTON_SAVE) . '&nbsp;' . xtc_button_link(BUTTON_CANCEL, xtc_href_link(FILENAME_MANUFACTURERS, 'page=' . $_GET['page'] . '&mID=' . $mInfo->manufacturers_id)));
        break;
    default:
        if (is_object($mInfo)) {
            $heading[] = array('text' => '<b>' . $mInfo->manufacturers_name . '</b>');
            $contents[] = array('align' => 'center', 'text' => xtc_button_link(BUTTON_EDIT, xtc_href_link(FILENAME_MANUFACTURERS, 'page=' . $_GET['page'] . '&mID=' . $mInfo->manufacturers_id . '&action=edit#edit-box')));
            $contents[] = array('text' => '<br />' . TEXT_DATE_ADDED . ' ' . xtc_date_short($mInfo->date_added));
            if (xtc_not_null($mInfo->last_modified)) {
                $contents[] = array('text' => TEXT_LAST_MODIFIED . ' ' . xtc_date_short($mInfo->last_modified));
            }
            $contents[] = array('text' => '<br />' . xtc_info_image($mInfo->manufacturers_image, $mInfo->manufacturers_name, 200));
            $contents[] = array('text' => '<br />' . TEXT_PRODUCTS . ' ' . $mInfo->products_count);
        }
        break;
}
if (xtc_not_null($heading) && xtc_not_null($contents)) {
Ejemplo n.º 15
0
 function display()
 {
     $customers_statuses_array = xtc_get_customers_statuses();
     // build Currency Select
     $curr = '';
     $currencies = xtc_db_query("SELECT code FROM " . TABLE_CURRENCIES);
     while ($currencies_data = xtc_db_fetch_array($currencies)) {
         $curr .= xtc_draw_radio_field('currencies', $currencies_data['code'], true) . $currencies_data['code'] . '<br />';
     }
     return array('text' => EXPORT_STATUS_TYPE . '<br />' . EXPORT_STATUS . '<br />' . xtc_draw_pull_down_menu('status', $customers_statuses_array, '1') . '<br />' . CURRENCY . '<br />' . CURRENCY_DESC . '<br />' . $curr . EXPORT_TYPE . '<br />' . EXPORT . '<br />' . xtc_draw_radio_field('export', 'no', false) . EXPORT_NO . '<br />' . xtc_draw_radio_field('export', 'yes', true) . EXPORT_YES . '<br />' . '<br>' . xtc_button(BUTTON_EXPORT) . xtc_button_link(BUTTON_CANCEL, xtc_href_link(FILENAME_MODULE_EXPORT, 'set=' . $_GET['set'] . '&module=preisroboter')));
     //EOF - Tomcraft - 2009-07-21 - Exclude xtc_image_submit.inc.php as it is allready declared in /admin/includes/functions/general.php
 }
 function display()
 {
     //Array für max. Bilder pro Seitenreload
     $max_array = array(array('id' => '5', 'text' => '5'));
     $max_array[] = array('id' => '10', 'text' => '10');
     $max_array[] = array('id' => '15', 'text' => '15');
     $max_array[] = array('id' => '20', 'text' => '20');
     $max_array[] = array('id' => '50', 'text' => '50');
     return array('text' => xtc_draw_hidden_field('process', 'module_processing_do') . xtc_draw_hidden_field('max_images1', '5') . IMAGE_EXPORT_TYPE . '<br />' . IMAGE_EXPORT . '<br />' . '<br />' . xtc_draw_pull_down_menu('max_datasets', $max_array, '5') . ' ' . TEXT_MAX_IMAGES . '<br />' . '<br />' . xtc_draw_checkbox_field('only_missing_images', '1', false) . ' ' . TEXT_ONLY_MISSING_IMAGES . '<br />' . '<br />' . xtc_button(BUTTON_START) . '&nbsp;' . xtc_button_link(BUTTON_CANCEL, xtc_href_link(FILENAME_MODULE_EXPORT, 'set=' . $_GET['set'] . '&module=image_processing_step')));
 }
         }
         $contents[] = array('align' => 'center', 'text' => $buttons_new_elements);
     }
     //Informations
     $contents[] = array('align' => 'center', 'text' => '<div style="padding-top: 5px; font-weight: bold; width: 90%; border-top: 1px solid Black; margin-top: 5px;">' . TEXT_INFORMATIONS . '</div>');
     $contents[] = array('text' => '<div style="padding-left: 50px;">' . TEXT_DATE_ADDED . ' ' . xtc_date_short($cInfo->date_added) . '</div>');
     if (xtc_not_null($cInfo->last_modified)) {
         $contents[] = array('text' => '<div style="padding-left: 50px;">' . TEXT_LAST_MODIFIED . ' ' . xtc_date_short($cInfo->last_modified) . '</div>');
     }
     $contents[] = array('align' => 'center', 'text' => '<div style="padding: 10px;">' . xtc_info_image_c($cInfo->categories_image, $cInfo->categories_name, '', '', $box_cat_image_size) . '</div><div style="padding-bottom: 10px;">' . $cInfo->categories_image . '</div>');
 } elseif (isset($pInfo) && is_object($pInfo)) {
     // product info box contents
     $heading[] = array('align' => 'center', 'text' => '<b>' . xtc_get_products_name($pInfo->products_id, $_SESSION['languages_id']) . '</b>');
     //Multi Element Actions
     $contents[] = array('align' => 'center', 'text' => '<div style="padding-top: 5px; font-weight: bold; width: 90%;">' . TEXT_MARKED_ELEMENTS . '</div>');
     $contents[] = array('align' => 'center', 'text' => xtc_button(BUTTON_DELETE, 'submit', 'name="multi_delete"') . '&nbsp;' . xtc_button(BUTTON_MOVE, 'submit', 'name="multi_move"') . '&nbsp;' . xtc_button(BUTTON_COPY, 'submit', 'name="multi_copy"'));
     $contents[] = array('align' => 'center', 'text' => '<input type="submit" class="btn btn-default" name="multi_status_on" onclick="this.blur();" value="' . BUTTON_STATUS_ON . '">&nbsp;<input type="submit" class="btn btn-default" onclick="this.blur();" name="multi_status_off" value="' . BUTTON_STATUS_OFF . '">');
     $contents[] = array('text' => '</form>');
     //Single Product Actions
     $contents[] = array('align' => 'center', 'text' => '<div style="padding-top: 5px; font-weight: bold; width: 90%; border-top: 1px solid Black; margin-top: 5px;">' . TEXT_ACTIVE_ELEMENT . '</div>');
     $contents[] = array('align' => 'center', 'text' => '<table><tr><td><a class="btn btn-default" onclick="this.blur();" href="' . xtc_href_link(FILENAME_CATEGORIES, xtc_get_all_get_params(array('cPath', 'action', 'pID', 'cID')) . 'cPath=' . $cPath . '&pID=' . $pInfo->products_id . '&action=new_product') . '">' . BUTTON_EDIT . '</a></td><td><form action="' . FILENAME_NEW_ATTRIBUTES . '" name="edit_attributes" method="post"><input type="hidden" name="action" value="edit"><input type="hidden" name="current_product_id" value="' . $pInfo->products_id . '"><input type="hidden" name="cpath" value="' . $cPath . '"><input type="submit" class="btn btn-default" onclick="this.blur();" value="' . BUTTON_EDIT_ATTRIBUTES . '"></form></td></tr><tr><td colspan="2" style="text-align: center;"><form action="' . FILENAME_CATEGORIES . '" name="edit_crossselling" method="GET"><input type="hidden" name="action" value="edit_crossselling"><input type="hidden" name="current_product_id" value="' . $pInfo->products_id . '"><input type="hidden" name="cpath" value="' . $cPath . '"><input type="submit" class="btn btn-default" onclick="this.blur();" value="' . BUTTON_EDIT_CROSS_SELLING . '"></form></td></tr></table>');
     //Insert new Element Actions
     $contents[] = array('align' => 'center', 'text' => '<div style="padding-top: 5px; font-weight: bold; width: 90%; border-top: 1px solid Black; margin-top: 5px;">' . TEXT_INSERT_ELEMENT . '</div>');
     if (!xtc_not_null($search)) {
         $buttons_new_elements = '<a class="btn btn-default" onclick="this.blur()" href="' . xtc_href_link(FILENAME_CATEGORIES, xtc_get_all_get_params(array('cPath', 'action', 'pID', 'cID')) . 'cPath=' . $cPath . '&action=new_category') . '">' . BUTTON_NEW_CATEGORIES . '</a>';
         if ($cPath != '0') {
             $buttons_new_elements .= '&nbsp;';
             $buttons_new_elements .= '<a class="btn btn-default" onclick="this.blur()" href="' . xtc_href_link(FILENAME_CATEGORIES, xtc_get_all_get_params(array('cPath', 'action', 'pID', 'cID')) . 'cPath=' . $cPath . '&action=new_product') . '">' . BUTTON_NEW_PRODUCTS . '</a>';
         }
         $contents[] = array('align' => 'center', 'text' => $buttons_new_elements);
     }
Ejemplo n.º 18
0
                <?php 
        }
        ?>
                  
                <tr>
                	<td colspan="3"><hr /></td>
              	</tr>
                  
               <?php 
    }
    ?>
              </tbody>
            </table>
            
            <?php 
    echo xtc_button(MODULE_EM_MAPPINGS_SAVE_BUTTON);
    ?>
            
            </form>
 
        <?php 
} elseif ($_GET['content'] == 'check_uninstall') {
    echo MODULE_EM_UNINSTALL_TEXT . '<br /><br />';
    echo xtc_button_link(MODULE_EM_YES_BUTTON, xtc_href_link('easymarketing.php', xtc_get_all_get_params(array('content')) . 'content=uninstall')) . ' ' . xtc_button_link(MODULE_EM_NO_BUTTON, xtc_href_link('easymarketing.php', xtc_get_all_get_params(array('content')) . 'content=stop_uninstall'));
} elseif ($_GET['content'] == 'check_google_site_verification') {
    echo MODULE_EM_PEFORM_GOOGLE_SITE_VERIFICATION_TEXT . '<br /><br />';
    echo xtc_button_link(MODULE_EM_YES_BUTTON, xtc_href_link('easymarketing.php', xtc_get_all_get_params(array('content')) . 'content=perform_google_site_verification')) . ' ' . xtc_button_link(MODULE_EM_NO_BUTTON, xtc_href_link('easymarketing.php', xtc_get_all_get_params(array('content')) . 'content=overview'));
} else {
    echo '<div style="border:1px solid #ccc; padding:15px;">';
    if ($coo_easymarketing_manager->check() == false) {
        echo MODULE_EM_INSTALL_TEXT;
Ejemplo n.º 19
0
 $lc = get_language_code($_SESSION['language']);
 $input_profile_invoice = xtc_draw_pull_down_menu('profile_name_invoice', $values_invoice, 'profile_' . $lc . '_invoice');
 $input_profile_delivey = xtc_draw_pull_down_menu('profile_name_delivery', $values_delivery, 'profile_' . $lc . '_delivnote');
 $input_automatic_invoice = xtc_draw_checkbox_field('profile_automatic_invoice');
 $button_invoice_create = xtc_button(BUTTON_PDFBILL_CREATE, 'submit', 'name="pdf_invoice_generate" class="btn btn-default"');
 $button_invoice_recreate = xtc_button(BUTTON_PDFBILL_RECREATE, 'submit', 'name="pdf_invoice_generate" class="btn btn-default"');
 $button_invoice_sendmail = xtc_button(BUTTON_PDFBILL_SEND_INVOICE_MAIL, 'submit', 'name="pdf_invoice_sendmail" class="btn btn-default"');
 $button_invoice_sendmail2 = xtc_button(BUTTON_PDFBILL_SEND_INVOICE_MAIL2, 'submit', 'name="pdf_invoice_sendmail2" class="btn btn-default"');
 $button_delivery_create = xtc_button(BUTTON_PDFDELIVNOTE_CREATE, 'submit', 'name="pdf_delivery_generate" class="btn btn-default"');
 $button_faktur = '<a class="btn btn-default" href="' . xtc_href_link(FILENAME_ORDERS, xtc_get_all_get_params(array('pdf')) . 'pdf=1&action2=set_ibillnr') . '">' . BUTTON_BILL . '</a>';
 $filename = FILENAME_PDFBILL_DISPLAY . '?oID=' . $oID;
 //$button_invoice_display   = '<a class="btn btn-default" target="_new" href="' . xtc_href_link($filename) . '">' . BUTTON_PDFBILL_DISPLAY . '</a>';
 $button_invoice_display = '<a class="btn btn-default" target="_new" href="' . xtc_href_link($filename, "oID=" . $oID . "&file=" . get_pdf_invoice_filename($oID)) . '">' . BUTTON_PDFBILL_DISPLAY . '</a>';
 $filename = FILENAME_PDFBILL_DISPLAY;
 $button_delivery_display = '<a class="btn btn-default" target="_new" href="' . xtc_href_link($filename, "oID=" . $oID . "&file=" . get_pdf_delnote_filename($oID)) . '">' . BUTTON_PDFBILL_DISPLAY . '</a>';
 xtc_button(BUTTON_PDFBILL_DISPLAY, 'submit', 'name="pdf_invoice_display" class="btn btn-default"');
 $arr_invoice = array();
 $arr_delivery = array();
 $arr_std = array();
 if ($order->info['ibn_billnr'] > 0) {
     if (!pdfbill_invoice_exists($oID)) {
         $arr_invoice[] = $button_invoice_create;
     } else {
         $arr_invoice[] = $button_invoice_display;
         $arr_invoice[] = $button_invoice_recreate;
         if ($order->info['ibn_pdfnotifydate'] == '0000-00-00') {
             // not sent
             $arr_invoice[] = $button_invoice_sendmail;
         } else {
             $arr_invoice[] = $button_invoice_sendmail2;
         }
    ?>
</td>
					  <td><?php 
    echo xtc_draw_input_field('quantity[' . $product['products_id'] . ']');
    ?>
</td>
				  </tr>
				<?php 
}
?>
				</tbody>
				</table>
            
			<div class='col-xs-12'>
                <?php 
echo xtc_button(BUTTON_SEND_EMAIL, 'submit');
?>
            </div>
				</form>
    </div>
<?php 
$heading = array();
$contents = array();
$product_key = 0;
if (isset($_GET['pID'])) {
    $product_key = $_GET['pID'];
}
if (xtc_not_null($heading) && xtc_not_null($contents)) {
    echo '            <div class="col-md-3 col-sm-12 col-xs-12 pull-right edit-box-class">' . "\n";
    $box = new box();
    echo $box->infoBox($heading, $contents);
Ejemplo n.º 21
0
 public function display()
 {
     $tools = new idealo_csv_tools();
     $missing_config_db = $tools->getConfigurationValue('MODULE_IDEALO_CSV_MISSING_CONFIG');
     $missing_config_file = '';
     $missing_config_separator = '';
     $missing_config_separator_to_long = '';
     $missing_config_shipping = '';
     $missing_config_payment = '';
     $missing_config_costs_idealo_DE_active = '';
     $missing_config_costs_idealo_DE_active = '';
     $missing_config_format_idealo_AT_shipping = '';
     $missing_config_format_idealo_AT_shipping = '';
     if ($missing_config_db != '') {
         if (strpos($missing_config_db, "file") !== false) {
             $missing_config_file = IDEALO_TEXT_MISSING_CONFIG;
         }
         if (strpos($missing_config_db, "separator") !== false) {
             $missing_config_separator = IDEALO_TEXT_MISSING_SEPARATOR . '<br><br>';
         }
         if (strpos($missing_config_db, "to_long") !== false) {
             $missing_config_separator_to_long = IDEALO_TEXT_MISSING_SEPARATOR_TO_LONG . '<br><br>';
         }
         if (strpos($missing_config_db, "shipping") !== false && strpos($missing_config_db, "shippingDE") === false) {
             $missing_config_shipping = IDEALO_TEXT_MISSING_SHIPPING;
         }
         if (strpos($missing_config_db, "payment") !== false) {
             $missing_config_payment = IDEALO_TEXT_MISSING_PAYMENT;
         }
         if (strpos($missing_config_db, "idealo_DE_active") !== false) {
             $missing_config_costs_idealo_DE_active = IDEALO_TEXT_MISSING_COSTS_IDEALO_DE;
         }
         if (strpos($missing_config_db, "idealo_AT_active") !== false) {
             $missing_config_costs_idealo_AT_active = IDEALO_TEXT_MISSING_COSTS_IDEALO_DE;
         }
         if (strpos($missing_config_db, "shippingDElenght") !== false || strpos($missing_config_db, "shippingDEone") !== false) {
             $missing_config_format_idealo_DE_shipping = '<font color="#FF0000"><b>* ' . IDEALO_TEXT_WRONG_COSTS_FORMAT_DE . '</b></font>';
         }
         if (strpos($missing_config_db, "shippingATlenght") !== false || strpos($missing_config_db, "shippingATone") !== false) {
             $missing_config_format_idealo_AT_shipping = '<font color="#FF0000"><b>* ' . IDEALO_TEXT_WRONG_COSTS_FORMAT_AT . '</b></font>';
         }
     }
     $button_text = 'Exportieren';
     $customers_statuses_array = xtc_get_customers_statuses();
     $ship_text = '';
     $tools->getShipping();
     $this->shipping = $tools->shipping;
     foreach ($this->shipping as $ship) {
         if ($ship['country'] == 'DE') {
             $ship_text .= $this->getDisplayShip($ship, $missing_config_costs_idealo_DE_active, $missing_config_format_idealo_DE_shipping);
         }
         if ($ship['country'] == 'AT') {
             $ship_text .= $this->getDisplayShip($ship, $missing_config_costs_idealo_AT_active, $missing_config_format_idealo_AT_shipping);
         }
     }
     $payment_text = '';
     $tools->getPayment();
     $this->payment = $tools->payment;
     foreach ($this->payment as $payment) {
         $payment_text .= $this->getDisplayPayment($payment);
     }
     $article_filter_array[] = array('id' => 'filter', 'text' => 'filtern');
     $article_filter_array[] = array('id' => 'export', 'text' => 'exportieren');
     $article_filter = IDEALO_CSV_ARTICLE_FILTER . '<br>' . IDEALO_CSV_ARTICLE_FILTER_SELECTION . '<br>' . xtc_draw_pull_down_menu('article_filter', $article_filter_array, $tools->getConfigurationValue('MODULE_IDEALO_CSV_ARTICLE_FILTER')) . '<br><br>' . IDEALO_CSV_ARTICLE_FILTER_TEXT . '<br>' . xtc_draw_input_field('article_filter_value', $tools->getConfigurationValue('MODULE_IDEALO_CSV_ARTICLE_FILTER_VALUE')) . '<br><br>';
     $brand_filter_array[] = array('id' => 'filter', 'text' => 'filtern');
     $brand_filter_array[] = array('id' => 'export', 'text' => 'exportieren');
     $brand_filter = IDEALO_CSV_BRAND_FILTER . '<br>' . IDEALO_CSV_BRAND_FILTER_SELECTION . '<br>' . xtc_draw_pull_down_menu('brand_filter', $brand_filter_array, $tools->getConfigurationValue('MODULE_IDEALO_CSV_BRAND_FILTER')) . '<br><br>' . IDEALO_CSV_BRAND_FILTER_TEXT . '<br>' . xtc_draw_input_field('brand_filter_value', $tools->getConfigurationValue('MODULE_IDEALO_CSV_BRAND_FILTER_VALUE')) . '<br><br>';
     $cat_filter_array[] = array('id' => 'filter', 'text' => 'filtern');
     $cat_filter_array[] = array('id' => 'export', 'text' => 'exportieren');
     $cat_filter = IDEALO_CSV_CAT_FILTER . '<br>' . IDEALO_CSV_CAT_FILTER_SELECTION . '<br>' . xtc_draw_pull_down_menu('cat_filter', $cat_filter_array, $tools->getConfigurationValue('MODULE_IDEALO_CSV_CAT_FILTER')) . '<br><br>' . IDEALO_CSV_CAT_FILTER_TEXT . '<br>' . xtc_draw_input_field('cat_filter_value', $tools->getConfigurationValue('MODULE_IDEALO_CSV_CAT_FILTER_VALUE')) . '<br><br>';
     $tools->getMinorderValues();
     $minOrderDisplay = IDEALO_CSV_MIN_ORDER_TITLE . '<br><br>' . IDEALO_CSV_MIN_ORDER_VALUE . '<br>' . xtc_draw_input_field('idealo_csv_minOrder_input', $tools->minOrder) . '<br>' . IDEALO_CSV_MIN_ORDER_TEXT . '<br><br>' . IDEALO_CSV_MIN_EXTRA_COSTS . '<br>' . xtc_draw_input_field('idealo_csv_minOrderPrice_input', $tools->minOrderPrice) . '<br>' . IDEALO_CSV_MIN_ORDER_PRICE_TEXT . '<br>' . IDEALO_CSV_MIN_ORDER_BORDER_VALUE . '<br>' . xtc_draw_input_field('idealo_csv_minOrderBorder_input', $tools->minorderBorder) . '<br>' . IDEALO_CSV_MIN_ORDER_BORDER_TEXT;
     return array('text' => $missing_config_file . '<br>' . FIELDSEPARATOR . '<br>' . FIELDSEPARATOR_HINT_IDEALO . '<br>' . xtc_draw_small_input_field('idealo_csv_separator_input', IDEALO_CSV_SEPARATOR) . '<br><br>' . $missing_config_separator . $missing_config_separator_to_long . QUOTING . '<br>' . QUOTING_HINT . '<br><br>' . xtc_draw_small_input_field('idealo_csv_quoting_input', IDEALO_CSV_QUOTECHAR) . '<br><br>' . SHIPPING . '<br>' . $missing_config_shipping . '<br><br>' . $ship_text . SHIPPINGCOMMENT . '<br>' . SHIPPINGCOMMENT_HINT . '<br>' . xtc_draw_input_field('shippingcomment_input', $tools->getConfigurationValue('MODULE_IDEALO_CSV_SHIPPINGCOMMENT')) . '<br><br>' . PAYMENT . '<br>' . $missing_config_payment . '<br><br>' . $payment_text . $article_filter . $brand_filter . $cat_filter . $minOrderDisplay . '<br><br>' . $this->displayExportKonfigs() . IDEALO_CSV_EXPORT_TEXT . xtc_button(BUTTON_EXPORT) . '<font size="+1">*</font> ' . '<input id ="export" type="hidden" name="export" value="yes">' . xtc_button_link(BUTTON_CANCEL, xtc_href_link(FILENAME_MODULE_EXPORT, 'set=' . $_GET['set'] . '&module=idealo')) . EXPORT . '<br><br>' . TEXT_WARANTY_IDEALO_CSV);
 }
echo "</div></div>";
echo "<div class='col-xs-12'>";
echo "<div class=\"main\">";
echo xtc_button(BUTTON_EDIT);
echo "</div>";
echo "</div>";
// start change for Attribute Copy
?>
<br /><br />
<?php 
echo "<div class='col-xs-12'>";
echo "<div class=\"main\"><br /><strong>" . SELECT_COPY . "</strong><br /></div>";
echo "</div>";
echo "<div class='col-xs-12'>";
echo "<div class=\"main\"><SELECT NAME=\"copy_product_id\">";
$copy_query = xtc_db_query("SELECT pd.products_name, pd.products_id FROM  " . TABLE_PRODUCTS_DESCRIPTION . "  pd, " . TABLE_PRODUCTS_ATTRIBUTES . " pa where pa.products_id = pd.products_id AND pd.products_id LIKE '%' AND pd.language_id = '" . $_SESSION['languages_id'] . "' GROUP BY pd.products_id ORDER BY pd.products_name ASC");
$copy_count = xtc_db_num_rows($copy_query);
if ($copy_count) {
    echo '<option value="0">no copy</option>';
    while ($copy_res = xtc_db_fetch_array($copy_query)) {
        echo '<option value="' . $copy_res['products_id'] . '">' . $copy_res['products_name'] . '</option>';
    }
} else {
    echo 'No products to copy attributes from';
}
echo '</select></div></div>';
echo "<div class='col-xs-12'>";
echo "    <div class=\"main\">" . xtc_button(BUTTON_EDIT) . "</div>";
echo "</div>";
?>
</form>
 function display()
 {
     $customers_statuses_array = xtc_get_customers_statuses();
     // build Currency Select
     $curr = '';
     $currencies = xtc_db_query("SELECT code FROM " . TABLE_CURRENCIES);
     while ($currencies_data = xtc_db_fetch_array($currencies)) {
         $curr .= xtc_draw_radio_field('currencies', $currencies_data['code'], true) . $currencies_data['code'] . '<br />';
     }
     $campaign_array = array(array('id' => '', 'text' => TEXT_NONE));
     $campaign_query = xtc_db_query("select campaigns_name, campaigns_refID from " . TABLE_CAMPAIGNS . " order by campaigns_id");
     while ($campaign = xtc_db_fetch_array($campaign_query)) {
         $campaign_array[] = array('id' => 'refID=' . $campaign['campaigns_refID'] . '&', 'text' => $campaign['campaigns_name']);
     }
     return array('text' => EXPORT_STATUS_TYPE . '<br />' . EXPORT_STATUS . '<br />' . xtc_draw_pull_down_menu('status', $customers_statuses_array, '1') . '<br />' . CURRENCY . '<br />' . CURRENCY_DESC . '<br />' . $curr . CAMPAIGNS . '<br />' . CAMPAIGNS_DESC . '<br />' . xtc_draw_pull_down_menu('campaign', $campaign_array) . '<br />' . EXPORT_TYPE . '<br />' . EXPORT . '<br />' . xtc_draw_radio_field('export', 'no', false) . EXPORT_NO . '<br />' . xtc_draw_radio_field('export', 'yes', true) . EXPORT_YES . '<br />' . '<br />' . xtc_button(BUTTON_EXPORT) . xtc_button_link(BUTTON_CANCEL, xtc_href_link(FILENAME_MODULE_EXPORT, 'set=' . $_GET['set'] . '&module=preisauskunft')));
 }
Ejemplo n.º 24
0
        }
        $contents[] = array('text' => '<table width="100%"><tr><td class="infoBoxContent" width="100%" valign="top">' . TEXT_IMAGESLIDERS_ALT . '</td></tr></table>' . $imageslider_alt_string);
        $imageslider_description_string = '';
        for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
            $imageslider_description_string .= '<table width="100%"><tr><td class="infoBoxContent" width="1%" valign="top">' . xtc_image(DIR_WS_LANGUAGES . $languages[$i]['directory'] . '/admin/images/' . $languages[$i]['image'], $languages[$i]['name']) . '</td><td>' . xtc_draw_textarea_field('imagesliders_description[' . $languages[$i]['id'] . ']', 'soft', '70', '25', $imageslider_description[$languages[$i]['id']] ? stripslashes($imageslider_description[$languages[$i]['id']]) : xtc_get_imageslider_description($iInfo->imagesliders_id, $languages[$i]['id']), 'style="width:99%;"') . '</td></tr></table>';
        }
        $contents[] = array('text' => '<table width="100%"><tr><td class="infoBoxContent" width="100%" valign="top">' . TEXT_IMAGESLIDERS_DESCRIPTION . '</td></tr></table>' . $imageslider_description_string);
        $contents[] = array('align' => 'right', 'text' => '<br />' . xtc_button(BUTTON_SAVE) . '&nbsp;' . xtc_button_link(BUTTON_CANCEL, xtc_href_link(FILENAME_IMAGESLIDERS, 'page=' . $_GET['page'] . '&iID=' . $iInfo->imagesliders_id)));
        break;
    case 'delete':
        $heading[] = array('text' => '<b>' . TEXT_HEADING_DELETE_IMAGESLIDER . '</b>');
        $contents = array('form' => xtc_draw_form('imagesliders', FILENAME_IMAGESLIDERS, 'page=' . $_GET['page'] . '&iID=' . $iInfo->imagesliders_id . '&action=deleteconfirm'));
        $contents[] = array('text' => TEXT_DELETE_INTRO);
        $contents[] = array('text' => '<br /><b>' . $iInfo->imagesliders_name . '</b>');
        $contents[] = array('text' => '<br />' . xtc_draw_checkbox_field('delete_image', '', true) . ' ' . TEXT_DELETE_IMAGE);
        $contents[] = array('align' => 'left', 'text' => '<br />' . xtc_button(BUTTON_DELETE) . '&nbsp;' . xtc_button_link(BUTTON_CANCEL, xtc_href_link(FILENAME_IMAGESLIDERS, 'page=' . $_GET['page'] . '&iID=' . $iInfo->imagesliders_id)));
        break;
    default:
        if (is_object($iInfo)) {
            $heading[] = array('text' => '<b>' . $iInfo->imagesliders_name . '</b>');
            $contents[] = array('align' => 'left', 'text' => xtc_button_link(BUTTON_EDIT, xtc_href_link(FILENAME_IMAGESLIDERS, 'page=' . $_GET['page'] . '&iID=' . $iInfo->imagesliders_id . '&action=edit')) . '&nbsp;' . xtc_button_link(BUTTON_DELETE, xtc_href_link(FILENAME_IMAGESLIDERS, 'page=' . $_GET['page'] . '&iID=' . $iInfo->imagesliders_id . '&action=delete')));
            $contents[] = array('text' => '<br />' . TEXT_DATE_ADDED . ' ' . xtc_date_short($iInfo->date_added));
            if (xtc_not_null($iInfo->last_modified)) {
                $contents[] = array('text' => TEXT_LAST_MODIFIED . ' ' . xtc_date_short($iInfo->last_modified));
            }
            $contents[] = array('text' => '<br />' . xtc_get_imageslider_image($iInfo->imagesliders_id, $languages[$i]['id']));
        }
        break;
}
if (xtc_not_null($heading) && xtc_not_null($contents)) {
    //if ($_GET['action'] == 'new' || $_GET['action'] == 'edit') {