FineUI v6.1.0
This commit is contained in:
parent
8713a2d422
commit
13def606be
@ -183,10 +183,12 @@
|
||||
<Content Include="test\checkboxlist_update2.aspx" />
|
||||
<Content Include="test\empty.aspx" />
|
||||
<Content Include="test\activex.aspx" />
|
||||
<Content Include="test\fileupload2.aspx" />
|
||||
<Content Include="test\form2.aspx" />
|
||||
<Content Include="test\grid_editor_cell2.aspx" />
|
||||
<Content Include="test\test2.aspx" />
|
||||
<Content Include="test\test.aspx" />
|
||||
<Content Include="test\tree2.aspx" />
|
||||
<Content Include="third-party\autocomplete\inline_window.aspx" />
|
||||
<Content Include="third-party\ckeditor\ckeditor_setvalue.aspx" />
|
||||
<Content Include="third-party\ckeditor\ckeditor.aspx" />
|
||||
@ -579,6 +581,9 @@
|
||||
<Compile Include="config\loading.aspx.designer.cs">
|
||||
<DependentUpon>loading.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="default.aspx.designer.cs">
|
||||
<DependentUpon>default.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="dropdownlist\dropdownlist_autopostback.aspx.cs">
|
||||
<DependentUpon>dropdownlist_autopostback.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
@ -1370,6 +1375,13 @@
|
||||
<Compile Include="test\activex.aspx.designer.cs">
|
||||
<DependentUpon>activex.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="test\fileupload2.aspx.cs">
|
||||
<DependentUpon>fileupload2.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="test\fileupload2.aspx.designer.cs">
|
||||
<DependentUpon>fileupload2.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="test\form2.aspx.cs">
|
||||
<DependentUpon>form2.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
@ -1398,6 +1410,13 @@
|
||||
<Compile Include="test\test.aspx.designer.cs">
|
||||
<DependentUpon>test.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="test\tree2.aspx.cs">
|
||||
<DependentUpon>tree2.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="test\tree2.aspx.designer.cs">
|
||||
<DependentUpon>tree2.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="third-party\autocomplete\inline_window.aspx.cs">
|
||||
<DependentUpon>inline_window.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
@ -2955,9 +2974,6 @@
|
||||
<DependentUpon>default.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="default.aspx.designer.cs">
|
||||
<DependentUpon>default.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="form\form_dynamic.aspx.cs">
|
||||
<DependentUpon>form_dynamic.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
|
@ -13,60 +13,103 @@
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<f:PageManager ID="PageManager1" AutoSizePanelID="RegionPanel1" runat="server"></f:PageManager>
|
||||
<f:RegionPanel ID="RegionPanel1" ShowBorder="false" runat="server">
|
||||
<Regions>
|
||||
<f:Region ID="Region1" ShowBorder="false" ShowHeader="false"
|
||||
Position="Top" Layout="Fit" runat="server">
|
||||
<Content>
|
||||
<div id="header">
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<a class="homepage" href="http://fineui.com/" title="官网首页">
|
||||
<img src="./res/icon/house.png" alt="Home" />
|
||||
</a>
|
||||
<a class="logo" href="./default.aspx" title="在线示例首页">FineUI(开源版)在线示例
|
||||
</a>
|
||||
</td>
|
||||
<td style="text-align: right;">
|
||||
<f:Button runat="server" CssClass="" Text="企业版示例(MVC)" IconAlign="Top" Icon="Lightning"
|
||||
EnablePostBack="false" OnClientClick="window.location.href='http://fineui.com/demo_mvc';">
|
||||
</f:Button>
|
||||
<f:Button runat="server" CssClass="" Text="专业版示例" IconAlign="Top" Icon="Star"
|
||||
EnablePostBack="false" OnClientClick="window.location.href='http://fineui.com/demo_pro';">
|
||||
</f:Button>
|
||||
<f:Button runat="server" CssClass="" Text="加载动画" IconAlign="Top" Icon="Hourglass"
|
||||
EnablePostBack="false">
|
||||
<Listeners>
|
||||
<f:Listener Event="click" Handler="onLoadingSelectClick" />
|
||||
</Listeners>
|
||||
</f:Button>
|
||||
<f:Button runat="server" CssClass="userpicaction" Text="三生石上" IconUrl="~/res/images/my_face_80.jpg" IconAlign="Left"
|
||||
EnablePostBack="false">
|
||||
<Menu runat="server">
|
||||
<f:MenuButton Text="个人信息" Icon="User" EnablePostBack="false" runat="server">
|
||||
<Listeners>
|
||||
<f:Listener Event="click" Handler="onUserProfileClick" />
|
||||
</Listeners>
|
||||
</f:MenuButton>
|
||||
<f:MenuSeparator runat="server"></f:MenuSeparator>
|
||||
<f:MenuButton Text="安全退出" Icon="ZoomOut" EnablePostBack="false" runat="server">
|
||||
<Listeners>
|
||||
<f:Listener Event="click" Handler="onSignOutClick" />
|
||||
</Listeners>
|
||||
</f:MenuButton>
|
||||
</Menu>
|
||||
</f:Button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</Content>
|
||||
</f:Region>
|
||||
<f:Region ID="leftPanel" RegionSplit="true" Width="220px" ShowHeader="true" ShowBorder="true" Title="全部示例"
|
||||
<f:Panel ID="RegionPanel1" Layout="Region" ShowBorder="false" runat="server">
|
||||
<Items>
|
||||
<f:ContentPanel ID="Region1" ShowBorder="false" ShowHeader="false"
|
||||
RegionPosition="Top" runat="server">
|
||||
<div id="header">
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<a class="homepage" href="http://fineui.com/" title="官网首页">
|
||||
<img src="./res/icon/house.png" alt="Home" />
|
||||
</a>
|
||||
<a class="logo" href="./default.aspx" title="在线示例首页">FineUI(开源版)在线示例
|
||||
</a>
|
||||
</td>
|
||||
<td style="text-align: right;">
|
||||
<f:Button runat="server" CssClass="" Text="企业版(MVC)" IconAlign="Top" Icon="Lightning"
|
||||
EnablePostBack="false" OnClientClick="window.location.href='http://fineui.com/demo_mvc';">
|
||||
</f:Button>
|
||||
<f:Button runat="server" CssClass="" Text="专业版(WebForms)" IconAlign="Top" Icon="Star"
|
||||
EnablePostBack="false" OnClientClick="window.location.href='http://fineui.com/demo_pro';">
|
||||
</f:Button>
|
||||
<f:Button runat="server" CssClass="" Text="加载动画" IconAlign="Top" Icon="Hourglass"
|
||||
EnablePostBack="false">
|
||||
<Listeners>
|
||||
<f:Listener Event="click" Handler="onLoadingSelectClick" />
|
||||
</Listeners>
|
||||
</f:Button>
|
||||
<f:Button runat="server" CssClass="userpicaction" Text="三生石上" IconUrl="~/res/images/my_face_80.jpg" IconAlign="Left"
|
||||
EnablePostBack="false">
|
||||
<Menu runat="server">
|
||||
<f:MenuCheckBox runat="server" ID="cbxShowOnlyNew" Text="仅显示最新示例">
|
||||
</f:MenuCheckBox>
|
||||
<f:MenuSeparator ID="MenuSeparator1" runat="server">
|
||||
</f:MenuSeparator>
|
||||
<f:MenuButton ID="MenuTheme" EnablePostBack="false" Text="主题" runat="server">
|
||||
<Menu ID="Menu4" runat="server">
|
||||
<f:MenuCheckBox Text="海卫一(Triton)" ID="MenuThemeTriton" Checked="true" GroupName="MenuTheme" runat="server">
|
||||
</f:MenuCheckBox>
|
||||
<f:MenuCheckBox Text="小清新(Crisp)" ID="MenuThemeCrisp" GroupName="MenuTheme" runat="server">
|
||||
</f:MenuCheckBox>
|
||||
<f:MenuCheckBox Text="海王星(Neptune)" ID="MenuThemeNeptune" GroupName="MenuTheme" runat="server">
|
||||
</f:MenuCheckBox>
|
||||
<f:MenuCheckBox Text="蓝色(Blue)" ID="MenuThemeBlue" GroupName="MenuTheme" runat="server">
|
||||
</f:MenuCheckBox>
|
||||
<f:MenuCheckBox Text="灰色(Gray)" ID="MenuThemeGray" GroupName="MenuTheme" runat="server">
|
||||
</f:MenuCheckBox>
|
||||
</Menu>
|
||||
</f:MenuButton>
|
||||
<f:MenuButton EnablePostBack="false" Text="菜单样式" ID="MenuStyle" runat="server">
|
||||
<Menu runat="server">
|
||||
<f:MenuCheckBox Text="树菜单" ID="MenuStyleTree" Checked="true" GroupName="MenuStyle" runat="server">
|
||||
</f:MenuCheckBox>
|
||||
<f:MenuCheckBox Text="手风琴+树菜单" ID="MenuStyleAccordion" GroupName="MenuStyle" runat="server">
|
||||
</f:MenuCheckBox>
|
||||
</Menu>
|
||||
</f:MenuButton>
|
||||
<f:MenuButton EnablePostBack="false" Text="语言" ID="MenuLang" runat="server">
|
||||
<Menu ID="Menu2" runat="server">
|
||||
<f:MenuCheckBox Text="简体中文" ID="MenuLangZHCN" Checked="true" GroupName="MenuLang" runat="server">
|
||||
</f:MenuCheckBox>
|
||||
<f:MenuCheckBox Text="繁體中文" ID="MenuLangZHTW" GroupName="MenuLang" runat="server">
|
||||
</f:MenuCheckBox>
|
||||
<f:MenuCheckBox Text="English" ID="MenuLangEN" GroupName="MenuLang" runat="server">
|
||||
</f:MenuCheckBox>
|
||||
</Menu>
|
||||
</f:MenuButton>
|
||||
<f:MenuSeparator ID="MenuSeparator2" runat="server">
|
||||
</f:MenuSeparator>
|
||||
<f:MenuButton EnablePostBack="false" Text="FineUI(开源版)示例" runat="server">
|
||||
<Menu runat="server">
|
||||
<f:MenuHyperLink runat="server" Text="v4.x 示例" NavigateUrl="http://fineui.com/demo_v4/" Target="_blank">
|
||||
</f:MenuHyperLink>
|
||||
<f:MenuHyperLink runat="server" Text="v3.x 示例" NavigateUrl="http://fineui.com/demo_v3/" Target="_blank">
|
||||
</f:MenuHyperLink>
|
||||
<f:MenuHyperLink runat="server" Text="v3.x 示例(英文)" NavigateUrl="http://fineui.com/demo_en/" Target="_blank">
|
||||
</f:MenuHyperLink>
|
||||
</Menu>
|
||||
</f:MenuButton>
|
||||
<f:MenuSeparator runat="server">
|
||||
</f:MenuSeparator>
|
||||
<f:MenuHyperLink runat="server" Text="FineUI(专业版)示例" NavigateUrl="http://fineui.com/demo_pro/" Target="_blank">
|
||||
</f:MenuHyperLink>
|
||||
<f:MenuHyperLink runat="server" Text="FineUI(MVC版)示例" NavigateUrl="http://fineui.com/demo_mvc/" Target="_blank">
|
||||
</f:MenuHyperLink>
|
||||
<f:MenuHyperLink runat="server" Text="FineUI(JS版)示例" NavigateUrl="http://fineui.com/demo_js/" Target="_blank">
|
||||
</f:MenuHyperLink>
|
||||
</Menu>
|
||||
</f:Button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</f:ContentPanel>
|
||||
<f:Panel ID="leftPanel" RegionSplit="true" Width="220px" ShowHeader="true" ShowBorder="true" Title="全部示例"
|
||||
EnableCollapse="true" Layout="Fit" Collapsed="false" RegionPosition="Left" runat="server">
|
||||
</f:Region>
|
||||
<f:Region ID="mainRegion" ShowHeader="false" Layout="Fit" ShowBorder="true" Position="Center"
|
||||
</f:Panel>
|
||||
<f:Panel ID="mainRegion" ShowHeader="false" Layout="Fit" ShowBorder="true" RegionPosition="Center"
|
||||
runat="server">
|
||||
<Items>
|
||||
<f:TabStrip ID="mainTabStrip" EnableTabCloseMenu="true" ShowBorder="false" runat="server">
|
||||
@ -77,7 +120,7 @@
|
||||
<Items>
|
||||
<f:ToolbarFill ID="ToolbarFill2" runat="server">
|
||||
</f:ToolbarFill>
|
||||
<f:Button ID="btnGotoOpenSourceSite" Icon="DiskDownload" Text="下载全部源码" OnClientClick="window.open('http://fineui.codeplex.com/', '_blank');"
|
||||
<f:Button ID="btnGotoOpenSourceSite" Icon="DiskDownload" Text="下载全部源码" OnClientClick="window.open('https://gitee.com/sanshi/FineUI', '_blank');"
|
||||
EnablePostBack="false" runat="server">
|
||||
</f:Button>
|
||||
<f:ToolbarSeparator ID="ToolbarSeparator2" runat="server">
|
||||
@ -100,8 +143,8 @@
|
||||
|
||||
<br />
|
||||
<h2>支持的浏览器</h2>
|
||||
Chrome、Firefox、Safari、IE 8.0+
|
||||
|
||||
Chrome、Firefox、Safari、IE 8.0+<sup>*</sup>
|
||||
|
||||
<br />
|
||||
<h2>授权协议</h2>
|
||||
Apache License v2.0(ExtJS 库在 <a target="_blank" href="http://www.sencha.com/license">GPL v3</a> 协议下发布)
|
||||
@ -116,42 +159,48 @@
|
||||
<br />
|
||||
文档:<a target="_blank" href="http://fineui.com/doc/">http://fineui.com/doc/</a>
|
||||
<br />
|
||||
下载:<a target="_blank" href="http://fineui.codeplex.com/">http://fineui.codeplex.com/</a>
|
||||
<br />
|
||||
下载:<a target="_blank" href="https://gitee.com/sanshi/FineUI">https://gitee.com/sanshi/FineUI</a>
|
||||
<br />
|
||||
<br />
|
||||
注:FineUI 不再内置 ExtJS 库,请手工添加 ExtJS 库:<a target="_blank" href="http://fineui.com/bbs/forum.php?mod=viewthread&tid=3218">http://fineui.com/bbs/forum.php?mod=viewthread&tid=3218</a>
|
||||
|
||||
|
||||
<div style="position: fixed; bottom: 30px; right: 10px; text-align: center; border: solid 1px #ddd; padding: 10px; background-color: #efefef;">
|
||||
<div style="margin-bottom: 5px;">
|
||||
扫描二维码,关注 FineUI 微信公众号
|
||||
<br />
|
||||
<br />
|
||||
<div style="font-size: 11px;">
|
||||
* 推荐使用 Chrome、Firefox、Edge、IE11 浏览器,以获取最好的性能。
|
||||
<div style="margin: 10px 8px; opacity: 0.6;">
|
||||
IE8.0 浏览器有限支持,存在如下已知问题:
|
||||
<ul style="margin-top: 2px; padding-left: 20px;">
|
||||
<li>相比其他现代浏览器,性能最差</li>
|
||||
<li>不支持圆角,以及其他一些 CSS3 特性</li>
|
||||
<li>选项卡控件不支持左侧和右侧标题栏</li>
|
||||
</ul>
|
||||
</div>
|
||||
<img src="http://fineui.com/images/weixin_fineui.jpg" style="width: 150px;" alert="关注 FineUI 微信公众号">
|
||||
</div>
|
||||
|
||||
</f:ContentPanel>
|
||||
</Items>
|
||||
</f:Tab>
|
||||
</Tabs>
|
||||
</f:TabStrip>
|
||||
</Items>
|
||||
</f:Region>
|
||||
<f:Region ID="bottomPanel" RegionPosition="Bottom" ShowBorder="false" ShowHeader="false" EnableCollapse="false" runat="server" Layout="Fit">
|
||||
</f:Panel>
|
||||
<f:Panel ID="bottomPanel" RegionPosition="Bottom" ShowBorder="false" ShowHeader="false"
|
||||
EnableCollapse="false" runat="server" Layout="Fit">
|
||||
<Items>
|
||||
<f:ContentPanel runat="server" ShowBorder="false" ShowHeader="false">
|
||||
<table class="bottomtable">
|
||||
<tr>
|
||||
<td style="width: 300px;"> 版本:<a target="_blank" href="http://fineui.com/version">v<asp:Literal runat="server" ID="litVersion"></asp:Literal></a>
|
||||
<a target="_blank" href="http://wp.qq.com/wpa/qunwpa?idkey=5a98eb42b742a1edaf22826648d5f61bc16ed08e0253976bc8d30f97508c09c7">QQ公开群</a></td>
|
||||
<td style="text-align: center;">Copyright © 2008-2016 合肥三生石上软件有限公司</td>
|
||||
<td style="text-align: center;">Copyright © 2008-2017 合肥三生石上软件有限公司</td>
|
||||
<td style="width: 300px; text-align: right;">在线人数:<asp:Literal runat="server" ID="litOnlineUserCount"></asp:Literal> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</f:ContentPanel>
|
||||
</Items>
|
||||
</f:Region>
|
||||
</Regions>
|
||||
</f:RegionPanel>
|
||||
</f:Panel>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:Window ID="windowSourceCode" Icon="PageWhiteCode" Title="源代码" Hidden="true" EnableIFrame="true"
|
||||
runat="server" IsModal="true" Width="950px" Height="550px" EnableClose="true"
|
||||
EnableMaximize="true" EnableResize="true">
|
||||
@ -160,79 +209,14 @@
|
||||
runat="server" IsModal="true" Width="1000px" Height="625px" EnableClose="true"
|
||||
EnableMaximize="true" EnableResize="true">
|
||||
</f:Window>
|
||||
<f:Menu ID="menuSettings" runat="server">
|
||||
<f:MenuButton ID="btnExpandAll" IconUrl="~/res/images/expand-all.gif" Text="展开菜单" EnablePostBack="false"
|
||||
runat="server">
|
||||
</f:MenuButton>
|
||||
<f:MenuButton ID="btnCollapseAll" IconUrl="~/res/images/collapse-all.gif" Text="折叠菜单"
|
||||
EnablePostBack="false" runat="server">
|
||||
</f:MenuButton>
|
||||
<f:MenuSeparator ID="MenuSeparator4" runat="server">
|
||||
</f:MenuSeparator>
|
||||
<f:MenuCheckBox runat="server" ID="cbxShowOnlyNew" Text="仅显示最新示例">
|
||||
</f:MenuCheckBox>
|
||||
<f:MenuSeparator ID="MenuSeparator1" runat="server">
|
||||
</f:MenuSeparator>
|
||||
<f:MenuButton ID="MenuTheme" EnablePostBack="false" Text="主题" runat="server">
|
||||
<Menu ID="Menu4" runat="server">
|
||||
<f:MenuCheckBox Text="海卫一(Triton)" ID="MenuThemeTriton" Checked="true" GroupName="MenuTheme" runat="server">
|
||||
</f:MenuCheckBox>
|
||||
<f:MenuCheckBox Text="小清新(Crisp)" ID="MenuThemeCrisp" GroupName="MenuTheme" runat="server">
|
||||
</f:MenuCheckBox>
|
||||
<f:MenuCheckBox Text="海王星(Neptune)" ID="MenuThemeNeptune" GroupName="MenuTheme" runat="server">
|
||||
</f:MenuCheckBox>
|
||||
<f:MenuCheckBox Text="蓝色(Blue)" ID="MenuThemeBlue" GroupName="MenuTheme" runat="server">
|
||||
</f:MenuCheckBox>
|
||||
<f:MenuCheckBox Text="灰色(Gray)" ID="MenuThemeGray" GroupName="MenuTheme" runat="server">
|
||||
</f:MenuCheckBox>
|
||||
</Menu>
|
||||
</f:MenuButton>
|
||||
<f:MenuButton EnablePostBack="false" Text="菜单样式" ID="MenuStyle" runat="server">
|
||||
<Menu runat="server">
|
||||
<f:MenuCheckBox Text="树菜单" ID="MenuStyleTree" Checked="true" GroupName="MenuStyle" runat="server">
|
||||
</f:MenuCheckBox>
|
||||
<f:MenuCheckBox Text="手风琴+树菜单" ID="MenuStyleAccordion" GroupName="MenuStyle" runat="server">
|
||||
</f:MenuCheckBox>
|
||||
</Menu>
|
||||
</f:MenuButton>
|
||||
<f:MenuButton EnablePostBack="false" Text="语言" ID="MenuLang" runat="server">
|
||||
<Menu ID="Menu2" runat="server">
|
||||
<f:MenuCheckBox Text="简体中文" ID="MenuLangZHCN" Checked="true" GroupName="MenuLang" runat="server">
|
||||
</f:MenuCheckBox>
|
||||
<f:MenuCheckBox Text="繁體中文" ID="MenuLangZHTW" GroupName="MenuLang" runat="server">
|
||||
</f:MenuCheckBox>
|
||||
<f:MenuCheckBox Text="English" ID="MenuLangEN" GroupName="MenuLang" runat="server">
|
||||
</f:MenuCheckBox>
|
||||
</Menu>
|
||||
</f:MenuButton>
|
||||
<f:MenuSeparator ID="MenuSeparator2" runat="server">
|
||||
</f:MenuSeparator>
|
||||
<f:MenuButton Text="开源版示例(WebForms)" runat="server">
|
||||
<Menu runat="server">
|
||||
<f:MenuHyperLink runat="server" Text="v4.x 示例" NavigateUrl="http://fineui.com/demo_v4/" Target="_blank">
|
||||
</f:MenuHyperLink>
|
||||
<f:MenuHyperLink runat="server" Text="v3.x 示例" NavigateUrl="http://fineui.com/demo_v3/" Target="_blank">
|
||||
</f:MenuHyperLink>
|
||||
<f:MenuHyperLink runat="server" Text="v3.x 示例(英文)" NavigateUrl="http://fineui.com/demo_en/" Target="_blank">
|
||||
</f:MenuHyperLink>
|
||||
</Menu>
|
||||
</f:MenuButton>
|
||||
<f:MenuHyperLink runat="server" Text="专业版示例(WebForms)" NavigateUrl="http://fineui.com/demo_pro/" Target="_blank">
|
||||
</f:MenuHyperLink>
|
||||
<f:MenuHyperLink runat="server" Text="企业版示例(MVC)" NavigateUrl="http://fineui.com/demo_mvc/" Target="_blank">
|
||||
</f:MenuHyperLink>
|
||||
</f:Menu>
|
||||
<asp:XmlDataSource ID="XmlDataSource1" runat="server" EnableCaching="false" DataFile="~/common/menu.xml"></asp:XmlDataSource>
|
||||
</form>
|
||||
<script src="./res/js/jquery.min.js"></script>
|
||||
<script>
|
||||
|
||||
var btnExpandAllClientID = '<%= btnExpandAll.ClientID %>';
|
||||
var btnCollapseAllClientID = '<%= btnCollapseAll.ClientID %>';
|
||||
var leftPanelClientID = '<%= leftPanel.ClientID %>';
|
||||
var mainTabStripClientID = '<%= mainTabStrip.ClientID %>';
|
||||
var windowSourceCodeClientID = '<%= windowSourceCode.ClientID %>';
|
||||
var menuSettingsClientID = '<%= menuSettings.ClientID %>';
|
||||
var cbxShowOnlyNewClientID = '<%= cbxShowOnlyNew.ClientID %>';
|
||||
var windowLoadingSelectorClientID = '<%= windowLoadingSelector.ClientID %>';
|
||||
|
||||
@ -248,15 +232,6 @@
|
||||
}
|
||||
|
||||
|
||||
function onSignOutClick() {
|
||||
F.alert('尚未实现');
|
||||
}
|
||||
|
||||
function onUserProfileClick() {
|
||||
F.alert('尚未实现');
|
||||
}
|
||||
|
||||
|
||||
// 添加示例标签页
|
||||
// id: 选项卡ID
|
||||
// iframeUrl: 选项卡IFrame地址
|
||||
@ -316,7 +291,7 @@
|
||||
mainTabStrip.setActiveTab(targetTab);
|
||||
// 通过jQuery查找 iframe 节点,并强制刷新 iframe 内的页面
|
||||
$(targetTab.el.dom).find('iframe')[0].contentWindow.location.reload();
|
||||
|
||||
|
||||
// 删除之前的激活选项卡
|
||||
mainTabStrip.removeTab(oldActiveTabId);
|
||||
}
|
||||
@ -339,12 +314,9 @@
|
||||
}
|
||||
|
||||
F.ready(function () {
|
||||
var btnExpandAll = F(btnExpandAllClientID);
|
||||
var btnCollapseAll = F(btnCollapseAllClientID);
|
||||
var leftPanel = F(leftPanelClientID);
|
||||
var mainTabStrip = F(mainTabStripClientID);
|
||||
var windowSourceCode = F(windowSourceCodeClientID);
|
||||
var menuSettings = F(menuSettingsClientID);
|
||||
var cbxShowOnlyNew = F(cbxShowOnlyNewClientID);
|
||||
|
||||
var MenuStyle = F(MenuStyleClientID);
|
||||
@ -357,44 +329,6 @@
|
||||
menuType = 'menu';
|
||||
}
|
||||
|
||||
// 当前展开的手风琴面板
|
||||
function getExpandedPanel() {
|
||||
var panel = null;
|
||||
treeMenu.items.each(function (item) {
|
||||
if (!item.getCollapsed()) {
|
||||
panel = item;
|
||||
}
|
||||
});
|
||||
return panel;
|
||||
}
|
||||
|
||||
// 点击展开菜单
|
||||
btnExpandAll.on('click', function () {
|
||||
if (menuType == 'menu') {
|
||||
// 左侧为树控件
|
||||
treeMenu.expandAll();
|
||||
} else {
|
||||
// 左侧为树控件+手风琴控件
|
||||
var expandedPanel = getExpandedPanel();
|
||||
if (expandedPanel) {
|
||||
expandedPanel.items.getAt(0).expandAll();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// 点击折叠菜单
|
||||
btnCollapseAll.on('click', function () {
|
||||
if (menuType == 'menu') {
|
||||
// 左侧为树控件
|
||||
treeMenu.collapseAll();
|
||||
} else {
|
||||
// 左侧为树控件+手风琴控件
|
||||
var expandedPanel = getExpandedPanel();
|
||||
if (expandedPanel) {
|
||||
expandedPanel.items.getAt(0).collapseAll();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// 点击仅显示最新示例
|
||||
cbxShowOnlyNew.on('click', function () {
|
||||
@ -549,16 +483,6 @@
|
||||
});
|
||||
|
||||
|
||||
// 添加工具图标,并在点击时显示上下文菜单
|
||||
// 专业版提醒:请将 type:'gear' 改为 iconFont:'gear'
|
||||
leftPanel.addTool({
|
||||
type: 'gear',
|
||||
//tooltip: '系统设置',
|
||||
handler: function (event) {
|
||||
menuSettings.showBy(this);
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
@ -303,6 +303,7 @@ namespace FineUI.Examples
|
||||
|
||||
litVersion.Text = FineUI.GlobalConfig.ProductVersion;
|
||||
litOnlineUserCount.Text = Application["OnlineUserCount"].ToString();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
256
FineUI_v6/FineUI.Examples/default.aspx.designer.cs
generated
256
FineUI_v6/FineUI.Examples/default.aspx.designer.cs
generated
@ -37,7 +37,7 @@ namespace FineUI.Examples {
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUI.RegionPanel RegionPanel1;
|
||||
protected global::FineUI.Panel RegionPanel1;
|
||||
|
||||
/// <summary>
|
||||
/// Region1 control.
|
||||
@ -46,151 +46,7 @@ namespace FineUI.Examples {
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUI.Region Region1;
|
||||
|
||||
/// <summary>
|
||||
/// leftPanel control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUI.Region leftPanel;
|
||||
|
||||
/// <summary>
|
||||
/// mainRegion control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUI.Region mainRegion;
|
||||
|
||||
/// <summary>
|
||||
/// mainTabStrip control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUI.TabStrip mainTabStrip;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill2 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUI.ToolbarFill ToolbarFill2;
|
||||
|
||||
/// <summary>
|
||||
/// btnGotoOpenSourceSite control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUI.Button btnGotoOpenSourceSite;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarSeparator2 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUI.ToolbarSeparator ToolbarSeparator2;
|
||||
|
||||
/// <summary>
|
||||
/// Button1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUI.Button Button1;
|
||||
|
||||
/// <summary>
|
||||
/// bottomPanel control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUI.Region bottomPanel;
|
||||
|
||||
/// <summary>
|
||||
/// litVersion control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Literal litVersion;
|
||||
|
||||
/// <summary>
|
||||
/// litOnlineUserCount control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Literal litOnlineUserCount;
|
||||
|
||||
/// <summary>
|
||||
/// windowSourceCode control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUI.Window windowSourceCode;
|
||||
|
||||
/// <summary>
|
||||
/// windowLoadingSelector control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUI.Window windowLoadingSelector;
|
||||
|
||||
/// <summary>
|
||||
/// menuSettings control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUI.Menu menuSettings;
|
||||
|
||||
/// <summary>
|
||||
/// btnExpandAll control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUI.MenuButton btnExpandAll;
|
||||
|
||||
/// <summary>
|
||||
/// btnCollapseAll control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUI.MenuButton btnCollapseAll;
|
||||
|
||||
/// <summary>
|
||||
/// MenuSeparator4 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUI.MenuSeparator MenuSeparator4;
|
||||
protected global::FineUI.ContentPanel Region1;
|
||||
|
||||
/// <summary>
|
||||
/// cbxShowOnlyNew control.
|
||||
@ -336,6 +192,114 @@ namespace FineUI.Examples {
|
||||
/// </remarks>
|
||||
protected global::FineUI.MenuSeparator MenuSeparator2;
|
||||
|
||||
/// <summary>
|
||||
/// leftPanel control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUI.Panel leftPanel;
|
||||
|
||||
/// <summary>
|
||||
/// mainRegion control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUI.Panel mainRegion;
|
||||
|
||||
/// <summary>
|
||||
/// mainTabStrip control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUI.TabStrip mainTabStrip;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill2 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUI.ToolbarFill ToolbarFill2;
|
||||
|
||||
/// <summary>
|
||||
/// btnGotoOpenSourceSite control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUI.Button btnGotoOpenSourceSite;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarSeparator2 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUI.ToolbarSeparator ToolbarSeparator2;
|
||||
|
||||
/// <summary>
|
||||
/// Button1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUI.Button Button1;
|
||||
|
||||
/// <summary>
|
||||
/// bottomPanel control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUI.Panel bottomPanel;
|
||||
|
||||
/// <summary>
|
||||
/// litVersion control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Literal litVersion;
|
||||
|
||||
/// <summary>
|
||||
/// litOnlineUserCount control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Literal litOnlineUserCount;
|
||||
|
||||
/// <summary>
|
||||
/// windowSourceCode control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUI.Window windowSourceCode;
|
||||
|
||||
/// <summary>
|
||||
/// windowLoadingSelector control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUI.Window windowLoadingSelector;
|
||||
|
||||
/// <summary>
|
||||
/// XmlDataSource1 control.
|
||||
/// </summary>
|
||||
|
@ -5,7 +5,7 @@ var F = function (cmpName) {
|
||||
};
|
||||
|
||||
// 标识这个页面是由 FineUI 创建的
|
||||
F.fineui = '6.0.2';
|
||||
F.fineui = '6.1.0';
|
||||
|
||||
F.target = function (target) {
|
||||
return F.util.getTargetWindow(target);
|
||||
|
@ -46,4 +46,30 @@ if (Ext.ux.form && Ext.ux.form.FileUploadField) {
|
||||
Ext.apply(Ext.ux.form.FileUploadField.prototype, {
|
||||
buttonText: "Browse..."
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (Ext.panel.Panel) {
|
||||
Ext.apply(Ext.panel.Panel.prototype, {
|
||||
collapseToolText: 'Collapse panel',
|
||||
expandToolText: 'Expand panel'
|
||||
});
|
||||
}
|
||||
|
||||
if (Ext.window.Window) {
|
||||
Ext.apply(Ext.window.Window.prototype, {
|
||||
closeToolText: 'Close window'
|
||||
});
|
||||
}
|
||||
|
||||
if (Ext.window.MessageBox) {
|
||||
Ext.apply(Ext.window.MessageBox.prototype, {
|
||||
closeToolText: 'Close dialog'
|
||||
});
|
||||
}
|
||||
|
||||
if (Ext.form.field.Number) {
|
||||
Ext.apply(Ext.form.field.Number.prototype, {
|
||||
negativeText: 'The value cannot be negative'
|
||||
});
|
||||
}
|
||||
|
@ -22,8 +22,8 @@ Ext.apply(F.wnd, {
|
||||
|
||||
|
||||
if (Ext.ux.SimplePagingToolbar) {
|
||||
Ext.apply(Ext.ux.SimplePagingToolbar.prototype, {
|
||||
afterPageText: "页,共 {0} 页",
|
||||
Ext.apply(Ext.ux.SimplePagingToolbar.prototype, {
|
||||
afterPageText: "页,共 {0} 页",
|
||||
displayMsg: "显示 {0} - {1} 条,共 {2} 条"
|
||||
});
|
||||
}
|
||||
@ -55,4 +55,31 @@ if (Ext.ux.form && Ext.ux.form.FileUploadField) {
|
||||
Ext.apply(Ext.ux.form.FileUploadField.prototype, {
|
||||
buttonText: "浏览..."
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
if (Ext.panel.Panel) {
|
||||
Ext.apply(Ext.panel.Panel.prototype, {
|
||||
collapseToolText: '折叠面板',
|
||||
expandToolText: '展开面板'
|
||||
});
|
||||
}
|
||||
|
||||
if (Ext.window.Window) {
|
||||
Ext.apply(Ext.window.Window.prototype, {
|
||||
closeToolText: '关闭窗体'
|
||||
});
|
||||
}
|
||||
|
||||
if (Ext.window.MessageBox) {
|
||||
Ext.apply(Ext.window.MessageBox.prototype, {
|
||||
closeToolText: '关闭对话框'
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
if (Ext.form.field.Number) {
|
||||
Ext.apply(Ext.form.field.Number.prototype, {
|
||||
negativeText: '该输入项不能为负值'
|
||||
});
|
||||
}
|
@ -54,4 +54,30 @@ if (Ext.ux.form && Ext.ux.form.FileUploadField) {
|
||||
Ext.apply(Ext.ux.form.FileUploadField.prototype, {
|
||||
buttonText: "瀏覽..."
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
if (Ext.panel.Panel) {
|
||||
Ext.apply(Ext.panel.Panel.prototype, {
|
||||
collapseToolText: '折疊面板',
|
||||
expandToolText: '展開面板'
|
||||
});
|
||||
}
|
||||
|
||||
if (Ext.window.Window) {
|
||||
Ext.apply(Ext.window.Window.prototype, {
|
||||
closeToolText: '關閉窗體'
|
||||
});
|
||||
}
|
||||
|
||||
if (Ext.window.MessageBox) {
|
||||
Ext.apply(Ext.window.MessageBox.prototype, {
|
||||
closeToolText: '關閉對話框'
|
||||
});
|
||||
}
|
||||
|
||||
if (Ext.form.field.Number) {
|
||||
Ext.apply(Ext.form.field.Number.prototype, {
|
||||
negativeText: '該輸入項不能為負值'
|
||||
});
|
||||
}
|
@ -201,4 +201,10 @@
|
||||
.x-ie9 .f-fileupload-buttononly .x-form-trigger,
|
||||
.x-ie8 .f-fileupload-buttononly .x-form-trigger {
|
||||
display: block;
|
||||
}
|
||||
|
||||
|
||||
/* v6.1.0, Tree has no horizontal scrollbar */
|
||||
.x-tree-view {
|
||||
overflow-x: auto !important;
|
||||
}
|
@ -1 +1 @@
|
||||
v6.0.3
|
||||
v6.1.0
|
@ -1,5 +1,4 @@
|
||||
|
||||
#header table {
|
||||
#header table {
|
||||
width: 100%;
|
||||
border-spacing: 0;
|
||||
border-collapse: separate;
|
||||
@ -52,6 +51,7 @@
|
||||
}
|
||||
|
||||
|
||||
|
||||
.isnew {
|
||||
color: red;
|
||||
}
|
||||
|
BIN
FineUI_v6/FineUI.Examples/res/images/logo/favicon.jpg
Normal file
BIN
FineUI_v6/FineUI.Examples/res/images/logo/favicon.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.4 KiB |
BIN
FineUI_v6/FineUI.Examples/res/images/logo/logo3.jpg
Normal file
BIN
FineUI_v6/FineUI.Examples/res/images/logo/logo3.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.8 KiB |
BIN
FineUI_v6/FineUI.Examples/res/images/logo/logo_small.png
Normal file
BIN
FineUI_v6/FineUI.Examples/res/images/logo/logo_small.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
35
FineUI_v6/FineUI.Examples/test/fileupload2.aspx
Normal file
35
FineUI_v6/FineUI.Examples/test/fileupload2.aspx
Normal file
@ -0,0 +1,35 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="fileupload2.aspx.cs" Inherits="FineUI.Examples.form.fileupload2" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head runat="server">
|
||||
<title></title>
|
||||
<style>
|
||||
.result img {
|
||||
border: 1px solid #CCCCCC;
|
||||
max-width: 550px;
|
||||
padding: 3px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<f:PageManager ID="PageManager1" AutoSizePanelID="SimpleForm1" runat="server" />
|
||||
<f:SimpleForm ID="SimpleForm1" BodyPadding="5px" runat="server" Width="550px" EnableCollapse="true"
|
||||
ShowBorder="True" Title="表单" ShowHeader="True">
|
||||
<Items>
|
||||
<f:TextBox runat="server" Label="用户名" ID="tbxUseraName" Required="true" ShowRedStar="true">
|
||||
</f:TextBox>
|
||||
<f:FileUpload runat="server" ID="filePhoto" EmptyText="请选择一张照片" Label="个人头像" Required="true"
|
||||
ShowRedStar="true">
|
||||
</f:FileUpload>
|
||||
<f:Button ID="btnSubmit" runat="server" OnClick="btnSubmit_Click" ValidateForms="SimpleForm1"
|
||||
Text="提交">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:SimpleForm>
|
||||
<f:Label ID="labResult" EncodeText="false" runat="server">
|
||||
</f:Label>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
50
FineUI_v6/FineUI.Examples/test/fileupload2.aspx.cs
Normal file
50
FineUI_v6/FineUI.Examples/test/fileupload2.aspx.cs
Normal file
@ -0,0 +1,50 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace FineUI.Examples.form
|
||||
{
|
||||
public partial class fileupload2 : PageBase
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
protected void btnSubmit_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (filePhoto.HasFile)
|
||||
{
|
||||
string fileName = filePhoto.ShortFileName;
|
||||
|
||||
if (!ValidateFileType(fileName))
|
||||
{
|
||||
Alert.Show("无效的文件类型!");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
fileName = fileName.Replace(":", "_").Replace(" ", "_").Replace("\\", "_").Replace("/", "_");
|
||||
fileName = DateTime.Now.Ticks.ToString() + "_" + fileName;
|
||||
|
||||
filePhoto.SaveAs(Server.MapPath("~/upload/" + fileName));
|
||||
|
||||
|
||||
labResult.Text = "<p>用户名:" + tbxUseraName.Text + "</p>" +
|
||||
"<p>头像:<br /><img src=\"" + ResolveUrl("~/upload/" + fileName) + "\" /></p>";
|
||||
|
||||
//// 清空表单字段(第一种方法)
|
||||
//tbxUseraName.Reset();
|
||||
//filePhoto.Reset();
|
||||
|
||||
// 清空表单字段(第三种方法)
|
||||
SimpleForm1.Reset();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
78
FineUI_v6/FineUI.Examples/test/fileupload2.aspx.designer.cs
generated
Normal file
78
FineUI_v6/FineUI.Examples/test/fileupload2.aspx.designer.cs
generated
Normal file
@ -0,0 +1,78 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUI.Examples.form {
|
||||
|
||||
|
||||
public partial class fileupload2 {
|
||||
|
||||
/// <summary>
|
||||
/// form1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUI.PageManager PageManager1;
|
||||
|
||||
/// <summary>
|
||||
/// SimpleForm1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUI.SimpleForm SimpleForm1;
|
||||
|
||||
/// <summary>
|
||||
/// tbxUseraName control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUI.TextBox tbxUseraName;
|
||||
|
||||
/// <summary>
|
||||
/// filePhoto control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUI.FileUpload filePhoto;
|
||||
|
||||
/// <summary>
|
||||
/// btnSubmit control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUI.Button btnSubmit;
|
||||
|
||||
/// <summary>
|
||||
/// labResult control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUI.Label labResult;
|
||||
}
|
||||
}
|
39
FineUI_v6/FineUI.Examples/test/tree2.aspx
Normal file
39
FineUI_v6/FineUI.Examples/test/tree2.aspx
Normal file
@ -0,0 +1,39 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="tree2.aspx.cs" Inherits="FineUI.Examples.tree.tree2" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head runat="server">
|
||||
<title></title>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<f:PageManager ID="PageManager1" runat="server" />
|
||||
<f:Tree ID="Tree1" Width="350px" Height="200px" ShowHeader="true" Title="树控件(内联)" EnableCollapse="true"
|
||||
runat="server">
|
||||
<Nodes>
|
||||
<f:TreeNode Text="中国" Expanded="true">
|
||||
<f:TreeNode Text="河南省" Expanded="true">
|
||||
<f:TreeNode Text="驻马店市" NodeID="zhumadian">
|
||||
<f:TreeNode Text="遂平县" Leaf="false" NodeID="suiping">
|
||||
<f:TreeNode Text="槐树乡" Leaf="false" NodeID="huaishu">
|
||||
<f:TreeNode Text="陈庄村" NodeID="chenzhuang">
|
||||
</f:TreeNode>
|
||||
</f:TreeNode>
|
||||
</f:TreeNode>
|
||||
</f:TreeNode>
|
||||
<f:TreeNode Text="漯河市" NodeID="luohe" />
|
||||
</f:TreeNode>
|
||||
<f:TreeNode Text="安徽省" Expanded="true" NodeID="anhui">
|
||||
<f:TreeNode Text="合肥市" Expanded="true" NodeID="hefei">
|
||||
<f:TreeNode Text="金色池塘小区" NodeID="golden">
|
||||
</f:TreeNode>
|
||||
<f:TreeNode Text="中国科学技术大学中国科学技术大学中国科学技术大学中国科学技术大学中国科学技术大学中国科学技术大学中国科学技术大学中国科学技术大学" NodeID="ustc">
|
||||
</f:TreeNode>
|
||||
</f:TreeNode>
|
||||
</f:TreeNode>
|
||||
</f:TreeNode>
|
||||
</Nodes>
|
||||
</f:Tree>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
24
FineUI_v6/FineUI.Examples/test/tree2.aspx.cs
Normal file
24
FineUI_v6/FineUI.Examples/test/tree2.aspx.cs
Normal file
@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Data;
|
||||
using System.Text;
|
||||
using System.IO;
|
||||
using System.Xml;
|
||||
|
||||
namespace FineUI.Examples.tree
|
||||
{
|
||||
public partial class tree2 : PageBase
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
Tree1.SelectedNodeID = "zhumadian";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
42
FineUI_v6/FineUI.Examples/test/tree2.aspx.designer.cs
generated
Normal file
42
FineUI_v6/FineUI.Examples/test/tree2.aspx.designer.cs
generated
Normal file
@ -0,0 +1,42 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUI.Examples.tree {
|
||||
|
||||
|
||||
public partial class tree2 {
|
||||
|
||||
/// <summary>
|
||||
/// form1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUI.PageManager PageManager1;
|
||||
|
||||
/// <summary>
|
||||
/// Tree1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUI.Tree Tree1;
|
||||
}
|
||||
}
|
@ -904,7 +904,8 @@ namespace FineUI
|
||||
|
||||
if (AutoScroll)
|
||||
{
|
||||
OB.AddProperty("autoScroll", true);
|
||||
//OB.AddProperty("autoScroll", true);
|
||||
OB.AddProperty("scrollable", true);
|
||||
}
|
||||
|
||||
|
||||
|
@ -42,7 +42,7 @@ using System.Web.UI;
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("6.0.3")]
|
||||
[assembly: AssemblyVersion("6.1.0")]
|
||||
|
||||
|
||||
|
||||
|
@ -1355,32 +1355,27 @@ namespace FineUI
|
||||
|
||||
string autoPostBackScript = String.Empty;
|
||||
|
||||
if (AutoPostBack)
|
||||
{
|
||||
autoPostBackScript = String.Format("var {0}={1};", Render_AutoPostBackID, JsHelper.GetFunction("if(cmp.f_tmp_lastvalue!==cmp.getValue()){" + GetPostBackEventReference() + "}", "cmp"));
|
||||
}
|
||||
//if (AutoPostBack)
|
||||
//{
|
||||
// autoPostBackScript = String.Format("var {0}={1};", Render_AutoPostBackID, JsHelper.GetFunction("window.setTimeout(function(){if(cmp.f_tmp_lastvalue!==cmp.getValue()){" + GetPostBackEventReference() + "}},100);", "cmp"));
|
||||
//}
|
||||
|
||||
StringBuilder beforeselectSB = new StringBuilder();
|
||||
// 是否能选中一项(如果此项不能选中,则点击没用)
|
||||
//beforeselectSB.AppendFormat("if(F.util.isHiddenFieldContains('{0}',index)){{return false;}}", DisableRowIndexsHiddenID);
|
||||
beforeselectSB.Append("if(!record.data.enabled){return false;}");
|
||||
|
||||
if (AutoPostBack)
|
||||
{
|
||||
beforeselectSB.Append("cmp.f_tmp_lastvalue=cmp.getValue();");
|
||||
|
||||
//string selectScript = "if(cmp.f_tmp_lastvalue!==cmp.getValue()){" + GetPostBackEventReference() + "}";
|
||||
beforeselectSB.AppendFormat("window.setTimeout(function(){{{0}(cmp);}},100);", Render_AutoPostBackID);
|
||||
//AddListener("select", selectScript, "cmp");
|
||||
}
|
||||
//if (AutoPostBack)
|
||||
//{
|
||||
// beforeselectSB.Append("cmp.f_tmp_lastvalue=cmp.getValue();");
|
||||
// beforeselectSB.AppendFormat("{0}(cmp);", Render_AutoPostBackID);
|
||||
//}
|
||||
|
||||
AddListener("beforeselect", beforeselectSB.ToString(), "cmp", "record", "index");
|
||||
AddListener("beforedeselect", beforeselectSB.ToString(), "cmp", "record", "index");
|
||||
|
||||
//if (EnableMultiSelect)
|
||||
//{
|
||||
// StringBuilder beforedeselectSB = new StringBuilder();
|
||||
// beforedeselectSB.AppendFormat("window.setTimeout(function(){{{0}(cmp);}},100);", Render_AutoPostBackID);
|
||||
// AddListener("beforedeselect", beforedeselectSB.ToString(), "cmp", "record", "index");
|
||||
//}
|
||||
if (AutoPostBack)
|
||||
{
|
||||
AddListener("change", GetPostBackEventReference(), "cmp", "newValue", "oldValue");
|
||||
}
|
||||
|
||||
#region old code
|
||||
//if (AutoPostBack)
|
||||
|
@ -29,11 +29,21 @@ FineUI 严格遵守 ExtJS 对开源软件的规定,不再内置 ExtJS 库,
|
||||
|
||||
发布历史
|
||||
|
||||
+2017-**-** v6.0.4
|
||||
-修正未激活选项卡中表格的getStore().sorters为null导致的问题(甘桂-9373)。
|
||||
+2017-09-13 v6.1.0
|
||||
-修正未激活选项卡中表格的getStore().sorters为null导致的问题(甘桂-9373)(碌云-21311)。
|
||||
-增加示例:其他杂项->第三方组件->UEditor->UEditor(后台赋值)等四个示例。
|
||||
-增加示例:表格控件->杂项->在新标签页中打开;(同一个标签页)(张波-9520)。
|
||||
-增加示例:表格控件->杂项->在新标签页中打开(关闭后刷新父选项卡);(关闭后更新父选项卡)。
|
||||
-更新官网示例首页,RegionPanel改为Panel,设置项作为右上角用户头像的下拉菜单。
|
||||
-修正下拉列表控件多选时,取消选中项不会触发自动回发事件(偶然那么一次-21262)。
|
||||
+修正部分中文语言缺失的地方(zy32002-9490)。
|
||||
-Collapse panel -> 折叠面板。
|
||||
-Expand panel -> 展开面板。
|
||||
-Close window -> 关闭窗体。
|
||||
-Close dialog -> 关闭对话框。
|
||||
-The value cannot be negative -> 该输入项不能为负值。
|
||||
-修正树控件水平滚动条丢失的问题(liushuhuan426-9504)。
|
||||
|
||||
|
||||
|
||||
|
||||
@ -43,7 +53,7 @@ FineUI 严格遵守 ExtJS 对开源软件的规定,不再内置 ExtJS 库,
|
||||
-修正AjaxTimeout无效的问题(网缘-9212)。
|
||||
-全局配置参数EnableFStateValidation默认为false,和专业版保持一致。
|
||||
-修正表格的DataKeyNames未定义时出错的问题(世界没有真情-9300)。
|
||||
-修正表格内存分页时,分页信息可能显示不正确的问题(╱/茶杯oо-9097)。
|
||||
-修正表格内存分页时,分页信息可能显示不正确的问题(茶杯oо-9097)。
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user