2 This is a part of the Active Template Library.
\r
3 Copyright (C) Microsoft Corporation
\r
6 This source code is only intended as a supplement to the
\r
7 Active Template Library Reference and related
\r
8 electronic documentation provided with the library.
\r
9 See these sources for detailed information regarding the
\r
10 Active Template Library product.
\r
13 <body bgcolor="{{GetBodyColor}}">
\r
15 ATL Server Stencil Cache Management
\r
17 <table border="1" width="50%">
\r
18 <tr bgcolor="{{GetTRColor}}">
\r
20 Value</th><th align="center">Quantity</th></tr>
\r
21 {{while GetNextStencilCacheStats}}
\r
22 <tr bgcolor="{{GetTRColor}}">
\r
23 <td>{{GetCacheValue}}</td>
\r
24 <td>{{GetCacheQuantity}}</td>
\r
28 <form method="post">
\r
29 <input type="hidden" name="Handler" value="StencilMgrSrf"> <input type="hidden" name="Method" value="ExecuteCommand">
\r
30 <select name="command" onchange="HandleFormOnChange(this);">
\r
31 <option value="0">Clear All Statistics</option>
\r
32 <option value="1">Remove Stencil</option>
\r
33 <option value="2">Remove All Stencils</option>
\r
34 <option value="3">Set default Lifespan</option>
\r
37 <span id="DynValueCap"></span><input type="text" name="DynValue" style="visibility=hidden">
\r
39 <input type="submit" value="Execute Command">
\r
41 <script language="JavaScript">
\r
42 function HandleFormOnChange(select_object)
\r
45 //alert(select_object.form.elements["StencilName"].type);
\r
47 if (select_object.value==1)
\r
49 select_object.form.elements["DynValue"].style.visibility="visible";
\r
50 window.document.all["DynValueCap"].innerHTML = "Stencil Name: ";
\r
53 else if (select_object.value==3)
\r
55 select_object.form.elements["DynValue"].style.visibility="visible";
\r
56 window.document.all["DynValueCap"].innerHTML = "New Lifetime: ";
\r
60 select_object.form.elements["DynValue"].style.visibility="hidden";
\r
61 window.document.all["DynValueCap"].innerHTML="";
\r