示例#1
0
							<fieldset>
							<legend><a href="#" onclick="' . htmlspecialchars(\TYPO3\CMS\Backend\Utility\BackendUtility::viewOnClick($content_object['uid'], $this->backPath, \TYPO3\CMS\Backend\Utility\BackendUtility::BEgetRootLine($content_object['uid']), '', '')) . '">' . trim($pageinfo['_thePathFull'], '/') . '</a> <a title="View" href="#" onclick="' . htmlspecialchars(\TYPO3\CMS\Backend\Utility\BackendUtility::viewOnClick($content_object['uid'], $this->backPath, \TYPO3\CMS\Backend\Utility\BackendUtility::BEgetRootLine($content_object['uid']), '', '')) . '">' . $this->Typo3Icon('actions-document-view', 'View') . '</a> <a title="Delete" href="' . \TYPO3\CMS\Core\Utility\GeneralUtility::linkThisScript() . '&page_uid=' . $content_object['uid'] . '&action=erase" onClick="return CONFIRM(\'Are you sure you want to delete the products, categories, orders, cms pages and settings of: ' . $pageinfo['_thePathFull'] . '?\')">' . $this->Typo3Icon('actions-edit-delete', 'Delete') . '</a>
							</legend>';
            $data = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows('count(1) as total', 'fe_users', '', '');
            $row = $data[0];
            if (!isset($row['total'])) {
                $row['total'] = 0;
            }
            $customers = $row['total'];
            $data = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows('count(1) as total', 'tt_address', '', '');
            $row = $data[0];
            if (!isset($row['total'])) {
                $row['total'] = 0;
            }
            $customer_addresses = $row['total'];
            $categories = mslib_befe::countCategories($pageinfo['uid']);
            $products = mslib_befe::countProducts($pageinfo['uid']);
            $manufacturers = mslib_befe::countManufacturers($pageinfo['uid']);
            $orders = mslib_befe::countOrders($pageinfo['uid']);
            $importjobs = mslib_befe::countImportJobs($pageinfo['uid']);
            $content .= '
<ul>
	<li>' . $this->Typo3Icon('apps-filetree-folder-default', 'customers') . number_format($customers, 0, '', '.') . ' ' . ($customers == 1 ? 'customer' : 'customers') . ' / ' . $this->Typo3Icon('apps-filetree-folder-default') . number_format($customer_addresses, 0, '', '.') . ' ' . ($customer_addresses == 1 ? 'address' : 'addresses') . '</li>
	<li>' . $this->Typo3Icon('apps-filetree-folder-default', 'categories') . number_format($categories, 0, '', '.') . ' ' . ($categories == 1 ? 'category' : 'categories') . '</li>
	<li>' . $this->Typo3Icon('apps-filetree-folder-default', 'products') . number_format($products, 0, '', '.') . ' ' . ($products == 1 ? 'product' : 'products') . '</li>
	<li>' . $this->Typo3Icon('apps-filetree-folder-default', 'manufacturers') . number_format($manufacturers, 0, '', '.') . ' ' . ($manufacturers == 1 ? 'manufacturer' : 'manufacturers') . '</li>
	<li>' . $this->Typo3Icon('apps-filetree-folder-default', 'orders') . number_format($orders, 0, '', '.') . ' ' . ($orders == 1 ? 'order' : 'orders') . '</li>
	<li>' . $this->Typo3Icon('apps-filetree-folder-default', 'import jobs') . number_format($importjobs, 0, '', '.') . ' ' . ($importjobs == 1 ? 'import job' : 'import jobs') . '</li>
</ul>

<fieldset>