using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;

namespace DTable_App.DTable_Test
{
	/// <summary>
	/// ae015 的摘要说明。
	/// </summary>
	public class ae015 : System.Web.UI.Page
	{
		protected dtable.dTable DTable1;
	
		private void Page_Load(object sender, System.EventArgs e)
		{
			// 在此处放置用户代码以初始化页面
			DTable1.ConnStr =sharecode.DataconnectString;
			DTable1.TableName="个人资料";
			DTable1.List_SQL="select id,姓名,出生日期,当前月薪,是否党员 from 个人资料 order by id desc";
		//	DTable1.List_FieldFormat="1||text|200|2||^2||hiddenfield||||^3||shortdate||||^4||money|￥|||^5||boolean|是|否||^7||imagefield|近照|||^8||urlimage|default_fd/mini|default_fd|target|";
			


			DTable1.Edit_FieldList="id,姓名,密码,简介,出生日期,是否党员,手机,电子邮件,当前月薪,近照,证书图片,最后一次登录,登录次数,上级,个人喜好";

			DTable1.Edit_FieldFormat="1||userid|姓名|2|12||^2||password|md5|6|15||^3||htmledit|htmlimg/||||^5||boolean|是|否|||^7||email|||||^8||selectvalue|@@1000.0000@@1500.0000@@3000.0000@@5000.0000@@8000.0000||||^10||urlfile|default_fd|true|default_fd/mini/|上传|^11||defaultvalue|" + Page.Request.UserHostAddress + "|true|||^12||defaultvalue|0|true|||^13||dbselectvalue|select id,姓名 from 个人资料 order by id desc|select id,姓名 from 个人资料 where 姓名 like '%@@%' order by id desc|||^14||checkboxlist|select 技术,技术,类别 from 技术 order by 类别||||";

			DTable1.Edit_EnableAdd=true;
			DTable1.Edit_EnableEdt=true; 
			DTable1.ShowBtn_All =true;

				DTable1.Edit_Templ="|ae015.htm";

		//	DTable1.Edit_Templ="<link href='style.css' rel='stylesheet' type='text/css'><!-- ImageReady Slices (layout.psd) --><table border='0' align='center' cellpadding='1' cellspacing='0' bgcolor='#CCCCCC'> <tr> <td><TABLE WIDTH=760 BORDER=0 align='center' CELLPADDING=0 CELLSPACING=0 height='451'>	<TR> <TD COLSPAN=7 height='91'> 	<IMG SRC='template/layout_01.gif' WIDTH=286 HEIGHT=91 ALT=''></TD> <TD COLSPAN=6 height='91'> 	<IMG SRC='template/layout_02.gif' WIDTH=464 HEIGHT=91 ALT=''></TD> <TD ROWSPAN=4 height='145'> 	<IMG SRC='template/layout_03.gif' WIDTH=10 HEIGHT=145 ALT=''></TD> <TD height='91'> 	<IMG SRC='template/spacer.gif' WIDTH=1 HEIGHT=91 ALT=''></TD>	</TR>	<TR> <TD COLSPAN=13 height='8'> 	<IMG SRC='template/layout_04.gif' WIDTH=750 HEIGHT=8 ALT=''></TD> <TD height='8'> 	<IMG SRC='template/spacer.gif' WIDTH=1 HEIGHT=8 ALT=''></TD>	</TR>	<TR> <TD COLSPAN=2 height='38'> 	";


//DTable1.Edit_Templ+="<IMG SRC='template/layout_05.gif' WIDTH=138 HEIGHT=38 ALT=''></TD> <TD COLSPAN=4 height='38'> 	<IMG SRC='template/layout_06.gif' WIDTH=140 HEIGHT=38 ALT=''></TD> <TD COLSPAN=3 height='38'> 	<IMG SRC='template/layout_07.gif' WIDTH=141 HEIGHT=38 ALT=''></TD> <TD height='38'> 	<IMG SRC='template/layout_08.gif' WIDTH=140 HEIGHT=38 ALT=''></TD> <TD height='38'> 	<IMG SRC='template/layout_09.gif' WIDTH=141 HEIGHT=38 ALT=''></TD> <TD COLSPAN=2 ROWSPAN=2 height='46'> 	<IMG SRC='template/layout_10.gif' WIDTH=50 HEIGHT=46 ALT=''></TD> <TD height='38'> 	<IMG SRC='template/spacer.gif' WIDTH=1 HEIGHT=38 ALT=''></TD>	</TR>	<TR> <TD COLSPAN=11 height='8'> 	<IMG SRC='template/layout_11.gif' WIDTH=700 HEIGHT=8 ALT=''></TD> <TD height='8'>";

//DTable1.Edit_Templ+="<IMG SRC='template/spacer.gif' WIDTH=1 HEIGHT=8 ALT=''></TD>	</TR>	<TR> <TD COLSPAN=4 ROWSPAN=2 height='46'> 	<IMG SRC='template/layout_12.gif' WIDTH=193 HEIGHT=46 ALT=''></TD> <TD height='16'> 	<IMG SRC='template/layout_13.gif' WIDTH=16 HEIGHT=16 ALT=''></TD> <TD COLSPAN=7 height='16'> 	<IMG SRC='template/layout_14.gif' WIDTH=530 HEIGHT=16 ALT=''></TD> <TD COLSPAN=2 height='16'> 	<IMG SRC='template/layout_15.gif' WIDTH=21 HEIGHT=16 ALT=''></TD> <TD height='16'> 	<IMG SRC='template/spacer.gif' WIDTH=1 HEIGHT=16 ALT=''></TD>	</TR>	<TR> <TD ROWSPAN=2 height='58'> 	<IMG SRC='template/layout_16.gif' WIDTH=16 HEIGHT=58 ALT=''></TD> <TD COLSPAN=7 ROWSPAN=2 valign='top' background='template/layout_17.gif' height='58'> <b>Search the site</b> <br> <input type='text' name='T1' size='20' style='border-style: solid; border-width: 1'> <input type='submit' value='Search' name='B1' style='border: 1px solid #808080'><br> Key in the keywords above to perform a search through our site. </TD> <TD COLSPAN=2 ROWSPAN=2 height='58'> 	<IMG SRC='template/layout_18.gif' WIDTH=21 HEIGHT=58 ALT=''>";

//DTable1.Edit_Templ+="</TD> <TD height='30'> 	<IMG SRC='template/spacer.gif' WIDTH=1 HEIGHT=30 ALT=''></TD>	</TR>	<TR> <TD ROWSPAN=8 background='template/layout_19.gif' height='1'> 	<IMG SRC='template/layout_19.gif' WIDTH=25 HEIGHT=138 ALT=''></TD> <TD COLSPAN=2 height='28'> 	<IMG SRC='template/layout_20.gif' WIDTH=144 HEIGHT=28 ALT=''></TD> <TD ROWSPAN=8 background='template/layout_21.gif' height='1'> 	<IMG SRC='template/layout_21.gif' WIDTH=24 HEIGHT=138 ALT=''></TD> <TD height='28'> 	<IMG SRC='template/spacer.gif' WIDTH=1 HEIGHT=28 ALT=''></TD>	</TR>	<TR> <TD COLSPAN=2 ROWSPAN=2 height='23'> 	<IMG SRC='template/layout_22.gif' WIDTH=144 HEIGHT=23 ALT=''></TD> <TD height='15'> 	<IMG SRC='template/layout_23.gif' WIDTH=16 HEIGHT=15 ALT=''></TD> <TD COLSPAN=7 height='15'> 	<IMG SRC='template/layout_24.gif' WIDTH=530 HEIGHT=15 ALT=''></TD> <TD COLSPAN=2 height='15'> 	<IMG SRC='template/layout_25.gif' WIDTH=21 HEIGHT=15 ALT=''></TD> <TD height='15'> 	<IMG SRC='template/spacer.gif' WIDTH=1 HEIGHT=15 ALT=''></TD>	</TR>	<TR> <TD COLSPAN=10 height='8'> ";

//DTable1.Edit_Templ+="<IMG SRC='template/layout_26.gif' WIDTH=567 HEIGHT=8 ALT=''></TD> <TD height='8'> 	<IMG SRC='template/spacer.gif' WIDTH=1 HEIGHT=8 ALT=''></TD>	</TR>	<TR> <TD COLSPAN=2 height='23'> 	<IMG SRC='template/layout_27.gif' WIDTH=144 HEIGHT=23 ALT=''></TD> <TD ROWSPAN=2 height='38'> 	<IMG SRC='template/layout_28.gif' WIDTH=16 HEIGHT=38 ALT=''></TD> <TD COLSPAN=3 ROWSPAN=2 height='38'> 	<IMG SRC='template/layout_29.gif' WIDTH=89 HEIGHT=38 ALT=''></TD> <TD COLSPAN=4 ROWSPAN=2 height='38'> 	<IMG SRC='template/layout_30.gif' WIDTH=441 HEIGHT=38 ALT=''></TD> <TD COLSPAN=2 ROWSPAN=2 height='38'> 	<IMG SRC='template/layout_31.gif' WIDTH=21 HEIGHT=38 ALT=''></TD> <TD height='23'> 	<IMG SRC='template/spacer.gif' WIDTH=1 HEIGHT=23 ALT=''></TD>";

//DTable1.Edit_Templ+="</TR>	<TR> <TD COLSPAN=2 ROWSPAN=2 valign='top' height='25' background='template/layout_37.gif'> 	<IMG SRC='template/layout_32.gif' WIDTH=144 HEIGHT=25 ALT=''></TD> <TD height='15'> 	<IMG SRC='template/spacer.gif' WIDTH=1 HEIGHT=15 ALT=''></TD>	</TR>	<TR> <TD ROWSPAN=5 background='template/layout_33.gif' height='108'> 	<IMG SRC='template/layout_33.gif' WIDTH=16 HEIGHT=158 ALT=''></TD> <TD COLSPAN=7 ROWSPAN=5 valign='top' bgcolor='#FFFFFF' height='108'> @@<form>@@<table width='530' height='238'  border='1'>    <tr valign='top'><td width='80' height='18'>@@fieldname1@@</td>  <td width='162'>@@fieldvalue1@@</td><td width='80' bgcolor='#EEF7FF'>@@fieldname2@@</td><td width='160'>@@fieldvalue2@@</td></tr><tr valign='top' bgcolor='#EEF7FF'>  <td height='18' colspan='4'>@@fieldname3@@  </td></tr><tr valign='top'>  <td height='18' colspan='4'>@@fieldvalue3@@</td></tr><tr valign='top'><td width='80' height='18' bgcolor='#EEF7FF'>@@fieldname4@@</td><td bgcolor='#FFF2DF'>@@fieldvalue4@@</td><td width='80' bgcolor='#EEF7FF'>@@fieldname5@@</td>    <td>@@fieldvalue5@@</td>  </tr>  <tr valign='top'>    <td width='80' rowspan='9' bgcolor='#EEF7FF'>@@fieldname14@@</td>    <td rowspan='9'>@@fieldvalue14@@</td>    <td width='80' height='18' bgcolor='#EEF7FF'>@@fieldname7@@</td>    <td bgcolor='#FFF2DF'>@@fieldvalue7@@</td>  </tr>  <tr valign='top'>";

//DTable1.Edit_Templ+="<td width='80' height='18' bgcolor='#EEF7FF'>@@fieldname9@@</td>    <td>@@fieldvalue9@@</td>  </tr>  <tr valign='top'>    <td width='80' height='18' bgcolor='#EEF7FF'>@@fieldname11@@</td>    <td bgcolor='#FFF2DF'>@@fieldvalue11@@</td>  </tr>  <tr valign='top'>    <td width='80' height='18' bgcolor='#EEF7FF'>@@fieldname13@@</td>    <td>@@fieldvalue13@@</td>  </tr>  <tr valign='top'>    <td width='80' height='18' bgcolor='#EEF7FF'>@@fieldname6@@<br>  </td>    <td bgcolor='#FFF2DF'>@@fieldvalue6@@</td></tr><tr valign='top'>  <td width='80' height='18' bgcolor='#EEF7FF'>@@fieldname8@@</td>  <td>@@fieldvalue8@@</td></tr><tr valign='top'>  <td width='80' height='18' bgcolor='#EEF7FF'>@@fieldname10@@</td>  <td bgcolor='#FFF2DF'>@@fieldvalue10@@</td></tr><tr valign='top'>  <td width='80' height='18' bgcolor='#EEF7FF'>@@fieldname12@@</td>  <td>@@fieldvalue12@@</td></tr><tr valign='top'>  <td height='18' colspan='2' bgcolor='#FFFFD2'>@@submit@@ @@reset@@</td></tr></table>    @@</form>@@</TD>";

//DTable1.Edit_Templ+="<TD COLSPAN=2 ROWSPAN=5 background='template/layout_35.gif' height='108'> 	<IMG SRC='template/layout_35.gif' WIDTH=21 HEIGHT=158 ALT=''></TD> <TD height='10'> 	<IMG SRC='template/spacer.gif' WIDTH=1 HEIGHT=10 ALT=''></TD>	</TR>	<TR> <TD COLSPAN=2 valign='top' height='1' background='template/layout_37.gif' rowspan='2'> 	<IMG SRC='template/layout_36.gif' WIDTH=144 HEIGHT=29 ALT=''></TD> <TD height='56'> 	<IMG SRC='template/spacer.gif' WIDTH=1 HEIGHT=29 ALT=''></TD>	</TR>	<TR> <TD height='1'> 	<IMG SRC='template/spacer.gif' WIDTH=1 HEIGHT=10 ALT=''></TD>	</TR>	<TR> <TD background='template/layout_38.gif' height='184'> 	<IMG SRC='template/layout_38.gif' WIDTH=25 HEIGHT=97 ALT=''></TD> <TD COLSPAN=2 valign='top' bgcolor='#FFFFFF' height='184'> <p><b> 26/11/200<br> </b>You can often strike a good balance between the quality of the image and the file size by compressing a JPEG file. </p> </TD> <TD background='template/layout_40.gif' height='184'> 	<IMG SRC='template/layout_40.gif' WIDTH=24 HEIGHT=97 ALT=''></TD> <TD height='184'> 	<IMG SRC='template/spacer.gif' WIDTH=1 HEIGHT=97 ALT=''></TD>	</TR>	<TR> <TD COLSPAN=4 background='template/layout_41.gif' height='22'> 	<IMG SRC='template/layout_41.gif' WIDTH=193 HEIGHT=12 ALT=''></TD> <TD height='22'> 	<IMG SRC='template/spacer.gif' WIDTH=1 HEIGHT=12 ALT=''></TD>	</TR>	<TR> <TD COLSPAN=4 height='13'> 	<IMG SRC='template/layout_42.gif' WIDTH=193 HEIGHT=13 ALT=''></TD> <TD height='13'> 	<IMG SRC='template/layout_43.gif' WIDTH=16 HEIGHT=13 ALT=''></TD> <TD COLSPAN=7 height='13'> 	<IMG SRC='template/layout_44.gif' WIDTH=530 HEIGHT=13 ALT=''></TD>";

//DTable1.Edit_Templ+="<TD COLSPAN=2 height='13'> 	<IMG SRC='template/layout_45.gif' WIDTH=21 HEIGHT=13 ALT=''></TD> <TD height='13'> 	<IMG SRC='template/spacer.gif' WIDTH=1 HEIGHT=13 ALT=''></TD>	</TR>	<TR> <TD COLSPAN=12 height='13'> 	<IMG SRC='template/layout_46.gif' WIDTH=739 HEIGHT=13 ALT=''></TD> <TD COLSPAN=2 ROWSPAN=3 height='49'> 	<IMG SRC='template/layout_47.gif' WIDTH=21 HEIGHT=49 ALT=''></TD> <TD height='13'> 	<IMG SRC='template/spacer.gif' WIDTH=1 HEIGHT=13 ALT=''></TD>	</TR>	<TR> <TD ROWSPAN=2 height='36'> 	<IMG SRC='template/layout_48.gif' WIDTH=25 HEIGHT=36 ALT=''></TD> <TD COLSPAN=11 background='template/layout_49.gif' height='23'><b> <a href='index.htm'><font size='1'>HOME</font></a><font size='1'>&nbsp; |&nbsp; </font><a href='index.htm'><font size='1'>CONTACT&nbsp; US</font></a><font size='1'>&nbsp; |&nbsp; </font><a href='index.htm'><font size='1'>ABOUT US</font></a><font size='1'>&nbsp; |&nbsp; </font><a href='index.htm'><font size='1'>POLICY</font></a><font size='1'>&nbsp; |&nbsp; </font><a href='index.htm'><font size='1'>RESOURCE</font></a></b></TD> <TD height='23'>";
			
		//	DTable1.Edit_Templ+="<IMG SRC='template/spacer.gif' WIDTH=1 HEIGHT=23 ALT=''></TD>	</TR>	<TR> <TD COLSPAN=11 height='13'> 	<IMG SRC='template/layout_50.gif' WIDTH=714 HEIGHT=13 ALT=''></TD> <TD height='13'> 	<IMG SRC='template/spacer.gif' WIDTH=1 HEIGHT=13 ALT=''></TD>	</TR>	<TR> <TD height='1'> 	<IMG SRC='template/spacer.gif' WIDTH=25 HEIGHT=1 ALT=''></TD> <TD height='1'> 	<IMG SRC='template/spacer.gif' WIDTH=113 HEIGHT=1 ALT=''></TD> <TD height='1'> 	<IMG SRC='template/spacer.gif' WIDTH=31 HEIGHT=1 ALT=''></TD> <TD height='1'> 	<IMG SRC='template/spacer.gif' WIDTH=24 HEIGHT=1 ALT=''></TD> <TD height='1'> 	<IMG SRC='template/spacer.gif' WIDTH=16 HEIGHT=1 ALT=''></TD> <TD height='1'> 	<IMG SRC='template/spacer.gif' WIDTH=69 HEIGHT=1 ALT=''></TD> <TD height='1'> 	<IMG SRC='template/spacer.gif' WIDTH=8 HEIGHT=1 ALT=''></TD>";
			
		//	DTable1.Edit_Templ+="<TD height='1'> 	<IMG SRC='template/spacer.gif' WIDTH=12 HEIGHT=1 ALT=''></TD> <TD height='1'> 	<IMG SRC='template/spacer.gif' WIDTH=121 HEIGHT=1 ALT=''></TD> <TD height='1'> 	<IMG SRC='template/spacer.gif' WIDTH=140 HEIGHT=1 ALT=''></TD> <TD height='1'> 	<IMG SRC='template/spacer.gif' WIDTH=141 HEIGHT=1 ALT=''></TD> <TD height='1'> 	<IMG SRC='template/spacer.gif' WIDTH=39 HEIGHT=1 ALT=''></TD> <TD height='1'> 	<IMG SRC='template/spacer.gif' WIDTH=11 HEIGHT=1 ALT=''></TD> <TD height='1'> 	<IMG SRC='template/spacer.gif' WIDTH=10 HEIGHT=1 ALT=''></TD> <TD height='1'></TD>	</TR></TABLE> </td> </tr></table>";

			//DTable1.Show_Templet="<table width='100%' border='1' cellspacing='0' cellpadding='0'> <tr align='center'> <td colspan='6'>数据管理</td> </tr> <tr> <td width='16%' bgcolor='#CCCCCC'>@@fieldname1@@</td> <td width='18%'>@@fieldvalue1@@</td> <td width='31%' bgcolor='#00CC99'>@@fieldname4@@</td> <td width='3%'>@@fieldvalue4@@</td> <td width='29%' bgcolor='#FFCC00'>@@fieldname7@@</td> <td width='3%'>@@fieldvalue7@@</td> </tr> <tr> <td>@@fieldname2@@</td> <td>@@fieldvalue2@@</td> <td>@@fieldname5@@</td> <td>@@fieldvalue5@@</td> <td>@@fieldname8@@</td> <td>@@fieldvalue8@@</td> </tr> <tr> <td bgcolor='#999966'>@@fieldname3@@</td> <td>@@fieldvalue3@@</td> <td bgcolor='#00CCFF'>@@fieldname6@@</td> <td>@@fieldvalue6@@</td> <td bordercolor='#FF0000' bgcolor='#99CCCC'>@@fieldname9@@</td> <td>@@fieldvalue9@@</td> </tr> <tr> <td>@@fieldname10@@</td> <td>@@fieldvalue10@@</td> <td>@@fieldname11@@</td> <td>@@fieldvalue11@@</td> <td>@@fieldname12@@</td> <td>@@fieldvalue12@@</td> </tr> <tr> <td>@@fieldname13@@</td> <td>@@fieldvalue13@@</td> <td>@@submit@@</td> <td>@@reset@@</td> <td>@@fieldname14@@</td> <td>@@fieldvalue14@@</td> </tr></table>";

		}

		#region Web 窗体设计器生成的代码
		override protected void OnInit(EventArgs e)
		{
			//
			// CODEGEN: 该调用是 ASP.NET Web 窗体设计器所必需的。
			//
			InitializeComponent();
			base.OnInit(e);
		}
		
		/// <summary>
		/// 设计器支持所需的方法 - 不要使用代码编辑器修改
		/// 此方法的内容。
		/// </summary>
		private void InitializeComponent()
		{    
			this.Load += new System.EventHandler(this.Page_Load);

		}
		#endregion
	}
}
