1<!-- 2/** 3 * Copyright 2006 V Narayan Raman 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); 6 * you may not use this file except in compliance with the License. 7 * You may obtain a copy of the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 * See the License for the specific language governing permissions and 15 * limitations under the License. 16 */ 17--> 18 19<html> 20<head> 21 <meta name="generator" content="HTML Tidy, see www.w3.org"> 22 <title>Sahi Controller</title> 23 24 <script type="text/javascript" src="/_s_/spr/domainfix.js"> 25 </script> 26 27 <script type="text/javascript" src="/_s_/spr/exception.js"> 28 </script> 29 30 <script type="text/javascript" src="/_s_/spr/controller2.js"> 31 </script> 32 33 <script type="text/javascript" src="/_s_/dyn/ControllerUI_scriptDirsList/scriptDirslist.js"> 34 </script> 35 36 <script type="text/javascript" src="/_s_/dyn/ControllerUI_scriptsList/scriptslist.js"> 37 </script> 38 39 <script type="text/javascript" src="/_s_/spr/util.js"> 40 </script> 41 42 <script type="text/javascript" src="/_s_/spr/common.js"> 43 </script> 44 45 <script type="text/javascript" src="/_s_/spr/cookie.js"> 46 </script> 47 48 <style type="text/css"> 49 .playbackPane { 50 display: block; 51 background-color: white; 52 border-left: solid white 2px; 53 border-right: solid gray 2px; 54 border-top: solid white 2px; 55 border-bottom: solid gray 2px; 56 margin: 2px; 57 } 58 59 a, body, input, td, textarea, select { 60 font-size: 8pt; 61 font-family: verdana; 62 } 63 64 .button { 65 width: 50px; 66 } 67 68 form { 69 margin-bottom: 0; 70 } 71 72 body { 73 margin: 8px; 74 background-color: lightgrey; 75 } 76 77 .comment { 78 color: darkred; 79 font-size: 10px; 80 font-weight: bolder; 81 } 82 a{ 83 text-decoration:none; 84 color: blue; 85 } 86 </style> 87</head> 88<script> 89function resizeTAs(){ 90 resizeTA2(document.getElementById('ta'), 40, 290, 100); 91} 92</script> 93<body onload="doOnPlaybackLoad();resizeTAs()" onbeforeunload="doOnPlaybackUnLoad()" onresize="resizeTAs()"> 94<div id="playback" class="playbackPane"> 95<table> 96 <tr> 97 <td> 98 <div id="setfile"> 99 <form name="scriptfileform" action= 100 "/_s_/dyn/Player_setScriptFile" method= 101 "get" target="channel" onsubmit="return onScriptFormSubmit(this)"> 102 <table> 103 <tr> 104 <td colspan="2">Set script from file: <a href="javascript:byFile(false)">[from url]</a></td> 105 </tr> 106 107 <tr> 108 <td>Script Directory: </td> 109 <td> 110 <select name="dir" onchange="populateScripts()" style="width:250px"> 111 <option value="../scripts">../scripts</option> 112 </select> 113 </td> 114 </tr> 115 116 <tr> 117 <td bgcolor="">File:</td> 118 <td><select name="file" style="width:250px"></select></td> 119 </tr> 120 121 <tr> 122 <td>Start URL:</td> 123 <td><input type="text" name="starturl" value="" style="width:250pt"></td> 124 </tr> 125 126 <tr> 127 <td><input type="submit" value="Set"></td> 128 <td class="comment">Click 'Set', wait till page refreshes, then 129 click 'Play'.</td> 130 </tr> 131 </table> 132 <input type="hidden" name="manual" value="1"> 133 </form> 134 </div> 135 </td> 136 <td> 137 <div id="seturl" style="display:none"> 138 <form name="scripturlform" action= 139 "/_s_/dyn/Player_setScriptUrl" method= 140 "get" target="channel" onsubmit="return onScriptFormSubmit(this)"> 141 <table> 142 <tr> 143 <td colspan="2">Set script from url: <a href= 144 "javascript:byFile(true)">[from file]</a></td> 145 </tr> 146 147 <tr> 148 <td bgcolor="">Script:</td> 149 <td><input type="text" name="url" size="50"></td> 150 </tr> 151 152 <tr> 153 <td>Start URL:</td> 154 <td><input type="text" name="starturl" value="" size="50"></td> 155 </tr> 156 157 <tr> 158 <td><input type="submit" value="Set"></td> 159 <td class="comment">Click 'Set', wait till page refreshes, then 160 click 'Play'.</td> 161 </tr> 162 </table> 163 <input type="hidden" name="manual" value="1"> 164 </form> 165 </div> 166 </td> 167 </tr> 168</table> 169 170<hr> 171<table width="100%"> 172 <tr> 173 <td>Replay: <span class= 174 "comment">Set script above, before clicking on 'Play'.</span></td> 175 </tr> 176 177 <tr> 178 <td bgcolor=""> 179 <form name="playform" action= 180 "/_s_/dyn/Player_start" onsubmit="play()" 181 target="channel"> 182 <table width="100%" border="0"> 183 <tr> 184 <td width="70%"> 185 <table border="0"> 186 <tr> 187 <td>Current Step:<span id="currentStep">0</span> 188 Next Step: <input type="text" size="3" name="nextStep" value="1"> 189 <!-- [<a href="#" onclick="resetStep()">Reset</a>] 190 To: <input type="text" size="2" name="stepend" value="0"> 191 --> 192 </td> 193 </tr> 194 195 <tr> 196 <td> 197 <input class="button" type="button" value="Play" onclick="play()"> 198 <input class="button" type="button" value="Pause" onclick="pause()"> 199 <input class="button" type="button" value="Step" onclick="stepWisePlay()"> 200 <input class="button" type="button" value="Stop" onclick="stopPlay()"> 201 <input class="button" type="button" value="Reset" onclick="replay()"> 202 </td> 203 </tr> 204 </table> 205 </td> 206 <td valign="top"></td> 207 </tr> 208 </table> 209 </form> 210 </td> 211 </tr> 212</table> 213 214<hr> 215<table> 216 <tr> 217 <td bgcolor=""> 218 <form name="logForm">Statements:<br> 219 <textarea id="ta" name="logs" cols="50" rows="10"></textarea></form> 220 </td> 221 </tr> 222</table> 223 224<a href="/_s_/dyn/Player_currentScript/" target="_blank">View Script</a> 225<a href="/_s_/dyn/Player_currentParsedScript" target="_blank">View Parsed Script</a> 226<a href="/_s_/dyn/Player_currentBrowserScript" target="_blank">View Browser Script</a> 227<a href="/_s_/dyn/Log_viewLogs" target="_blank">View Logs</a><br> 228</div> 229</body> 230</html> 231 232