PDA

View Full Version : Work with php and need to send a variable of a tab1 to tab2 by url and load a



operador
30 Jan 2008, 9:00 AM
do not speak English, using a translator, I am beginning to use the libraries of ext2 I was difficult because everything is in English, I need you to help me, please is as follows:

es con el TABPANEL quiero cambiar de tab atravez de un link

I am in a form I click on a link that takes me to necestito as I tab2
Work with php and need to send a variable of a tab1 to tab2 by url and instead load a form

this code

panel1.html

<html>
<head>

<link rel="stylesheet" type="text/css" href="resources/css/ext-all.css" />
<link rel="stylesheet" type="text/css" href="examples/examples.css" />

<script language="JavaScript" type="text/javascript" src="../funciones/javascript/funcionesJS.js"></script>

<script type="text/javascript" src="adapter/ext/ext-base.js"></script>


<script type="text/javascript" src="ext-all.js"></script>




<!--<script language="javascript" src="../grid/PropsGrid.js"></script>-->
<style type="text/css">
html, body {
font:normal 11px verdana;
margin:0;
padding:0;
border:0 none;
overflow:hidden;
height:100%;
}
p {
margin:5px;
}
.settings {
background-image:url(examples/shared/icons/fam/folder_wrench.png);
}
.nav {
background-image:url(examples/shared/icons/fam/folder_go.png);
}
</style>

<script type="text/javascript">
Ext.onReady(function(){

Ext.state.Manager.setProvider(new Ext.state.CookieProvider());

var viewport = new Ext.Viewport({
layout:'border',
items:[
new Ext.BoxComponent({ // raw
region:'north',
el: 'north',
height:32
}),{
region:'south',
contentEl: 'south',
split:true,
height: 100,
minSize: 100,
maxSize: 200,
collapsible: true,
title:'South',
margins:'0 0 0 0'
},{
region:'west',
id:'west-panel',
title:'PANEL',
split:true,
width: 200,
minSize: 175,
maxSize: 400,
collapsible: true,
margins:'0 0 0 5',
layout:'accordion',
layoutConfig:{
animate:true
},
items: [{
contentEl: 'west',
title:'Navigation',
border:false,
iconCls:'nav'
},{
title:'CUENTAS',
html:'<p>Some settings in here.</p>',
border:false,
iconCls:'settings'

},{
title:'Settings',
html:'<p>Some settings in here.</p>',
border:false,
iconCls:'settings'
}]
},

new Ext.TabPanel({
region:'center',
//deferredRender:false,
activeTab:0,
plain:true,
defaults:{autoScroll: true},

items: [{

title: 'Ingresar Orden',
autoLoad:'../medios/forms/formingresarorden.php'

},{

title: 'Inspeccion General',
autoLoad:'../medios/forms/forminspeccion.php'
},{

title: 'Evaluacion por Sistemas',
autoLoad:'../medios/forms/formevasistema.php'
},{

title: 'Control Interno Hospitalizacion',
autoLoad:'../medios/forms/formhospitalizacion.php'
},{

title: 'Control Farmacos Hospitalizacion',
autoLoad:'../medios/forms/formhospitalizacion.php'
}
]
})

// fin new Ext.TabPanel({
]

});

});





/*
document.onkeydown = function(){
//alert(window.event.keyCode)
if(window.event && window.event.keyCode == 116 || window.event.keyCode == 122 ){
window.event.keyCode = 505;
}
if(window.event && window.event.keyCode == 505){
return false;
}
if(window.event && window.event.keyCode == 8){
return false;
}
}*/




</script>
</head>
<body>
<script type="text/javascript" src="examples/examples.js"></script><!-- EXAMPLES -->




<div id="west">

<ul>
<li>
<img src="images/s.gif" class="icon-show-all"/>
<a href="#">All tasks</a>
</li>
<li>
<img src="images/s.gif" class="icon-show-active"/>
<a href="#">Active tasks</a>
</li>
<li>
<img src="images/s.gif" class="icon-show-complete"/>
<a href="#">Completed tasks</a>
</li>
</ul>

</div>
<div id="north">
<p>north - generally for menus, toolbars and/or advertisements</p>
</div>



<div id="props-panel" style="width:200px;height:200px;overflow:hidden;">

</div>




<div id="south">
<p>south - generally for informational stuff, also could be for status bar</p>
</div>

</body>
</html>