<!-- Begin ajax_block1 -->
<div id="ajax_block1"><h2>Inventory Display</h2>
<div id="aj_menu">
<b>Menu</b>
<a href="#"
onclick="xajax_displayDB('comp_others','computer_name','ASC');
document.getElementById('ajax_map').style.height='500px';
return false;">General Info</a>
</div><!-- Eng ajax_block1 -->
function displayDB($table,$sort_key,$order)
{
//Display Database
$id_data=showDB($table,$sort_key,$order);
//Display Input filed selected by $table
$serial_number="";
$id_input=createInputField($table,$serial_number);
//Operation on ajax
$objResponse = new xajaxResponse();
$objResponse->addAssign("ajax_data","innerHTML",$id_data);
$objResponse->addAssign("ajax_input","innerHTML",$id_input);
return $objResponse->getXML();
}
Function ExportInventoryToCSV() Dim $Item,$OpenFile,$OUTPUT,$CloseFile,$Proc, If Exist($CSVLog) Del $CSVLog EndIf $Handle = FreeFileHandle() $OpenFile = Open($Handle, $CSVLog,5) $OUTPUT='TIME,'+@Time+@CRLF +'DATE,'+@Date+@CRLF+'LOGON ID,' +@USERID+@CRLF +'FULL NAME,'+@FULLNAME+@CRLF¡K¡K ................................ +@CRLF+'MANUFACTURER,'+$MyBiosInfo[4]+@CRLF ENDIF ................................ $OUTPUT = WriteLine($Handle,$OUTPUT + @CRLF) $CloseFile = Close($Handle) EndFunction