| Line 380... |
Line 380... |
| 380 |
// Function: RequestViewContent
|
380 |
// Function: RequestViewContent
|
| 381 |
// Description: Maintain view content
|
381 |
// Description: Maintain view content
|
| 382 |
// If View Tab is unpopulated - then populate it
|
382 |
// If View Tab is unpopulated - then populate it
|
| 383 |
// if View Tab is populated - then Minimise it
|
383 |
// if View Tab is populated - then Minimise it
|
| 384 |
// Arguments: rowId - Id if Row to Fetch
|
384 |
// Arguments: rowId - Id if Row to Fetch
|
| - |
|
385 |
// ev - Current event
|
| 385 |
//
|
386 |
//
|
| 386 |
function RequestViewContent( rowId ){
|
387 |
function RequestViewContent( rowId, ev ){
|
| 387 |
var requestURL = 'RequestViewContent.asp';
|
388 |
var requestURL = 'RequestViewContent.asp';
|
| 388 |
var paramString = '?envtab=<%=nEnvTab%>&rtag_id=<%=parRtag_id%>&script_name=<%=ScriptName%>&view_id=' + rowId;
|
389 |
var paramString = '?envtab=<%=nEnvTab%>&rtag_id=<%=parRtag_id%>&script_name=<%=ScriptName%>&view_id=' + rowId;
|
| - |
|
390 |
var forceLoad = ev ? ev.shiftKey : false;
|
| 389 |
|
391 |
|
| 390 |
// Change display states
|
392 |
// Change display states
|
| 391 |
if ( (MM_findObj( 'ENVIMG'+ rowId ).src).indexOf('btn_max.gif') == -1 )
|
393 |
if ( (MM_findObj( 'ENVIMG'+ rowId ).src).indexOf('btn_max.gif') == -1 )
|
| 392 |
{
|
394 |
{
|
| 393 |
// View is currently minimised
|
395 |
// View is currently minimised
|
| Line 413... |
Line 415... |
| 413 |
|
415 |
|
| 414 |
// Set ajax divname
|
416 |
// Set ajax divname
|
| 415 |
ajaxdivname = 'ENVDIV'+ rowId;
|
417 |
ajaxdivname = 'ENVDIV'+ rowId;
|
| 416 |
|
418 |
|
| 417 |
// Request data from server
|
419 |
// Request data from server
|
| 418 |
if ( (MM_findObj( ajaxdivname ).innerHTML).indexOf('<%=enumLOADING%>') != -1 )
|
420 |
if ( forceLoad || ((MM_findObj( ajaxdivname ).innerHTML).indexOf('<%=enumLOADING%>') != -1 ))
|
| 419 |
{
|
421 |
{
|
| - |
|
422 |
MM_findObj( ajaxdivname ).innerHTML = '<%=enumLOADING%>';
|
| - |
|
423 |
|
| 420 |
//Append the name to search for to the requestURL
|
424 |
//Append the name to search for to the requestURL
|
| 421 |
var url = requestURL + paramString;
|
425 |
var url = requestURL + paramString;
|
| 422 |
|
426 |
|
| 423 |
//Create the xmlHttp object to use in the request
|
427 |
//Create the xmlHttp object to use in the request
|
| 424 |
//stateChangeHandler will fire when the state has changed, i.e. data is received back
|
428 |
//stateChangeHandler will fire when the state has changed, i.e. data is received back
|
| Line 595... |
Line 599... |
| 595 |
%>
|
599 |
%>
|
| 596 |
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-radius: 3px;border-style: solid;border-top-width: 3px;border-color: #dad7c8;">
|
600 |
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-radius: 3px;border-style: solid;border-top-width: 3px;border-color: #dad7c8;">
|
| 597 |
<tr class='bg_dialog'>
|
601 |
<tr class='bg_dialog'>
|
| 598 |
<td width="1%" align="left" valign="top"> </td>
|
602 |
<td width="1%" align="left" valign="top"> </td>
|
| 599 |
<td width="100%"><SPAN id="SPANVIEW<%=NNbase_view_id%>" <%If BBviewCollapsed Then%>class="body_scol_thin"<%Else%>class="body_txt"<%End If%>> <b><%=SSbase_view%></b></SPAN></td>
|
603 |
<td width="100%"><SPAN id="SPANVIEW<%=NNbase_view_id%>" <%If BBviewCollapsed Then%>class="body_scol_thin"<%Else%>class="body_txt"<%End If%>> <b><%=SSbase_view%></b></SPAN></td>
|
| 600 |
<td width="1%" align="right"><span title="Expand/Collapse View" onClick="RequestViewContent('<%=NNbase_view_id%>');"><img id="ENVIMG<%=NNbase_view_id%>" src="images/<%If BBviewCollapsed Then %>btn_max.gif<%Else%>btn_min.gif<%End If%>" border="0"></span></td>
|
604 |
<td width="1%" align="right"><span title="Expand/Collapse View" onClick="RequestViewContent('<%=NNbase_view_id%>', event);"><img id="ENVIMG<%=NNbase_view_id%>" src="images/<%If BBviewCollapsed Then %>btn_max.gif<%Else%>btn_min.gif<%End If%>" border="0"></span></td>
|
| 601 |
<td width="1%" align="right" valign="top"> </td>
|
605 |
<td width="1%" align="right" valign="top"> </td>
|
| 602 |
</tr>
|
606 |
</tr>
|
| 603 |
</table>
|
607 |
</table>
|
| 604 |
<DIV id="ENVDIV<%=NNbase_view_id%>" class="envContent" <%If BBviewCollapsed Then %>style="display:none;"<%Else%>style="display:block;"<%End If%>>
|
608 |
<DIV id="ENVDIV<%=NNbase_view_id%>" class="envContent" <%If BBviewCollapsed Then %>style="display:none;"<%Else%>style="display:block;"<%End If%>>
|
| 605 |
<%If NOT BBviewCollapsed Then %>
|
609 |
<%If NOT BBviewCollapsed Then %>
|