| Current File : //var/wcp4/million/public_html/file/private/templates.old/common/editor_form.html |
<html>
<head><title>Insert Form</title>
<style><%include editor_dialog.css%></style>
<script language=JScript>
returnValue = "";
function done () {
var start = '<form';
if (document.all.name.value) start += ' name="' + document.all.name.value + '"';
if (document.all.action.value) start += ' action="' + document.all.action.value + '"';
start += ' method="' + document.all.method.options[document.all.method.selectedIndex].value + '"';
if (document.all.encoding.value) start += ' enctype="' + document.all.encoding.value + '"';
start += ' style="border: 1px dotted red; padding: 2px"><p></p></form>';
// Can't just call insert_html here. Need the html in the
// select range not the text.
returnValue = start;
window.close();
}
</script>
</head>
<body >
<table border=0 cellpadding=3 align=center>
<tr>
<td><font size=1>Name: </font></td><td><input id=name size="30"></input></td>
</tr>
<tr>
<td><font size=1>Action: </font></td><td><input id=action value="http://" size="30"></input></td>
</tr>
<tr>
<td><font size=1>Method:</font></td>
<td><select id=method><option>POST</option><option>GET</option></select></td>
</tr>
<tr>
<td><font size=1>Encoding Type:</font></td><td><input id=encoding size="30"></input></td>
</tr>
</table>
<hr>
<div align=right>
<button class=button onclick="done();">OK</button>
<button class=button onclick="window.close();">Cancel</button>
</div>
</body>
</html>