本文整理汇总了PHP中mm_ToolTip函数的典型用法代码示例。如果您正苦于以下问题:PHP mm_ToolTip函数的具体用法?PHP mm_ToolTip怎么用?PHP mm_ToolTip使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了mm_ToolTip函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: show_configuration
/**
* Show all configuration parameters for this Shipping method
* @returns boolean False when the Shipping method has no configration
*/
function show_configuration()
{
global $VM_LANG;
// Include the FedExTags class
require_once CLASSPATH . 'shipping/fedex/fedex-tags.php';
$fedextags = new FedExTags();
// Read the fedex configuration file
require_once CLASSPATH . "shipping/" . $this->classname . ".cfg.php";
?>
<div style="width:80%;padding:0 10px;">
<table class="adminform">
<th colspan="3"><?php
echo $VM_LANG->_('VM_FEDEX_ACCOUNT_SETTINGS');
?>
</th>
<tr>
<td class="labelcell"><?php
echo $VM_LANG->_('VM_FEDEX_ACCOUNT_NUMBER');
?>
</td>
<td><input type="text" name="FEDEX_ACCOUNT_NUMBER" class="inputbox" value="<?php
echo FEDEX_ACCOUNT_NUMBER;
?>
" /></td>
<td style="width:5%;text-align:right;"> </td>
</tr>
<tr>
<td class="labelcell"><?php
echo $VM_LANG->_('VM_FEDEX_METER_NUMBER');
?>
</td>
<td><input type="text" name="FEDEX_METER_NUMBER" class="inputbox" value="<?php
echo FEDEX_METER_NUMBER;
?>
" /></td>
<td style="width:5%;text-align:right;"><?php
echo mm_ToolTip($VM_LANG->_('VM_FEDEX_METER_NUMBER_TIP'));
?>
</td>
</tr>
<tr>
<td class="labelcell"><?php
echo $VM_LANG->_('VM_FEDEX_URI');
?>
</td>
<td><input type="text" name="FEDEX_URI" class="inputbox" value="<?php
echo FEDEX_URI;
?>
" size="60" /></td>
<td style="width:5%;text-align:right;"><?php
echo mm_ToolTip($VM_LANG->_('VM_FEDEX_URI_TIP'));
?>
</td>
</tr>
</table>
<p></p>
<table class="adminform">
<th colspan="3"><?php
echo $VM_LANG->_('VM_FEDEX_TAXES_FEES');
?>
</th>
<tr>
<td class="labelcell"><?php
echo $VM_LANG->_('VM_FEDEX_TAX_CLASS');
?>
</td>
<td>
<?php
require_once CLASSPATH . 'ps_tax.php';
ps_tax::list_tax_value("FEDEX_TAX_CLASS", FEDEX_TAX_CLASS);
?>
</td>
<td style="width:5%;text-align:right;"><?php
echo mm_ToolTip($VM_LANG->_('VM_FEDEX_TAX_CLASS_TOOLTIP'));
?>
</td>
</tr>
<tr>
<td class="labelcell"><?php
echo $VM_LANG->_('VM_FEDEX_HANDLING_FEE');
?>
</td>
<td><input class="inputbox" type="text" name="FEDEX_HANDLINGFEE" value="<?php
echo FEDEX_HANDLINGFEE;
?>
" /></td>
<td style="width:5%;text-align:right;"><?php
echo mm_ToolTip($VM_LANG->_('VM_FEDEX_HANDLING_FEE_TOOLTIP'));
?>
</td>
</tr>
</table>
<p></p>
//.........这里部分代码省略.........
示例2: str_replace
}
// Relace parameter
$template = str_replace("{" . $item_name . "}", $attr, $template);
}
echo $template;
} else {
// show default list of parameters
echo "\n\n<!-- Default list of parameters - BEGIN -->\n";
while ($db->next_record()) {
$parameter_type = $db->f("parameter_type");
if ($parameter_type != "B") {
echo "<tr>\n <td width=\"35%\" height=\"2\" valign=\"top\"><div align=\"right\"><strong>";
echo $db->f("parameter_label");
if ($db->f("parameter_description")) {
echo " ";
echo mm_ToolTip($db->f("parameter_description"), $VM_LANG->_('PHPSHOP_PRODUCT_TYPE_PARAMETER_FORM_DESCRIPTION'));
}
echo " :</strong></div>\n </td>\n";
$parameter_values = $db->f("parameter_values");
$item_name = "product_type_{$product_type_id}" . "_" . $db->f("parameter_name");
$get_item_value = vmGet($_REQUEST, $item_name, "");
$get_item_value_comp = vmGet($_REQUEST, $item_name . "_comp", "");
// comparison
if (!empty($parameter_values) && $db->f("parameter_multiselect") == "Y") {
if ($parameter_type == "V") {
// type: Multiple Values
// Multiple section List of values - comparison FIND_IN_SET
echo "<td width=\"10%\" height=\"2\" valign=\"top\" align=\"center\">\n";
echo "<select class=\"inputbox\" name=\"" . $item_name . "_comp\">\n";
echo "<option value=\"find_in_set_all\"" . ($get_item_value_comp == "find_in_set_all" ? " selected" : "") . ">" . $VM_LANG->_('PHPSHOP_PARAMETER_SEARCH_FIND_IN_SET_ALL') . "</option>\n";
echo "<option value=\"find_in_set_any\"" . ($get_item_value_comp == "find_in_set_any" ? " selected" : "") . ">" . $VM_LANG->_('PHPSHOP_PARAMETER_SEARCH_FIND_IN_SET_ANY') . "</option>\n";
示例3: mm_ToolTip
<td align="right"><b>RunTime:</b></td>
<td align="left"><?php
echo @$runtime;
?>
sec. </td>
<td align="right" valign="top"><b>Current Page:</b></td>
<td valign="top"><?php
echo $page;
?>
</td>
</tr>
<tr class="sectiontableentry2">
<td align="right" valign="top" nowrap><b>Queries executed:</b></td>
<td valign="top" nowrap><?php
echo $database->_ticker . " " . mm_ToolTip("Note: This is only the number of queries related to VirtueMart, \r\n which have been processed so far. Because the component is wrapped \r\n into the Joomla! Framework, we can't get the total number of Queries at THIS point");
?>
</td>
<td align="right" valign="top"><b>Last Page:</b></td>
<td valign="top"><?php
echo empty($_SESSION['last_page']) ? "empty" : $_SESSION['last_page'];
?>
</td>
</tr>
<tr class="sectiontableentry1">
<td align="right" valign="top"><b>UID:</b></td>
<td valign="top"><?php
echo $auth["user_id"];
?>
</td>
示例4: show_configuration
/**
* Show all configuration parameters for this Shipping method
* @returns boolean False when the Shipping method has no configration
*/
function show_configuration()
{
global $VM_LANG;
/** Read current Configuration ***/
require_once CLASSPATH . "shipping/" . $this->classname . ".cfg.php";
?>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td width="20%"><strong>Intershipper Username</strong>:</td>
<td colspan="3" width="80%">
<input type="text" name="IS_USERNAME" class="inputbox" value="<?php
echo IS_USERNAME;
?>
" />
<?php
echo mm_ToolTip('The InterShipper Username');
?>
</td>
</tr>
<tr>
<td><strong><?php
echo $VM_LANG->_('PHPSHOP_ADMIN_CFG_STORE_SHIPPING_METHOD_INTERSHIPPER_PASSWORD');
?>
</strong>:
</td>
<td colspan="3">
<input type="text" name="IS_PASSWORD" class="inputbox" value="<?php
echo IS_PASSWORD;
?>
" />
<?php
echo mm_ToolTip($VM_LANG->_('PHPSHOP_ADMIN_CFG_STORE_SHIPPING_METHOD_INTERSHIPPER_PASSWORD_EXPLAIN'));
?>
</td>
</tr>
<tr>
<td><strong><?php
echo $VM_LANG->_('PHPSHOP_ADMIN_CFG_STORE_SHIPPING_METHOD_INTERSHIPPER_EMAIL');
?>
</strong>:
</td>
<td colspan="3">
<input type="text" name="IS_EMAIL" class="inputbox" value="<?php
echo IS_EMAIL;
?>
" />
<?php
echo mm_ToolTip($VM_LANG->_('PHPSHOP_ADMIN_CFG_STORE_SHIPPING_METHOD_INTERSHIPPER_EMAIL_EXPLAIN'));
?>
</td>
</tr>
<tr>
<td><strong><?php
echo $VM_LANG->_('PHPSHOP_UPS_TAX_CLASS');
?>
</strong></td>
<td>
<?php
require_once CLASSPATH . 'ps_tax.php';
ps_tax::list_tax_value("IS_TAX_CLASS", IS_TAX_CLASS);
?>
</td>
<td><?php
echo mm_ToolTip($VM_LANG->_('PHPSHOP_UPS_TAX_CLASS_TOOLTIP'));
?>
<td>
</tr>
<tr>
<td colspan="4"><hr /></td>
</tr>
<tr>
<td> </td>
<td style="text-indent:20px;font-weight:bold;">Name
<?php
echo mm_ToolTip("Specify the carriers which shall return their shipping rates.");
?>
</td>
<td style="text-indent:20px;font-weight:bold;">Invoice
<?php
echo mm_ToolTip("Specifies whether or not you are invoiced directly from the carrier");
?>
</td>
<td style="text-indent:20px;font-weight:bold;">Account No. (optional)
<?php
echo mm_ToolTip("Your carrier account number -> to take advantage of any special discounts or offers");
?>
</td>
</tr>
<tr>
<td style="float:right;">Carrier 1:</td>
<td><select class="inputbox" name="carrier1_name">
<option <?php
if (CARRIER1_NAME == "UPS") {
echo "selected=\"selected\"";
}
?>
//.........这里部分代码省略.........
示例5: show_configuration
/**
* Show all configuration parameters for this Shipping method
* @returns boolean False when the Shipping method has no configration
*/
function show_configuration()
{
global $VM_LANG;
/** Read current Configuration ***/
require_once CLASSPATH . "shipping/" . __CLASS__ . ".cfg.php";
?>
<table>
<tr>
<td><strong><?php
echo $VM_LANG->_('PHPSHOP_ADMIN_CFG_STORE_SHIPPING_METHOD_USPS_USERNAME');
?>
</strong></td>
<td><input type="text" name="USPS_USERNAME" class="inputbox"
value="<?php
echo USPS_USERNAME;
?>
" /></td>
<td>
<?php
echo mm_ToolTip($VM_LANG->_('PHPSHOP_ADMIN_CFG_STORE_SHIPPING_METHOD_USPS_USERNAME_TOOLTIP'));
?>
</td>
</tr>
<tr>
<td><strong><?php
echo $VM_LANG->_('PHPSHOP_ADMIN_CFG_STORE_SHIPPING_METHOD_USPS_PASSWORD');
?>
</strong>
</td>
<td><input type="text" name="USPS_PASSWORD" class="inputbox"
value="<?php
echo USPS_PASSWORD;
?>
" /></td>
<td>
<?php
echo mm_ToolTip($VM_LANG->_('PHPSHOP_ADMIN_CFG_STORE_SHIPPING_METHOD_USPS_PASSWORD_TOOLTIP'));
?>
</td>
</tr>
<tr>
<td><strong><?php
echo $VM_LANG->_('PHPSHOP_ADMIN_CFG_STORE_SHIPPING_METHOD_USPS_SERVER');
?>
</strong>
</td>
<td><input type="text" name="USPS_SERVER" class="inputbox"
value="<?php
echo USPS_SERVER;
?>
" /></td>
<td>
<?php
echo mm_ToolTip($VM_LANG->_('PHPSHOP_ADMIN_CFG_STORE_SHIPPING_METHOD_USPS_SERVER_TOOLTIP'));
?>
</td>
</tr>
<tr>
<td><strong><?php
echo $VM_LANG->_('PHPSHOP_ADMIN_CFG_STORE_SHIPPING_METHOD_USPS_PATH');
?>
</strong>
</td>
<td><input type="text" name="USPS_PATH" class="inputbox"
value="<?php
echo USPS_PATH;
?>
" /></td>
<td>
<?php
echo mm_ToolTip($VM_LANG->_('PHPSHOP_ADMIN_CFG_STORE_SHIPPING_METHOD_USPS_PATH_TOOLTIP'));
?>
</td>
</tr>
<tr>
<td><strong><?php
echo $VM_LANG->_('PHPSHOP_ADMIN_CFG_STORE_SHIPPING_METHOD_USPS_PACKAGESIZE');
?>
</strong>
</td>
<td><select name="USPS_PACKAGESIZE">
<option value="REGULAR"
<?php
if (USPS_PACKAGESIZE == 'REGULAR') {
echo "selected=\"selected\"";
}
?>
>Regular</option>
<option value="LARGE"
<?php
if (USPS_PACKAGESIZE == 'LARGE') {
echo "selected=\"selected\"";
}
?>
>Large</option>
<option value="OVERSIZE"
//.........这里部分代码省略.........
示例6: mm_ToolTip
<option value="13">2013</option>
<option value="14">2014</option>
<option value="15">2015</option>
<option value="16">2016</option>
<option value="17">2017</option>
</select>
</td>
</tr>
<tr>
<td><?php
echo $VM_LANG->_('VM_CHECKOUT_CCV_CODE');
?>
:</td>
<td><input class="inputbox" type="text" name="cvc" size="5" />
<?php
echo mm_ToolTip($VM_LANG->_('PHPSHOP_CUSTOMER_CVV2_TOOLTIP'), $VM_LANG->_('VM_CHECKOUT_CCV_CODE_TIPTITLE'));
?>
</td>
</tr>
</table>
<p align="center"><input type="submit" name="submit" onclick="return check_pbscc_form();" /></p>
</form>
<?php
}
} else {
?>
<img src="<?php
echo IMAGEURL;
?>
ps_image/button_cancel.png" align="center" alt="<?php
示例7: get_class
</td>
</tr>
<tr class="row0">
<td colspan="2"> </td>
</tr>
</table>
<?php
$tabs->endTab();
$tabs->startTab($VM_LANG->_('PHPSHOP_CONFIG'), "config-page");
if ($_PAYMENT->has_configuration()) {
$ps_html->writableIndicator(CLASSPATH . "payment/" . get_class($_PAYMENT) . ".cfg.php");
}
$_PAYMENT->show_configuration();
echo '<br />
<strong>' . $VM_LANG->_('VM_PAYMENT_EXTRAINFO') . ':';
echo mm_ToolTip($VM_LANG->_('VM_PAYMENT_EXTRAINFO_TIP'));
?>
<br />
<textarea class="inputbox" name="payment_extrainfo" cols="120" rows="20"><?php
echo htmlspecialchars($db->sf("payment_extrainfo"));
?>
</textarea>
<?php
$tabs->endTab();
$tabs->endPane();
// Add necessary hidden fields
$formObj->hiddenField('payment_method_id', $payment_method_id);
$funcname = !empty($payment_method_id) ? "paymentMethodUpdate" : "paymentMethodAdd";
// Write your form with mixed tags and text fields
// and finally close the form:
$formObj->finishForm($funcname, $modulename . '.payment_method_list', $option);
示例8: strftime
</td>
</tr>
<tr>
<td width="24%"><div align="right"><?php
echo $VM_LANG->_('PHPSHOP_PRODUCT_DISCOUNT_ENDDATE');
?>
:</div></td>
<td width="76%">
<input type="text" class="inputbox" name="end_date" id="end_date" value="<?php
if ($db->sf("end_date")) {
echo strftime("%Y-%m-%d", $db->sf("end_date"));
}
?>
" />
<input name="reset" type="reset" class="button" onclick="return showCalendar('end_date', 'y-mm-dd');" value="..." />
<?php
echo mm_ToolTip($VM_LANG->_('PHPSHOP_PRODUCT_DISCOUNT_ENDDATE_TIP'));
?>
</td>
</tr>
<tr>
<td valign="top" colspan="2" align="right"> </td>
</tr>
</table>
<?php
// Add necessary hidden fields
$formObj->hiddenField('discount_id', $discount_id);
$funcname = empty($discount_id) ? "discountAdd" : "discountUpdate";
// finally close the form:
$formObj->finishForm($funcname, $modulename . '.product_discount_list', $option);
示例9: mm_ToolTip
</tr>
<tr class="row0">
<td colspan="2"> </td>
</tr>
</table>
<?php
$tabs->endTab();
$tabs->startTab($VM_LANG->_('PHPSHOP_CONFIG'), "config-page");
if ($_EXPORT->has_configuration()) {
$ps_html->writableIndicator(CLASSPATH . "export/" . $_EXPORT->classname . ".cfg.php");
}
$_EXPORT->show_configuration();
echo '<br />
<strong>' . $VM_LANG->_('VM_EXPORT_CONFIG') . ':';
echo mm_ToolTip($VM_LANG->_('VM_EXPORT_CONFIG_TIP'));
?>
<br />
<textarea class="inputbox" name="export_config" cols="120" rows="20"><?php
echo htmlspecialchars($db->sf('export_config'));
?>
</textarea>
<?php
$tabs->endTab();
$tabs->endPane();
// Add necessary hidden fields
$formObj->hiddenField('export_id', $export_id);
$formObj->hiddenField('iscore', $db->sf('iscore'));
//prevents from deleting and editing description
if ($db->sf('iscore')) {
$formObj->hiddenField('export_name', $db->sf('export_name'));
示例10: show_configuration
/**
* Show all configuration parameters for this Shipping method
* @returns boolean False when the Shipping method has no configration
*/
function show_configuration()
{
global $VM_LANG;
/** Read current Configuration ***/
require_once CLASSPATH . "shipping/" . $this->classname . ".cfg.php";
?>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td width="20%"><strong><?php
echo $VM_LANG->_('VM_SHIPPING_METHOD_CANADAPOST_MERCHANT_CPCID');
?>
</strong>:</td>
<td colspan="3" width="80%">
<input type="text" name="MERCHANT_CPCID" class="inputbox" value="<?php
echo MERCHANT_CPCID;
?>
" />
<?php
echo mm_ToolTip($VM_LANG->_('VM_SHIPPING_METHOD_CANADAPOST_MERCHANT_CPCID_EXPLAIN'));
?>
</td>
</tr>
<tr>
<td><strong><?php
echo $VM_LANG->_('VM_SHIPPING_METHOD_CANADAPOST_CP_SERVER');
?>
</strong>:
</td>
<td colspan="3">
<input type="text" name="CP_SERVER" class="inputbox" value="<?php
echo CP_SERVER;
?>
" />
<?php
echo mm_ToolTip($VM_LANG->_('VM_SHIPPING_METHOD_CANADAPOST_CP_SERVER_EXPLAIN'));
?>
</td>
</tr>
<tr>
<td><strong><?php
echo $VM_LANG->_('VM_SHIPPING_METHOD_CANADAPOST_CP_PORT');
?>
</strong>:
</td>
<td colspan="3">
<input type="text" name="CP_PORT" class="inputbox" value="<?php
echo CP_PORT;
?>
" />
<?php
echo mm_ToolTip($VM_LANG->_('VM_SHIPPING_METHOD_CANADAPOST_CP_PORT_EXPLAIN'));
?>
</td>
</tr>
<tr>
<td><strong><?php
echo $VM_LANG->_('VM_SHIPPING_METHOD_CANADAPOST_CP_FEDERAL_TAX');
?>
</strong>:
</td>
<td colspan="3">
<input type="text" name="CP_FEDERAL_TAX" class="inputbox" value="<?php
echo CP_FEDERAL_TAX;
?>
" />
<?php
echo mm_ToolTip($VM_LANG->_('VM_SHIPPING_METHOD_CANADAPOST_CP_FEDERAL_TAX_EXPLAIN'));
?>
</td>
</tr>
<tr>
<td><strong><?php
echo $VM_LANG->_('VM_SHIPPING_METHOD_CANADAPOST_CP_PROVINCIAL_TAX');
?>
</strong>:
</td>
<td colspan="3">
<input type="text" name="CP_PROVINCIAL_TAX" class="inputbox" value="<?php
echo CP_PROVINCIAL_TAX;
?>
" />
<?php
echo mm_ToolTip($VM_LANG->_('VM_SHIPPING_METHOD_CANADAPOST_CP_PROVINCIAL_TAX_EXPLAIN'));
?>
</td>
</tr>
<tr>
<td><strong><?php
echo $VM_LANG->_('VM_SHIPPING_METHOD_CANADAPOST_ARRIVAL_DATE_EXPLAIN');
?>
</strong>:
</td>
<td colspan="3">
<textarea name="CP_ARRIVAL_DATE_EXPLAIN" class="inputbox" cols="50" rows="5" ><?php
echo CP_ARRIVAL_DATE_EXPLAIN;
?>
//.........这里部分代码省略.........
示例11: mm_ToolTip
>
<?php
echo $VM_LANG->_('PHPSHOP_COUPON_TYPE_GIFT');
?>
</option>
<option value="permanent" <?php
echo $selected[1];
?>
>
<?php
echo $VM_LANG->_('PHPSHOP_COUPON_TYPE_PERMANENT');
?>
</option>
</select>
<?php
echo mm_ToolTip($VM_LANG->_('PHPSHOP_COUPON_TYPE_TOOLTIP'));
?>
</td>
</tr>
<tr>
<td width="24%"><div align="right"><?php
echo $VM_LANG->_('PHPSHOP_COUPON_VALUE');
?>
:</div></td>
<td width="76%">
<input type="text" class="inputbox" name="coupon_value" value="<?php
$db->sp("coupon_value");
?>
" />
</td>
</tr>
示例12: show_configuration
/**
* Show all configuration parameters for this Shipping method
* @returns boolean False when the Shipping method has no configration
*/
function show_configuration()
{
global $VM_LANG;
/** Read current Configuration ***/
require_once CLASSPATH . "shipping/" . __CLASS__ . ".cfg.php";
?>
<table class="adminform">
<tr class="row0">
<td><strong><?php
echo $VM_LANG->_('PHPSHOP_ADMIN_CFG_STORE_SHIPPING_METHOD_UPS_ACCESS_CODE');
?>
</strong></td>
<td>
<input type="text" name="UPS_ACCESS_CODE" class="inputbox" value="<?php
echo UPS_ACCESS_CODE;
?>
" />
</td>
<td>
<?php
echo mm_ToolTip($VM_LANG->_('PHPSHOP_ADMIN_CFG_STORE_SHIPPING_METHOD_UPS_ACCESS_CODE_EXPLAIN'));
?>
</td>
</tr>
<tr class="row1">
<td><strong><?php
echo $VM_LANG->_('PHPSHOP_ADMIN_CFG_STORE_SHIPPING_METHOD_UPS_USER_ID');
?>
</strong>
</td>
<td>
<input type="text" name="UPS_USER_ID" class="inputbox" value="<?php
echo UPS_USER_ID;
?>
" />
</td>
<td>
<?php
echo mm_ToolTip($VM_LANG->_('PHPSHOP_ADMIN_CFG_STORE_SHIPPING_METHOD_UPS_USER_ID_EXPLAIN'));
?>
</td>
</tr>
<tr class="row0">
<td><strong><?php
echo $VM_LANG->_('PHPSHOP_ADMIN_CFG_STORE_SHIPPING_METHOD_UPS_PASSWORD');
?>
</strong>
</td>
<td>
<input type="text" name="UPS_PASSWORD" class="inputbox" value="<?php
echo UPS_PASSWORD;
?>
" />
</td>
<td>
<?php
echo mm_ToolTip($VM_LANG->_('PHPSHOP_ADMIN_CFG_STORE_SHIPPING_METHOD_UPS_PASSWORD_EXPLAIN'));
?>
</td>
</tr>
<tr class="row1">
<td><strong><?php
echo $VM_LANG->_('PHPSHOP_UPS_PICKUP_METHOD');
?>
</strong></td>
<td>
<select class="inputbox" name="pickup_type">
<option <?php
if (UPS_PICKUP_TYPE == "01") {
echo "selected=\"selected\"";
}
?>
value="01">Daily Pickup</option>
<option <?php
if (UPS_PICKUP_TYPE == "03") {
echo "selected=\"selected\"";
}
?>
value="03">Customer Counter</option>
<option <?php
if (UPS_PICKUP_TYPE == "06") {
echo "selected=\"selected\"";
}
?>
value="06">One Time Pickup</option>
<option <?php
if (UPS_PICKUP_TYPE == "07") {
echo "selected=\"selected\"";
}
?>
value="07">On Call Air Pickup</option>
<option <?php
if (UPS_PICKUP_TYPE == "19") {
echo "selected=\"selected\"";
}
?>
//.........这里部分代码省略.........
示例13: shopMakeHtmlSafe
$row_list[$n] = $n;
}
if (!isset($depth_list[$n])) {
$depth_list[$n] = 0;
}
$catname = shopMakeHtmlSafe($categories[$row_list[$n]]["category_name"]);
$listObj->newRow();
// The row number
$listObj->addCell($pageNav->rowNumber($ibg));
// The Checkbox
$listObj->addCell(vmCommonHTML::idBox($ibg, $categories[$row_list[$n]]["category_child_id"], false, "category_id"));
// Which category depth level we are in?
$repeat = $depth_list[$n] + 1;
$tmp_cell = str_repeat(" ", $repeat) . "__|" . $repeat . "| " . "<a href=\"" . $_SERVER['PHP_SELF'] . "?option=com_virtuemart&page=product.product_category_form&category_id=" . $categories[$row_list[$n]]["category_child_id"] . "&category_parent_id=" . $categories[$row_list[$n]]["category_parent_id"] . "\">" . $catname . "</a>";
$listObj->addCell($tmp_cell);
$desc = strlen($categories[$row_list[$n]]["category_description"]) > 255 ? mm_ToolTip($categories[$row_list[$n]]["category_description"], $VM_LANG->_('PHPSHOP_CATEGORY_FORM_DESCRIPTION')) : $categories[$row_list[$n]]["category_description"];
$listObj->addCell(" " . $desc);
$listObj->addCell(ps_product_category::product_count($categories[$row_list[$n]]["category_child_id"]) . " <a href=\"" . $_SERVER['PHP_SELF'] . "?page=product.product_list&category_id=" . $categories[$row_list[$n]]["category_child_id"] . "&option=com_virtuemart" . "\">[ " . $VM_LANG->_('PHPSHOP_SHOW') . " ]</a>");
// Publish / Unpublish
$tmp_cell = "<a href=\"" . $sess->url($_SERVER['PHP_SELF'] . "?page=product.product_category_list&category_id=" . $categories[$row_list[$n]]["category_child_id"] . "&func=changePublishState");
if ($categories[$row_list[$n]]["category_publish"] == 'N') {
$tmp_cell .= "&task=publish\">";
} else {
$tmp_cell .= "&task=unpublish\">";
}
$tmp_cell .= vmCommonHTML::getYesNoIcon($categories[$row_list[$n]]["category_publish"]);
$tmp_cell .= "</a>";
$listObj->addCell($tmp_cell);
// Order Up and Down Icons
if ($keyword == '') {
// This must be a big cheat, because we're working on sorted arrays,
示例14: show_configuration
/**
* Show all configuration parameters for this Shipping method
* @returns boolean False when the Shipping method has no configration
*/
function show_configuration()
{
global $VM_LANG;
/** Read current Configuration ***/
require_once CLASSPATH . "shipping/" . __CLASS__ . ".cfg.php";
?>
<table>
<tr>
<td><strong>Charge flat shipping rate to this amount:</strong></td>
<td>
<input type="text" name="FLEX_BASE_AMOUNT" class="inputbox" value="<?php
echo FLEX_BASE_AMOUNT;
?>
" />
</td>
<td>
<?php
echo mm_ToolTip("A flat fee will be charged if the total value of the cart is less than this amount. If the value of the cart is greater than this amount, a percentage will be charged");
?>
</td>
</tr>
<tr>
<td><strong>Minimum Shipping Charge:</strong>
</td>
<td>
<input type="text" name="FLEX_MIN_CHG" class="inputbox" value="<?php
echo FLEX_MIN_CHG;
?>
" />
</td>
<td>
<?php
echo mm_ToolTip("This is the flat fee to be charged if the value in the cart is less than the amount entered above.");
?>
</td>
</tr>
<tr>
<td><strong>Percentage to charge if total sale is over base:</strong>
</td>
<td>
<input type="text" name="FLEX_SHIP_PERC" class="inputbox" value="<?php
echo FLEX_SHIP_PERC;
?>
" />
</td>
<td>
<?php
echo mm_ToolTip("This is the percentage (of the total purchase) to be charged if the amount in the cart is greater than the amount entered above.");
?>
</td>
</tr>
<tr>
<td><strong>Fixed Handling Charge:</strong>
</td>
<td>
<input type="text" name="FLEX_HAND_FEE" class="inputbox" value="<?php
echo FLEX_HAND_FEE;
?>
" />
</td>
<td>
<?php
echo mm_ToolTip("If you want to use a flat fee in addition to the conditional rate, add it here, If not, set to Zero.");
?>
</td>
</tr>
<tr>
<td><strong><?php
echo $VM_LANG->_('PHPSHOP_UPS_TAX_CLASS');
?>
</strong></td>
<td>
<?php
require_once CLASSPATH . 'ps_tax.php';
ps_tax::list_tax_value("FLEX_TAX_CLASS", FLEX_TAX_CLASS);
?>
</td>
<td><?php
echo mm_ToolTip($VM_LANG->_('PHPSHOP_UPS_TAX_CLASS_TOOLTIP'));
?>
<td>
</tr>
</table>
<?php
// return false if there's no configuration
return true;
}
示例15: show_configuration
function show_configuration()
{
global $VM_LANG;
/** Read current Configuration ***/
require_once CLASSPATH . "shipping/" . __CLASS__ . ".cfg.php";
?>
<table>
<tr>
<td><strong>
<?php
echo $VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_ID');
?>
</strong></td>
<td>
<input type="text" name="DHL_ID" class="inputbox"
value="<?php
echo DHL_ID;
?>
" />
</td>
<td>
<?php
echo mm_ToolTip($VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_ID_TOOLTIP'));
?>
</td>
</tr>
<tr>
<td><strong>
<?php
echo $VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_PASSWORD');
?>
</strong></td>
<td>
<input type="text" name="DHL_PASSWORD" class="inputbox"
value="<?php
echo DHL_PASSWORD;
?>
" />
</td>
<td>
<?php
echo mm_ToolTip($VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_PASSWORD_TOOLTIP'));
?>
</td>
</tr>
<tr>
<td><strong>
<?php
echo $VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_DOMESTIC_SHIPPING_KEY');
?>
</strong></td>
<td>
<input type="text" name="DHL_DOMESTIC_SHIPPING_KEY" class="inputbox"
value="<?php
echo DHL_DOMESTIC_SHIPPING_KEY;
?>
" />
</td>
<td>
<?php
echo mm_ToolTip($VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_DOMESTIC_SHIPPING_KEY_TOOLTIP'));
?>
</td>
</tr>
<tr>
<td><strong>
<?php
echo $VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_INTERNATIONAL_SHIPPING_KEY');
?>
</strong></td>
<td>
<input type="text" name="DHL_INTERNATIONAL_SHIPPING_KEY" class="inputbox"
value="<?php
echo DHL_INTERNATIONAL_SHIPPING_KEY;
?>
" />
</td>
<td>
<?php
echo mm_ToolTip($VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_INTERNATIONAL_SHIPPING_KEY_TOOLTIP'));
?>
</td>
</tr>
<tr>
<td><strong>
<?php
echo $VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_ACCOUNT_NUMBER');
?>
</strong></td>
<td>
<input type="text" name="DHL_ACCOUNT_NUMBER" class="inputbox"
value="<?php
echo DHL_ACCOUNT_NUMBER;
?>
" />
</td>
<td>
<?php
echo mm_ToolTip($VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_ACCOUNT_NUMBER_TOOLTIP'));
?>
//.........这里部分代码省略.........