Ticket #908: merge_cells.2.html

File merge_cells.2.html, 1.4 KB (added by ray, 13 years ago)

popups/merge_cells.html

Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2<html style="width: 400px; height: 150px;">
3
4<head>
5  <title>Merge Cells</title>
6
7<link rel="stylesheet" type="text/css" href="../../../popups/popup.css" />
8<script type="text/javascript" src="../../../popups/popup.js"></script>
9
10<script type="text/javascript">
11function Init() {
12  window.resizeTo(450,170);
13        __dlg_init();
14        document.getElementById("num").focus();
15}
16
17function onOK() {
18  var param = new Object();
19  param["num"] = document.getElementById("num").value;
20  param["dir"] = document.getElementById("direction").value;
21  __dlg_close(param);
22  return false;
23}
24
25function onCancel() {
26  __dlg_close(null);
27  return false;
28}
29</script>
30
31</head>
32
33<body onload="Init()">
34<form action="" method="get">
35<table width="100%">
36<tr>
37  <td colspan="2">
38        <div class="title">Merge Cells</div>
39  </td>
40</tr>
41<tr>
42  <td>Merge current cell with <input type="text" id="num" value="2" size="18" title="Number" /> cells
43  <select id="direction">
44  <option value="right">to the right</option>
45  <option value="down">below</option>
46  </select>
47 
48  </td>
49</tr>
50
51<tr>
52  <td colspan="2" align="right">
53    <hr />
54    <button type="button" name="ok" onclick="return onOK();">OK</button>
55    <button type="button" name="cancel" onclick="return onCancel();">Cancel</button>
56  </td>
57</tr>
58</table>
59</form>
60
61</body>
62</html>