祝大家度过愉快的一天,我有事要问你好,更好地了解这里是我的代码:
{math equation=((($order_total-$commission)+$discount+$delivery_charge)*$rate)}
Run Code Online (Sandbox Code Playgroud)
我希望将其传递给另一个变量,在php中我想要像这样
<?php
$var=0
foreach($result as $resultA){
$var = $var+((($order_total-$commission)+$discount+$delivery_charge)*$rate);
}
?>
Run Code Online (Sandbox Code Playgroud)
希望你能帮助我们!
美好的一天,我是extjs新手,我使用extjs 3,我的布局有问题,我有tabpanel,标签1的内部将是视口,而标签2只是一个简单的内容,但当我点击tab2,视口不会消失,应该是视口仅在选项卡1或第一个选项卡上.以下是我的代码,请帮助,如果我的代码有问题怎么办?
var Tabs;
var chatUi;
var content = "centerpanel";
var viewport1 = new Ext.Viewport({
//id: 'chatUiLayout',
layout: 'border',
//renderTo : 'liveChatTextLiveHelp',
items: [{
width: 150,
region: 'east',
title: 'east'
}, {
region: 'center',
title: 'center'
}]
});
Tabs = new Ext.TabPanel({
id: 'liveChatTextLiveHelp',
renderTo: 'div-live-chat',
activeTab: 0,
//region: 'center',
//hieght: 200,
plain: true,
items: [{
title: 'Live help',
items: [ //viewport1
],
html: "<div id='" + content + "' class='90pers' ></div>"
}, {
title: 'Tab 2',
html: "tab 2 …Run Code Online (Sandbox Code Playgroud) 我是新手extJs用户.我使用带有复选框的树面板,我想在未选中子节点时取消选中父节点.下面是我的代码,希望你能帮助我们,我不知道该怎么做.
我的treepanel的结构是这样的:
var treeCheck = new Ext.tree.TreePanel({
//some code here
});
//event here
treeCheck.on('checkchange', function(node, checked) {
if(node.hasChildNodes()==true) {
node.eachChild(function(n) {
n.getUI().toggleCheck(checked);
});
} else {
if(!checked) {
var _parentNode = node.parentNode;
//i dont know what to do here...
//specifically, i want to uncheck the parent node and subparent node
//when the children/child node is unchecked
}
}
});
Run Code Online (Sandbox Code Playgroud)