2025-04-27 07:49:33 -04:00

143 lines
3.9 KiB
HTML

<HTML>
<!--
Copyright (c) 2000 Microsoft Corporation
-->
<HEAD>
<meta http-equiv="MSThemeCompatible" content="Yes">
<TITLE>Remote Assistance</TITLE>
<script LANGUAGE="Javascript" SRC="../../Common/Constants.js"> </script>
<LINK id="UI_StyleSheet" REL="stylesheet" TYPE="text/css" HREF="../../Css/rc.css">
<LINK id="UI_StyleSheet" REL="stylesheet" TYPE="text/css" HREF="../../Css/rcbuddy.css">
</HEAD>
<BODY id="idBody" style="BACKGROUND-COLOR: whitesmoke" onload=InitiateMsg()>
<div align=center style="position:absolute;left:15px;top:5px;width:98%">
<table id="idMsgTbl" name="idMsgTbl" cellspacing=0 cellpadding=0>
<tr class="cssTblTitleLight">
<td id="TitleId" name="TitleId" align="center" valign="center" align=left colspan=2 style="width:100%">
&nbsp;
</td>
</tr>
<tr> <td colspan=2 height=10> &nbsp </td> </tr>
<tr>
<td id="MessageId" colspan=2 name="MessageId" style="width:100%" align=left>
&nbsp;
</td>
<td> &nbsp; </td>
</tr>
<tr> <td colspan=2 height=10> &nbsp </td> </tr>
<tr>
<td id="idbtnrow" colspan=2 name="idbtnrow" align=center>
<table id="idbtntbl" name="idbtntbl">
<!--
This is dynamically created
-->
</table>
</td>
</tr>
</div>
<SCRIPT Language="JScript">
//
// Salem objects.
//
var g_oControlChannel = null;
g_bDebug = false;
//
// InitiateMsg: Initiates the message dialog
//
function InitiateMsg()
{
var vArgs = window.dialogArguments;
var iBtns = 0;
var newRow = null;
var newCell = null;
g_oControlChannel = vArgs[0]; // Control Channel
try
{
//
// Add the btns
//
newRow = idbtntbl.insertRow( -1 );
for( iBtns = 0; iBtns < vArgs[3]; iBtns++)
{
newCell = newRow.insertCell( -1 );
newCell.innerHTML = '<button class="styButton" onClick="onClickHandler(' + iBtns + ')" id=button' + iBtns + ' name=button' + iBtns + ' style="visibility:visible">' + vArgs[4+iBtns] + '</button>';
}
if( L_HELPERTAKINGCONTROL_MSG == vArgs[2] )
{
idbtnrow.align = "right";
button0.tabIndex = "2";
button0.style.visibility = "visible";
button0.value = vArgs[4];
button1.tabIndex = 1;
button1.style.visibility = "visible";
button1.value = vArgs[5];
TitleId.innerHTML = "<font class=\"styText\"> <strong> &nbsp;&nbsp;" + vArgs[6] + L_RCREQUESTHDR + "</strong></font>"; // Title
MessageId.innerHTML = "<font class=\"styText\">" + L_HELPERTAKINGCONTROL_MSG + vArgs[6] + L_HELPERTAKINGCONTROL2_MSG + "</font>"; // Message
newRow = idMsgTbl.insertRow( -1 );
newCell = newRow.insertCell( -1 );
newCell.colspan = "2";
newCell.rowspan = "2";
newRow = idMsgTbl.insertRow( -1 );
newCell = newRow.insertCell( -1 );
newCell.innerHTML = "<hr>";
newCell = newRow.insertCell( -1 );
newCell.innerHTML = "<hr>";
newRow = idMsgTbl.insertRow( -1 );
newCell = newRow.insertCell( -1 );
newCell.innerHTML = "<img src=\"../../Common/icon_information_32x.gif\"> &nbsp;&nbsp;";
newCell = newRow.insertCell( -1 );
newCell.align = "left";
newCell.innerHTML = "<font class=\"styText\">" + L_HELPERTAKINGCONTROL3_MSG;
}
else if ( L_ESCHIT_MSG == vArgs[2] )
{
idMsgTbl.deleteRow(0);
MessageId.innerHTML = "<font align=\"center\" class=\"styText\">" + "<img src=\"../../Common/icon_information_32x.gif\"> &nbsp;&nbsp;" + vArgs[5] + " " + vArgs[2] + "</div>"; // Message
}
else
{
TitleId.innerHTML = "<font align=\"center\" class=\"styText\"> <strong>&nbsp;&nbsp;" + vArgs[1] + "</strong></div>"; // Title
MessageId.innerHTML = "<font align=\"center\" class=\"styText\">" + vArgs[2] + "</div>"; // Message
}
}
catch(error)
{
alert(error.description);
}
return;
}
//
// OnClickHandler: Returns the id of the button to parent on Clicking
//
function onClickHandler( id )
{
window.returnValue = id;
window.close();
}
</SCRIPT>
</BODY>
</HTML>