Viewing file: tab.php (1.56 KB) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include('ea_controller.php');
class Tab extends Ea_controller {
// function __construct() {
// parent::Controller();
// }
function tb_1save() {
//$tab = 1;
//$this->binput($tab);
//redirect($this->config->item("ea_folder")."tab/binput");
}
function tb_2save() {
redirect($this->config->item("ea_folder")."tab/binput");
}
function binput($tab=0) {
$this->output($this->config->item("ea_folder")."v_bMain");
}
function test($tb='') {
if($tb=='') {
$tab = ($this->input->post('tab')=='') ? 1 : $this->input->post('tab');
} else {
$tab = $tb;
}
if($tab==1) {
$data['tab'] = $tab;
$this->contents['v'] = $this->load->view($this->config->item('ea_folder').'v_t1',$data,TRUE);
} else if($tab==2) {
$data['tab'] = $tab;
$this->contents['v'] = $this->load->view($this->config->item('ea_folder').'v_t2',$data,TRUE);
} else if($tab==3) {
$data['tab'] = $tab;
$this->contents['v'] = $this->load->view($this->config->item('ea_folder').'v_t3',$data,TRUE);
}
$this->contents['tab'] = $tab;
$this->output($this->config->item("ea_folder")."v_test");
}
function v_t1input() {
$tab = $this->input->post('tab');
echo "processss ผ่าน ++".$tab;
$this->test($tab);
}
function v_t2input() {
$tab = $this->input->post('tab');
echo "processss ผ่าน ++".$tab;
$this->test($tab);
}
function v_t3input() {
$tab = $this->input->post('tab');
echo "processss ผ่าน ++".$tab;
$this->test($tab);
}
}
?>
|