history->pop(); $module = MIOLO::_Request('lmodule'); $item = MIOLO::_Request('item'); $related = MIOLO::_Request('related'); $form = MIOLO::_Request('form'); $field = MIOLO::_Request('field'); $value = MIOLO::_Request('value'); $MIOLO = MIOLO::getInstance(); $MIOLO->conf->loadConf($module); $autocomplete = new MAutoComplete($module,$item,$value,$defaults); $page->AddScript('m_lookup.js'); $info = $autocomplete->getResult(); if(is_array($info)) { $inf = 'var info = new Array();'; foreach($info as $n=>$i) { $inf .= "\ninfo[$n] = '".addslashes($i)."';"; } $info = implode(',',$info); } else { $inf = 'var info = \''.addslashes($info).'\';'; } header ("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 header ("Pragma: no-cache"); // HTTP/1.0 $content = "\n"; $content .= "\n"; $content .= " Module=$module; Item=$item; Value=$value; Info=" . $info . "
\n"; $content .= "\n"; $content .= "\n"; $content .= ""; $page->generate(); echo $content; exit; ?>