$contents[] = array('align' => 'center', $text_text => HTML_BR . olc_image_submit('button_insert.gif', IMAGE_INSERT) . BLANK . HTML_A_START . olc_href_link(FILENAME_LANGUAGES, $params) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
     break;
 case 'edit':
     $heading[] = array($text_text => HTML_B_START . TEXT_INFO_HEADING_EDIT_LANGUAGE . HTML_B_END);
     $contents = array('form' => olc_draw_form('languages', FILENAME_LANGUAGES, $params . '&action=save'));
     $contents[] = array($text_text => TEXT_INFO_EDIT_INTRO);
     $contents[] = array($text_text => HTML_BR . TEXT_INFO_LANGUAGE_NAME . HTML_BR . olc_draw_input_field('name', $lInfo->name));
     $contents[] = array($text_text => HTML_BR . TEXT_INFO_LANGUAGE_CODE . HTML_BR . olc_draw_input_field('code', $lInfo->code));
     $contents[] = array($text_text => HTML_BR . TEXT_INFO_LANGUAGE_CHARSET . HTML_BR . olc_draw_input_field('charset', $lInfo->language_charset));
     $contents[] = array($text_text => HTML_BR . TEXT_INFO_LANGUAGE_IMAGE . HTML_BR . olc_draw_input_field('image', $lInfo->image));
     $contents[] = array($text_text => HTML_BR . TEXT_INFO_LANGUAGE_DIRECTORY . HTML_BR . olc_draw_input_field('directory', $lInfo->directory));
     $contents[] = array($text_text => HTML_BR . TEXT_INFO_LANGUAGE_SORT_ORDER . HTML_BR . olc_draw_input_field('sort_order', $lInfo->sort_order));
     if (DEFAULT_LANGUAGE != $lInfo->code) {
         $contents[] = array($text_text => HTML_BR . olc_draw_checkbox_field('default') . BLANK . TEXT_SET_DEFAULT);
     }
     $contents[] = array('align' => 'center', $text_text => HTML_BR . olc_image_submit('button_update.gif', IMAGE_UPDATE) . BLANK . HTML_A_START . olc_href_link(FILENAME_LANGUAGES, $params) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
     break;
 case 'delete':
     $heading[] = array($text_text => HTML_B_START . TEXT_INFO_HEADING_DELETE_LANGUAGE . HTML_B_END);
     $contents[] = array($text_text => TEXT_INFO_DELETE_INTRO);
     $contents[] = array($text_text => '<br/><b>' . $lInfo->name . HTML_B_END);
     $contents[] = array('align' => 'center', $text_text => HTML_BR . ($remove_language ? HTML_A_START . olc_href_link(FILENAME_LANGUAGES, $params . '&action=deleteconfirm') . '">' . olc_image_button('button_delete.gif', IMAGE_DELETE) . HTML_A_END : EMPTY_STRING) . BLANK . HTML_A_START . olc_href_link(FILENAME_LANGUAGES, $params) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
     break;
 default:
     if (is_object($lInfo)) {
         $heading[] = array($text_text => HTML_B_START . $lInfo->name . HTML_B_END);
         $contents[] = array('align' => 'center', $text_text => HTML_A_START . olc_href_link(FILENAME_LANGUAGES, $params . '&action=edit') . '">' . olc_image_button('button_edit.gif', IMAGE_EDIT) . HTML_A_END . BLANK . HTML_A_START . olc_href_link(FILENAME_LANGUAGES, $params . '&action=delete') . '">' . olc_image_button('button_delete.gif', IMAGE_DELETE) . HTML_A_END);
         $contents[] = array($text_text => HTML_BR . TEXT_INFO_LANGUAGE_NAME . BLANK . $lInfo->name);
         $contents[] = array($text_text => TEXT_INFO_LANGUAGE_CODE . BLANK . $lInfo->code);
         $contents[] = array($text_text => TEXT_INFO_LANGUAGE_CHARSET_INFO . BLANK . $lInfo->language_charset);
         $lang_dir = 'lang/';
                } else {
                    $parameters = 'basket_id=' . $basket_id;
                    $cart_content = EMPTY_STRING;
                }
                $link = olc_href_link(CURRENT_SCRIPT, $parameters);
                $date = $basket['basket_date_added'];
                $date = substr($date, 6, 2) . DOT . substr($date, 4, 2) . DOT . substr($date, 0, 4);
                $module_content[] = array('show_order_details' => $show_order_details, 'BOX_SELECT' => olc_draw_radio_field('cart_select[]', $basket_id, $selected), 'NAME' => $basket['basket_name'], 'DATE' => $date, 'BOX_DELETE' => olc_draw_checkbox_field('cart_delete[]', $basket_id), 'LINK' => $link);
            }
        } else {
            $error_message = olc_get_smarty_config_variable($smarty, 'shopping_cart', 'text_no_saved_cart');
        }
        $cart_restore_text = 'cart_restore';
        if ($error_message) {
            $module_smarty->assign('ERROR_MESSAGE', $error_message);
        } else {
            $module_smarty->assign(MODULE_CONTENT, $module_content);
            if ($bid) {
                $MODULE_order_details_text = 'MODULE_order_details';
                $module_smarty->assign($MODULE_order_details_text, $smarty->_tpl_vars[$MODULE_order_details_text]);
                $smarty->assign($MODULE_order_details_text, EMPTY_STRING);
            }
        }
        $module_smarty->assign('FORM_ACTION', olc_draw_form($cart_restore_text, $cart_restore_text . PHP . '?process=true'));
        $module_smarty->assign('BUTTON_CONTINUE', olc_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE));
        $main_content = $module_smarty->fetch(CURRENT_TEMPLATE_MODULE . $cart_restore_text . HTML_EXT, $cache_id);
        $smarty->assign(MAIN_CONTENT, $main_content);
        require BOXES;
        $smarty->display(INDEX_HTML);
    }
}
示例#3
0
                <td valign="top" class="main"><?php 
    echo TEXT_MESSAGE;
    ?>
</td>
                <td><?php 
    echo olc_draw_textarea_field('message', 'soft', '60', '15');
    ?>
</td>
              </tr>
              <tr>
                <td colspan="2"><?php 
    echo olc_draw_separator('pixel_trans.gif', '1', '10');
    ?>
</td>
              </tr>
              <tr>
                <td colspan="2" align="right"><?php 
    echo olc_image_submit('button_send_mail.gif', IMAGE_SEND_EMAIL);
    ?>
</td>
              </tr>
            </table></td>
          </form></tr>
<?php 
}
?>
        </table></td>
      </tr>
    </table></td>
<?php 
require DIR_WS_INCLUDES . 'application_bottom.php';
<?php

/* -----------------------------------------------------------------------------------------
$Id: add_a_quickie.php,v 1.2 2004/02/17 16:20:07 fanta2k Exp $

OL-Commerce Version 5.x/AJAX
http://www.ol-commerce.com, http://www.seifenparadies.de

Copyright (c) 2004 OL-Commerce, 2006 Dipl.-Ing.(TH) Winfried Kaiser (w.kaiser@fortune.de, info@seifenparadies.de)
-----------------------------------------------------------------------------------------
based on:
(c) 2000-2001 The Exchange Project  (earlier name of osCommerce)
(c) 2002-2003 osCommerce(add_a_quickie.php,v 1.10 2001/12/19); www.oscommerce.com

Released under the GNU General Public License
-----------------------------------------------------------------------------------------
Third Party contribution:
Add A Quickie v1.0 Autor  Harald Ponce de Leon

Released under the GNU General Public License
---------------------------------------------------------------------------------------*/
olc_smarty_init($box_smarty, $cacheid);
$box_content = olc_draw_form('quick_add', olc_href_link('index' . PHP), 'get');
$box_smarty->assign('FORM_ACTION', $box_content);
$box_smarty->assign('INPUT_FIELD', olc_draw_hidden_field('action', 'buy_now') . olc_draw_input_field('BUYproducts_model', EMPTY_STRING, 'size=10'));
$box_smarty->assign('SUBMIT_BUTTON', olc_image_submit('button_buy_now.gif', BOX_HEADING_ADD_PRODUCT_ID));
$box_add_a_quickie = $box_smarty->fetch(CURRENT_TEMPLATE_BOXES . 'box_add_a_quickie' . HTML_EXT, $cacheid);
$smarty->assign('box_ADD_A_QUICKIE', $box_add_a_quickie);
        $sw = new SPAW_Wysiwyg($control_name = 'newsletter_body', $value = stripslashes($newsletters_data['body']), $lang = EMPTY_STRING, $mode = 'full', $theme = 'default', $width = '100%', $height = '800px', $css_stylesheet = SPAW_STYLESHEET, $dropdown_data = EMPTY_STRING);
        $sw->show();
        ?>
								      </td>
								   </tr>
							   </table>
							   <a href="<?php 
        echo olc_href_link(FILENAME_MODULE_NEWSLETTER);
        ?>
">
							   <?php 
        echo olc_image_button('button_back.gif', IMAGE_BACK);
        ?>
</a>
							   <right><?php 
        echo olc_image_submit('button_save.gif', IMAGE_SAVE);
        ?>
</right>
						  </form>
  <?php 
        break;
}
// end switch
?>
						</td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
</td>
            </tr>
<?php 
//Medreces insert Filter categories & manufactures !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
?>
            <tr class="dataTableHeadingRow"><?php 
echo olc_draw_form('filter_xsell_products', FILENAME_XSELL_PRODUCTS, $first_entrance ? '' : olc_get_all_get_params());
?>
                <td class="dataTableHeadingRow" align="left">Set Filters</td>
                <td class="smallText" align="right">
                  <?php 
echo 'to Categories:&nbsp' . olc_draw_pull_down_menu('categories_id', olc_get_category_tree(), $CATEGORIES_id);
echo '<br/>to Manufacturers:&nbsp' . olc_draw_pull_down_menu('manufacturers_id', $manufacturers_array, $MANUFACTURES_id);
?>
                </td>
				<td class="dataTableContent" align="right"><?php 
echo olc_image_submit('button_select.gif', 'GO!!!');
?>
</td>
            </form></tr>
<?php 
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
?>
          </table>
        </td>
      </tr>
      <!-- body_text //-->
      <tr><td width="100%" valign="top">
          <!-- Start of cross sale //-->
          <table width="100%" border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td align=center>
     $contents[] = array('text' => HTML_BR . TEXT_INFO_CUSTOMERS_STATUS_PAYMENT_UNALLOWED_INTRO . HTML_BR . ENTRY_CUSTOMERS_STATUS_PAYMENT_UNALLOWED . BLANK . olc_draw_input_field('customers_status_payment_unallowed', $cInfo->customers_status_payment_unallowed));
     $contents[] = array('text' => HTML_BR . TEXT_INFO_CUSTOMERS_STATUS_SHIPPING_UNALLOWED_INTRO . HTML_BR . ENTRY_CUSTOMERS_STATUS_SHIPPING_UNALLOWED . BLANK . olc_draw_input_field('customers_status_shipping_unallowed', $cInfo->customers_status_shipping_unallowed));
     $contents[] = array('text' => HTML_BR . TEXT_INFO_CUSTOMERS_FSK18_INTRO . HTML_BR . ENTRY_CUSTOMERS_FSK18 . BLANK . olc_draw_pull_down_menu('customers_fsk18', $customers_fsk18_array, $cInfo->customers_fsk18));
     $contents[] = array('text' => HTML_BR . TEXT_INFO_CUSTOMERS_FSK18_DISPLAY_INTRO . HTML_BR . ENTRY_CUSTOMERS_FSK18_DISPLAY . BLANK . olc_draw_pull_down_menu('customers_fsk18_display', $customers_fsk18_display_array, $cInfo->customers_fsk18_display));
     if (DEFAULT_CUSTOMERS_STATUS_ID != $cInfo->customers_status_id) {
         $contents[] = array('text' => HTML_BR . olc_draw_checkbox_field('default') . BLANK . TEXT_SET_DEFAULT);
     }
     $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_update.gif', IMAGE_UPDATE) . BLANK . HTML_A_START . olc_href_link(FILENAME_CUSTOMERS_STATUS, 'page=' . $_GET['page'] . '&cID=' . $cInfo->customers_status_id) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
     break;
 case 'delete':
     $heading[] = array('text' => HTML_B_START . TEXT_INFO_HEADING_DELETE_CUSTOMERS_STATUS . HTML_B_END);
     $contents = array('form' => olc_draw_form('status', FILENAME_CUSTOMERS_STATUS, 'page=' . $_GET['page'] . '&cID=' . $cInfo->customers_status_id . '&action=deleteconfirm'));
     $contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
     $contents[] = array('text' => '<br/><b>' . $cInfo->customers_status_name . HTML_B_END);
     if ($remove_status) {
         $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_delete.gif', IMAGE_DELETE) . BLANK . HTML_A_START . olc_href_link(FILENAME_CUSTOMERS_STATUS, 'page=' . $_GET['page'] . '&cID=' . $cInfo->customers_status_id) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
     }
     break;
 default:
     if (is_object($cInfo)) {
         $heading[] = array('text' => HTML_B_START . $cInfo->customers_status_name . HTML_B_END);
         $contents[] = array('align' => 'center', 'text' => HTML_A_START . olc_href_link(FILENAME_CUSTOMERS_STATUS, 'page=' . $_GET['page'] . '&cID=' . $cInfo->customers_status_id . '&action=edit') . '">' . olc_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . olc_href_link(FILENAME_CUSTOMERS_STATUS, 'page=' . $_GET['page'] . '&cID=' . $cInfo->customers_status_id . '&action=delete') . '">' . olc_image_button('button_delete.gif', IMAGE_DELETE) . HTML_A_END);
         $customers_status_inputs_string = '';
         $languages = olc_get_languages();
         for ($i = 0; $i < sizeof($languages); $i++) {
             $customers_status_inputs_string .= HTML_BR . olc_image(DIR_WS_CATALOG . 'lang/' . $languages[$i]['directory'] . '/admin/images/' . $languages[$i]['image'], $languages[$i]['name']) . HTML_NBSP . olc_get_customers_status_name($cInfo->customers_status_id, $languages[$i]['id']);
         }
         $contents[] = array('text' => $customers_status_inputs_string);
         $contents[] = array('text' => HTML_BR . TEXT_INFO_CUSTOMERS_STATUS_DISCOUNT_PRICE_INTRO . HTML_BR . TEXT_INFO_CUSTOMERS_STATUS_DISCOUNT_PRICE . BLANK . $cInfo->customers_status_discount . '%');
         $contents[] = array('text' => HTML_BR . TEXT_INFO_CUSTOMERS_STATUS_DISCOUNT_OT_XMEMBER_INTRO . HTML_BR . ENTRY_OT_XMEMBER . BLANK . $customers_status_ot_discount_flag_array[$cInfo->customers_status_ot_discount_flag]['text'] . LPAREN . $cInfo->customers_status_ot_discount_flag . RPAREN . ' - ' . $cInfo->customers_status_ot_discount . '%');
         $contents[] = array('text' => HTML_BR . TEXT_INFO_CUSTOMERS_STATUS_GRADUATED_PRICES_INTRO . HTML_BR . ENTRY_GRADUATED_PRICES . BLANK . $customers_status_graduated_prices_array[$cInfo->customers_status_graduated_prices]['text'] . LPAREN . $cInfo->customers_status_graduated_prices . RPAREN);
        echo "<option VALUE=\"" . $current_product_id . "\">" . $title;
    }
    echo "</SELECT>";
    echo "</td></tr>";
    // start change for Attribute Copy
    $copy_query = olc_db_query("SELECT DISTINCT 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_LANGUAGE_ID . "' ORDER BY pd.products_name ASC");
    if (olc_db_num_rows($copy_query)) {
        echo "<tr>";
        echo "<td class=\"main\"><br/><b>" . TEXT_SELECT_PRODUCT_COPY . "<br/></td>";
        echo "</tr>";
        echo "<tr>";
        echo "<td class=\"main\"><select name=\"copy_product_id\">";
        echo '<option value="0">' . TEXT_SELECT_PRODUCT_COPY_NO_COPY . '</option>';
        while ($copy_res = olc_db_fetch_array($copy_query, olc_db_ASSOC)) {
            echo '<option value="' . $copy_res['products_id'] . '">' . $copy_res['products_name'] . '</option>';
        }
        echo '</select></td></tr>';
        echo "<tr>";
        echo "\t<td class=\"main\">" . HTML_BR . olc_draw_checkbox_field('no_edit', TRUE_STRING_S, false) . HTML_NBSP . TEXT_ATTRIBUTES_DIRECT_STORE . "</td>";
        echo "</tr>";
        // end change for Attribute Copy
    }
    echo "<tr>";
    echo "\t<td class=\"main\"><br/>" . olc_image_submit('button_edit.gif', EMPTY_STRING) . "</td>";
    echo "</tr>";
} else {
    echo TEXT_ATTRIBUTES_NO_PRODUCTS;
}
?>
</form>
示例#9
0
                            $templates_entry .= str_replace(HASH, $this_template, $templates_image);
                        }
                        $content_body .= HTML_BR . $templates_entry;
                        $templates_count++;
                    }
                }
            }
        }
    }
    closedir($dh);
    if ($templates_count == 0) {
        $subtitle = TEXT_NO_SHOP_DESIGNS;
        $action = 'return';
    } else {
        $subtitle = TEXT_NEW_SHOP_DESIGN;
        $button_continue = olc_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE);
        $action = 'process';
    }
    $content_body .= olc_draw_hidden_field('action', $action);
    $breadcrumb->add(TEXT_CHANGE_SHOP_DESIGN, olc_href_link('skin.php'));
    olc_smarty_init($module_smarty, $cacheid);
    $module_smarty->assign('FORM_ACTION', olc_draw_form($templates_dir, CURRENT_SCRIPT));
    $module_smarty->assign('CONTENT_HEADING', TEXT_CHANGE_SHOP_DESIGN . HTML_BR . $subtitle);
    $module_smarty->assign('BUTTON_CONTINUE', $button_continue);
    $module_smarty->assign('CONTENT_BODY', $content_body);
    $main_content = $module_smarty->fetch(CURRENT_TEMPLATE_MODULE . 'skin' . HTML_EXT, $cacheid);
    $smarty->assign(MAIN_CONTENT, $main_content);
    //W. Kaiser - AJAX
    require BOXES;
    $smarty->display(INDEX_HTML);
}
							</table>
						</td>
	        </tr>
	<?php 
}
?>
				</table>
			</td>
		</tr>
		<tr>
			<td>
	      <?php 
include DIR_WS_MODULES . 'group_prices.php';
?>
			</td>
		</tr>
	  <tr>
	    <td class="main" align="right">
	      <?php 
if ($have_vpe) {
    $have_vpe = TRUE_STRING_S;
} else {
    $have_vpe = FALSE_STRING_S;
}
//	      IMAGE_SAVE,'style="cursor:hand" onclick="javascript:return confirm(\''.SAVE_ENTRY.'\')"') .
echo olc_draw_hidden_field('products_date_added', $pInfo->products_date_added ? $pInfo->products_date_added : date('Y-m-d')) . olc_image_submit('button_save.gif', IMAGE_SAVE, 'style="cursor:hand" onclick="javascript:return check_product_form(' . $have_vpe . ')"') . '&nbsp;&nbsp;<a href="' . olc_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $pID) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END;
?>
	     </td>
	  </tr>
	</table>
</form>
        $allow_checkout = TRUE_STRING_S;
        if ($_SESSION[$any_out_of_stock_text] == 1) {
            if (STOCK_ALLOW_CHECKOUT == TRUE_STRING_S) {
                // write permission in session
                $info_message = OUT_OF_STOCK_CAN_CHECKOUT;
            } else {
                $allow_checkout = FALSE_STRING_S;
                $info_message = OUT_OF_STOCK_CANT_CHECKOUT;
            }
        }
        $_SESSION['allow_checkout'] = $allow_checkout;
    }
    if ($info_message) {
        $smarty->assign($info_message_text, $info_message);
    }
    //W. Kaiser - AJAX
    $smarty->assign('BUTTON_RELOAD', olc_image_submit('button_update_cart.gif', IMAGE_BUTTON_UPDATE_CART, ' id="update_cart"', USE_AJAX));
    $smarty->assign('BUTTON_CHECKOUT', HTML_A_START . olc_href_link(FILENAME_CHECKOUT_SHIPPING, EMPTY_STRING, SSL) . '">' . olc_image_button('button_checkout.gif', IMAGE_BUTTON_CHECKOUT) . HTML_A_END);
    $button_action = USE_AJAX ? $button_action = "button_left()" : "history.back(1)";
    $smarty->assign('BUTTON_CONTINUE_SHOPPING', HTML_A_START . 'javascript:' . $button_action . '">' . olc_image_button('button_continue_shopping.gif', IMAGE_BUTTON_CONTINUE_SHOPPING) . HTML_A_END);
    //W. Kaiser - AJAX
} else {
    // empty cart
    $cart_empty = true;
    $smarty->assign('cart_empty', $cart_empty);
    $smarty->assign('BUTTON_CONTINUE', HTML_A_START . olc_href_link(FILENAME_DEFAULT) . '">' . olc_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE));
}
$main_content = $smarty->fetch(CURRENT_TEMPLATE_MODULE . 'shopping_cart' . HTML_EXT, SMARTY_CACHE_ID);
$smarty->assign(MAIN_CONTENT, $main_content);
require BOXES;
$smarty->display(INDEX_HTML);
        } else {
            for ($customers_status_start = 1; $customers_status_start <= $customers_status_count; $customers_status_start++) {
                if ($customers_status_id == $customers_statuses_array[$customers_status_start]['id']) {
                    break;
                }
            }
            $customers_status_end = $customers_status_start;
        }
    } else {
        if ($customers_status_count - 1 > 1) {
            $customers_statuses_array[0]['text'] = TEXT_CATALOGUE_ALL_VARIATIONS;
            $main_content .= olc_draw_form('parameter', CURRENT_SCRIPT, BLANK) . HTML_BR . HTML_BR;
            $main_content .= olc_draw_hidden_field('process', TRUE_STRING_S);
            $main_content .= TEXT_INFO_HEADING_STATUS_CUSTOMER . BLANK . olc_draw_pull_down_menu('group_status', $customers_statuses_array, DEFAULT_CUSTOMERS_STATUS_ID_ADMIN) . HTML_BR . HTML_BR;
            $main_content .= '
	<p>' . olc_image_submit('button_confirm.gif', IMAGE_BUTTON_CONTINUE, 'onclick="javascript:show_message()"') . '
	</p>
</form>
<script>
var message_visible=true,style_display,style_display_show="inline",style_display_hide="none";
var message_element_style;

function show_message()
{
	message_element_style=document.getElementById("message").style;
	message_element_style.display=style_display_show;
	setInterval("toggle_visibility()", 1000);
}

function toggle_visibility()
{
         if (USE_AJAX) {
             $action = 'products_quantity_changed(this,"' . $form_action . '",#)';
             //$parameter.=' onkeyup='.str_replace(HASH,'false',$action);
             $parameter .= ' onchange=' . str_replace(HASH, 'true', $action);
         }
         $products_min_order_quantity = max(1, $product_info['products_min_order_quantity']);
         $qty_field = olc_draw_input_field('products_qty', $products_min_order_quantity, $parameter) . olc_draw_hidden_field('products_id', $products_id) . olc_draw_hidden_field('products_min_order_quantity', $products_min_order_quantity);
         $do_stock_check = STOCK_CHECK == TRUE_STRING_S;
         if ($do_stock_check) {
             $products_qty .= olc_draw_hidden_field('cart_stock_quantity', olc_get_products_stock($products_id));
         }
         if ($is_gallery) {
             $qty_field .= olc_draw_hidden_field($gallery_text, TRUE_STRING_S);
         }
         $info_smarty->assign('ADD_QTY', $qty_field);
         $info_smarty->assign('ADD_CART_BUTTON', olc_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART, ' id="update_cart" align="middle"', USE_AJAX));
         if ($is_gallery) {
             $info_smarty->assign('ABORT_BUTTON', HTML_A_START . olc_href_link(FILENAME_GALLERY) . '">' . olc_image(CURRENT_TEMPLATE_BUTTONS . 'button_back.gif', IMAGE_BUTTON_CANCEL, EMPTY_STRING, EMPTY_STRING)) . HTML_A_END;
         }
         //W. Kaiser - AJAX
     }
 }
 //	W. Kaiser	chCounter inclusion
 if ($not_is_gallery_and_not_isprint_version) {
     if (CHCOUNTER_ACTIVE) {
         //chCounter for shop statistics -- http://www.christoph-bachner.net/chcounter
         //The "chCounter"-Pakage must be separately installed and configured.
         //(into the shop's "chCounter"directory)
         //http://www.christoph-bachner.net/chcounter
         /*
         $chCounter=DIR_FS_DOCUMENT_ROOT . 'chCounter/counter.php';
    echo olc_oe_get_options_name($products['options_id']);
    ?>
</td>
<td class="dataTableContent"><?php 
    echo olc_oe_get_options_values_name($products['options_values_id']);
    ?>
</td>
<td class="dataTableContent">
<?php 
    echo olc_draw_hidden_field('options_values_price', $products['options_values_price']);
    echo $options_values_price;
    ?>
</td>
<td class="dataTableContent">
<?php 
    echo olc_image_submit('button_insert.gif', TEXT_EDIT, 'style="cursor:hand" ');
    ?>
</form>
</td>
</tr>
<?php 
}
?>
</table>

<br/><br/>
<!-- Artikel Einfügen Ende //-->



            $manufacturer_inputs_string .= HTML_BR . olc_image(DIR_WS_LANGUAGES . $languages[$i]['directory'] . '/admin/images/' . $languages[$i]['image'], $languages[$i]['name']) . HTML_NBSP . olc_draw_input_field('manufacturers_url[' . $languages[$i]['id'] . ']', olc_get_manufacturer_url($mInfo->manufacturers_id, $languages[$i]['id']), $field_size);
        }
        $contents[] = array('text' => HTML_BR . TEXT_MANUFACTURERS_URL . $manufacturer_inputs_string);
        $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_save.gif', IMAGE_SAVE) . BLANK . HTML_A_START . olc_href_link(FILENAME_MANUFACTURERS, $page_parameter . '&mID=' . $mInfo->manufacturers_id) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
        break;
    case 'delete':
        $heading[] = array('text' => HTML_B_START . TEXT_HEADING_DELETE_MANUFACTURER . HTML_B_END);
        $contents = array('form' => olc_draw_form('manufacturers', FILENAME_MANUFACTURERS, $page_parameter . '&mID=' . $mInfo->manufacturers_id . '&action=deleteconfirm'));
        $contents[] = array('text' => TEXT_DELETE_INTRO);
        $contents[] = array('text' => '<br/><b>' . $mInfo->manufacturers_name . HTML_B_END);
        $contents[] = array('text' => HTML_BR . olc_draw_checkbox_field('delete_image', '', true) . BLANK . TEXT_DELETE_IMAGE);
        if ($mInfo->products_count > 0) {
            $contents[] = array('text' => HTML_BR . olc_draw_checkbox_field('delete_products') . BLANK . TEXT_DELETE_PRODUCTS);
            $contents[] = array('text' => HTML_BR . sprintf(TEXT_DELETE_WARNING_PRODUCTS, $mInfo->products_count));
        }
        $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_delete.gif', IMAGE_DELETE) . BLANK . HTML_A_START . olc_href_link(FILENAME_MANUFACTURERS, $page_parameter . '&mID=' . $mInfo->manufacturers_id) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
        break;
    default:
        if (is_object($mInfo)) {
            $heading[] = array('text' => HTML_B_START . $mInfo->manufacturers_name . HTML_B_END);
            $contents[] = array('align' => 'center', 'text' => HTML_A_START . olc_href_link(FILENAME_MANUFACTURERS, $page_parameter . '&mID=' . $mInfo->manufacturers_id . '&action=edit') . '">' . olc_image_button('button_edit.gif', IMAGE_EDIT) . '</a>
			<a href="' . olc_href_link(FILENAME_MANUFACTURERS, $page_parameter . '&mID=' . $mInfo->manufacturers_id . '&action=delete') . '">' . olc_image_button('button_delete.gif', IMAGE_DELETE) . HTML_A_END);
            $contents[] = array('text' => HTML_BR . TEXT_DATE_ADDED . BLANK . olc_date_short($mInfo->date_added));
            if (olc_not_null($mInfo->last_modified)) {
                $contents[] = array('text' => TEXT_LAST_MODIFIED . BLANK . olc_date_short($mInfo->last_modified));
            }
            $contents[] = array('text' => HTML_BR . olc_info_image($mInfo->manufacturers_image, $mInfo->manufacturers_name));
            $contents[] = array('text' => HTML_BR . TEXT_PRODUCTS . BLANK . $mInfo->products_count);
        }
        break;
}
    echo $payments_split->display_links($payments_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $_GET['page'], olc_get_all_get_params(array('page', 'pID', 'action')));
    ?>
</td>
                  </tr>
                </table></td>
              </tr>
            </table></td>
<?php 
    $heading = array();
    $contents = array();
    switch ($_GET['action']) {
        case 'delete':
            $heading[] = array('text' => HTML_B_START . TEXT_INFO_HEADING_DELETE_PAYMENT . HTML_B_END);
            $contents = array('form' => olc_draw_form('payment', FILENAME_AFFILIATE_PAYMENT, olc_get_all_get_params(array('pID', 'action')) . 'pID=' . $pInfo->affiliate_payment_id . '&action=deleteconfirm'));
            $contents[] = array('text' => TEXT_INFO_DELETE_INTRO . HTML_BR);
            $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_delete.gif', IMAGE_DELETE) . BLANK . HTML_A_START . olc_href_link(AFFILIATE_PAYMENT, olc_get_all_get_params(array('pID', 'action')) . 'pID=' . $pInfo->affiliate_payment_id) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
            break;
        default:
            if (is_object($pInfo)) {
                $heading[] = array('text' => '<b>[' . $pInfo->affiliate_payment_id . ']&nbsp;&nbsp;' . olc_datetime_short($pInfo->affiliate_payment_date) . HTML_B_END);
                $contents[] = array('align' => 'center', 'text' => HTML_A_START . olc_href_link(FILENAME_AFFILIATE_PAYMENT, olc_get_all_get_params(array('pID', 'action')) . 'pID=' . $pInfo->affiliate_payment_id . '&action=edit') . '">' . olc_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . olc_href_link(FILENAME_AFFILIATE_PAYMENT, olc_get_all_get_params(array('pID', 'action')) . 'pID=' . $pInfo->affiliate_payment_id . '&action=delete') . '">' . olc_image_button('button_delete.gif', IMAGE_DELETE) . HTML_A_END);
                $contents[] = array('align' => 'center', 'text' => HTML_A_START . olc_href_link(FILENAME_AFFILIATE_INVOICE, 'pID=' . $pInfo->affiliate_payment_id) . '" TARGET="_blank">' . olc_image_button('button_invoice.gif', IMAGE_ORDERS_INVOICE) . '</a> ');
            }
            break;
    }
    if (olc_not_null($heading) && olc_not_null($contents)) {
        echo '            <td  width="25%" valign="top">' . NEW_LINE;
        $box = new box();
        echo $box->infoBox($heading, $contents);
        echo '            </td>' . NEW_LINE;
    }
        <td align="left" class="main"><?php 
        echo COUPON_FINISHDATE;
        ?>
</td>
        <td align="left"><?php 
        echo olc_draw_date_selector('coupon_finishdate', mktime(0, 0, 0, $coupon_finishdate[1], $coupon_finishdate[2], $coupon_finishdate[0], 0));
        ?>
</td>
        <td align="left" class="main"><?php 
        echo COUPON_FINISHDATE_HELP;
        ?>
</td>
      </tr>
      <tr>
        <td align="left"><?php 
        echo olc_image_submit('button_preview.gif', COUPON_BUTTON_PREVIEW);
        ?>
</td>
        <td align="left"><?php 
        echo '&nbsp;&nbsp;<a href="' . olc_href_link('coupon_admin.php', '');
        ?>
"><?php 
        echo olc_image_button('button_cancel.gif', IMAGE_CANCEL);
        ?>
</a>
      </td>
      </tr>
      </td></table></form>
      </tr>

      </table></td>
 function display()
 {
     return array('text' => IMAGE_EXPORT_TYPE . HTML_BR . IMAGE_EXPORT . HTML_BR . HTML_BR . olc_image_submit('button_review_approve.gif', IMAGE_UPDATE) . HTML_A_START . olc_href_link(FILENAME_MODULE_EXPORT, 'set=' . $_GET['set'] . '&module=image_processing') . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
 }
    echo olc_href_link(FILENAME_CUSTOMERS, 'cID=' . $_GET['cID'] . '&action=edit&special=remove_memo&mID=' . $memo_values['memo_id']);
    ?>
" onclick="javascript:return confirm('<?php 
    echo DELETE_ENTRY;
    ?>
')"><?php 
    echo olc_image_button('button_delete.gif', IMAGE_DELETE);
    ?>
</a></td>
      </tr>
    </table>
<?php 
}
?>
    <table width="100%">
      <tr>
        <td class="main"><b><?php 
echo TEXT_TITLE;
?>
</b>:<?php 
echo olc_draw_input_field('memo_title');
?>
<br/><?php 
echo olc_draw_textarea_field('memo_text', 'soft', '80', '5');
?>
<br/><?php 
echo olc_image_submit('button_insert.gif', IMAGE_INSERT);
?>
</td>
      </tr>
    </table></td>
} elseif ($_GET['edit_action'] == 'options') {
    include 'orders_edit_options.php';
}
?>

<!-- Bestellung Sichern Anfang //-->
<br/><br/>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr class="dataTableRow">
<td class="dataTableContent" align="right">
<?php 
echo TEXT_SAVE_ORDER;
echo olc_draw_form('save_order', FILENAME_ORDERS_EDIT, 'action=save_order', 'post');
echo olc_draw_hidden_field('customers_status_id', $address[customers_status]);
echo olc_draw_hidden_field('orders_id', $_GET['oID']);
echo olc_image_submit('button_save.gif', TEXT_BUTTON_SAVE_ORDER, 'style="cursor:hand" ');
?>
</form>
</td>
</tr>
<tr><td><?php 
echo olc_draw_separator();
?>
</td></tr>
</table>
<br/><br/>
<!-- Bestellung Sichern Ende //-->


<!-- Ende //-->
</td>
        $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_insert.gif', IMAGE_INSERT) . '&nbsp;<a href="' . olc_href_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page']) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
        break;
    case 'edit':
        $heading[] = array('text' => HTML_B_START . TEXT_INFO_HEADING_EDIT_TAX_CLASS . HTML_B_END);
        $contents = array('form' => olc_draw_form('classes', FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id . '&action=save'));
        $contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
        $contents[] = array('text' => HTML_BR . TEXT_INFO_CLASS_TITLE . HTML_BR . olc_draw_input_field('tax_class_title', $tcInfo->tax_class_title));
        $contents[] = array('text' => HTML_BR . TEXT_INFO_CLASS_DESCRIPTION . HTML_BR . olc_draw_input_field('tax_class_description', $tcInfo->tax_class_description));
        $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_update.gif', IMAGE_UPDATE) . '&nbsp;<a href="' . olc_href_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
        break;
    case 'delete':
        $heading[] = array('text' => HTML_B_START . TEXT_INFO_HEADING_DELETE_TAX_CLASS . HTML_B_END);
        $contents = array('form' => olc_draw_form('classes', FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id . '&action=deleteconfirm'));
        $contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
        $contents[] = array('text' => '<br/><b>' . $tcInfo->tax_class_title . HTML_B_END);
        $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_delete.gif', IMAGE_DELETE) . '&nbsp;<a href="' . olc_href_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
        break;
    default:
        if (is_object($tcInfo)) {
            $heading[] = array('text' => HTML_B_START . $tcInfo->tax_class_title . HTML_B_END);
            $contents[] = array('align' => 'center', 'text' => HTML_A_START . olc_href_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id . '&action=edit') . '">' . olc_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . olc_href_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id . '&action=delete') . '">' . olc_image_button('button_delete.gif', IMAGE_DELETE) . HTML_A_END);
            $contents[] = array('text' => HTML_BR . TEXT_INFO_DATE_ADDED . BLANK . olc_date_short($tcInfo->date_added));
            $contents[] = array('text' => '' . TEXT_INFO_LAST_MODIFIED . BLANK . olc_date_short($tcInfo->last_modified));
            $contents[] = array('text' => HTML_BR . TEXT_INFO_CLASS_DESCRIPTION . HTML_BR . $tcInfo->tax_class_description);
        }
        break;
}
if (olc_not_null($heading) && olc_not_null($contents)) {
    echo '            <td width="25%" valign="top">' . NEW_LINE;
    $box = new box();
    echo $box->infoBox($heading, $contents);
					</td>
					<td style="border-bottom: 1px solid; border-color: #000000;" nowrap="nowrap" class="smallText" align="center">
						<b>' . TABLE_HEADING_DATE_ADDED . '</b>
					</td>
			</tr>
			');
                if (olc_db_num_rows($customers_history_query)) {
                    while ($customers_history = olc_db_fetch_array($customers_history_query)) {
                        $contents[] = array('text' => '<tr>' . NEW_LINE . '<td class="smallText">' . $customers_statuses_array[$customers_history['new_value']]['text'] . '</td>' . NEW_LINE . '<td class="smallText" align="center">' . olc_datetime_short($customers_history['date_added']) . '</td>' . NEW_LINE . '<td class="smallText" align="center">');
                        $contents[] = array('text' => '</tr>' . NEW_LINE);
                    }
                } else {
                    $contents[] = array('text' => '<tr>' . NEW_LINE . ' <td class="smallText" colspan="2">' . TEXT_NO_CUSTOMER_HISTORY . '</td>' . NEW_LINE . ' </tr>' . NEW_LINE);
                }
                $contents[] = array('text' => '</table>');
                $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_update.gif', IMAGE_UPDATE) . BLANK . HTML_A_START . olc_href_link(FILENAME_CUSTOMERS, olc_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
                $status = olc_db_prepare_input($_POST['status']);
                // maybe this line not needed to recheck...
            }
            break;
        default:
            $customer_status = olc_get_customer_status($cId);
            $cs_id = $customer_status['customers_status'];
            $cs_member_flag = $customer_status['member_flag'];
            $cs_name = $customer_status['customers_status_name'];
            $cs_image = $customer_status['customers_status_image'];
            $cs_discount = $customer_status['customers_status_discount'];
            $cs_ot_discount_flag = $customer_status['customers_status_ot_discount_flag'];
            $cs_ot_discount = $customer_status['customers_status_ot_discount'];
            $cs_staffelpreise = $customer_status['customers_status_staffelpreise'];
            $cs_payment_unallowed = $customer_status['customers_status_payment_unallowed'];
    ?>
</td>
                  </tr>
                </table></td>
              </tr>
            </table></td>
<?php 
    $heading = array();
    $contents = array();
    switch ($_GET['action']) {
        case 'delete':
            $heading[] = array('text' => HTML_B_START . TEXT_INFO_HEADING_DELETE_REVIEW . HTML_B_END);
            $contents = array('form' => olc_draw_form('reviews', FILENAME_REVIEWS, 'page=' . $_GET['page'] . '&rID=' . $rInfo->reviews_id . '&action=deleteconfirm'));
            $contents[] = array('text' => TEXT_INFO_DELETE_REVIEW_INTRO);
            $contents[] = array('text' => '<br/><b>' . $rInfo->products_name . HTML_B_END);
            $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_delete.gif', IMAGE_DELETE) . BLANK . HTML_A_START . olc_href_link(FILENAME_REVIEWS, 'page=' . $_GET['page'] . '&rID=' . $rInfo->reviews_id) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
            break;
        default:
            if (is_object($rInfo)) {
                $heading[] = array('text' => HTML_B_START . $rInfo->products_name . HTML_B_END);
                $contents[] = array('align' => 'center', 'text' => HTML_A_START . olc_href_link(FILENAME_REVIEWS, 'page=' . $_GET['page'] . '&rID=' . $rInfo->reviews_id . '&action=edit') . '">' . olc_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . olc_href_link(FILENAME_REVIEWS, 'page=' . $_GET['page'] . '&rID=' . $rInfo->reviews_id . '&action=delete') . '">' . olc_image_button('button_delete.gif', IMAGE_DELETE) . HTML_A_END);
                $contents[] = array('text' => HTML_BR . TEXT_INFO_DATE_ADDED . BLANK . olc_date_short($rInfo->date_added));
                if (olc_not_null($rInfo->last_modified)) {
                    $contents[] = array('text' => TEXT_INFO_LAST_MODIFIED . BLANK . olc_date_short($rInfo->last_modified));
                }
                $contents[] = array('text' => HTML_BR . olc_info_image($rInfo->products_image, $rInfo->products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT));
                $contents[] = array('text' => HTML_BR . TEXT_INFO_REVIEW_AUTHOR . BLANK . $rInfo->customers_name);
                $contents[] = array('text' => TEXT_INFO_REVIEW_RATING . BLANK . olc_image(DIR_WS_CATALOG_IMAGES . 'stars_' . $rInfo->reviews_rating . '.gif'));
                $contents[] = array('text' => TEXT_INFO_REVIEW_READ . BLANK . $rInfo->reviews_read);
                $contents[] = array('text' => HTML_BR . TEXT_INFO_REVIEW_SIZE . BLANK . $rInfo->reviews_text_size . ' bytes');
                $contents[] = array('text' => HTML_BR . TEXT_INFO_PRODUCTS_AVERAGE_RATING . BLANK . number_format($rInfo->average_rating, 2) . '%');
									</table>
								</td>
							</tr>';
                $radio_buttons++;
            }
            $address_content .= '
						</table>';
            $smarty->assign('BLOCK_ADDRESS', $address_content);
        }
    }
    /*
    if ($addresses_count < MAX_ADDRESS_BOOK_ENTRIES)
    {
    	include(DIR_WS_MODULES . SMARTY_TEMPLATE.PHP);
    }
    */
    $submit_routine_trailer = '_optional';
    $smarty->assign('BUTTON_CONTINUE', olc_draw_hidden_field('action', 'submit') . olc_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE));
    if ($process) {
        $smarty->assign('BUTTON_BACK', HTML_A_START . olc_href_link($back_file, EMPTY_STRING, SSL) . '">' . olc_image_button('button_back.gif', IMAGE_BUTTON_BACK) . HTML_A_END);
    }
}
$smarty->assign('FORM_ACTION', olc_draw_form(MESSAGE_STACK_NAME, olc_href_link(MESSAGE_STACK_NAME . PHP, EMPTY_STRING, SSL), 'post', 'onsubmit="return check_form' . $submit_routine_trailer . '(\'' . MESSAGE_STACK_NAME . '\');"'));
//W. Kaiser - AJAX
if ($messageStack->size(MESSAGE_STACK_NAME) > 0) {
    $smarty->assign('error', $messageStack->output(MESSAGE_STACK_NAME));
}
$main_content = $smarty->fetch(CURRENT_TEMPLATE_MODULE . MESSAGE_STACK_NAME . HTML_EXT, SMARTY_CACHE_ID);
$smarty->assign(MAIN_CONTENT, $main_content);
require BOXES;
$smarty->display(INDEX_HTML);
示例#25
0
 function display()
 {
     $customers_statuses_array = olc_get_customers_statuses();
     // build Currency Select
     $curr = '';
     $currencies = olc_db_query("SELECT code FROM " . TABLE_CURRENCIES);
     while ($currencies_data = olc_db_fetch_array($currencies)) {
         $curr .= olc_draw_radio_field('currencies', $currencies_data['code'], true) . $currencies_data['code'] . HTML_BR;
     }
     return array('text' => EXPORT_STATUS_TYPE . HTML_BR . EXPORT_STATUS . HTML_BR . olc_draw_pull_down_menu('status', $customers_statuses_array, '1') . HTML_BR . CURRENCY . HTML_BR . CURRENCY_DESC . HTML_BR . $curr . EXPORT_TYPE . HTML_BR . EXPORT . HTML_BR . olc_draw_radio_field('export', 'no', false) . EXPORT_NO . HTML_BR . olc_draw_radio_field('export', 'yes', true) . EXPORT_YES . HTML_BR . HTML_BR . olc_image_submit('button_export.gif', IMAGE_UPDATE) . HTML_A_START . olc_href_link(FILENAME_MODULE_EXPORT, 'set=' . $_GET['set'] . '&module=kelkoo') . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
 }
	</table></td>
	</tr>
	</table></td>
	<?php 
    $heading = array();
    $contents = array();
    switch ($action) {
        case 'delete':
            $heading[] = array('text' => HTML_B_START . $bInfo->banners_title . HTML_B_END);
            $contents = array('form' => olc_draw_form('banners', FILENAME_BANNER_MANAGER, $page_parameter . '&bID=' . $bInfo->banners_id . '&action=deleteconfirm'));
            $contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
            $contents[] = array('text' => '<br/><b>' . $bInfo->banners_title . HTML_B_END);
            if ($bInfo->banners_image) {
                $contents[] = array('text' => HTML_BR . olc_draw_checkbox_field('delete_image', 'on', true) . BLANK . TEXT_INFO_DELETE_IMAGE);
            }
            $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_delete.gif', IMAGE_DELETE) . '&nbsp;<a href="' . olc_href_link(FILENAME_BANNER_MANAGER, $page_parameter . '&bID=' . $bID) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
            break;
        default:
            if (is_object($bInfo)) {
                $heading[] = array('text' => HTML_B_START . $bInfo->banners_title . HTML_B_END);
                $contents[] = array('align' => 'center', 'text' => HTML_A_START . olc_href_link(FILENAME_BANNER_MANAGER, $page_parameter . '&bID=' . $bInfo->banners_id . '&action=new') . '">' . olc_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . olc_href_link(FILENAME_BANNER_MANAGER, $page_parameter . '&bID=' . $bInfo->banners_id . '&action=delete') . '">' . olc_image_button('button_delete.gif', IMAGE_DELETE) . HTML_A_END);
                $contents[] = array('text' => HTML_BR . TEXT_BANNERS_DATE_ADDED . BLANK . olc_date_short($bInfo->date_added));
                if (function_exists('imagecreate') && $dir_ok && $banner_extension) {
                    $banner_id = $bInfo->banners_id;
                    $days = '3';
                    include DIR_WS_INCLUDES . 'graphs/banner_infobox.php';
                    $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image(DIR_WS_IMAGES . 'graphs/banner_infobox-' . $banner_id . '.' . $banner_extension));
                } else {
                    include DIR_WS_FUNCTIONS . 'html_graphs.php';
                    $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_banner_graph_infoBox($bInfo->banners_id, '3'));
                }
        //        $manufacturer_inputs_string .= HTML_BR . olc_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . HTML_NBSP . olc_draw_input_field('manufacturers_url[' . $languages[$i]['id'] . ']', olc_get_manufacturer_url($mInfo->manufacturers_id, $languages[$i]['id']));
        //      }
        //      $contents[] = array('text' => HTML_BR . TEXT_MANUFACTURERS_URL . $manufacturer_inputs_string);
        $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_save.gif', IMAGE_SAVE) . BLANK . HTML_A_START . olc_href_link(FILENAME_BLACKLIST, 'page=' . $_GET['page'] . '&bID=' . $mInfo->blacklist_id) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
        break;
    case 'delete':
        $heading[] = array('text' => HTML_B_START . TEXT_HEADING_DELETE_BLACKLIST_CARD . HTML_B_END);
        $contents = array('form' => olc_draw_form('blacklisted', FILENAME_BLACKLIST, 'page=' . $_GET['page'] . '&bID=' . $bInfo->blacklist_id . '&action=deleteconfirm'));
        $contents[] = array('text' => TEXT_DELETE_INTRO);
        $contents[] = array('text' => '<br/><b>' . $bInfo->blacklist_card_number . HTML_B_END);
        //      $contents[] = array('text' => HTML_BR . olc_draw_checkbox_field('delete_image', '', true) . BLANK . TEXT_DELETE_IMAGE);
        //      if ($mInfo->products_count > 0) {
        //        $contents[] = array('text' => HTML_BR . olc_draw_checkbox_field('delete_products') . BLANK . TEXT_DELETE_PRODUCTS);
        //        $contents[] = array('text' => HTML_BR . sprintf(TEXT_DELETE_WARNING_PRODUCTS, $mInfo->products_count));
        //      }
        $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_delete.gif', IMAGE_DELETE) . BLANK . HTML_A_START . olc_href_link(FILENAME_BLACKLIST, 'page=' . $_GET['page'] . '&bID=' . $bInfo->blacklist_id) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
        break;
    default:
        if (is_object($bInfo)) {
            $heading[] = array('text' => HTML_B_START . $bInfo->blacklist_card_number . HTML_B_END);
            $contents[] = array('align' => 'center', 'text' => HTML_A_START . olc_href_link(FILENAME_BLACKLIST, 'page=' . $_GET['page'] . '&bID=' . $bInfo->blacklist_id . '&action=edit') . '">' . olc_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . olc_href_link(FILENAME_BLACKLIST, 'page=' . $_GET['page'] . '&bID=' . $bInfo->blacklist_id . '&action=delete') . '">' . olc_image_button('button_delete.gif', IMAGE_DELETE) . HTML_A_END);
            $contents[] = array('text' => HTML_BR . TEXT_DATE_ADDED . BLANK . olc_date_short($bInfo->date_added));
            if (olc_not_null($bInfo->last_modified)) {
                $contents[] = array('text' => TEXT_LAST_MODIFIED . BLANK . olc_date_short($bInfo->last_modified));
            }
            //        $contents[] = array('text' => HTML_BR . olc_info_image($mInfo->manufacturers_image, $mInfo->manufacturers_name));
            //        $contents[] = array('text' => HTML_BR . TEXT_PRODUCTS . BLANK . $mInfo->products_count);
        }
        break;
}
if (olc_not_null($heading) && olc_not_null($contents)) {
    case 'edit':
        $heading[] = array('text' => HTML_B_START . TEXT_INFO_HEADING_EDIT_COUNTRY . HTML_B_END);
        $contents = array('form' => olc_draw_form('countries', FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id . '&action=save'));
        $contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
        $contents[] = array('text' => HTML_BR . TEXT_INFO_COUNTRY_NAME . HTML_BR . olc_draw_input_field('countries_name', $cInfo->countries_name));
        $contents[] = array('text' => HTML_BR . TEXT_INFO_COUNTRY_CODE_2 . HTML_BR . olc_draw_input_field('countries_iso_code_2', $cInfo->countries_iso_code_2));
        $contents[] = array('text' => HTML_BR . TEXT_INFO_COUNTRY_CODE_3 . HTML_BR . olc_draw_input_field('countries_iso_code_3', $cInfo->countries_iso_code_3));
        $contents[] = array('text' => HTML_BR . TEXT_INFO_ADDRESS_FORMAT . HTML_BR . olc_draw_pull_down_menu('address_format_id', olc_get_address_formats(), $cInfo->address_format_id));
        $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_update.gif', IMAGE_UPDATE) . '&nbsp;<a href="' . olc_href_link(FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
        break;
    case 'delete':
        $heading[] = array('text' => HTML_B_START . TEXT_INFO_HEADING_DELETE_COUNTRY . HTML_B_END);
        $contents = array('form' => olc_draw_form('countries', FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id . '&action=deleteconfirm'));
        $contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
        $contents[] = array('text' => '<br/><b>' . $cInfo->countries_name . HTML_B_END);
        $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_delete.gif', IMAGE_UPDATE) . '&nbsp;<a href="' . olc_href_link(FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
        break;
    default:
        if (is_object($cInfo)) {
            $heading[] = array('text' => HTML_B_START . $cInfo->countries_name . HTML_B_END);
            $contents[] = array('align' => 'center', 'text' => HTML_A_START . olc_href_link(FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id . '&action=edit') . '">' . olc_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . olc_href_link(FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id . '&action=delete') . '">' . olc_image_button('button_delete.gif', IMAGE_DELETE) . HTML_A_END);
            $contents[] = array('text' => HTML_BR . TEXT_INFO_COUNTRY_NAME . HTML_BR . $cInfo->countries_name);
            $contents[] = array('text' => HTML_BR . TEXT_INFO_COUNTRY_CODE_2 . BLANK . $cInfo->countries_iso_code_2);
            $contents[] = array('text' => HTML_BR . TEXT_INFO_COUNTRY_CODE_3 . BLANK . $cInfo->countries_iso_code_3);
            $contents[] = array('text' => HTML_BR . TEXT_INFO_ADDRESS_FORMAT . BLANK . $cInfo->address_format_id);
        }
        break;
}
if (olc_not_null($heading) && olc_not_null($contents)) {
    echo '            <td width="25%" valign="top">' . NEW_LINE;
    $box = new box();
	</table></td>
	</tr>
	</table></td>
	<?php 
    $heading = array();
    $contents = array();
    switch ($_GET['action']) {
        case 'delete':
            $heading[] = array('text' => HTML_B_START . $abInfo->affiliate_banners_title . HTML_B_END);
            $contents = array('form' => olc_draw_form('affiliate_banners', FILENAME_AFFILIATE_BANNER_MANAGER, 'page=' . $_GET['page'] . '&abID=' . $abInfo->affiliate_banners_id . '&action=deleteconfirm'));
            $contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
            $contents[] = array('text' => '<br/><b>' . $abInfo->affiliate_banners_title . HTML_B_END);
            if ($abInfo->affiliate_banners_image) {
                $contents[] = array('text' => HTML_BR . olc_draw_checkbox_field('delete_image', 'on', true) . BLANK . TEXT_INFO_DELETE_IMAGE);
            }
            $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_delete.gif', IMAGE_DELETE) . '&nbsp;<a href="' . olc_href_link(FILENAME_AFFILIATE_BANNER_MANAGER, 'page=' . $_GET['page'] . '&abID=' . $_GET['abID']) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
            break;
        default:
            if (is_object($abInfo)) {
                $sql = "select products_name from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . $abInfo->affiliate_products_id . "' and language_id = '" . SESSION_LANGUAGE_ID . APOS;
                $product_description_query = olc_db_query($sql);
                $product_description = olc_db_fetch_array($product_description_query);
                $heading[] = array('text' => HTML_B_START . $abInfo->affiliate_banners_title . HTML_B_END);
                $contents[] = array('align' => 'center', 'text' => HTML_A_START . olc_href_link(FILENAME_AFFILIATE_BANNER_MANAGER, 'page=' . $_GET['page'] . '&abID=' . $abInfo->affiliate_banners_id . '&action=new') . '">' . olc_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . olc_href_link(FILENAME_AFFILIATE_BANNER_MANAGER, 'page=' . $_GET['page'] . '&abID=' . $abInfo->affiliate_banners_id . '&action=delete') . '">' . olc_image_button('button_delete.gif', IMAGE_DELETE) . HTML_A_END);
                $contents[] = array('text' => $product_description['products_name']);
                $contents[] = array('text' => HTML_BR . TEXT_BANNERS_DATE_ADDED . BLANK . olc_date_short($abInfo->affiliate_date_added));
                $contents[] = array('text' => '' . sprintf(TEXT_BANNERS_STATUS_CHANGE, olc_date_short($abInfo->affiliate_date_status_change)));
            }
            break;
    }
    if (olc_not_null($heading) && olc_not_null($contents)) {
示例#30
0
(c) 2003	    nextcommerce (search.php,v 1.9 2003/08/17); www.nextcommerce.org
(c) 2004      XT - Commerce; www.xt-commerce.com

Released under the GNU General Public License
---------------------------------------------------------------------------------------*/
olc_smarty_init($box_smarty, $cacheid);
require_once DIR_FS_INC . 'olc_draw_pull_down_menu.inc.php';
require_once DIR_FS_INC . 'olc_draw_checkbox_field.inc.php';
require_once DIR_FS_INC . 'olc_draw_selection_field.inc.php';
require_once DIR_FS_INC . 'olc_image_submit.inc.php';
require_once DIR_FS_INC . 'olc_get_categories.inc.php';
require_once DIR_FS_INC . 'olc_get_manufacturers.inc.php';
require_once DIR_FS_INC . 'olc_hide_session_id.inc.php';
$selections = '
<table border="0" cellspacing="0" cellpadding="2">
  <tr>
    <td class="infoBoxContents">' . ENTRY_CATEGORIES . HTML_BR . olc_draw_pull_down_menu('categories_id', olc_get_categories(array(array('id' => EMPTY_STRING, 'text' => TEXT_ALL_CATEGORIES)))) . olc_draw_hidden_field('inc_subcat', ONE_STRING) . '
		</td>
  </tr>';
$manufacturers_pulldown = olc_get_manufacturers();
if ($manufacturers_pulldown) {
    $selections .= '<tr><td class="infoBoxContents">' . ENTRY_MANUFACTURERS . HTML_BR . olc_draw_pull_down_menu('manufacturers_id', $manufacturers_pulldown) . '</td></tr>';
}
$selections .= '</table>';
$box_smarty->assign('FORM_ACTION', olc_draw_form('quick_find', olc_href_link(FILENAME_ADVANCED_SEARCH_RESULT, EMPTY_STRING, NONSSL, false), 'get') . olc_hide_session_id());
$box_smarty->assign('INPUT_SEARCH', olc_draw_input_field('keywords', EMPTY_STRING, 'size="16" maxlength="100"'));
$box_smarty->assign('SELECTIONS', $selections);
$box_smarty->assign('BUTTON_SUBMIT', olc_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH, 'align="middle"'));
$box_smarty->assign('LINK_ADVANCED', olc_href_link(FILENAME_ADVANCED_SEARCH));
$box_search = $box_smarty->fetch(CURRENT_TEMPLATE_BOXES . 'box_search' . HTML_EXT, $cacheid);
$smarty->assign('box_SEARCH', $box_search);