ftb.inserttable.aspx
资源名称:OA_at.rar [点击查看]
上传用户:tree100901
上传日期:2007-06-03
资源大小:2295k
文件大小:4k
源码类别:
OA系统
开发平台:
C#
- <%@ Page language="c#" %>
- <!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN" >
- <HTML>
- <HEAD>
- <title>安泰自动办公系统</title>
- <script language="C#" runat="server">
- private void Page_Load(object sender, System.EventArgs e) {
- }
- </script>
- <META HTTP-EQUIV="Expires" CONTENT="0">
- <style> body { margin: 0px 0px 0px 0px; padding: 0px 0px 0px 0px; background: #ffffff; width: 100%; overflow:hidden; border: 0; }
- body,tr,td { color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; }
- </style>
- <script language="javascript">
- function returnTable() {
- var arr = new Array();
- arr["width"] = document.getElementById('Width').value;
- arr["height"] = document.getElementById('Height').value;
- arr["cellpadding"] = document.getElementById('Cellpadding').value;
- arr["cellspacing"] = document.getElementById('Cellspacing').value;
- arr["border"] = document.getElementById('Border').value;
- arr["cols"] = document.getElementById('Columns').value;
- arr["rows"] = document.getElementById('Rows').value;
- arr["valigncells"] = document.getElementById('VAlignCells')[document.getElementById('VAlignCells').selectedIndex].value;
- arr["haligncells"] = document.getElementById('HAlignCells')[document.getElementById('HAlignCells').selectedIndex].value;
- arr["percentcols"] = document.getElementById('PercentCols').checked;
- window.returnValue = arr;
- window.close();
- }
- </script>
- </HEAD>
- <body>
- <table width="100%" cellpadding="1" cellspacing="3" border="0">
- <tr>
- <td valign="top">
- <fieldset>
- <legend>表</legend>
- <table width="100%" height="100%" cellpadding="0" cellspacing="0" border="0">
- <tr>
- <td>宽度</td>
- <td><input type="text" id="Width" name="Width" value="100" style="WIDTH:50px"></td>
- </tr>
- <tr>
- <td>高度</td>
- <td><input type="text" id="Height" name="Height" value="100" style="WIDTH:50px"></td>
- </tr>
- <tr>
- <td>边缘填充</td>
- <td><input type="text" id="Cellpadding" name="Cellpadding" style="WIDTH:50px" value="0"></td>
- </tr>
- <tr>
- <td>边距</td>
- <td><input type="text" id="Cellspacing" name="Cellspacing" style="WIDTH:50px" value="0"></td>
- </tr>
- <tr>
- <td>边框</td>
- <td><input type="text" id="Border" name="Border" style="WIDTH:50px" value="1"></td>
- </tr>
- </table>
- </fieldset>
- </td>
- <td> </td>
- <td valign="top">
- <fieldset>
- <legend>单元格</legend>
- <table width="100%" height="100%" cellpadding="0" cellspacing="0" border="0">
- <tr>
- <td>列数</td>
- <td><input type="text" id="Columns" name="Columns" style="WIDTH:50px" value="2"></td>
- </tr>
- <tr>
- <td>行数</td>
- <td><input type="text" id="Rows" name="Rows" style="WIDTH:50px" value="2"></td>
- </tr>
- <tr>
- <td>
- 垂直对齐方式</td>
- <td><select id="VAlignCells" name="VAlignCells" style="WIDTH:50px">
- <option selected></option>
- <option value="top">顶端</option>
- <option value="center">居中</option>
- <option value="bottom">底部</option>
- </select>
- </td>
- </tr>
- <tr>
- <td>
- 水平对齐方式</td>
- <td><select id="HAlignCells" name="HAlignCells" style="WIDTH:50px">
- <option selected></option>
- <option value="left">居左</option>
- <option value="center">居中</option>
- <option value="right">居右</option>
- </select>
- </td>
- </tr>
- <tr>
- <td>
- 列按百分比</td>
- <td><input type="checkbox" id="PercentCols" name="PercentCols" value="1"></td>
- </tr>
- </table>
- </fieldset>
- </td>
- </tr>
- <tr>
- <td colspan="3" align="center">
- <input type="button" onclick="returnTable();return false;" value="插入表格">
- </td>
- </tr>
- </table>
- </body>
- </HTML>