function hardware()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $cmp = new computers($_GET["uid"]);
    $ocs = new ocs($cmp->ComputerMacAddress);
    $ocs->LoadParams();
    $infos = $ocs->BuildFirstInfos();
    $html = "<div style='font-size:16px'>N.{$ocs->HARDWARE_ID})&nbsp;{$ocs->ComputerName}&nbsp;|&nbsp;{$ocs->ComputerOS}</div>\n\t{$infos}";
    echo $tpl->_ENGINE_parse_body($html);
}
function AJAX_COMPUTER_OCS()
{
    $uidend = urlencode($_GET["userid"]);
    $time = time();
    $html = "<div id='{$time}'></div>\n\t<script>\n\t\tLoadAjax('{$time}','computers.ocs.single.php?uid={$uidend}');\n\t</script>\n\t\n\t";
    $tpl = new templates();
    return $tpl->_ENGINE_parse_body($html);
    $install = Paragraphe("software-deploy-64.png", "{OCS_DEPLOY_WINDOWS}", "{OCS_DEPLOY_WINDOWS_TEXT}", "javascript:Loadjs('ocs.ng.php?deploy-js={$_GET["userid"]}')");
    $cmp = new computers($_GET["userid"]);
    $ocs = new ocs($cmp->ComputerMacAddress);
    $ocsinfos = $ocs->BuildFirstInfos();
    if ($ocsinfos != null) {
        $install = null;
    }
    $html = "\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td valign='top' style='vertical-align:top' width=1%>{$install}\n\t\t</td>\n\t\t<td valign='top' style='vertical-align:top' width=99%><div style='width:99%;height:350px;overflow:auto'>{$ocsinfos}</div></td>\n\t</tr>\n\t</table>\n                       \t\n\t";
    $tpl = new templates();
    return $tpl->_ENGINE_parse_body($html);
}
function AJAX_COMPUTER_OCS()
{
    $install = Paragraphe("software-deploy-64.png", "{OCS_DEPLOY_WINDOWS}", "{OCS_DEPLOY_WINDOWS_TEXT}", "javascript:Loadjs('ocs.ng.php?deploy-js={$_GET["userid"]}')");
    $cmp = new computers($_GET["userid"]);
    $ocs = new ocs($cmp->ComputerMacAddress);
    $ocsinfos = $ocs->BuildFirstInfos();
    $html = "\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td valign='top' width=1%>{$install}\n\t\t</td>\n\t\t<td valign='top' width=99%><div style='width:99%;height:350px;overflow:auto'>{$ocsinfos}</div></td>\n\t</tr>\n\t</table>\n                       \t\n\t";
    $tpl = new templates();
    return $tpl->_ENGINE_parse_body($html);
}