本文整理匯總了PHP中mslib_fe::getAllOrderStatus方法的典型用法代碼示例。如果您正苦於以下問題:PHP mslib_fe::getAllOrderStatus方法的具體用法?PHP mslib_fe::getAllOrderStatus怎麽用?PHP mslib_fe::getAllOrderStatus使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類mslib_fe
的用法示例。
在下文中一共展示了mslib_fe::getAllOrderStatus方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: array
$filter = array();
$filter[] = 'deleted=0';
if (!$this->masterShop) {
$filter[] = 'page_uid=\'' . $this->shop_pid . '\'';
}
$sql_year = "select crdate from tx_multishop_orders where " . implode(' AND ', $filter) . " order by orders_id asc limit 1";
$qry_year = $GLOBALS['TYPO3_DB']->sql_query($sql_year);
$row_year = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($qry_year);
if ($row_year['crdate'] > 0) {
$oldest_year = date("Y", $row_year['crdate']);
} else {
$oldest_year = date("Y");
}
$current_year = date("Y");
$order_status_sb = '<h3>' . $this->pi_getLL('order_status') . '</h3>';
$all_orders_status = mslib_fe::getAllOrderStatus($GLOBALS['TSFE']->sys_language_uid);
if (is_array($all_orders_status) and count($all_orders_status)) {
$order_status_sb .= '<div class="order_status_checkbox" id="admin_sales_stats_order_status">';
foreach ($all_orders_status as $row) {
$order_status_sb .= '<div class="checkbox checkbox-success"><input type="checkbox" name="tx_multishop_pi1[status][]" value="' . $row['id'] . '" ' . (in_array($row['id'], $this->get['tx_multishop_pi1']['status']) ? 'checked="checked"' : '') . ' class="admin_sales_stats_order_status" id="sales_stats_status_' . $row['id'] . '" /><label for="sales_stats_status_' . $row['id'] . '">' . $row['name'] . '</label></div>';
}
$order_status_sb .= '</div>';
}
if (isset($this->get['tx_multishop_pi1']['status']) && count($this->get['tx_multishop_pi1']['status']) > 0) {
$status_where = '';
$tmp = array();
foreach ($this->get['tx_multishop_pi1']['status'] as $order_status) {
$tmp[] = 'o.status=' . $order_status;
}
if (count($tmp)) {
$status_where = '(' . implode(' or ', $tmp) . ')';
示例2: jQueryAdminMenu
public function jQueryAdminMenu()
{
static $ms_menu;
if (is_array($ms_menu)) {
return $ms_menu;
}
$order_status_array = mslib_fe::getAllOrderStatus($GLOBALS['TSFE']->sys_language_uid);
$ms_menu = array();
$ms_menu['header']['ms_admin_logo']['description'] = '<a href="' . mslib_fe::typolink($this->shop_pid . ',2003', 'tx_multishop_pi1[page_section]=admin_home') . '">';
//$ms_menu['header']['ms_admin_logo']['description']='<a href="'.$this->conf['admin_development_company_url'].'" title="'.htmlspecialchars($this->conf['admin_development_company_name']).'" alt="'.htmlspecialchars($this->conf['admin_development_company_name']).'" target="_blank">';
if ($this->conf['admin_development_company_logo']) {
// Display custom logo of development company
$ms_menu['header']['ms_admin_logo']['description'] .= '<img src="' . $this->conf['admin_development_company_logo'] . '">';
} else {
// Display TYPO3 Multishop through CSS
$ms_menu['header']['ms_admin_logo']['description'] .= '<span></span>';
}
$ms_menu['header']['ms_admin_logo']['description'] .= '</a>';
// $ms_menu['header']['ms_admin_logo']['description']='<a href="'.mslib_fe::typolink($this->shop_pid.',2003','tx_multishop_pi1[page_section]=admin_home').'" title="Home dashboard" alt="Home dashboard"><img src="'.$this->conf['admin_development_company_logo'].'"></a>';
if ($this->ROOTADMIN_USER or $this->CATALOGADMIN_USER) {
$ms_menu['header']['ms_admin_catalog']['label'] = $this->pi_getLL('admin_catalog');
$ms_menu['header']['ms_admin_catalog']['link'] = mslib_fe::typolink($this->shop_pid . ',2003', 'tx_multishop_pi1[page_section]=admin_products_search_and_edit&cid=' . $this->get['categories_id']);
//mslib_fe::typolink($this->shop_pid, '', 1);
$ms_menu['header']['ms_admin_catalog']['class'] = 'fa fa-book';
$ms_menu['header']['ms_admin_catalog']['subs']['admin_categories']['label'] = $this->pi_getLL('admin_categories');
$ms_menu['header']['ms_admin_catalog']['subs']['admin_categories']['description'] = $this->pi_getLL('admin_add_and_modify_categories_here') . '.';
$ms_menu['header']['ms_admin_catalog']['subs']['admin_categories']['link'] = mslib_fe::typolink($this->shop_pid . ',2003', 'tx_multishop_pi1[page_section]=admin_categories&cid=' . $this->get['categories_id']);
$ms_menu['header']['ms_admin_catalog']['subs']['admin_categories']['class'] = 'fa fa-folder';
$ms_menu['header']['ms_admin_catalog']['subs']['admin_categories']['subs']['admin_search_and_edit_categories']['label'] = $this->pi_getLL('overview');
$ms_menu['header']['ms_admin_catalog']['subs']['admin_categories']['subs']['admin_search_and_edit_categories']['description'] = $this->pi_getLL('admin_here_you_can_search_and_update_categories') . '.';
$ms_menu['header']['ms_admin_catalog']['subs']['admin_categories']['subs']['admin_search_and_edit_categories']['link'] = mslib_fe::typolink($this->shop_pid . ',2003', 'tx_multishop_pi1[page_section]=admin_categories&cid=' . $this->get['categories_id']);
$ms_menu['header']['ms_admin_catalog']['subs']['admin_categories']['subs']['admin_search_and_edit_categories']['class'] = 'fa fa-info-circle';
if ($this->get['tx_multishop_pi1']['page_section'] == 'admin_categories' || $this->post['tx_multishop_pi1']['page_section'] == 'admin_categories') {
$ms_menu['header']['ms_admin_catalog']['subs']['admin_categories']['subs']['admin_search_and_edit_categories']['active'] = 1;
}
$ms_menu['header']['ms_admin_catalog']['subs']['admin_categories']['subs']['admin_new_category']['label'] = $this->pi_getLL('add');
$ms_menu['header']['ms_admin_catalog']['subs']['admin_categories']['subs']['admin_new_category']['description'] = $this->pi_getLL('admin_add_new_category_to_the_catalog') . '.';
$ms_menu['header']['ms_admin_catalog']['subs']['admin_categories']['subs']['admin_new_category']['link'] = mslib_fe::typolink($this->shop_pid . ',2003', 'tx_multishop_pi1[page_section]=add_category&cid=' . $this->get['categories_id'] . '&action=add_category');
$ms_menu['header']['ms_admin_catalog']['subs']['admin_categories']['subs']['admin_new_category']['class'] = 'fa fa-plus-circle';
if ($this->get['tx_multishop_pi1']['page_section'] == 'add_category' || $this->post['tx_multishop_pi1']['page_section'] == 'add_category') {
$ms_menu['header']['ms_admin_catalog']['subs']['admin_categories']['subs']['admin_new_category']['active'] = 1;
}
if ($this->get['tx_multishop_pi1']['page_section'] == 'edit_category' || $this->post['tx_multishop_pi1']['page_section'] == 'edit_category') {
$ms_menu['header']['ms_admin_catalog']['subs']['admin_categories']['subs']['admin_new_category']['active'] = 1;
}
$ms_menu['header']['ms_admin_catalog']['subs']['admin_categories']['subs']['admin_new_multiple_category']['label'] = $this->pi_getLL('admin_new_multiple_category', 'NEW CATEGORIES');
$ms_menu['header']['ms_admin_catalog']['subs']['admin_categories']['subs']['admin_new_multiple_category']['description'] = $this->pi_getLL('admin_add_new_multiple_category_to_the_catalog', 'Add new categories simultaneous') . '.';
$ms_menu['header']['ms_admin_catalog']['subs']['admin_categories']['subs']['admin_new_multiple_category']['link'] = mslib_fe::typolink($this->shop_pid . ',2003', 'tx_multishop_pi1[page_section]=add_multiple_category&cid=' . $this->get['categories_id'] . '&action=add_multiple_category');
$ms_menu['header']['ms_admin_catalog']['subs']['admin_categories']['subs']['admin_new_multiple_category']['class'] = 'fa fa-plus-circle';
if ($this->get['tx_multishop_pi1']['page_section'] == 'add_multiple_category' || $this->post['tx_multishop_pi1']['page_section'] == 'add_multiple_category') {
$ms_menu['header']['ms_admin_catalog']['subs']['admin_categories']['subs']['admin_new_multiple_category']['active'] = 1;
}
if ($this->get['categories_id']) {
$ms_menu['header']['ms_admin_catalog']['subs']['admin_categories']['subs']['admin_edit_category']['label'] = $this->pi_getLL('admin_edit_category');
$ms_menu['header']['ms_admin_catalog']['subs']['admin_categories']['subs']['admin_edit_category']['description'] = $this->pi_getLL('admin_edit_category_description') . '.';
$ms_menu['header']['ms_admin_catalog']['subs']['admin_categories']['subs']['admin_edit_category']['link'] = mslib_fe::typolink($this->shop_pid . ',2003', 'tx_multishop_pi1[page_section]=edit_category&cid=' . $this->get['categories_id'] . '&action=edit_category');
$ms_menu['header']['ms_admin_catalog']['subs']['admin_categories']['subs']['admin_edit_category']['link_params'] = 'id="msadmin_edit_category"';
$ms_menu['header']['ms_admin_catalog']['subs']['admin_categories']['subs']['admin_edit_category']['class'] = 'fa fa-pencil';
if ($this->get['tx_multishop_pi1']['page_section'] == 'edit_category' || $this->post['tx_multishop_pi1']['page_section'] == 'edit_category') {
$ms_menu['header']['ms_admin_catalog']['subs']['admin_categories']['subs']['admin_edit_category']['active'] = 1;
}
$ms_menu['header']['ms_admin_catalog']['subs']['admin_categories']['subs']['admin_delete_category']['label'] = $this->pi_getLL('admin_delete_category');
$ms_menu['header']['ms_admin_catalog']['subs']['admin_categories']['subs']['admin_delete_category']['description'] = $this->pi_getLL('admin_delete_category_description') . '.';
$ms_menu['header']['ms_admin_catalog']['subs']['admin_categories']['subs']['admin_delete_category']['link'] = mslib_fe::typolink($this->shop_pid . ',2003', 'tx_multishop_pi1[page_section]=delete_category&cid=' . $this->get['categories_id'] . '&action=delete_category');
$ms_menu['header']['ms_admin_catalog']['subs']['admin_categories']['subs']['admin_delete_category']['class'] = 'fa fa-trash-o';
if ($this->get['tx_multishop_pi1']['page_section'] == 'delete_category' || $this->post['tx_multishop_pi1']['page_section'] == 'delete_category') {
$ms_menu['header']['ms_admin_catalog']['subs']['admin_categories']['subs']['admin_delete_category']['active'] = 1;
}
}
// merge categories
$ms_menu['header']['ms_admin_catalog']['subs']['admin_categories']['subs']['admin_merge_categories']['label'] = $this->pi_getLL('merge_categories');
$ms_menu['header']['ms_admin_catalog']['subs']['admin_categories']['subs']['admin_merge_categories']['link'] = mslib_fe::typolink($this->shop_pid . ',2003', 'tx_multishop_pi1[page_section]=merge_categories');
$ms_menu['header']['ms_admin_catalog']['subs']['admin_categories']['subs']['admin_merge_categories']['class'] = 'fa fa-compress';
if ($this->get['tx_multishop_pi1']['page_section'] == 'merge_categories' || $this->post['tx_multishop_pi1']['page_section'] == 'merge_categories') {
$ms_menu['header']['ms_admin_catalog']['subs']['admin_categories']['subs']['admin_merge_categories']['active'] = 1;
}
// remove incomplete p2c link
//$ms_menu['header']['ms_admin_catalog']['subs']['admin_categories']['subs']['admin_remove_incomplete_p2c_link']['label']=$this->pi_getLL('remove_incomplete_p2c_link');
//$ms_menu['header']['ms_admin_catalog']['subs']['admin_categories']['subs']['admin_remove_incomplete_p2c_link']['link']=mslib_fe::typolink($this->shop_pid, 'tx_multishop_pi1[page_section]=remove_incomplete_p2c_link');
//
$ms_menu['header']['ms_admin_catalog']['subs']['ms_admin_products']['label'] = $this->pi_getLL('admin_products');
$ms_menu['header']['ms_admin_catalog']['subs']['ms_admin_products']['description'] = $this->pi_getLL('admin_add_and_modify_products_here') . '.';
$ms_menu['header']['ms_admin_catalog']['subs']['ms_admin_products']['link'] = mslib_fe::typolink($this->shop_pid . ',2003', 'tx_multishop_pi1[page_section]=admin_products_search_and_edit&cid=' . $this->get['categories_id']);
$ms_menu['header']['ms_admin_catalog']['subs']['ms_admin_products']['class'] = 'fa fa-cube';
$ms_menu['header']['ms_admin_catalog']['subs']['ms_admin_products']['subs']['admin_search_and_edit_products']['label'] = $this->pi_getLL('overview');
$ms_menu['header']['ms_admin_catalog']['subs']['ms_admin_products']['subs']['admin_search_and_edit_products']['description'] = $this->pi_getLL('admin_here_you_can_search_and_update_products') . '.';
$ms_menu['header']['ms_admin_catalog']['subs']['ms_admin_products']['subs']['admin_search_and_edit_products']['link'] = mslib_fe::typolink($this->shop_pid . ',2003', 'tx_multishop_pi1[page_section]=admin_products_search_and_edit&cid=');
$ms_menu['header']['ms_admin_catalog']['subs']['ms_admin_products']['subs']['admin_search_and_edit_products']['class'] = 'fa fa-info-circle';
if ($this->get['tx_multishop_pi1']['page_section'] == 'admin_products_search_and_edit' || $this->post['tx_multishop_pi1']['page_section'] == 'admin_products_search_and_edit') {
$ms_menu['header']['ms_admin_catalog']['subs']['ms_admin_products']['subs']['admin_search_and_edit_products']['active'] = 1;
}
$ms_menu['header']['ms_admin_catalog']['subs']['ms_admin_products']['subs']['admin_new_product']['label'] = $this->pi_getLL('add');
$ms_menu['header']['ms_admin_catalog']['subs']['ms_admin_products']['subs']['admin_new_product']['description'] = $this->pi_getLL('admin_create_new_products_here') . '.';
$ms_menu['header']['ms_admin_catalog']['subs']['ms_admin_products']['subs']['admin_new_product']['link'] = mslib_fe::typolink($this->shop_pid . ',2003', 'tx_multishop_pi1[page_section]=add_product&cid=' . $this->get['categories_id'] . '&action=add_product');
$ms_menu['header']['ms_admin_catalog']['subs']['ms_admin_products']['subs']['admin_new_product']['class'] = 'fa fa-plus-circle';
if ($this->get['tx_multishop_pi1']['page_section'] == 'add_product' || $this->post['tx_multishop_pi1']['page_section'] == 'add_product') {
$ms_menu['header']['ms_admin_catalog']['subs']['ms_admin_products']['subs']['admin_new_product']['active'] = 1;
}
if ($this->get['tx_multishop_pi1']['page_section'] == 'edit_product' || $this->post['tx_multishop_pi1']['page_section'] == 'edit_product') {
$ms_menu['header']['ms_admin_catalog']['subs']['ms_admin_products']['subs']['admin_new_product']['active'] = 1;
//.........這裏部分代碼省略.........
示例3: array
// hook
$params = array('editOrderFormFieldset' => &$editOrderFormFieldset, 'orders' => &$orders);
foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/multishop/scripts/admin_pages/includes/admin_edit_order.php']['adminEditOrdersFieldset'] as $funcRef) {
\TYPO3\CMS\Core\Utility\GeneralUtility::callUserFunction($funcRef, $params, $this);
}
// hook oef
}
$tabs['Order_Details'] = array($this->pi_getLL('order_details'), implode('', $editOrderFormFieldset));
// order details tab eof
// order memo/status tab
$tmpcontent = '';
$tmpcontent .= '
<div class="account-field">
<label for="order_status">' . $this->pi_getLL('order_status') . '</label>
';
$all_orders_status = mslib_fe::getAllOrderStatus();
if (is_array($all_orders_status) and count($all_orders_status)) {
$tmpcontent .= '<select name="order_status">
<option value="">' . $this->pi_getLL('choose') . '</option>
';
foreach ($all_orders_status as $row) {
if ($this->get['tx_multishop_pi1']['is_manual'] == '1' && $this->get['action'] == 'edit_order' && $orders['orders_status_id'] == 0) {
$tmpcontent .= '<option value="' . $row['id'] . '" ' . ($row['default_status'] > 0 ? 'selected' : '') . '>' . $row['name'] . '</option>' . "\n";
} else {
$tmpcontent .= '<option value="' . $row['id'] . '" ' . ($orders['orders_status_id'] == $row['id'] ? 'selected' : '') . '>' . $row['name'] . '</option>' . "\n";
}
}
$tmpcontent .= '</select>
';
}
if (!$orders['expected_delivery_date']) {
示例4: htmlspecialchars
$types['email_order_proposal'] = htmlspecialchars($this->pi_getLL('email_order_proposal_letter'));
$types['email_order_confirmation'] = htmlspecialchars($this->pi_getLL('email_order_confirmation_letter'));
if (is_array($payment_methods)) {
foreach ($payment_methods as $key => $value) {
$types['email_order_confirmation_' . $key] = htmlspecialchars($this->pi_getLL('email_order_confirmation_letter')) . ' (' . $key . ')';
}
}
$types['email_order_paid_letter'] = htmlspecialchars($this->pi_getLL('email_order_paid_letter'));
if (is_array($payment_methods)) {
foreach ($payment_methods as $key => $value) {
$types['email_order_paid_letter_' . $key] = htmlspecialchars($this->pi_getLL('email_order_paid_letter')) . ' (' . $key . ')';
}
}
$types['email_order_status_changed'] = htmlspecialchars($this->pi_getLL('email_order_status_changed_letter'));
$types['email_order_status_changed'] = $this->pi_getLL('email_order_status_changed_letter') . ' (' . $this->pi_getLL('default') . ')';
$orders_status = mslib_fe::getAllOrderStatus(0);
if (is_array($orders_status) and count($orders_status)) {
foreach ($orders_status as $item) {
$types['email_order_status_changed_' . mslib_befe::strtolower($item['name'])] = $this->pi_getLL('email_order_status_changed_letter') . ' (' . $item['name'] . ')';
}
}
$types['order_received_thank_you_page'] = htmlspecialchars($this->pi_getLL('checkout_finished_page'));
if (is_array($payment_methods)) {
foreach ($payment_methods as $key => $value) {
$types['order_received_thank_you_page_' . $key] = htmlspecialchars($this->pi_getLL('checkout_finished_page')) . ' (' . $key . ')';
}
}
// payment reminder email templates
$types['payment_reminder_email_templates'] = htmlspecialchars($this->pi_getLL('payment_reminder_email_templates', 'Payment reminder email templates'));
if (is_array($payment_methods)) {
foreach ($payment_methods as $key => $value) {