当前位置: 首页>>代码示例>>PHP>>正文


PHP mslib_fe::getUsers方法代码示例

本文整理汇总了PHP中mslib_fe::getUsers方法的典型用法代码示例。如果您正苦于以下问题:PHP mslib_fe::getUsers方法的具体用法?PHP mslib_fe::getUsers怎么用?PHP mslib_fe::getUsers使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在mslib_fe的用法示例。


在下文中一共展示了mslib_fe::getUsers方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
$this->ms['page'] = $this->get['tx_multishop_pi1']['page_section'];
switch ($this->ms['page']) {
    case 'get_users':
        $return_data = array();
        $users = mslib_fe::getUsers($this->conf['fe_customer_usergroup'], 'name');
        $counter = 0;
        if ($this->get['q']) {
            foreach ($users as $user) {
                if (strpos($user['name'], $this->get['q']) !== false) {
                    $return_data[$counter]['text'] = $user['name'];
                    $return_data[$counter]['id'] = $user['uid'];
                    $counter++;
                }
            }
        } else {
            if ($this->get['preselected_id']) {
                $preselected_users = explode(',', $this->get['preselected_id']);
                foreach ($users as $user) {
                    foreach ($preselected_users as $preselected_user) {
                        if ($user['uid'] == $preselected_user) {
                            $return_data[$counter]['text'] = $user['name'];
                            $return_data[$counter]['id'] = $user['uid'];
                            $counter++;
                        }
                    }
                }
开发者ID:bvbmedia,项目名称:multishop,代码行数:31,代码来源:core.php

示例2: round

        }
        $shipping_payment_method .= '
								</div>
							</div>
						</div></div>';
    }
}
$group = mslib_fe::getGroup($this->get['customer_group_id'], 'uid');
$group['tx_multishop_remaining_budget'] = round($group['tx_multishop_remaining_budget'], 13);
$subparts = array();
$subparts['template'] = $this->cObj->getSubpart($template, '###TEMPLATE###');
$subparts['members_option'] = $this->cObj->getSubpart($subparts['template'], '###MEMBERS_OPTION###');
// now lets load the users
$members_selected = array();
if (is_numeric($_REQUEST['customer_group_id'])) {
    $users = mslib_fe::getUsers($_REQUEST['customer_group_id'], 'name');
    if (is_array($users) && count($users)) {
        foreach ($users as $user) {
            $members_selected[] = $user['uid'];
        }
    }
}
$subpartArray = array();
$subpartArray['###ADMIN_LABEL_TABS_EDIT_CUSTOMER_GROUP###'] = $this->pi_getLL('edit_group');
$subpartArray['###LABEL_HEADING###'] = $this->pi_getLL('edit_group');
$subpartArray['###FORM_ACTION###'] = mslib_fe::typolink($this->shop_pid . ',2003', 'tx_multishop_pi1[page_section]=edit_customer_group&action=' . $_REQUEST['action'] . '&customer_group_id=' . $_REQUEST['customer_group_id']);
$subpartArray['###CUSTOMER_GROUP_ID###'] = $_REQUEST['customer_group_id'];
$subpartArray['###FORM_INPUT_ACTION###'] = $_REQUEST['action'];
$subpartArray['###LABEL_NAME###'] = $this->pi_getLL('name');
$subpartArray['###VALUE_GROUP_NAME###'] = htmlspecialchars($group['title']);
$subpartArray['###LABEL_ADMIN_NO###'] = $this->pi_getLL('admin_no');
开发者ID:bvbmedia,项目名称:multishop,代码行数:31,代码来源:admin_edit_customer_group.php

示例3:

$mslib_cart->init($this);
$cart = $mslib_cart->getCart();
$products = $cart['products'];
if (count($products) < 0) {
    $content .= '<div class="noitems_message">' . $this->pi_getLL('there_are_no_products_in_your_cart') . '</div>';
} else {
    if ($this->get['tx_multishop_pi1']['is_proposal']) {
        $content .= '<div class="panel-heading">
			<h3>' . $this->pi_getLL('admin_label_create_quotation') . '</h3>
		</div><div class="panel-body">';
    } else {
        $content .= '<div class="panel-heading">
			<h3>' . $this->pi_getLL('admin_label_create_order') . '</h3>
		</div><div class="panel-body">';
    }
    $customers = mslib_fe::getUsers($this->conf['fe_customer_usergroup'], 'company, name, email');
    if (is_array($customers) and count($customers)) {
        $content .= '<form action="' . mslib_fe::typolink($this->shop_pid . ',2003', '&tx_multishop_pi1[page_section]=' . $this->ms['page'] . '&tx_multishop_pi1[page_section]=admin_processed_manual_order') . '" method="post" name="checkout" class="AdvancedForm" id="ms_checkout_direct">';
        if ($this->get['tx_multishop_pi1']['is_proposal']) {
            $content .= '<input name="tx_multishop_pi1[is_proposal]" type="hidden" value="' . $this->get['tx_multishop_pi1']['is_proposal'] . '" />';
        }
        $content .= '<div class="form-group">
<div class="row">
<div class="col-md-8">
			<label>' . $this->pi_getLL('admin_customer') . '</label>
			<input type="hidden" id="manual_order_customer_id" name="customer_id" value="" />';
        $content .= '<input type="hidden" id="proceed_order" value="proceed_order" name="proceed_order"/><hr></div><div class="col-md-4"></div></div></div>';
        $content .= '</form>';
    }
    if ($this->post) {
    } else {
开发者ID:bvbmedia,项目名称:multishop,代码行数:31,代码来源:admin_new_order.php


注:本文中的mslib_fe::getUsers方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。