Código: Seleccionar todo
<?php
include( "config.php" );
include( TWEB_PATH . 'core.php' );
$oWeb = new TWeb('TEST TGET');
$oWeb->lAwesome = true;
$oWeb->Activate();
$oWnd = new TWindow('main', 10, 10, '45%', '40%');
$oGet = new TGet( $oWnd, 'get1', "29805694", 10, 10, 300, 30, "text", "ingrese cedula" );
$oGet->BtnAction('test1()', '<i class="fa fa-user"></i>');
$oGet = new TGet( $oWnd, 'get2', "Albeiro", 60, 10, 300, 40, "text", "Ingrese Nombre" );
$oGet->BtnAction('test2()', '<i class="fa fa-search"></i>');
$adata = [ ["01", "ES 01"],
["02", "ES 02"],
["03", "ES 03"],
["04", "ES 04"] ];
$oGet = new TSelect($oWnd, "select1", 110, 10, 300, 40, $adata );
$oGet->Label("Numeros :", "my-label");
$oBar = new TButton( $oWnd, "btn1", "Val Select", 110, 350, 120, 40, "Load()", 'refresh-black-16.png', 'my-btn' );
$oWnd->Activate();
$oWeb->End();
?>
<script>
var oGet1;
var oGet2;
$(function() {
oGet1 = new TGet("get1")
oGet2 = new TGet("get2")
oGet1.focus()
});
function test1() {
JMsgInfo("GET1 = " + oGet1.get() )
}
function test2() {
JMsgInfo("GET2 = " + oGet2.get() );
}
function Load() {
var oGet = new TSelect("select1");
JMsgInfo("SELECT Value = " + oGet.getvalue() + " Option = " + oGet.getoption() );
// url_redirect( { url: 'http://avcsistemas.com/foro', method: 'post', data: {}, newtab : true } );
}
</script>
<style>
.my-btn {
color: #f9fbfa;
font-weight: bold;
}
.my-label {
color: #356cdb;
font-size: 23px;
font-weight: bold;
}
</style>