webui/banner.ps1

$img = ""
$imx = Join-Path -Path $PSScriptRoot -ChildPath "graphics\$Global:SkAppName`.png"
if (Test-Path $imx) {
    $img = "<img src=`"graphics/$Global:SkAppName`.png`" style=`"height:80px;vertical-align:middle`" border=`"0`" />"
}
@"
<html>
<head>
<link rel="stylesheet" type="text/css" href="$SkTheme"/>
</head>
<body class="bannerbody">
    <table style=`"width:100%;border:none;margin-top:0px; margin-left:0px;padding:0;`">
        <tr style="vertical-align:top">
            <td class="bannerbody" style="padding:0">
                <span onClick="window.top.location.href='./'" style=`"vertical-align:absmiddle`" title=`"$Global:SkAppName`">$img $($Global:SkAppName)</span><br/>
                <span style="font-size:14pt;">$((Get-Date).ToLongDateString())</span>
            </td>
            <td style="width:300px;text-align:right">
                <form name="fs" id="fs" method="post" action="searchresults.ps1" target="main">
                    <input type="hidden" name="scope" id="scope" value="like" />
                    <input type="hidden" name="c1" id="c1" value="cmdevices:v_r_system:name0" />
                    <input type="hidden" name="c2" id="c2" value="cmusers:v_r_user:user_name0" />
                    <input type="hidden" name="c3" id="c3" value="cmdevcolls:v_collection:name:collectiontype:2" />
                    <input type="hidden" name="c4" id="c4" value="cmusercolls:v_collection:name:collectiontype:1" />
                    <input type="hidden" name="c5" id="c5" value="cmproducts:v_gs_installed_software_categorized:productname0" />
                    <input type="hidden" name="c6" id="c6" value="cmfiles:v_gs_softwarefile:filename" />
                    <input type="hidden" name="c7" id="c7" value="cmts:v_TaskSequencePackage:name" />
                    <input type="hidden" name="a1" id="a1" value="adusers" />
                    <input type="hidden" name="a2" id="a2" value="adgroups" />
                    <input type="hidden" name="a3" id="a3" value="adcomputers" />
                    <input type='text' name='qtext' id='qtext' size='20' style='padding:5px;width:200px;font-family:verdana;' title='Enter a Search Phrase' />
                    <input type='submit' name='search' id='search' class='button1' style='width:40px;height:30px;' value='...' title='Search' />
                </form>
            </td>
        </tr>
    </table>
</body>
</html>
"@