當前位置: 首頁>>代碼示例>>PHP>>正文


PHP mslib_fe::jQueryBlockUI方法代碼示例

本文整理匯總了PHP中mslib_fe::jQueryBlockUI方法的典型用法代碼示例。如果您正苦於以下問題:PHP mslib_fe::jQueryBlockUI方法的具體用法?PHP mslib_fe::jQueryBlockUI怎麽用?PHP mslib_fe::jQueryBlockUI使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在mslib_fe的用法示例。


在下文中一共展示了mslib_fe::jQueryBlockUI方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: addslashes

		{
			$.cookie("hide_advanced_options", "1", { expires: 7, path: \'/\', domain: \'' . $this->server['HTTP_HOST'] . '\'});
			$(this).val("' . addslashes($this->pi_getLL('admin_show_options')) . '");
			$(".toggle_advanced_option").hide();
		}
	});
});
</script>
<link rel="stylesheet" type="text/css" href="' . $this->FULL_HTTP_URL_MS . 'templates/global/css/print.css" media="print" />
';
if (strstr($this->conf['admin_template_folder'], "/")) {
    $prefixed_url = $this->FULL_HTTP_URL;
} else {
    $prefixed_url = $this->FULL_HTTP_URL_MS . 'templates/';
}
$GLOBALS['TSFE']->additionalHeaderData[] = mslib_fe::jQueryBlockUI();
// Code moved from admin_ajax.php EOL
$this->ms['page'] = '';
if ($this->get['tx_multishop_pi1']['page_section']) {
    $this->ms['page'] = $this->get['tx_multishop_pi1']['page_section'];
} elseif ($this->post['tx_multishop_pi1']['page_section']) {
    $this->ms['page'] = $this->post['tx_multishop_pi1']['page_section'];
}
if (!$this->ADMIN_USER) {
    switch ($this->ms['page']) {
        case 'admin_import':
        case 'admin_customer_import':
            if ($this->get['action'] != 'run_job') {
                // Only allow running the import as a guest user (through cronjob)
                exit;
            }
開發者ID:bvbmedia,項目名稱:multishop,代碼行數:31,代碼來源:core.php

示例2: header

                            $insertArray[$col_name] = $col_val;
                        }
                    }
                }
            }
            $query = $GLOBALS['TYPO3_DB']->INSERTquery('tx_multishop_import_jobs', $insertArray);
            $res = $GLOBALS['TYPO3_DB']->sql_query($query);
            @unlink($target);
        }
    }
    header('Location: ' . $this->FULL_HTTP_URL . mslib_fe::typolink($this->shop_pid . ',2003', '&tx_multishop_pi1[page_section]=admin_customer_import') . '#tasks');
    exit;
}
//$default_country=mslib_fe::getCountryByIso($this->ms['MODULES']['COUNTRY_ISO_NR']);
$default_country = $this->tta_shop_info['country'];
$GLOBALS['TSFE']->additionalHeaderData['tx_multishop_pi1_block_ui'] = mslib_fe::jQueryBlockUI();
// define the different columns
$coltypes = array();
$coltypes['first_name'] = $this->pi_getLL('first_name');
$coltypes['middle_name'] = $this->pi_getLL('middle_name');
$coltypes['last_name'] = $this->pi_getLL('last_name');
$coltypes['full_name'] = $this->pi_getLL('full_name');
$coltypes['email'] = $this->pi_getLL('email');
$coltypes['address'] = $this->pi_getLL('address');
$coltypes['building'] = $this->pi_getLL('building');
$coltypes['street_name'] = $this->pi_getLL('street_address');
$coltypes['address_number'] = $this->pi_getLL('street_address_number');
$coltypes['address_ext'] = $this->pi_getLL('address_number_extension');
$coltypes['zip'] = $this->pi_getLL('zip');
$coltypes['city'] = $this->pi_getLL('city');
$coltypes['country'] = $this->pi_getLL('country');
開發者ID:bvbmedia,項目名稱:multishop,代碼行數:31,代碼來源:admin_customer_import.php

示例3: renderInterface

    function renderInterface($params, &$that)
    {
        mslib_fe::init($that);
        if ($that->post['job_id']) {
            $that->get['job_id'] = $that->post['job_id'];
        }
        if ($that->get['delete'] and is_numeric($that->get['job_id'])) {
            // delete job
            $query = $GLOBALS['TYPO3_DB']->DELETEquery('tx_multishop_import_jobs', 'id=' . $that->get['job_id'] . ' and type=\'' . addslashes($params['importKey']) . '\'');
            $res = $GLOBALS['TYPO3_DB']->sql_query($query);
        }
        if (is_numeric($that->get['job_id']) and is_numeric($that->get['status'])) {
            // update the status of a job
            $updateArray = array();
            $updateArray['status'] = $that->get['status'];
            $query = $GLOBALS['TYPO3_DB']->UPDATEquery('tx_multishop_import_jobs', 'id=\'' . $that->get['job_id'] . '\' and type=\'' . addslashes($params['importKey']) . '\'', $updateArray);
            $res = $GLOBALS['TYPO3_DB']->sql_query($query);
            // update the status of a job eof
        }
        if (isset($that->get['download']) && $that->get['download'] == 'task' && is_numeric($that->get['job_id'])) {
            $sql = $GLOBALS['TYPO3_DB']->SELECTquery('*', 'tx_multishop_import_jobs ', 'id= \'' . $that->get['job_id'] . '\'', '', '', '');
            $qry = $GLOBALS['TYPO3_DB']->sql_query($sql);
            if ($GLOBALS['TYPO3_DB']->sql_num_rows($qry)) {
                $data = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($qry);
                $jobArray = $row;
                $serial_value = array();
                foreach ($data as $key_idx => $key_val) {
                    if ($key_idx != 'id' && $key_idx != 'page_uid') {
                        $serial_value[$key_idx] = $key_val;
                    }
                }
                $serial_data = '';
                if (count($serial_value) > 0) {
                    $serial_data = serialize($serial_value);
                }
                $filename = 'multishop_' . $params['importKey'] . '_import_task_' . date('YmdHis') . '_' . $that->get['job_id'] . '.txt';
                $filepath = $that->DOCUMENT_ROOT . 'uploads/tx_multishop/' . $filename;
                file_put_contents($filepath, $serial_data);
                header("Content-disposition: attachment; filename={$filename}");
                //Tell the filename to the browser
                header('Content-type: application/octet-stream');
                //Stream as a binary file! So it would force browser to download
                readfile($filepath);
                //Read and stream the file
                @unlink($filepath);
                exit;
            }
        }
        if (isset($that->get['upload']) && $that->get['upload'] == 'task' && $_FILES) {
            if (!$_FILES['task_file']['error']) {
                $filename = $_FILES['task_file']['name'];
                $target = $that->DOCUMENT_ROOT . '/uploads/tx_multishop' . $filename;
                if (move_uploaded_file($_FILES['task_file']['tmp_name'], $target)) {
                    $task_content = file_get_contents($target);
                    $unserial_task_data = unserialize($task_content);
                    $insertArray = array();
                    $insertArray['page_uid'] = $that->showCatalogFromPage;
                    foreach ($unserial_task_data as $col_name => $col_val) {
                        if ($col_name == 'code') {
                            $insertArray[$col_name] = md5(uniqid());
                        } else {
                            if ($col_name == 'name' && isset($that->post['new_cron_name']) && !empty($that->post['new_cron_name'])) {
                                $insertArray[$col_name] = $that->post['new_cron_name'];
                            } else {
                                if ($col_name == 'prefix_source_name' && isset($that->post['new_prefix_source_name']) && !empty($that->post['new_prefix_source_name'])) {
                                    $insertArray[$col_name] = $that->post['new_prefix_source_name'];
                                } else {
                                    $insertArray[$col_name] = $col_val;
                                }
                            }
                        }
                    }
                    $query = $GLOBALS['TYPO3_DB']->INSERTquery('tx_multishop_import_jobs', $insertArray);
                    $res = $GLOBALS['TYPO3_DB']->sql_query($query);
                    @unlink($target);
                }
            }
            header('Location: ' . $that->FULL_HTTP_URL . $params['postForm']['actionUrl'] . '#tasks');
        }
        $GLOBALS['TSFE']->additionalHeaderData['tx_multishop_pi1_block_ui'] = mslib_fe::jQueryBlockUI();
        if (is_numeric($that->post['job_id']) && $that->post['action'] == 'import-preview') {
            if ($that->post['job_id']) {
                $that->get['job_id'] = $that->post['job_id'];
            }
            $str = "SELECT * from tx_multishop_import_jobs where id='" . $that->post['job_id'] . "' and type='" . addslashes($params['importKey']) . "'";
            $qry = $GLOBALS['TYPO3_DB']->sql_query($str);
            $row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($qry);
            $jobArray = $row;
            $updateArray = array();
            $cron_data = array();
            $cron_data[0] = array();
            $that->post['cron_period'] = '';
            $cron_data[1] = $that->post;
            $updateArray['data'] = serialize($cron_data);
            $query = $GLOBALS['TYPO3_DB']->UPDATEquery('tx_multishop_import_jobs', 'id=' . $that->post['job_id'], $updateArray);
            $res = $GLOBALS['TYPO3_DB']->sql_query($query);
        }
        if ($that->post['action'] == 'import-preview' or is_numeric($that->get['job_id']) and $_REQUEST['action'] == 'edit_job') {
            // preview
            if (is_numeric($that->get['job_id'])) {
//.........這裏部分代碼省略.........
開發者ID:bvbmedia,項目名稱:multishop,代碼行數:101,代碼來源:class.tx_mslib_admin_import.php


注:本文中的mslib_fe::jQueryBlockUI方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。