[eluser]Waqar[/eluser]
Code:
function view_schedule_by_machine()
{
$data['query']= $this->empress_model->get_by_machine();
if($popup = $this->input->post('popup')){
$atts = array(
'width' => '800',
'height' => '600',
'scrollbars' => 'no',
'toolbar' => 'no',
'status' => 'no',
'resizable' => 'no',
'screenx' => '0',
'screeny' => '0'
);
//this should be my popup result page
$this->load->view('popup',$data,$atts);
// this should be the original record page
$this->load->view('sch_by_machine',$data);
}
else
{
//this if popup checkbox not ticked
$this->load->view('sch_by_machine',$data);
}
}
help needed regarding creating popup window from controller
Thanks in advance