当前位置: 首页>>代码示例>>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;未经允许,请勿转载。