本文整理汇总了PHP中GetFlashMessageBoxes函数的典型用法代码示例。如果您正苦于以下问题:PHP GetFlashMessageBoxes函数的具体用法?PHP GetFlashMessageBoxes怎么用?PHP GetFlashMessageBoxes使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了GetFlashMessageBoxes函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: manageOptimizer
/**
* Display the store-wide GWO tests list
*
*/
private function manageOptimizer()
{
$Tests = GetAvailableModules('optimizer');
$Output = "";
$EnabledModules = array();
$GLOBALS['Message'] = GetFlashMessageBoxes();
$EnabledModules = GetConfig('OptimizerMethods');
$GLOBALS['OptimizerRow'] = '';
foreach ($Tests as $Test) {
$GLOBALS['ModuleName'] = isc_html_escape($Test['name']);
$GLOBALS['ModuleId'] = $Test['id'];
$GLOBALS['ConfiguredIcon'] = 'cross';
$GLOBALS['ConfiguredDate'] = 'N/A';
$GLOBALS['ActiveReset'] = 'inactive';
if($Test['enabled']) {
$GLOBALS['ActiveReset'] = 'active';
$GLOBALS['ConfiguredIcon'] = 'tick';
if(isset($EnabledModules[$Test['id']]) && $EnabledModules[$Test['id']] != '') {
$GLOBALS['ConfiguredDate'] = isc_date('jS M Y',$EnabledModules[$Test['id']]);
}
}
$GLOBALS['OptimizerRow'] .= $this->template->render('Snippets/OptimizerRow.html');
}
$this->template->display('optimizer.manage.tpl');
}
示例2: manageCommentSystemSettings
private function manageCommentSystemSettings()
{
$GLOBALS['BreadcrumEntries'][GetLang('CommentSettingsTitle')] = '';
$this->template->assign('Message', GetFlashMessageBoxes());
$tabs = array('general' => GetLang('GeneralSettings'));
$moduleTabContent = '';
$systemModules = GetAvailableModules('comments');
$commentSystems = array();
foreach ($systemModules as $module) {
$commentSystems[] = array('label' => $module['name'], 'value' => $module['id'], 'selected' => $module['enabled']);
// add the module to the list of tabs so it can be configured
if ($module['enabled']) {
$tabs[$module['id']] = $module['name'];
$moduleTabContent .= sprintf('<div id="%s" style="padding-top: 10px;" class="tabContent">%s</div>', $module['id'], $module['object']->GetPropertiesSheet($module['id']));
}
}
$currentTab = 0;
if (isset($_GET['tab'])) {
$currentTab = $_GET['tab'];
}
$this->template->assign('currentTab', $currentTab);
$this->template->assign('tabs', $tabs);
$this->template->assign('commentSystems', $commentSystems);
$this->template->assign('moduleTabContent', $moduleTabContent);
$this->engine->PrintHeader();
$this->template->display('settings.comments.manage.tpl');
$this->engine->PrintFooter();
}
示例3: ManageImageUploaderSettings
/**
* List page
*
* @return Void
*/
private function ManageImageUploaderSettings($messages = array())
{
$GLOBALS['Message'] = GetFlashMessageBoxes();
$GLOBALS['LimitCustomerUploadImageSize'] = GetConfig("LimitCustomerUploadImageSize");
$GLOBALS['LimitCustomerUploadImageNum'] = GetConfig("LimitCustomerUploadImageNum");
//zcs=the max uploading number of total
$GLOBALS['LimitCustomerUploadImagePerNum'] = GetConfig("LimitCustomerUploadImagePerNum");
//zcs the number of per uploading
//zcs the type of file for uploading
$GLOBALS['LimitCustomerUploadImageFileType'] = '';
$map_filetypes = array(IMAGETYPE_GIF => 'Gif', IMAGETYPE_JPEG => 'Jpeg', IMAGETYPE_PNG => 'Png', IMAGETYPE_SWF => 'Swf', IMAGETYPE_BMP => 'Bmp');
$accept_filetypes = explode(',', GetConfig("LimitCustomerUploadImageFileType"));
foreach ($map_filetypes as $filetype => $description) {
$GLOBALS['LimitCustomerUploadImageFileType'] .= '<input type="checkbox" name="LimitCustomerUploadImageFileType[]" value="' . $filetype . '" ' . (in_array($filetype, $accept_filetypes) ? 'checked="checked"' : '') . ' /> ' . $description . ' ';
}
$GLOBALS['ImageUploaderSettingsNotifyEmail'] = trim(GetConfig("ImageUploaderSettingsNotifyEmail"));
//zcs=instructions
$instructionsOptions = array('id' => 'ImageUploaderSettingsInstructions', 'width' => '', 'height' => '350px', 'value' => base64_decode(GetConfig("ImageUploaderSettingsInstructions")));
$GLOBALS['ImageUploaderSettingsInstructions'] = GetClass('ISC_ADMIN_EDITOR')->GetWysiwygEditor($instructionsOptions);
//zcs=copyright assignment
$assignmentOptions = array('id' => 'ImageUploaderSettingsAssignment', 'width' => '60%', 'height' => '350px', 'value' => base64_decode(GetConfig("ImageUploaderSettingsAssignment")));
$GLOBALS['ImageUploaderSettingsAssignment'] = GetClass('ISC_ADMIN_EDITOR')->GetWysiwygEditor1($assignmentOptions);
$GLOBALS['ISC_CLASS_TEMPLATE']->SetTemplate("settings.imageuploader.manage");
$GLOBALS['ISC_CLASS_TEMPLATE']->ParseTemplate();
}
示例4: ClearanceList
public function ClearanceList($MsgDesc = "", $MsgStatus = "")
{
$GLOBALS['Message'] = GetFlashMessageBoxes();
$GLOBALS['HideErrorMessage'] = 'none';
if ($MsgDesc != "") {
$GLOBALS['Message'] = MessageBox($MsgDesc, $MsgStatus);
}
$GLOBALS['ISC_CLASS_TEMPLATE']->SetTemplate("clearance");
$GLOBALS['ISC_CLASS_TEMPLATE']->ParseTemplate();
}
示例5: ManageOrderSettings
public function ManageOrderSettings($messages = array())
{
$GLOBALS['Message'] = GetFlashMessageBoxes();
//get current field ids from data base
$result = $GLOBALS['ISC_CLASS_DB']->Query("SELECT * FROM [|PREFIX|]order_scripts");
while ($row = $GLOBALS['ISC_CLASS_DB']->Fetch($result)) {
if ($row['scripttype'] == 'orderscript') {
$GLOBALS['CampaignCode'] = $row['scriptvalue'];
} elseif ($row['scripttype'] == 'ordermsg') {
$GLOBALS['OrderCompleteMsg'] = $row['scriptvalue'];
}
}
$GLOBALS['ISC_CLASS_TEMPLATE']->SetTemplate("settings.order.manage");
$GLOBALS['ISC_CLASS_TEMPLATE']->ParseTemplate();
}
示例6: ManageOrderSettings
public function ManageOrderSettings($messages = array())
{
$GLOBALS['Message'] = GetFlashMessageBoxes();
//get current field ids from data base
$result = $GLOBALS['ISC_CLASS_DB']->Query("SELECT * FROM [|PREFIX|]order_scripts");
while ($row = $GLOBALS['ISC_CLASS_DB']->Fetch($result)) {
if ($row['scripttype'] == 'orderscript') {
$GLOBALS['CampaignCode'] = $row['scriptvalue'];
} elseif ($row['scripttype'] == 'ordermsg') {
//$GLOBALS['OrderCompleteMsg'] = $row['scriptvalue'];
$wysiwygOptions = array('id' => 'wysiwyg', 'width' => '720px', 'height' => '350px', 'value' => $row['scriptvalue']);
$GLOBALS['WYSIWYG'] = GetClass('ISC_ADMIN_EDITOR')->GetWysiwygEditor($wysiwygOptions);
}
}
$GLOBALS['ISC_CLASS_TEMPLATE']->SetTemplate("settings.order.manage");
$GLOBALS['ISC_CLASS_TEMPLATE']->ParseTemplate();
}
示例7: ManageAccountingSettings
public function ManageAccountingSettings($messages = array())
{
$GLOBALS['Message'] = GetFlashMessageBoxes();
$GLOBALS['AccountingProviders'] = $this->_getAccountingPackagesAsOptions();
// Which shipping modules are enabled?
$accountings = GetAvailableModules('accounting', true, false, true);
$GLOBALS['AccountingTabs'] = "";
$GLOBALS['AccountingDivs'] = "";
$GLOBALS['SSLIsConfigured'] = GetConfig('UseSSL');
$count = 2;
// Setup each shipping module with its own tab
foreach ($accountings as $accounting) {
$GLOBALS['AccountingTabs'] .= sprintf('<li><a href="#" id="tab%d" onclick="ShowTab(%d)">%s</a></li>', $count, $count, $accounting['name']);
$GLOBALS['AccountingDivs'] .= sprintf('<div id="div%d" style="padding-top: 10px;">%s</div>', $count, $accounting['object']->getpropertiessheet($count));
$count++;
}
$GLOBALS['ISC_CLASS_TEMPLATE']->SetTemplate("settings.accounting.manage");
$GLOBALS['ISC_CLASS_TEMPLATE']->ParseTemplate();
}
示例8: ManageLiveChatSettings
private function ManageLiveChatSettings()
{
$GLOBALS['Message'] = GetFlashMessageBoxes();
$GLOBALS['LiveChatJavascript'] = '';
$GLOBALS['LiveChatServices'] = $this->GetLiveChatServicesAsOptions();
// Which live chat services are currently enabled?
$liveChatServices = GetClass('ISC_LIVECHAT');
$enabledServices = $liveChatServices->GetEnabledModules();
$GLOBALS['LiveChatTabs'] = $GLOBALS['LiveChatDivs'] = '';
$count = 2;
// Set up each service with it's own tab
foreach ($enabledServices as $module) {
$GLOBALS['LiveChatTabs'] .= '<li><a href="#" id="tab' . $count . '" onclick="ShowTab(' . $count . ');">' . $module['name'] . "</a></li>";
$GLOBALS['LiveChatDivs'] .= '<div id="div' . $count . '" style="padding-top: 10px;">' . $module['object']->GetPropertiesSheet($count) . '</div>';
++$count;
}
$GLOBALS['ISC_CLASS_TEMPLATE']->SetTemplate("settings.livechat.manage");
$GLOBALS['ISC_CLASS_TEMPLATE']->ParseTemplate();
}
示例9: HandleToDo
/**
* Handle the action for this section.
*
* @param string The name of the action to do.
*/
public function HandleToDo($Do)
{
if (!$GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_EmailMarketing)) {
$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->DoHomePage(GetLang('Unauthorized'), MSG_ERROR);
return;
}
$this->template->assign('message', GetFlashMessageBoxes());
$this->template->assign('javascript', '');
$method = 'handle' . $_REQUEST['ToDo'];
if ($method != 'handletodo' && is_callable(array($this, $method))) {
$this->$method();
return;
}
// default action
$this->handleViewEmailIntegrationSettings();
}
示例10: manageShippingManagerSettings
private function manageShippingManagerSettings()
{
$GLOBALS['BreadcrumEntries'][GetLang('ShippingManagerSettings')] = '';
$this->template->assign('Message', GetFlashMessageBoxes());
$tabs = array('general' => GetLang('GeneralSettings'));
$moduleTabContent = '';
$managerModules = GetAvailableModules('shippingmanager');
$shippingManagers = array();
$enabledShippingManagers = array();
foreach ($managerModules as $module) {
$shippingManagers[$module['id']] = $module['name'];
// add the module to the list of tabs so it can be configured
if ($module['enabled']) {
$tabs[$module['id'] ] = $module['name'];
$moduleTabContent .= sprintf('<div id="%s" style="padding-top: 10px;" class="tabContent">%s</div>', $module['id'], $module['object']->GetPropertiesSheet($module['id']));
$enabledShippingManagers[] = $module['id'];
}
}
$currentTab = 'general';
if (isset($_GET['tab'])) {
$currentTab = $_GET['tab'];
}
$this->template->assign('currentTab', $currentTab);
$this->template->assign('tabs', $tabs);
$this->template->assign('shippingManagers', $shippingManagers);
$this->template->assign('enabledShippingManagers', $enabledShippingManagers);
$this->template->assign('moduleTabContent', $moduleTabContent);
$this->engine->PrintHeader();
$this->template->display('settings.shippingmanager.manage.tpl');
$this->engine->PrintFooter();
}
示例11: ListReports
private function ListReports()
{
$GLOBALS['Message'] = GetFlashMessageBoxes();
$GLOBALS['ISC_CLASS_CUSTOMER'] = GetClass('ISC_CUSTOMER');
$userid = $GLOBALS['ISC_CLASS_CUSTOMER']->GetCustomerId();
$GLOBALS['DefectGrid'] = '';
// if(CustomerIsSignedIn()) {
$query = "SELECT * FROM [|PREFIX|]defect_report where userid = {$userid} ORDER BY submittime DESC";
$result = $GLOBALS['ISC_CLASS_DB']->Query($query);
$cnt = $GLOBALS['ISC_CLASS_DB']->CountResult($result);
if ($cnt > 0) {
while ($row = $GLOBALS['ISC_CLASS_DB']->Fetch($result)) {
$GLOBALS['url'] = wordwrap($row['url'], 40, '<br>', true);
$GLOBALS['description'] = $row['description'];
$GLOBALS['comment'] = $row['comment'];
$status = '';
/*
* 1 - The report is posted and it is pending.
* 2 - Will be fixed and admin enter comment.
* 3 - Issue is fixed and admin add comment.
* 4 - The issue can't be fixed.
*/
if ($row['status'] == '1') {
$status = "Pending";
} else {
if ($row['status'] == '2') {
$status = "To be fixed";
} else {
if ($row['status'] == '3') {
$status = "Fixed";
} else {
if ($row['status'] == '4') {
$status = "Not to be fixed";
} else {
$status = "No Status";
}
}
}
}
$GLOBALS['status'] = $status;
$GLOBALS['ISC_CLASS_TEMPLATE']->SetTemplate("defect.row");
if ($row['status'] == '1') {
$GLOBALS['displayaction'] = '';
$GLOBALS['displaynoaction'] = 'none';
$GLOBALS['EditDefectLink'] = sprintf("<a title='%s' class='Action' href='defectreport.php?action=editdefect&Id=%d'>%s</a>", GetLang('DefectEdit'), $row['id'], GetLang('Edit'));
$GLOBALS['DeleteDefectLink'] = sprintf("<a title='%s' class='Action' href='#' onclick=deletedefectid(%d)>%s</a>", GetLang('DefectDelete'), $row['id'], GetLang('Delete'));
} else {
$GLOBALS['displayaction'] = 'none';
$GLOBALS['displaynoaction'] = '';
$GLOBALS['noaction'] = GetLang('Noaction');
}
$GLOBALS['displayrecord'] = '';
$GLOBALS['displaynorecord'] = 'none';
$GLOBALS['DefectGrid'] .= $GLOBALS['ISC_CLASS_TEMPLATE']->ParseTemplate(true);
}
} else {
$GLOBALS['norecords'] = GetLang('NoRecords');
$GLOBALS['displayrecord'] = 'none';
$GLOBALS['displaynorecord'] = '';
$GLOBALS['ISC_CLASS_TEMPLATE']->SetTemplate("defect.row");
$GLOBALS['DefectGrid'] .= $GLOBALS['ISC_CLASS_TEMPLATE']->ParseTemplate(true);
}
$GLOBALS['DefectReportTitle'] = GetLang('ListofReports');
$GLOBALS['ISC_CLASS_TEMPLATE']->SetPageTitle(sprintf("%s - %s", GetConfig('StoreName'), GetLang('DefectReport')));
$GLOBALS['ISC_CLASS_TEMPLATE']->SetTemplate("defectlist");
$GLOBALS['ISC_CLASS_TEMPLATE']->ParseTemplate();
/*}
else {
echo "else";
} */
}
示例12: EditCategory
private function EditCategory()
{
$GLOBALS['Message'] = GetFlashMessageBoxes();
if (isset($_GET['catId'])) {
$catId = (int) $_GET['catId'];
include_once ISC_BASE_PATH . '/lib/api/category.api.php';
$category = new API_CATEGORY();
$category->load($catId);
//wirror_20100804: remove the cookie CustomContentId, and fetch current CustomContentId from table category
if ($category->customcontentid != 0) {
$contentId = isc_html_escape($category->customcontentid);
} else {
if (isset($_COOKIE['CustomContentId']) && is_numeric($_COOKIE['CustomContentId'])) {
$contentId = $_COOKIE['CustomContentId'];
} else {
$customItem = array('contenttype' => 1, 'description' => "custom products content for category#{$catId}");
$contentId = GetClass('ISC_ADMIN_CUSTOMCONTENTS')->createCustomContens($customItem);
}
}
setcookie("CustomContentId", $contentId, time() + 3600);
//wirror_20100806: show the custom content options
$GLOBALS['ContentOptions'] = $this->_GetContentTypeOptions($category->pagecontenttype);
$GLOBALS['CustomPageAction'] = "listCateCustomcontents&customContentId={$contentId}&catId={$catId}";
$GLOBALS['CategoryName'] = isc_html_escape($category->catname);
$GLOBALS['CategoryOptions'] = $this->GetCategoryParentOptions($catId, array($category->catparentid));
$GLOBALS['CategorySort'] = isc_html_escape($category->catsort);
$GLOBALS['CategoryPageTitle'] = isc_html_escape($category->catpagetitle);
$GLOBALS['CategoryMetaKeywords'] = isc_html_escape($category->catmetakeywords);
$GLOBALS['CategoryMetaDesc'] = isc_html_escape($category->catmetadesc);
$GLOBALS['CatDepartment'] = $this->getDepartment($category->catdeptid);
$GLOBALS['AltKeyword'] = isc_html_escape($category->cataltkeyword);
$GLOBALS['catcombine'] = isc_html_escape($category->catcombine);
$GLOBALS['CatDeptid'] = isc_html_escape($category->catdeptid);
$GLOBALS['StartPrice'] = isc_html_escape($category->StartPrice);
$GLOBALS['EndPrice'] = isc_html_escape($category->EndPrice);
$GLOBALS['CatImageAlt'] = isc_html_escape($category->catimagealt);
if (strtolower($category->displayproducts) == 'on') {
$GLOBALS['DisplayProducts'] = 'checked="checked"';
}
$GLOBALS['CategorySelect'] = '<input type="hidden" name="catparentid" id="catparentid" value="' . $category->catparentid . '">
<select size="5" name="catparent_id" id="catparent_id" class="Field750" style="height:115" onchange="HandleRootCategory();SelectDept();" disabled="disabled">';
# Added because when we disable the category list, id cant be get while saving, so hidden field is added and the id is changed to catparentid. -- Baskaran
$temp = '';
$pnamearray = array('Category Name', 'Sub Category Name', 'Brand Name', 'Series Name', 'Part Number', 'Product Code', 'Product color', 'Product Material', 'Product Style');
$savedarray = explode(",", $category->Productname);
foreach ($pnamearray as $key => $value) {
if (in_array($key, $savedarray)) {
$temp .= "<option value='" . $key . "' selected='selected' >" . $value . "</option>";
} else {
$temp .= "<option value='" . $key . "' >" . $value . "</option>";
}
}
$GLOBALS['Productname'] = $temp;
$congocatname = '';
if ($category->catparentid == 0) {
$space1 = str_replace(" ", "", isc_html_escape($category->catname));
$hypen1 = str_replace("-", "", $space1);
$amp1 = str_replace("&", "", $hypen1);
$slash1 = str_replace("/", "", $amp1);
$congocatname = str_replace(",", "", $slash1);
} else {
$query = "SELECT * from [|PREFIX|]categories where categoryid = {$category->catparentid}";
$result = $GLOBALS["ISC_CLASS_DB"]->Query($query);
$row = $GLOBALS["ISC_CLASS_DB"]->Fetch($result);
$space2 = str_replace(" ", "", $row['catname']);
$hypen2 = str_replace("-", "", $space2);
$amp2 = str_replace("&", "", $hypen2);
$slash2 = str_replace("/", "", $amp2);
$congocatname = str_replace(",", "", $slash2);
}
$_SESSION['congocatname'] = $congocatname;
$wysiwygOptions = array('id' => 'wysiwyg', 'width' => '750px', 'height' => '500px', 'value' => $category->catdesc);
$wysiwygOptions1 = array('id' => 'wysiwyg1', 'width' => '60%', 'height' => '300px', 'value' => $category->categoryfooter);
$wysiwygOptions2 = array('id' => 'wysiwyg2', 'width' => '60%', 'height' => '300px', 'value' => $category->featurepoints);
$wysiwygOptions3 = array('id' => 'wysiwyg3', 'width' => '60%', 'height' => '300px', 'value' => $category->divdesc);
$GLOBALS['WYSIWYG'] = GetClass('ISC_ADMIN_EDITOR')->GetWysiwygEditor($wysiwygOptions);
$GLOBALS['WYSIWYG1'] = GetClass('ISC_ADMIN_EDITOR')->GetWysiwygEditor1($wysiwygOptions1);
$GLOBALS['WYSIWYG2'] = GetClass('ISC_ADMIN_EDITOR')->GetWysiwygEditor1($wysiwygOptions2);
$GLOBALS['WYSIWYG3'] = GetClass('ISC_ADMIN_EDITOR')->GetWysiwygEditor1($wysiwygOptions3);
$GLOBALS['ControlScript'] = $category->controlscript;
$GLOBALS['TrackingScript'] = $category->trackingscript;
$GLOBALS['FormAction'] = "saveUpdatedCategory";
$GLOBALS['CatTitle'] = GetLang('EditCatTitle');
$GLOBALS['CatIntro'] = GetLang('EditCatIntro');
$GLOBALS['CancelMessage'] = GetLang('CancelEditCategory');
$GLOBALS['hiddenFields'] = sprintf("<input type='hidden' name='categoryId' value='%d'>", $catId);
#wirror_20100805: hide the custom content id
$GLOBALS['hiddenFields'] .= sprintf("<input type='hidden' name='customContentId' value='%d'>", $contentId);
if ($category->catparentid == '0') {
//$GLOBALS['DisableFileUpload'] = 'disabled="disabled"';
$GLOBALS['ShowFileUploadMessage'] = '';
$GLOBALS['ShowHidecatCombine'] = 'none';
$GLOBALS['disabledept'] = '';
} else {
//$GLOBALS['DisableFileUpload'] = '';
$GLOBALS['ShowFileUploadMessage'] = 'none';
$GLOBALS['ShowHidecatCombine'] = '';
$GLOBALS['disabledept'] = 'disabled="disabled"';
}
// Get a list of all layout files
//.........这里部分代码省略.........
示例13: EditGiftWrap
/**
* Update a specific type of gift wrapping.
*/
private function EditGiftWrap()
{
$GLOBALS['Message'] = GetFlashMessageBoxes();
$wrap = $this->GetGiftWrapData($_REQUEST['wrapId']);
// If the wrapping type doesn't exist, show an error message
if (!isset($wrap['wrapid'])) {
FlashMessage(GetLang('InvalidGiftWrap'), MSG_ERROR, 'index.php?ToDo=viewGiftWrapping');
}
// Set up the form title and action
$GLOBALS['FormAction'] = 'SaveUpdatedGiftWrap';
$GLOBALS['Title'] = GetLang('EditGiftWrap');
$GLOBALS['Intro'] = GetLang('EditGiftWrapIntro');
if (GetConfig('CurrencyLocation') == 'right') {
$GLOBALS['RightCurrencyToken'] = GetConfig('CurrencyToken');
} else {
$GLOBALS['LeftCurrencyToken'] = GetConfig('CurrencyToken');
}
// Set the form values
$GLOBALS['WrapId'] = (int) $wrap['wrapid'];
$GLOBALS['WrapName'] = isc_html_escape($wrap['wrapname']);
$GLOBALS['WrapImage'] = isc_html_escape($wrap['wrappreview']);
if ($wrap['wrappreview'] == '') {
$GLOBALS['HideCurrentWrapImage'] = 'display: none';
}
$GLOBALS['GiftWrapPrice'] = number_format($wrap['wrapprice'], GetConfig('DecimalPlaces'), GetConfig('DecimalToken'), "");
$GLOBALS['GiftWrapAllowCommentsChecked'] = '';
if ($wrap['wrapallowcomments']) {
$GLOBALS['GiftWrapAllowCommentsChecked'] = 'checked="checked"';
}
$GLOBALS['GiftWrapVisibleChecked'] = '';
if ($wrap['wrapvisible']) {
$GLOBALS['GiftWrapVisibleChecked'] = 'checked="checked"';
}
$GLOBALS['ISC_CLASS_TEMPLATE']->SetTemplate('giftwrapping.form');
$GLOBALS['ISC_CLASS_TEMPLATE']->ParseTemplate();
}
示例14: ConfirmOrder
public function ConfirmOrder()
{
if (isset($_REQUEST['oid'])) {
$orderId = $_REQUEST['oid'];
$GLOBALS['ConversionCode'] = $this->GetGoogleAnalyticsScript($orderId);
}
if (isset($_REQUEST['continue'])) {
$continueLocation = 'index.php?ToDo=' . $_REQUEST['continue'];
} else {
$continueLocation = 'index.php?ToDo=viewOrders';
}
$GLOBALS['Message'] = GetFlashMessageBoxes();
$GLOBALS['ContinueLocation'] = $continueLocation;
$GLOBALS['ISC_CLASS_TEMPLATE']->SetTemplate("order.confirmation");
$GLOBALS['ISC_CLASS_TEMPLATE']->ParseTemplate();
}
示例15: EditCategory
private function EditCategory()
{
$GLOBALS['Message'] = GetFlashMessageBoxes();
if (isset($_GET['catId'])) {
$catId = (int) $_GET['catId'];
$this->categoryAPI->load($catId);
$GLOBALS['CategoryName'] = isc_html_escape($this->categoryAPI->catname);
$GLOBALS['CategoryOptions'] = $this->GetCategoryParentOptions($catId, array($this->categoryAPI->catparentid));
$GLOBALS['CategorySort'] = isc_html_escape($this->categoryAPI->catsort);
$GLOBALS['CategoryPageTitle'] = isc_html_escape($this->categoryAPI->catpagetitle);
$GLOBALS['CategoryMetaKeywords'] = isc_html_escape($this->categoryAPI->catmetakeywords);
$GLOBALS['CategoryMetaDesc'] = isc_html_escape($this->categoryAPI->catmetadesc);
$GLOBALS['CategorySearchKeywords'] = isc_html_escape($this->categoryAPI->catsearchkeywords);
$wysiwygOptions = array(
'id' => 'wysiwyg',
'width' => '656px',
'height' => '250px',
'value' => $this->categoryAPI->catdesc
);
$GLOBALS['WYSIWYG'] = GetClass('ISC_ADMIN_EDITOR')->GetWysiwygEditor($wysiwygOptions);
$GLOBALS['FormAction'] = "saveUpdatedCategory";
$GLOBALS['CatTitle'] = GetLang('EditCatTitle');
$GLOBALS['CatIntro'] = GetLang('EditCatIntro');
$GLOBALS['CancelMessage'] = GetLang('CancelEditCategory');
$GLOBALS['hiddenFields'] = sprintf("<input type='hidden' name='categoryId' value='%d'>", $catId);
if ($this->categoryAPI->catparentid == '0') {
$GLOBALS['DisableFileUpload'] = 'disabled="disabled"';
$GLOBALS['ShowFileUploadMessage'] = '';
} else {
$GLOBALS['DisableFileUpload'] = '';
$GLOBALS['ShowFileUploadMessage'] = 'none';
}
// Get a list of all layout files
$layoutFile = 'category.html';
if($this->categoryAPI->catlayoutfile != '') {
$layoutFile = $this->categoryAPI->catlayoutfile;
}
$GLOBALS['LayoutFiles'] = GetCustomLayoutFilesAsOptions("category.html", $layoutFile);
$GLOBALS["CatImageMessage"] = '';
$this->template->assign('ShowYesUseImageRow', 'none');
if ($this->categoryAPI->catimagefile !== '') {
$image = '../' . GetConfig('ImageDirectory') . '/' . $this->categoryAPI->catimagefile;
$GLOBALS["CatImageMessage"] = sprintf(GetLang('CatImageDesc'), $image, $this->categoryAPI->catimagefile);
$this->template->assign('CatImageFile', basename($this->categoryAPI->catimagefile));
$this->template->assign('ShowYesUseImageRow', 'block');
$this->template->assign('CatImageLink', $image);
}
//Google website optimizer
$GLOBALS['GoogleWebsiteOptimizerIntro'] = GetLang('CatGoogleWebsiteOptimizerIntro');
$GLOBALS['HideOptimizerConfigForm'] = 'display:none;';
$GLOBALS['CheckEnableOptimizer'] = '';
$GLOBALS['SkipOptimizerConfirmMsg'] = 'true';
$enabledOptimizers = GetConfig('OptimizerMethods');
if(!empty($enabledOptimizers)) {
foreach ($enabledOptimizers as $id => $date) {
GetModuleById('optimizer', $optimizerModule, $id);
if ($optimizerModule->_testPage == 'categories' || $optimizerModule->_testPage == 'all') {
$GLOBALS['SkipOptimizerConfirmMsg'] = 'false';
break;
}
}
}
if($this->categoryAPI->cat_enable_optimizer == '1') {
$GLOBALS['HideOptimizerConfigForm'] = '';
$GLOBALS['CheckEnableOptimizer'] = 'Checked';
}
$optimizer = getClass('ISC_ADMIN_OPTIMIZER');
$GLOBALS['OptimizerConfigForm'] = $optimizer->showPerItemConfigForm('category', $catId, CatLink($catId, $this->categoryAPI->catname));
if(isset($_REQUEST['currentTab'])) {
$GLOBALS['CurrentTab'] = $_REQUEST['currentTab'];
}
else {
$GLOBALS['CurrentTab'] = 'details';
}
// Get shopping comparison options
$shoppingComparisonModules = Isc_ShoppingComparison::getModulesWithTaxonomies();
$GLOBALS['AlternateCategoriesCache'] = (array)json_decode($this->categoryAPI->cataltcategoriescache);
$GLOBALS['ShoppingComparisonModules'] = $shoppingComparisonModules;
$GLOBALS['SaveAndAddAnother'] = GetLang('SaveAndContinueEditing');
$this->template->display('category.form.tpl');
} else {
if ($GLOBALS["ISC_CLASS_ADMIN_AUTH"]->HasPermission(AUTH_Manage_Categories)) {
$this->ManageCategories();
} else {
//.........这里部分代码省略.........