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


PHP MessageBox函数代码示例

本文整理汇总了PHP中MessageBox函数的典型用法代码示例。如果您正苦于以下问题:PHP MessageBox函数的具体用法?PHP MessageBox怎么用?PHP MessageBox使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: CheckExternalIPForm

function CheckExternalIPForm()
{
    global $db, $exip_id;
    if (!isset($_GET["external_ip_ip"])) {
        return false;
    }
    if ($_GET["external_ip_ip"] == '') {
        MessageBox("Неуказан IP!");
        return false;
    }
    if ($row = $db->Query_Fetch_Array("SELECT id FROM external_ip WHERE ip=inet_aton('" . $_GET["external_ip_ip"] . "')" . (isset($exip_id) ? " AND id!=" . $exip_id : ''))) {
        MessageBox("IP " . urldecode($_GET["external_ip_ip"]) . " уже присвоен в другом месте!");
        return false;
    }
    if ($_GET["external_ip_location"] == 0) {
        MessageBox("Не выбрана локация!");
        return false;
    }
    if (!isset($exip_id)) {
        MessageBox("Внешний IP присвоен");
    } else {
        MessageBox("Информация о внешнем IP успешно изменена");
    }
    return true;
}
开发者ID:newmen,项目名称:vedro,代码行数:25,代码来源:functions.php

示例2: __construct

		/**
		 * Checkout class constructor. Does the setup of some member variables.
		 *
		 * @return void
		 */
		public function __construct()
		{
			// Setup the required variables for the PayPal checkout module
			parent::__construct();

			$this->xmlUrl = $GLOBALS['ShopPathSSL'].'/modules/checkout/googlecheckout/xml.php';

			$this->_name = GetLang('GoogleCheckoutName');
			$this->_image = "google_checkout.gif";
			$this->_description = GetLang('GoogleCheckoutDesc');
			$this->_help = sprintf(GetLang('GoogleCheckoutHelp'), $this->xmlUrl);
			$this->_height = 0;

			if ($this->GetValue('testmode') === 'YES') {
				$this->_server_type = 'sandbox';
			} else {
				$this->_server_type = 'production';
			}

			if (GetConfig('TaxTypeSelected') == 1 && GetConfig('PricesIncludeTax') == 1) {
				$this->_help .= MessageBox(GetLang('GoogleCheckoutTaxWarning'), MSG_ERROR);
			}

			require_once(dirname(__FILE__).'/library/googlerequest.php');
			$this->request = new GoogleRequest($this->GetValue('merchantid'), $this->GetValue('merchanttoken'), $this->_server_type, $this->GetDefaultCurrencyCode());

			include_once(dirname(__FILE__).'/library/googleshipping.php');
			$this->defaultZoneGFilter = new GoogleShippingFilters();
			$this->defaultZoneGFilter->SetAllowedWorldArea(true);
		}
开发者ID:hungnv0789,项目名称:vhtm,代码行数:35,代码来源:module.googlecheckout.php

示例3: _ImportStep2

	/**
	 * Custom step 2 code specific to product importing. Calls the parent ImportStep2 funciton.
	 */
	protected function _ImportStep2($MsgDesc="", $MsgStatus="")
	{
		// Set up generic import options
		if ($MsgDesc != "") {
			$GLOBALS['Message'] = MessageBox($MsgDesc, $MsgStatus);
		}
		$this->ImportSession['updateOrderStatus'] = $_POST['updateOrderStatus'];
		parent::_ImportStep2();
	}
开发者ID:hungnv0789,项目名称:vhtm,代码行数:12,代码来源:tracking_numbers.php

示例4: CheckAction

function CheckAction()
{
    global $db;
    if (isset($_GET["id"]) && $_GET["id"] > 0 && isset($_GET["action"]) && $_GET["action"] == "full_delete") {
        $db->Query("DELETE FROM groups WHERE id='" . $_GET["id"] . "'");
        MessageBox("Группа удалёна");
        return false;
    }
    return true;
}
开发者ID:newmen,项目名称:vedro,代码行数:10,代码来源:group_edit.php

示例5: 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();
 }
开发者ID:nirvana-info,项目名称:old_bak,代码行数:10,代码来源:class.clearance.php

示例6: CheckAction

function CheckAction()
{
    global $db;
    if (isset($_GET["id"]) && $_GET["id"] > 0 && isset($_GET["action"]) && $_GET["action"] == "full_delete") {
        $db->Query("DELETE FROM external_ip WHERE id='" . $_GET["id"] . "'");
        MessageBox("Внешний IP больше ничему не соответсвует");
        return false;
    }
    return true;
}
开发者ID:newmen,项目名称:vedro,代码行数:10,代码来源:external_ip_edit.php

示例7: CheckAction

function CheckAction()
{
    global $db;
    if (isset($_GET["id"]) && $_GET["id"] > 0 && isset($_GET["action"]) && $_GET["action"] == "full_delete") {
        $db->Query("DELETE FROM users WHERE id='" . $_GET["id"] . "'");
        MessageBox("Пользователь удалён");
        return false;
    }
    return true;
}
开发者ID:newmen,项目名称:vedro,代码行数:10,代码来源:user_edit.php

示例8: ManageFormFields

		public function ManageFormFields($msgDesc='', $msgStatus='')
		{
			if ($msgDesc !== '') {
				$GLOBALS['Message'] = MessageBox($msgDesc, $msgStatus);
			}

			$flashMessages = GetFlashMessages();

			if (is_array($flashMessages) && !empty($flashMessages)) {
				$GLOBALS['Message'] = '';
				foreach ($flashMessages as $flashMessage) {
					$GLOBALS['Message'] .= MessageBox($flashMessage['message'], $flashMessage['type']);
				}
			}

			$GLOBALS['FormFieldsGrid'] = $this->ManageFormFieldsGrid();
			$GLOBALS['FormFieldsAddField'] = sprintf(GetLang('FormFieldsAddField'), GetLang('FormFieldsSectionAccount'));
			$GLOBALS['FormFieldsOptions'] = '';
			$availableFields = $GLOBALS['ISC_CLASS_FORM']->getAvailableFields();

			if (is_array($availableFields)) {
				foreach ($availableFields as $name => $desc) {
					$GLOBALS['FormFieldsOptions'] .= '<li><a href="#" onclick="AddFormField(\'' . isc_html_escape($name) . '\'); return false;" style="background-image:url(\'images/fields/' . $desc['img'] . '\'); background-repeat:no-repeat; background-position:5px 5px; padding-left:28px; width:auto;">' . isc_html_escape($desc['name']) . '</a></li>';
				}
			}

			$GLOBALS['FormFieldsSectionAccount'] = sprintf(GetLang('FormFieldsSectionTab'), GetLang('FormFieldsSectionAccount'));
			$GLOBALS['FormFieldsSectionAddress'] = sprintf(GetLang('FormFieldsSectionTab'), GetLang('FormFieldsSectionAddress'));

			$GLOBALS['FormFieldsAccountFormId'] = FORMFIELDS_FORM_ACCOUNT;
			$GLOBALS['FormFieldsAddressFormId'] = FORMFIELDS_FORM_ADDRESS;

			if(!gzte11(ISC_MEDIUMPRINT)) {
				$GLOBALS['HideFormFieldsButtons'] = 'display: none';
			}

			$GLOBALS['FormFieldsHideAddButton'] = '';
			if (!$GLOBALS["ISC_CLASS_ADMIN_AUTH"]->HasPermission(AUTH_Add_FormFields) || !gzte11(ISC_MEDIUMPRINT)) {
				$GLOBALS['FormFieldsHideAddButton'] = 'none';
			}

			$GLOBALS['FormFieldsHideDeleteButton'] = '';
			if (!$GLOBALS["ISC_CLASS_ADMIN_AUTH"]->HasPermission(AUTH_Delete_FormFields) || !gzte11(ISC_MEDIUMPRINT)) {
				$GLOBALS['FormFieldsHideDeleteButton'] = 'none';
			}

			$GLOBALS['FormFieldsIsSortable'] = '';
			if ($GLOBALS["ISC_CLASS_ADMIN_AUTH"]->HasPermission(AUTH_Manage_FormFields)) {
				$GLOBALS['FormFieldsIsSortable'] = '1';
			}

			$this->template->display('formfields.manage.tpl');
		}
开发者ID:hungnv0789,项目名称:vhtm,代码行数:53,代码来源:class.formfields.php

示例9: ManageTemplates

 /**
  * Allows management of templates in the store by listing existing templates and providing add/edit/delete functions
  *
  */
 private function ManageTemplates()
 {
     $GLOBALS['TemplatesGrid'] = $this->BuildTemplatesGrid();
     $GLOBALS['Message'] = GetFlashMessageBoxes();
     if (empty($GLOBALS['TemplatesGrid'])) {
         // There aren't any templates, show a message so they can create one
         $GLOBALS['Message'] = MessageBox(GetLang('NoExportTemplates'), MSG_SUCCESS);
         $GLOBALS['DisableDelete'] = "DISABLED";
         $GLOBALS['Title'] = GetLang('ManageExportTemplates');
         $GLOBALS['ManageExportTemplatesIntro'] = GetLang('ManageExportTemplatesIntro');
     }
     $GLOBALS["ISC_CLASS_TEMPLATE"]->SetTemplate("exporttemplates.manage");
     $GLOBALS["ISC_CLASS_TEMPLATE"]->ParseTemplate();
 }
开发者ID:nirvana-info,项目名称:old_bak,代码行数:18,代码来源:class.exporttemplates.php

示例10: Login

function Login($msg = '')
{
    $challenge = rand();
    session_register(S_ID . "_challenge");
    $_SESSION[S_ID . "_challenge"]["random"] = $challenge;
    echo "<html>\n" . "<head>\n" . "<meta HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\" />\n" . "<title>" . TITLE . " :: Кто здесь??</title>\n" . "<link rel=\"stylesheet\" type=\"text/css\" href=\"/templates/design.css\" />\n" . "<script src=\"js/md5.js\" type=\"text/javascript\"></script>\n" . "<script type=\"text/javascript\">\n" . "function Change()\n" . "{\n" . "    document.login.challenge.value = hex_md5(document.login.challenge.value + hex_md5(document.login.pswd.value));\n" . "    document.login.pswd.value = '';\n" . "    return true;\n" . "}\n" . "function SetFocus()\n" . "{\n";
    if (isset($_GET["name"])) {
        echo "\tdocument.login.name.select();\n";
    }
    echo "\tdocument.login.name.focus();\n" . "}\n" . "</script>\n" . "</head>\n" . "<body onLoad=\"SetFocus()\">\n" . "<table style='background-color: #ffffff;' cellspacing=0 cellpadding=0 border=0 width=100% height=100%>\n" . "    <tr height=30% valign=\"center\">\n" . "\t<td width=23% align=\"center\">" . GetImage("./templates/pngs/", 97, 150) . "</td>\n" . "\t<td width=54% rowspan=3 align=\"center\">\n";
    if ($msg != '') {
        MessageBox($msg);
    }
    echo "\t    <form name=\"login\" action=\"\" method=\"GET\" onSubmit=\"Change()\">\n" . "\t    <input type=\"hidden\" name=\"challenge\" value=\"" . $challenge . "\">" . "\t    <table class=\"clogin\" cellspacing=0 cellpadding=0 border=0 width=500 height=200>\n" . "\t    \t<tr valign=\"center\">" . "    \t\t    <td colspan=4 width=100% align=\"left\"><h4>&nbsp;&nbsp;Кто здесь?!</h4></td>\n" . "    \t\t</tr>\n" . "\t    \t<tr class=\"clogin\" valign=\"center\">\n" . "\t    \t    <td> </td>\n" . "    \t\t    <td width=40% class=\"cloginint\" align=\"right\">Логин:&nbsp;</td>\n" . "\t\t    <td width=50% align=\"left\"><input class=\"clogininttable\" type=\"text\" name=\"name\" size=15 maxlength=20";
    if (isset($_GET["name"])) {
        echo " value=\"" . $_GET["name"] . "\"";
    }
    echo "></td>\n" . "\t\t    <td width=10%> </td>\n" . "\t    \t</tr>\n" . "\t\t<tr class=\"clogin\"><td colspan=2> </td></tr>\n" . "\t    \t<tr class=\"clogin\" valign=\"center\">\n" . "\t    \t    <td> </td>\n" . "\t    \t    <td class=\"cloginint\" align=\"right\">Пароль:&nbsp;</td>\n" . " \t   \t    <td align=\"left\"><input class=\"clogininttable\" type=\"password\" name=\"pswd\" size=15 maxlength=20></td>\n" . "\t\t    <td> </td>\n" . "\t    \t</tr>\n" . "\t    \t<tr valign=\"center\">\n" . "\t    \t    <td colspan=4 align=\"center\"><input class=\"clogininttable\" style=\"font-size: 20px; width: 240;\" type=\"submit\" value=\"Войти!\"></td>\n" . "\t    \t</tr>\n" . "\t    </table>\n" . "\t    </form>\n" . "\t<td width=23% align=\"center\" align='center'> </td>\n" . "    </tr>\n" . "    <tr height=50% valign=\"bottom\">\n" . "\t<td width=23% rowspan=2 align=\"center\"> </td>\n" . "\t\t<td align='center'>" . "<a href='http://vedro.skynet/'>" . GetImage("./templates/logos/", 1) . "</a>" . "\t\t</td>" . "    </tr>\n" . "<tr height=10% valign='center'>" . "\t<td align=\"center\" valign='bottom'><div style='font-size: 18px;'><a href='http://vedro.skynet/'>vedro.skynet</a></div><br /></td>\n" . "     </tr>" . "</table>\n" . "</body>\n" . "</html>";
}
开发者ID:newmen,项目名称:vedro,代码行数:19,代码来源:login.php

示例11: DisplayReport

 private function DisplayReport($MsgDesc = "", $MsgStatus = "")
 {
     $GLOBALS['HideErrorMessage'] = 'none';
     if ($MsgDesc != "") {
         $GLOBALS['Message'] = MessageBox($MsgDesc, $MsgStatus);
     }
     $GLOBALS['ISC_CLASS_CUSTOMER'] = GetClass('ISC_CUSTOMER');
     $GLOBALS['customerid'] = $GLOBALS['ISC_CLASS_CUSTOMER']->GetCustomerId();
     if ($GLOBALS['customerid'] != '') {
         $GLOBALS['DisplayList'] = '';
         $GLOBALS['DisplayLogin'] = 'none';
     } else {
         $GLOBALS['DisplayList'] = 'none';
         $GLOBALS['DisplayLogin'] = '';
     }
     $GLOBALS['DefectReportTitle'] = GetLang('ReportaDefect');
     $GLOBALS['ISC_CLASS_TEMPLATE']->SetPageTitle(sprintf("%s - %s", GetConfig('StoreName'), GetLang('DefectReport')));
     $GLOBALS['ISC_CLASS_TEMPLATE']->SetTemplate("displayreport");
     $GLOBALS['ISC_CLASS_TEMPLATE']->ParseTemplate();
 }
开发者ID:nirvana-info,项目名称:old_bak,代码行数:20,代码来源:class.defectreport.php

示例12: CheckLocateForm

function CheckLocateForm()
{
    global $db, $locate_id;
    if (!isset($_GET["locations_name"])) {
        return false;
    }
    if ($_GET["locations_name"] == '') {
        MessageBox("Неуказано название!");
        return false;
    }
    if ($row = $db->Query_Fetch_Array("SELECT id FROM locations WHERE name='" . urldecode($_GET["locations_name"]) . "'" . (isset($locate_id) ? " AND id!=" . $locate_id : ''))) {
        MessageBox("Локация " . urldecode($_GET["locations_name"]) . " уже существует!");
        return false;
    }
    if (!isset($locate_id)) {
        MessageBox("Локация добавлена");
    } else {
        MessageBox("Локация успешно изменёна");
    }
    return true;
}
开发者ID:newmen,项目名称:vedro,代码行数:21,代码来源:functions.php

示例13: manageWishList

 public function manageWishList($MsgDesc = "", $MsgStatus = "")
 {
     // Fetch any results, place them in the data grid
     $numMake = 0;
     $GLOBALS['WishListDataGrid'] = $this->ManageWishListGrid($numMake);
     // Was this an ajax based sort? Return the table now
     if (isset($_REQUEST['ajax']) && $_REQUEST['ajax'] == 1) {
         echo $GLOBALS['WishListDataGrid'];
         return;
     }
     if ($MsgDesc != "") {
         $GLOBALS['Message'] = MessageBox($MsgDesc, $MsgStatus);
     }
     $GLOBALS['WishListIntro'] = GetLang('ManageWishListIntro');
     // No results
     if ($numMake == 0) {
         $GLOBALS['DisplayGrid'] = "none";
         $GLOBALS['Message'] = MessageBox(GetLang('NoWishList'), MSG_SUCCESS);
     }
     $GLOBALS["ISC_CLASS_TEMPLATE"]->SetTemplate("wishlist.manage");
     $GLOBALS["ISC_CLASS_TEMPLATE"]->ParseTemplate();
 }
开发者ID:nirvana-info,项目名称:old_bak,代码行数:22,代码来源:class.wishlist.php

示例14: EditVendor

	/**
	 * Show the "Edit Vendor" form.
	 */
	private function EditVendor()
	{
		$GLOBALS['Message'] = GetFlashMessageBoxes();
		$vendor = $this->GetVendorData($_REQUEST['vendorId']);

		// If the vendor doesn't exist, show an error message
		if(!isset($vendor['vendorid'])) {
			FlashMessage(GetLang('InvalidVendor'), MSG_ERROR, 'index.php?ToDo=viewVendors');
		}

		// Set up the form title and action
		$GLOBALS['FormAction']	= 'SaveUpdatedVendor';
		if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_Vendors)) {
			$GLOBALS['Title']		= GetLang('EditVendor');
		}
		else {
			$GLOBALS['Title']		= GetLang('VendorProfile');
		}
		$GLOBALS['Intro']		= GetLang('EditVendorIntro');

		// Set the form values
		$GLOBALS['VendorId']		= (int)$vendor['vendorid'];
		$GLOBALS['VendorName']		= isc_html_escape($vendor['vendorname']);
		$GLOBALS['VendorPhone']		= isc_html_escape($vendor['vendorphone']);
		$GLOBALS['VendorAddress']	= isc_html_escape($vendor['vendoraddress']);
		$GLOBALS['VendorCity']		= isc_html_escape($vendor['vendorcity']);
		$GLOBALS['VendorZip']		= isc_html_escape($vendor['vendorzip']);
		$GLOBALS['CountryList']		= GetCountryList($vendor['vendorcountry']);
		$GLOBALS['VendorEmail']		= isc_html_escape($vendor['vendoremail']);
		$GLOBALS['VendorState']		= isc_html_escape($vendor['vendorstate']);

		$vendorLogoSize = GetConfig('VendorLogoSize');
		if(!$vendorLogoSize) {
			$GLOBALS['HideLogoUpload'] = 'display: none';
		}
		else {
			$GLOBALS['HideCurrentVendorLogo'] = 'display: none';
			if($vendor['vendorlogo']) {
				$GLOBALS['HideCurrentVendorLogo'] = '';
				$GLOBALS['CurrentVendorLogoLink'] = GetConfig('ShopPath').'/'.GetConfig('ImageDirectory').'/'.isc_html_escape($vendor['vendorlogo']);
				$GLOBALS['CurrentVendorLogo'] = isc_html_escape($vendor['vendorlogo']);
			}
		}

		$vendorPhotoSize = GetConfig('VendorPhotoSize');
		if(!$vendorPhotoSize) {
			$GLOBALS['HidePhotoUpload'] = 'display: none';
		}
		else {
			$GLOBALS['HideCurrentVendorPhoto'] = 'display: none';
			if($vendor['vendorphoto']) {
				$GLOBALS['HideCurrentVendorPhoto'] = '';
				$GLOBALS['CurrentVendorPhotoLink'] = GetConfig('ShopPath').'/'.GetConfig('ImageDirectory').'/'.isc_html_escape($vendor['vendorphoto']);
				$GLOBALS['CurrentVendorPhoto'] = isc_html_escape($vendor['vendorphoto']);
			}
		}

		if($vendor['vendororderemail'] != '') {
			$GLOBALS['VendorForwardInvoices'] = 'checked="checked"';
			$GLOBALS['VendorOrderEmail'] = isc_html_escape($vendor['vendororderemail']);
		}
		else {
			$GLOBALS['HideForwardInvoiceEmails'] = 'display: none';
		}

		$GLOBALS['VendorProfitMargin'] = number_format($vendor['vendorprofitmargin'], GetConfig('DecimalPlaces'), GetConfig('DecimalToken'), '');

		// Vendor has configured shipping
		if($vendor['vendorshipping'] == 1) {
			$GLOBALS['VendorShippingCustom'] = 'checked="checked"';
			$GLOBALS['HideStoreMethodsList'] = 'display: none';

			// Fetch any shipping methods set up
			$GLOBALS['HideShippingNotConfigured'] = 'display: none';

			// Fetch any shipping zones, place them in the data grid
			$GLOBALS['ISC_CLASS_ADMIN_SETTINGS_SHIPPING'] = GetClass('ISC_ADMIN_SETTINGS_SHIPPING');
			$GLOBALS['ShippingZonesGrid'] = $GLOBALS['ISC_CLASS_ADMIN_SETTINGS_SHIPPING']->ManageShippingZonesGrid($numZones);

			// No shipping zones have been configured yet
			if($numZones == 0) {
				$GLOBALS['DisableDeleteZones'] = 'disabled="disabled"';
				$GLOBALS['DisplayZoneGrid'] = "none";
				$GLOBALS['NoZonesMessage'] = MessageBox(GetLang('NoShippingZones'), MSG_SUCCESS);
			}

		}
		// Using store shipping
		else {
			$GLOBALS['VendorShippingDefault'] = 'checked="checked"';
			$GLOBALS['HideShippingZonesGrid'] = 'display: none';
		}

		// Fetch a list of the shipping methods available for the entire store
		$GLOBALS['StoreShippingMethods'] = $this->GetStoreShippingMethods();

		if($GLOBALS['ISC_CLASS_ADMIN_AUTH']->GetVendorId() > 0) {
//.........这里部分代码省略.........
开发者ID:hungnv0789,项目名称:vhtm,代码行数:101,代码来源:class.vendors.php

示例15: CopyProductStep1

 public function CopyProductStep1($MsgDesc = "", $MsgStatus = "", $PreservePost = false, $OriginalProductID = 0)
 {
     if ($MsgDesc != "") {
         $GLOBALS['Message'] = MessageBox($MsgDesc, $MsgStatus);
     }
     // Show the form to edit a product
     if (isset($_REQUEST['productId']) && isId($_REQUEST['productId'])) {
         $OriginalProductID = $_REQUEST['productId'];
     }
     $prodId = $OriginalProductID;
     $z = 0;
     $arrData = array();
     $arrImages = array();
     $arrCustomFields = array();
     if (GetConfig('CurrencyLocation') == 'right') {
         $GLOBALS['CurrencyTokenLeft'] = '';
         $GLOBALS['CurrencyTokenRight'] = GetConfig('CurrencyToken');
     } else {
         $GLOBALS['CurrencyTokenLeft'] = GetConfig('CurrencyToken');
         $GLOBALS['CurrencyTokenRight'] = '';
     }
     $GLOBALS['ServerFiles'] = $this->_GetImportFilesOptions();
     $GLOBALS['ISC_CLASS_ADMIN_CATEGORY'] = GetClass('ISC_ADMIN_CATEGORY');
     // Make sure the product exists
     if (ProductExists($prodId)) {
         if ($PreservePost == true) {
             $this->_GetProductData(0, $arrData);
             $this->_GetCustomFieldData(0, $arrCustomFields);
             $GLOBALS['ProductFields'] = $this->_GetProductFieldsLayout(0, true);
             // Restore the hash
             $GLOBALS['ProductHash'] = $arrData['prodhash'];
         } else {
             $this->_GetProductData($prodId, $arrData);
             $this->_GetCustomFieldData($prodId, $arrCustomFields);
             $GLOBALS['ProductFields'] = $this->_GetProductFieldsLayout($prodId, true);
             // Generate the hash
             $GLOBALS['ProductHash'] = md5(time() . uniqid(rand(), true));
             // We'll need to duplicate (copy) the thumbnail, images and download files here
             $this->_CopyProductImages($prodId, 0, $GLOBALS['ProductHash']);
             $this->_CopyDownloads($prodId, 0, $GLOBALS['ProductHash']);
             $arrData['prodname'] = GetLang('CopyOf') . $arrData['prodname'];
         }
         // Does this user have permission to edit this product?
         if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->GetVendorId() && $arrData['prodvendorid'] != $GLOBALS['ISC_CLASS_ADMIN_AUTH']->GetVendorId()) {
             FlashMessage(GetLang('Unauthorized'), MSG_ERROR, 'index.php?ToDo=viewProducts');
         }
         $arrImages = $this->_GetImageData(0, $GLOBALS['ProductHash']);
         if (isset($_POST['currentTab'])) {
             $GLOBALS['CurrentTab'] = (int) $_POST['currentTab'];
         } else {
             $GLOBALS['CurrentTab'] = 0;
         }
         $GLOBALS['FormAction'] = 'copyProduct2';
         $GLOBALS['Title'] = GetLang('CopyProductTitle');
         $GLOBALS['Intro'] = GetLang('CopyProductIntro');
         $GLOBALS["ProdType_" . $arrData['prodtype']] = 'checked="checked"';
         $GLOBALS['ProdType'] = $arrData['prodtype'] - 1;
         $GLOBALS['ProdCode'] = isc_html_escape($arrData['prodcode']);
         $GLOBALS['ProdName'] = isc_html_escape($arrData['prodname']);
         $GLOBALS['OriginalProductId'] = $OriginalProductID;
         $visibleCategories = array();
         if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->GetVendorId()) {
             $vendorData = $GLOBALS['ISC_CLASS_ADMIN_AUTH']->GetVendor();
             if ($vendorData['vendoraccesscats']) {
                 $visibleCategories = explode(',', $vendorData['vendoraccesscats']);
             }
         }
         //				$GLOBALS['CategoryOptions'] = $GLOBALS['ISC_CLASS_ADMIN_CATEGORY']->GetCategoryOptions($arrData['prodcats'], "<option %s value='%d'>%s</option>", "selected='selected'", "", false, '', $visibleCategories);
         $GLOBALS['CategoryOptions'] = $GLOBALS['ISC_CLASS_ADMIN_CATEGORY']->GetCategoryOptionsProduct($arrData['prodcats'], "<option %s value='%d' id='category_old%d'>%s</option>", "selected='selected'", "", false, '', $visibleCategories);
         $GLOBALS['RelatedCategoryOptions'] = $GLOBALS['ISC_CLASS_ADMIN_CATEGORY']->GetCategoryOptions(0, "<option %s value='%d'>%s</option>", "selected='selected'", "- ", false);
         //blessen
         $wysiwygOptions = array('id' => 'wysiwyg', 'width' => '60%', 'height' => '350px', 'value' => $arrData['proddesc']);
         $wysiwygOptions1 = array('id' => 'wysiwyg1', 'width' => '60%', 'height' => '350px', 'value' => $arrData['prodmfg']);
         $wysiwygOptions2 = array('id' => 'wysiwyg2', 'width' => '60%', 'height' => '350px', 'value' => $arrData['prodwarranty']);
         $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['ProdSearchKeywords'] = isc_html_escape($arrData['prodsearchkeywords']);
         $GLOBALS['ProdAvailability'] = isc_html_escape($arrData['prodavailability']);
         $GLOBALS['ProdPrice'] = number_format($arrData['prodprice'], GetConfig('DecimalPlaces'), GetConfig('DecimalToken'), "");
         if (CFloat($arrData['prodcostprice']) > 0) {
             $GLOBALS['ProdCostPrice'] = number_format($arrData['prodcostprice'], GetConfig('DecimalPlaces'), GetConfig('DecimalToken'), "");
         }
         if (CFloat($arrData['prodretailprice']) > 0) {
             $GLOBALS['ProdRetailPrice'] = number_format($arrData['prodretailprice'], GetConfig('DecimalPlaces'), GetConfig('DecimalToken'), "");
         }
         if (CFloat($arrData['prodsaleprice']) > 0) {
             $GLOBALS['ProdSalePrice'] = number_format($arrData['prodsaleprice'], GetConfig('DecimalPlaces'), GetConfig('DecimalToken'), "");
         }
         $GLOBALS['ProdSortOrder'] = $arrData['prodsortorder'];
         if ($arrData['prodvisible'] == 1) {
             $GLOBALS['ProdVisible'] = "checked";
         }
         if ($arrData['prodfeatured'] == 1) {
             $GLOBALS['ProdFeatured'] = "checked";
         }
         if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->GetVendorId()) {
             $GLOBALS['HideStoreFeatured'] = 'display: none';
         } else {
             if (!gzte11(ISC_HUGEPRINT) || !$arrData['prodvendorid']) {
//.........这里部分代码省略.........
开发者ID:nirvana-info,项目名称:old_bak,代码行数:101,代码来源:class.product_18_12.php


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