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


PHP vmToolTip函数代码示例

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


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

示例1: vmToolTip

?>
      </td>
    </tr> 
    <tr>
      <td width="23%"><strong><div align="right"><?php 
echo $VM_LANG->_('PHPSHOP_SHOPPER_GROUP_FORM_DISCOUNT') . ": ";
?>
</div></strong>
      </td>
      <td width="77%" > 
        <input type="text" class="inputbox" name="shopper_group_discount" size="18" value="<?php 
$db->sp('shopper_group_discount');
?>
" />
        <?php 
echo vmToolTip($VM_LANG->_('PHPSHOP_SHOPPER_GROUP_FORM_DISCOUNT_TIP'));
?>
      </td>
    </tr> 
    <tr> 
      <td width="23%" valign="top"><strong><div align="right">
      <?php 
echo $VM_LANG->_('PHPSHOP_SHOPPER_GROUP_FORM_DESC');
?>
:</div></strong>
      </td>
      <td width="77%" valign="top" >
      <?php 
editorArea('editor1', $db->f('shopper_group_desc'), 'shopper_group_desc', 500, 250, 75, 25);
?>
      </td>
开发者ID:BackupTheBerlios,项目名称:kmit-svn,代码行数:31,代码来源:shopper.shopper_group_form.php

示例2: vmToolTip

		      <td>
		        <?php 
ps_html::dropdown_display('display_style[6]', $currency_display['negative'], $currency_style_negative);
echo vmToolTip($VM_LANG->_('PHPSHOP_CURRENCY_NEGATIVE_DISPLAY_TOOLTIP'));
?>
		      </td>
		    </tr>
		    <tr>
			    <td class="labelcell"><?php 
echo $VM_LANG->_('VM_STORE_FORM_ACCEPTED_CURRENCIES');
?>
:</td>
			    <td><?php 
$currencies = $db->f('vendor_accepted_currencies') ? $db->f('vendor_accepted_currencies') : $vendor_currency;
echo $ps_html->getCurrencyList('vendor_accepted_currencies[]', explode(',', $currencies), 'currency_code', '', 10, 'multiple="multiple"');
echo ' ' . vmToolTip($VM_LANG->_('VM_STORE_FORM_ACCEPTED_CURRENCIES_TIP'));
?>
</td>
		    </tr>
		    </table>
		    </fieldset>
 		</td>
 	</tr>
</table><br />
<fieldset>
	<legend><?php 
echo $VM_LANG->_('PHPSHOP_STORE_FORM_DESCRIPTION');
?>
</legend>
	<?php 
editorArea('editor1', $db->f("vendor_store_desc"), 'vendor_store_desc', '400', '200', '70', '15');
开发者ID:albertobraschi,项目名称:Hab,代码行数:31,代码来源:store.store_form.php

示例3: pathinfo

     $info = pathinfo($fullimg);
     if (is_file($fullimg)) {
         $tmp_cell .= $VM_LANG->_('PHPSHOP_FILES_LIST_FULL_IMG') . ": ";
         $tmp_cell .= '<a onclick="document.getElementById(\'file_form_iframe\').src=\'' . $db->f("file_url") . '\';" href="#file_form" title="Click me!">[ ' . $VM_LANG->_('PHPSHOP_VIEW') . ' ]</a>';
     }
     $tmp_cell .= '<br />';
     if ($db->f('product_thumb_image')) {
         $thumb = IMAGEPATH . 'product/' . $db->f('product_thumb_image');
         $thumburl = IMAGEURL . 'product/' . $db->f('product_thumb_image');
     } else {
         $thumb = $info["dirname"] . "/resized/" . basename($filename, "." . $info["extension"]) . "_" . $db->f("file_image_thumb_height") . "x" . $db->f("file_image_thumb_width") . "." . $info["extension"];
         $thumburl = str_replace($mosConfig_absolute_path, $mosConfig_live_site, $thumb);
     }
     if (is_file($thumb)) {
         $tmp_cell .= $VM_LANG->_('PHPSHOP_FILES_LIST_THUMBNAIL_IMG') . ": ";
         $tmp_cell .= vmToolTip('&nbsp;<img src="' . $thumburl . '" alt="thumbnail" />', $VM_LANG->_('PHPSHOP_FILES_LIST_THUMBNAIL_IMG'), '', '', '[ ' . $VM_LANG->_('PHPSHOP_VIEW') . ' ]');
     }
     if (!$db->f("file_name")) {
         $tmp_cell = "&nbsp;<a target=\"_blank\" href=\"" . $db->f("file_url") . "\">[ " . $VM_LANG->_('PHPSHOP_VIEW') . " ]</a><br/>";
     }
 }
 $listObj->addCell($tmp_cell);
 $listObj->addCell($db->f("file_title"));
 $listObj->addCell($db->f("file_extension"));
 if ($db->f('file_id') == 'product_images') {
     if ($db->f("file_published") == "0") {
         $tmp_cell = '<img src="' . $mosConfig_live_site . '/administrator/images/publish_x.png" border="0" alt="' . $VM_LANG->_('CMN_PUBLISH') . '" />';
     } else {
         $tmp_cell = '<img src="' . $mosConfig_live_site . '/administrator/images/tick.png" border="0" alt="' . $VM_LANG->_('CMN_UNPUBLISH') . '" />';
     }
     $listObj->addCell($tmp_cell);
开发者ID:albertobraschi,项目名称:Hab,代码行数:31,代码来源:product.file_list.php

示例4: defined

            <label for="conf_VM_FEED_LIMITTEXT"><?php 
echo $VM_LANG->_('VM_ADMIN_CFG_FEED_LIMITTEXT');
?>
</label><br />
            <br />
			<input type="text" size="10" value="<?php 
echo defined('VM_FEED_MAX_TEXT_LENGTH') ? VM_FEED_MAX_TEXT_LENGTH : 500;
?>
" name="conf_VM_FEED_MAX_TEXT_LENGTH" id="conf_VM_FEED_MAX_TEXT_LENGTH" />
			<label for="conf_VM_FEED_MAX_TEXT_LENGTH"><?php 
echo $VM_LANG->_('VM_ADMIN_CFG_FEED_MAX_TEXT_LENGTH');
?>
</label>
        </td>
        <td width="30%"><?php 
echo vmToolTip($VM_LANG->_('VM_ADMIN_CFG_MAX_TEXT_LENGTH_TIP'));
?>
        </td>
    </tr>
    </table>
  <?php 
$tabs->endTab();
$tabs->endPane();
// Add necessary hidden fields
$formObj->hiddenField('myname', 'Jabba Binks');
// Write your form with mixed tags and text fields
// and finally close the form:
$formObj->finishForm('writeConfig', 'store.index', $option);
?>
   
<br style="clear:both;" />
开发者ID:albertobraschi,项目名称:Hab,代码行数:31,代码来源:admin.show_cfg.php

示例5: show_configuration

    /**
     * Show all configuration parameters for this payment method
     * @returns boolean False when the Payment method has no configration
     */
    function show_configuration()
    {
        global $VM_LANG;
        $db = new ps_DB();
        /** Read current Configuration ***/
        include_once CLASSPATH . "payment/" . __CLASS__ . ".cfg.php";
        ?>
    <table class="adminform">
        <tr class="row0">
        <td><strong>Account/Händler ID</strong></td>
            <td>
                <input name="IPAYMENT_ACCOUNTID" class="inputbox" type="text" value="<?php 
        echo IPAYMENT_ACCOUNTID;
        ?>
" />
            </td>
            <td>
           <?php 
        echo vmToolTip('Ihre allgemeine Händler-ID (die Sie auch zum Login in den Administratorbereich bei iPayment verwenden)');
        ?>
       
            </td>
        </tr>
        <tr class="row1">
        <td><strong>Anwendungs-ID/ User-ID </strong></td>
            <td>
                <input type="text" name="IPAYMENT_APPID" class="inputbox" value="<?php 
        echo IPAYMENT_APPID;
        ?>
" />
            </td>
            <td>
            </td>
        </tr>
        <tr class="row0">
        <td><strong>Anwendungs-Passwort/ Transaktionsuser-Passwort</strong></td>
            <td>
                <input type="text" name="IPAYMENT_APP_PASSWORD" class="inputbox" value="<?php 
        echo IPAYMENT_APP_PASSWORD;
        ?>
" />
            </td>
            <td>
            </td>
        </tr>
        <tr class="row1">
        <td><strong>Aktions-Passwort</strong></td>
            <td>
                <input type="text" name="IPAYMENT_ACTION_PASSWORD" class="inputbox" value="<?php 
        echo IPAYMENT_ACTION_PASSWORD;
        ?>
" />
            </td>
            <td>
            </td>
        </tr>
        <tr class="row0">
        <td><strong>Transaktions-Security-Key</strong></td>
            <td>
                <input type="text" name="IPAYMENT_SECRET" class="inputbox" value="<?php 
        echo IPAYMENT_SECRET;
        ?>
" />
            </td>
            <td>
            </td>
        </tr>
        <tr class="row1">
            <td><strong><?php 
        echo $VM_LANG->_('PHPSHOP_ADMIN_CFG_PAYPAL_STATUS_SUCCESS');
        ?>
</strong></td>
            <td>
                <select name="IPAYMENT_VERIFIED_STATUS" class="inputbox" >
                <?php 
        $q = "SELECT order_status_name,order_status_code FROM #__{vm}_order_status ORDER BY list_order";
        $db->query($q);
        $order_status_code = array();
        $order_status_name = array();
        while ($db->next_record()) {
            $order_status_code[] = $db->f("order_status_code");
            $order_status_name[] = $db->f("order_status_name");
        }
        for ($i = 0; $i < sizeof($order_status_code); $i++) {
            echo "<option value=\"" . $order_status_code[$i];
            if (IPAYMENT_VERIFIED_STATUS == $order_status_code[$i]) {
                echo "\" selected=\"selected\">";
            } else {
                echo "\">";
            }
            echo $order_status_name[$i] . "</option>\n";
        }
        ?>
                    </select>
            </td>
            <td><?php 
//.........这里部分代码省略.........
开发者ID:BackupTheBerlios,项目名称:kmit-svn,代码行数:101,代码来源:ps_ipayment.php

示例6: vmToolTip

?>
:
 <select class="inputbox" id="category_id" name="category_id" onchange="window.location='<?php 
echo $_SERVER['PHP_SELF'];
?>
?option=com_virtuemart&page=product.product_list&category_id='+document.getElementById('category_id').options[selectedIndex].value;">
	<option value=""><?php 
echo $VM_LANG->_('SEL_CATEGORY');
?>
</option>
	<?php 
$ps_product_category->list_tree($category_id);
?>
</select>
<?php 
echo vmToolTip($VM_LANG->_('VM_PRODUCT_LIST_REORDER_TIP'));
// start the list table
$listObj->startTable();
// these are the columns in the table
$columns = array('#' => '', "<input type=\"checkbox\" name=\"toggle\" value=\"\" onclick=\"checkAll(" . $num_rows . ")\" />" => "", $VM_LANG->_('PHPSHOP_PRODUCT_LIST_NAME') => "width=\"30%\"", $VM_LANG->_('VM_PRODUCT_LIST_MEDIA') => 'width="5%"', $VM_LANG->_('PHPSHOP_PRODUCT_LIST_SKU') => "width=\"15%\"", $VM_LANG->_('PHPSHOP_PRODUCT_PRICE_TITLE') => "width=\"10%\"", $VM_LANG->_('PHPSHOP_CATEGORY') => "width=\"15%\"");
// Only show reordering fields when a category ID is selected AND a parent id is NOT selected!
if ($category_id && !$product_parent_id) {
    $columns[$VM_LANG->_('VM_FIELDMANAGER_REORDER')] = "width=\"5%\"";
    $columns[vmCommonHTML::getSaveOrderButton($num_rows, 'changeordering')] = 'width="8%"';
    $columns[$VM_LANG->_('PHPSHOP_MANUFACTURER_MOD')] = "width=\"10%\"";
} else {
    $columns[$VM_LANG->_('PHPSHOP_MANUFACTURER_MOD')] = "width=\"10%\"";
}
$columns[$VM_LANG->_('PHPSHOP_REVIEWS')] = "width=\"10%\"";
$columns[$VM_LANG->_('PHPSHOP_PRODUCT_LIST_PUBLISH')] = "";
$columns[$VM_LANG->_('PHPSHOP_PRODUCT_CLONE')] = "";
开发者ID:noikiy,项目名称:owaspbwa,代码行数:31,代码来源:product.product_list.php

示例7: mm_showMyFileName

function mm_showMyFileName($filename)
{
    if (vmShouldDebug()) {
        /*@MWM1: Logging/Debugging Enhancements */
        echo vmToolTip('<div class=\'inputbox\'>Begin of File: ' . wordwrap($filename, 70, '<br />', true) . '</div>');
    }
}
开发者ID:noikiy,项目名称:owaspbwa,代码行数:7,代码来源:htmlTools.class.php

示例8: vmToolTip

}
if (!$empty_cart) {
    if ($amount > 1) {
        $total_products = $amount . " " . $VM_LANG->_('PHPSHOP_PRODUCTS_LBL');
    } else {
        $total_products = $amount . " " . $VM_LANG->_('PHPSHOP_PRODUCT_LBL');
    }
    $total_price = $CURRENCY_DISPLAY->getFullValue($total);
}
// Display clear cart
$delete_cart = '';
if (@$_SESSION['vmEnableEmptyCart'] && !@$_SESSION['vmMiniCart']) {
    // Output the empty cart button
    //echo vmCommonHTML::scriptTag( $mosConfig_live_site.'/components/'.$option.'/js/wz_tooltip.js' );
    $delete_cart = "<a href=\"" . $_SERVER['SCRIPT_NAME'] . "?page=shop.cart_reset&amp;option=com_virtuemart&amp;option2={$option}&amp;product_id={$prodid}&amp;category_id={$catid}&amp;return={$page}&amp;flypage={$flypage}&amp;Itemid={$Itemid}\" title=\"" . $VM_LANG->_('PHPSHOP_EMPTY_YOUR_CART') . " \">\r\n\t\t\t\t\t<img src=\"" . $mosConfig_live_site . "/images/cancel_f2.png\" width=\"12\" border=\"0\" style=\"float: right;vertical-align: middle;\" alt=\"" . $VM_LANG->_('PHPSHOP_EMPTY_YOUR_CART') . " \" />\r\n      </a>";
    $html1 = vmToolTip($VM_LANG->_('VM_EMPTY_YOUR_CART_TIP'), $VM_LANG->_('PHPSHOP_EMPTY_YOUR_CART'), '', '', $delete_cart, true);
    $delete_cart = $html1;
}
$href = $sess->url($mm_action_url . "index.php?page=shop.cart");
$href2 = $sess->url($mm_action_url . "index2.php?page=shop.cart", true);
$text = $VM_LANG->_('PHPSHOP_CART_SHOW');
if (@$_SESSION['vmUseGreyBox']) {
    $show_cart = vmCommonHTML::getGreyboxPopUpLink($href2, $text, '', $text, '', 500, 600, $href);
} else {
    $show_cart = vmCommonHTML::hyperlink($href, $text, '', $text, '');
}
$tpl->set('minicart', $minicart);
$tpl->set('empty_cart', $empty_cart);
$tpl->set('delete_cart', $delete_cart);
$tpl->set('vmMinicart', @$_SESSION['vmMiniCart']);
$tpl->set('total_products', @$total_products);
开发者ID:albertobraschi,项目名称:Hab,代码行数:31,代码来源:shop.basket_short.php

示例9: list_product_type

 /**
  * Returns html code for show parameters
  * @author Zdenek Dvorak
  *
  * @param int $product_id
  * @return string
  */
 function list_product_type($product_id)
 {
     global $VM_LANG;
     if (!$this->product_in_product_type($product_id)) {
         return "";
     }
     $dbag = new ps_DB();
     $dba = new ps_DB();
     $dbp = new ps_DB();
     $html = "";
     $q = "SELECT * FROM #__{vm}_product_product_type_xref ";
     $q .= "LEFT JOIN #__{vm}_product_type USING (product_type_id) ";
     $q .= "WHERE product_id='{$product_id}' AND product_type_publish='Y' ";
     $q .= "ORDER BY product_type_list_order";
     $dbag->query($q);
     $q = "SELECT * FROM #__{vm}_product_type_parameter ";
     $q .= "WHERE product_type_id=";
     while ($dbag->next_record()) {
         // Show all Product Type
         if ($dbag->f("product_type_flypage")) {
             $flypage_file = PAGEPATH . "templates/" . $dbag->f("product_type_flypage") . ".php";
             if (file_exists($flypage_file)) {
                 $html .= (include $flypage_file);
                 continue;
             }
         }
         $html .= "<br />\n<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\n";
         $html .= "<tr><td colspan=\"2\"><strong>" . $VM_LANG->_('PHPSHOP_PRODUCT_TYPE_PARAMETERS_IN_CATEGORY') . ": " . $dbag->f("product_type_name") . "</strong></td></tr>\n";
         // SELECT parameter value of product
         $q2 = "SELECT * FROM #__{vm}_product_type_" . $dbag->f("product_type_id");
         $q2 .= " WHERE product_id='{$product_id}'";
         $dbp->query($q2);
         // SELECT parameter of Product Type
         $dba->query($q . $dbag->f("product_type_id") . " ORDER BY parameter_list_order");
         $i = 0;
         while ($dba->next_record()) {
             if ($i++ % 2) {
                 $bgcolor = 'row0';
             } else {
                 $bgcolor = 'row1';
             }
             $html .= "<tr class=\"{$bgcolor}\" height=\"18\">\n";
             $html .= "<td width=\"30%\">" . $dba->f("parameter_label");
             $parameter_description = $dba->f("parameter_description");
             if (!empty($parameter_description)) {
                 $html .= "&nbsp;";
                 $html .= vmToolTip($parameter_description, $VM_LANG->_('PHPSHOP_PRODUCT_TYPE_PARAMETER_FORM_DESCRIPTION'));
             }
             $html .= "</td>\n<td>";
             $html .= $dbp->f($dba->f("parameter_name")) . " " . $dba->f("parameter_unit") . "</td></tr>\n";
         }
         $html .= "</table>\n";
     }
     return $html;
 }
开发者ID:albertobraschi,项目名称:Hab,代码行数:62,代码来源:ps_product_type.php

示例10: vmToolTip

    if (!empty($_SESSION['ccdata']['order_payment_number'])) {
        echo $_SESSION['ccdata']['order_payment_number'];
    }
    ?>
" autocomplete="off" />
		        </td>
		    </tr>
		<?php 
    if ($require_cvv_code == "YES") {
        $_SESSION['ccdata']['need_card_code'] = 1;
        ?>
		    <tr valign="top">
		        <td nowrap width="10%" align="right">
		        	<label for="credit_card_code">
		        		<?php 
        echo vmToolTip($VM_LANG->_('PHPSHOP_CUSTOMER_CVV2_TOOLTIP'), '', '', '', $VM_LANG->_('PHPSHOP_CUSTOMER_CVV2_TOOLTIP_TITLE'));
        ?>
:
		        	</label>
		        </td>		        		
		        <td>
		            <input type="text" class="inputbox" id="credit_card_code" name="credit_card_code" value="<?php 
        if (!empty($_SESSION['ccdata']['credit_card_code'])) {
            echo $_SESSION['ccdata']['credit_card_code'];
        }
        ?>
" autocomplete="off" />
		        
		        </td>
		    </tr>
		<?php 
开发者ID:noikiy,项目名称:owaspbwa,代码行数:31,代码来源:list_payment_methods.tpl.php

示例11: listUserFields


//.........这里部分代码省略.........
                            echo '<input type="checkbox" name="' . $field->name . '" id="' . $field->name . '_field" value="1" ' . ($db->sf($field->name) ? 'checked="checked"' : '') . '/>';
                            break;
                        case 'age_verification':
                            $year = vmRequest::getInt('birthday_selector_year', date('Y'));
                            if ($db->f($field->name)) {
                                $birthday = $db->f($field->name);
                                $date_array = explode('-', $birthday);
                                $year = $date_array[0];
                                $month = $date_array[1];
                                $day = $date_array[2];
                            }
                            ps_html::list_days('birthday_selector_day', vmRequest::getInt('birthday_selector_day', @$day));
                            ps_html::list_month('birthday_selector_month', vmRequest::getInt('birthday_selector_month', @$month));
                            ps_html::list_year('birthday_selector_year', $year, $year - 100, $year);
                            break;
                        case 'captcha':
                            if (file_exists($mosConfig_absolute_path . '/administrator/components/com_securityimages/client.php')) {
                                include $mosConfig_absolute_path . '/administrator/components/com_securityimages/client.php';
                                // Note that this package name must be used on the validation side too! If both are not equal, validation will fail
                                $packageName = 'securityVMRegistrationCheck';
                                echo insertSecurityImage($packageName);
                                echo getSecurityImageText($packageName);
                            } else {
                                if (file_exists($mosConfig_absolute_path . '/plugins/system/securityimages.php')) {
                                    echo "<script type=\"text/javascript\" src=\"" . JURI::root() . "/components/com_securityimages/js/securityImages.js\"></script>";
                                    echo "<img id='captchaSecurityImages' name='captchaSecurityImages' src=\"" . JURI::root() . "/index.php?option=com_securityimages&task=displayCaptcha\" />";
                                    echo "<a href=\"javascript:askNewSecurityImages('captchaSecurityImages');\">";
                                    echo "<img src=\"" . JURI::root() . "/components/com_securityimages/buttons/reload.gif\" id=\"securityImagesContactCaptchaReload\" name=\"securityImagesContactCaptchaReload\" border=\"0\">";
                                    echo "</a>";
                                    echo "<input type=\"text\" name=\"securityVMRegistrationCheck_try\" />";
                                }
                            }
                            break;
                            // Begin of a fallthrough
                        // Begin of a fallthrough
                        case 'multicheckbox':
                        case 'select':
                        case 'multiselect':
                        case 'radio':
                            $k = $db->f($field->name);
                            $dbf->setQuery("SELECT fieldtitle,fieldvalue FROM #__{vm}_userfield_values" . "\n WHERE fieldid = " . $field->fieldid . "\n ORDER BY ordering");
                            $Values = $dbf->loadObjectList();
                            $multi = "";
                            $rowFieldValues['lst_' . $field->name] = '';
                            if ($field->type == 'multiselect') {
                                $multi = "multiple='multiple'";
                            }
                            if (count($Values) > 0) {
                                if ($field->type == 'radio') {
                                    $rowFieldValues['lst_' . $field->name] = vmCommonHTML::radioListTable($Values, $field->name, 'class="inputbox" size="1" ', 'fieldvalue', 'fieldtitle', $k, $field->cols, $field->rows, $field->size, $field->required);
                                } else {
                                    $ks = explode("|*|", $k);
                                    $k = array();
                                    foreach ($ks as $kv) {
                                        $k[]->fieldvalue = $kv;
                                    }
                                    if ($field->type == 'multicheckbox') {
                                        $rowFieldValues['lst_' . $field->name] = vmCommonHTML::checkboxListTable($Values, $field->name . "[]", 'class="inputbox" size="' . $field->size . '" ' . $multi, 'fieldvalue', 'fieldtitle', $k, $field->cols, $field->rows, $field->size, $field->required);
                                    } else {
                                        $rowFieldValues['lst_' . $field->name] = vmCommonHTML::selectList($Values, $field->name . "[]", 'class="inputbox" size="' . $field->size . '" ' . $multi, 'fieldvalue', 'fieldtitle', $k);
                                    }
                                }
                            }
                            // no break! still a fallthrough
                            echo $rowFieldValues['lst_' . $field->name];
                            break;
                    }
                    break;
            }
            if ($field->description != '') {
                echo vmToolTip($field->description);
            }
            echo '<br /></div>
				      <br style="clear:both;" />';
        }
        if ($delimiter > 0) {
            echo "</fieldset>\n";
        }
        echo '</div>';
        if (VM_REGISTRATION_TYPE == 'OPTIONAL_REGISTRATION') {
            echo '<script type="text/javascript">
		   function showFields( show, fields ) {
		   	if( fields ) {
		   		for (i=0; i<fields.length;i++) {
		   			if( show ) {
		   				document.getElementById( fields[i] + \'_div\' ).style.display = \'\';
		   				document.getElementById( fields[i] + \'_input\' ).style.display = \'\';
		   			} else {
		   				document.getElementById( fields[i] + \'_div\' ).style.display = \'none\';
		   				document.getElementById( fields[i] + \'_input\' ).style.display = \'none\';
		   			}
		   		}
		   	}
		   }
		   try {
		   	showFields( document.getElementById( \'register_account\').checked, new Array(\'username\', \'password\', \'password2\') );
		   } catch(e){}
		   </script>';
        }
    }
开发者ID:albertobraschi,项目名称:Hab,代码行数:101,代码来源:ps_userfield.php

示例12: list_product_type

 /**
  * Returns html code for show parameters
  * @author Zdenek Dvorak
  *
  * @param int $product_id
  * @return string
  */
 function list_product_type($product_id)
 {
     global $VM_LANG;
     $tpl = vmTemplate::getInstance();
     if (!$this->product_in_product_type($product_id)) {
         return "";
     }
     // $dbag = product_types;
     $dbag = new ps_DB();
     // $dba = Attributes of product_type param, holds product_id and values assign to each param;
     $dba = new ps_DB();
     // $dbp = Parameters of product_type, holds definitions of each parameter, but not value ;
     $dbp = new ps_DB();
     $html = "";
     $q = "SELECT * FROM #__{vm}_product_product_type_xref ";
     $q .= "LEFT JOIN #__{vm}_product_type USING (product_type_id) ";
     $q .= "WHERE product_id='{$product_id}' AND product_type_publish='Y' ";
     $q .= "ORDER BY product_type_list_order";
     $dbag->query($q);
     $q = "SELECT * FROM #__{vm}_product_type_parameter ";
     $q .= "WHERE product_type_id=";
     $pt = 0;
     //product_type counter;
     while ($dbag->next_record()) {
         // Show all Product Type
         if ($dbag->f("product_type_flypage")) {
             $flypage_file = VM_THEMEPATH . "templates/" . $dbag->f("product_type_flypage") . ".php";
             if (file_exists($flypage_file)) {
                 $html .= (include $flypage_file);
                 continue;
             }
         }
         $product_types[$pt]["product_type_name"] = $dbag->f("product_type_name");
         // SELECT parameter value of product
         $q2 = "SELECT * FROM #__{vm}_product_type_" . $dbag->f("product_type_id");
         $q2 .= " WHERE product_id='{$product_id}'";
         $dbp->query($q2);
         // SELECT parameter of Product Type
         $dba->query($q . $dbag->f("product_type_id") . " ORDER BY parameter_list_order");
         $i = 0;
         // parameter counter;
         while ($dba->next_record()) {
             $product_type_param[$i]["parameter_label"] = $dba->f("parameter_label");
             $parameter_description = $dba->f("parameter_description");
             $product_type_param[$i]["parameter_description"] = $parameter_description;
             if (!empty($parameter_description)) {
                 $product_type_param[$i]["tooltip"] = vmToolTip($parameter_description, $VM_LANG->_('PHPSHOP_PRODUCT_TYPE_PARAMETER_FORM_DESCRIPTION'));
             }
             $product_type_param[$i]["parameter_value"] = $dbp->f($dba->f("parameter_name"));
             $product_type_param[$i]["parameter_unit"] = $dba->f("parameter_unit");
             $i++;
         }
         $product_types[$pt]["product_type_count_params"] = $i;
         $product_types[$pt]["parameters"] = $product_type_param;
         $pt++;
     }
     $tpl->set('product_types', $product_types);
     $html .= $tpl->fetch('common/product_type.tpl.php');
     return $html;
 }
开发者ID:BackupTheBerlios,项目名称:kmit-svn,代码行数:67,代码来源:ps_product_type.php

示例13: vmToolTip

>00- Symb</option>
		   	<option value="14"<?php 
if ($currency_display['negative'] == '14') {
    echo ' selected=\\"selected\\" ';
}
?>
>(Symb 00)</option>
		   	<option value="15"<?php 
if ($currency_display['negative'] == '15') {
    echo ' selected=\\"selected\\" ';
}
?>
>(00 Symb)</option>
        </select>
        <?php 
echo vmToolTip($VM_LANG->_('PHPSHOP_CURRENCY_NEGATIVE_DISPLAY_TOOLTIP'));
?>
      </td>
    </tr>
  </table>
<?php 
$tabs->endTab();
$tabs->startTab($VM_LANG->_('PHPSHOP_STORE_FORM_LBL'), "store-page");
?>
  <table class="adminform">
    <tr> 
      <td align="right"><?php 
echo $VM_LANG->_('PHPSHOP_VENDOR_FORM_ADDRESS_1');
?>
:</td>
      <td> 
开发者ID:noikiy,项目名称:owaspbwa,代码行数:31,代码来源:vendor.vendor_form.php

示例14: vmToolTip

             // 							echo "\">\n";
             // 							$get_item_value = $dbp->sf($dbpt->f("parameter_name"));
             // 							foreach($fields as $field) {
             // 								echo "<option value=\"$field\"".(($get_item_value==$field) ? " selected>" : ">"). $field."</option>\n";
             // 							}
             // 						}
             // 						echo "</select>";
             break;
         default:
             // Default type Short Text
             echo "    <input type=\"text\" class=\"inputbox\" name=\"product_type_" . $product_type_id . "_" . $dbpt->f("parameter_name") . "\" value=\"" . $dbp->f($dbpt->f("parameter_name")) . "\" size=\"20\" />";
     }
 }
 if ($dbpt->f("parameter_description")) {
     echo "&nbsp;";
     echo vmToolTip($dbpt->f("parameter_description"));
 }
 echo " " . $dbpt->f("parameter_unit");
 if ($dbpt->f("parameter_default")) {
     echo " (" . $VM_LANG->_('PHPSHOP_PRODUCT_TYPE_PARAMETER_FORM_DEFAULT') . ": ";
     echo $dbpt->f("parameter_default") . ")";
 }
 echo " [ " . $VM_LANG->_('PHPSHOP_PRODUCT_TYPE_PARAMETER_FORM_TYPE') . ": ";
 switch ($dbpt->f("parameter_type")) {
     case "I":
         echo $VM_LANG->_('PHPSHOP_PRODUCT_TYPE_PARAMETER_FORM_TYPE_INTEGER');
         break;
         // Integer
     // Integer
     case "T":
         echo $VM_LANG->_('PHPSHOP_PRODUCT_TYPE_PARAMETER_FORM_TYPE_TEXT');
开发者ID:noikiy,项目名称:owaspbwa,代码行数:31,代码来源:product.product_form.php

示例15: show_price


//.........这里部分代码省略.........
                         // but if  prices are shown without tax
                         // we just leave the (untaxed) discount amount as it is
                         // even though this is not really a good combination of settings
                         $base_price -= $discount_info["amount"];
                         break;
                     case 1:
                         $base_price *= (100 - $discount_info["amount"]) / 100;
                         break;
                 }
             }
             $text_including_tax = "";
             if (!empty($my_taxrate)) {
                 $tax = $my_taxrate * 100;
                 // only show "including x % tax" when it shall
                 // not be hidden
                 if (!$hide_tax && $auth["show_price_including_tax"] == 1 && VM_PRICE_SHOW_INCLUDINGTAX) {
                     $text_including_tax = $VM_LANG->_('PHPSHOP_INCLUDING_TAX');
                     eval("\$text_including_tax = \"{$text_including_tax}\";");
                 }
             }
             // Check if we need to display a Table with all Quantity <=> Price Relationships
             if ($base_price_info["product_has_multiple_prices"] && !$hide_tax) {
                 $db = new ps_DB();
                 // Quantity Discount Table
                 $q = "SELECT product_price, product_currency, price_quantity_start, price_quantity_end \n\t\t\t\t\t\t\tFROM #__{vm}_product_price\n\t\t\t\t  \t\t\tWHERE product_id='{$product_id}' \n\t\t\t\t  \t\t\tAND shopper_group_id='" . $auth["shopper_group_id"] . "' \n\t\t\t\t  \t\t\tORDER BY price_quantity_start";
                 $db->query($q);
                 //         $prices_table = "<table align=\"right\">
                 $prices_table = "<table width=\"100%\">\n\t\t\t\t\t  <thead><tr class=\"sectiontableheader\">\n\t\t\t\t\t  <th>" . $VM_LANG->_('PHPSHOP_CART_QUANTITY') . "</th>\n\t\t\t\t\t  <th>" . $VM_LANG->_('PHPSHOP_CART_PRICE') . "</th>\n\t\t\t\t\t  </tr></thead>\n\t\t\t\t\t  <tbody>";
                 $i = 1;
                 if ($db->num_rows() == 0) {
                     // get the vendor ID
                     $q = "SELECT vendor_id FROM #__{vm}_product WHERE product_id='{$product_id}'";
                     $db->setQuery($q);
                     $db->query();
                     $db->next_record();
                     $vendor_id = $db->f("vendor_id");
                     // get the default shopper group ID
                     $q = "SELECT shopper_group_id FROM #__{vm}_shopper_group WHERE `vendor_id`='{$vendor_id}' AND `default`='1'";
                     $db->setQuery($q);
                     $db->query();
                     $db->next_record();
                     $default_shopper_group_id = $db->f("shopper_group_id");
                     // get the current shopper group discount
                     $q = "SELECT * FROM #__{vm}_shopper_group WHERE shopper_group_id=" . $auth["shopper_group_id"];
                     $db->setQuery($q);
                     $db->query();
                     $db->next_record();
                     $shopper_group_discount = $db->f("shopper_group_discount");
                     // check for prices in default shopper group
                     $q = "SELECT product_price, price_quantity_start, price_quantity_end, product_currency FROM #__{vm}_product_price\n\t\t\t\t\t\t\tWHERE product_id='{$product_id}' AND shopper_group_id='" . $default_shopper_group_id . "' ORDER BY price_quantity_start";
                     $db->query($q);
                     while ($db->next_record()) {
                         $prices_table .= "<tr class=\"sectiontableentry{$i}\"><td>" . $db->f("price_quantity_start") . " - " . $db->f("price_quantity_end") . "</td>";
                         $prices_table .= "<td>";
                         if (!empty($my_taxrate)) {
                             $prices_table .= $CURRENCY_DISPLAY->getFullValue(($my_taxrate + 1) * $db->f("product_price") * ((100 - $shopper_group_discount) / 100));
                         } else {
                             $prices_table .= $CURRENCY_DISPLAY->getFullValue($db->f("product_price") * ((100 - $shopper_group_discount) / 100));
                         }
                         $prices_table .= "</td></tr>";
                         $i == 1 ? $i++ : $i--;
                     }
                 } else {
                     // get the current shopper group discount
                     $dbsg = new ps_DB();
                     $q = "SELECT * FROM #__{vm}_shopper_group WHERE shopper_group_id=" . $auth["shopper_group_id"];
                     $dbsg->setQuery($q);
                     $dbsg->query();
                     $dbsg->next_record();
                     $shopper_group_discount = $dbsg->f("shopper_group_discount");
                     while ($db->next_record()) {
                         $price = $GLOBALS['CURRENCY']->convert($db->f("product_price"), $db->f("product_currency"));
                         $prices_table .= "<tr class=\"sectiontableentry{$i}\"><td>" . $db->f("price_quantity_start") . " - " . $db->f("price_quantity_end") . "</td>";
                         $prices_table .= "<td>";
                         if (!empty($my_taxrate)) {
                             $prices_table .= $CURRENCY_DISPLAY->getFullValue(($my_taxrate + 1) * $price * ((100 - $shopper_group_discount) / 100));
                         } else {
                             $prices_table .= $CURRENCY_DISPLAY->getFullValue($price * ((100 - $shopper_group_discount) / 100));
                         }
                         $prices_table .= "</td></tr>";
                         $i == 1 ? $i++ : $i--;
                     }
                 }
                 $prices_table .= "</tbody></table>";
                 if (@$_REQUEST['page'] != "shop.product_details") {
                     $html .= vmToolTip($prices_table);
                 } else {
                     $html .= $prices_table;
                 }
             }
         }
     }
     $tpl->set('discount_info', $discount_info);
     $tpl->set('text_including_tax', $text_including_tax);
     $tpl->set('undiscounted_price', @$undiscounted_price);
     $tpl->set('base_price', $base_price);
     $tpl->set('price_table', $html);
     $tpl->set('parent_has_children', $this->parent_has_children($product_id));
     return $tpl->fetch('common/price.tpl.php');
 }
开发者ID:noikiy,项目名称:owaspbwa,代码行数:101,代码来源:ps_product.php


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