| <%@ Page Language="C#" AutoEventWireup="true" CodeFile="FormBuilderDetails.aspx.cs" |
| Inherits="EM2.UI.FormBuilderDetails" %> |
| |
| <%@ Register TagPrefix="rad" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> |
| <!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"> |
| <head runat="server"> |
| <title>Form Builder</title> |
| <link id="_em2Admin_Portals_0_" rel="stylesheet" type="text/css" href="/Portals/0/portal.css" /> |
| <link id="_em2Admin_Portals__default_" rel="stylesheet" type="text/css" href="/Portals/_default/default.css" /> |
| </head> |
| <body> |
| <form id="form1" runat="server"> |
| <rad:RadScriptManager ID="script1" runat="server"> |
| </rad:RadScriptManager> |
| <rad:RadTabStrip ID="tabStrip1" runat="server" MultiPageID="multiPage1" ClickSelectedTab="true"> |
| <Tabs> |
| <rad:RadTab id="tbGeneral" runat="server" Text="General" PageViewID="pgEditSection"> |
| </rad:RadTab> |
| <rad:RadTab id="tbAdvanced" runat="server" Text="Advanced" Visible="false"> |
| </rad:RadTab> |
| <rad:RadTab id="tbValidation" runat="server" Text="Validation" Visible="false"> |
| </rad:RadTab> |
| <rad:RadTab id="tbCondition" runat="server" Text="Condition" Visible="false"> |
| </rad:RadTab> |
| <rad:RadTab id="tbHTML" runat="server" Text="HTML" Visible="false"> |
| </rad:RadTab> |
| </Tabs> |
| </rad:RadTabStrip> |
| <h4> |
| <asp:Label ID="lblPageHead" runat="server"></asp:Label></h4> |
| <rad:RadMultiPage ID="multiPage1" runat="server"> |
| <rad:RadPageView ID="pgEditSection" runat="server" Visible="true"> |
| <div style="width: 80%"> |
| <fieldset class="fs_edit"> |
| <table > |
| <tr> |
| <td> |
| Section Name |
| </td> |
| <td> |
| <asp:TextBox ID="txtSectionName" runat="server"></asp:TextBox> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| CSS |
| </td> |
| <td> |
| <telerik:RadComboBox ID="rcbSectionCSS" runat="server" Skin="Web20" Text="Select One..." |
| ExpandAnimation-Type="OutBack" CollapseAnimation-Type="InBack" Width="150px" |
| DropDownWidth="150px"> |
| </telerik:RadComboBox> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| Header Text |
| </td> |
| <td > |
| <rad:RadEditor ID="radSectionHeader" EnableResize="false" |
| ToolsFile="~/Resources/RadControls/Editor/ToolsFile_Minimal.xml" ToolbarMode="ShowOnFocus" |
| runat="server" Width="500px" Height="100px"> |
| </rad:RadEditor> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| Body Text |
| </td> |
| <td style="height:175px"> |
| <rad:RadEditor ID="radSectionBody" EnableResize="false" StripFormattingOnPaste="All" |
| ToolsFile="~/Resources/RadControls/Editor/ToolsFile_Minimal.xml" ToolbarMode="ShowOnFocus" |
| runat="server" Width="500px" Height="100px"> |
| </rad:RadEditor> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| Footer Text |
| </td> |
| <td style="height:125px"> |
| <rad:RadEditor ID="radSectionFooter" EnableResize="false" StripFormattingOnPaste="All" |
| ToolsFile="~/Resources/RadControls/Editor/ToolsFile_Minimal.xml" ToolbarMode="ShowOnFocus" |
| runat="server" Width="500px" Height="100px"> |
| </rad:RadEditor> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| <asp:Button ID="btnUpdate" Text="Update" runat="server" /> |
| </td> |
| </tr> |
| </table> |
| </fieldset> |
| </div> |
| </rad:RadPageView> |
| </rad:RadMultiPage> |
| </form> |
| </body> |
| |
| <script type="text/javascript"> |
| function GetRadWindow() { |
| var oWindow = null; |
| if (window.radWindow) oWindow = window.radWindow; |
| else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; |
| return oWindow; |
| } |
| |
| function CloseAndReload(status) { |
| // if(reload) |
| RefreshParentPage(status); |
| GetRadWindow().Close(); |
| } |
| function RefreshParentPage(status) { |
| var parentWin = GetRadWindow().BrowserWindow; |
| parentWin.G_DoRefreshPage = true; |
| parentWin.refreshEditor(status); |
| } |
| function checkForEmpty(obj) { |
| if (obj && obj.value == "") { |
| alert("Code length cannot be empty"); |
| return false; |
| } |
| else return true; |
| } |
| |
| function showHideFieldDispName() |
| { |
| var chkFieldShowName = document.getElementById('<%= chkFieldShowName.ClientID %>'); |
| var txtFieldDispName = document.getElementById('<%= txtFieldDispName.ClientID %>'); |
| if(chkFieldShowName && txtFieldDispName) |
| { |
| if(chkFieldShowName.checked) txtFieldDispName.disabled = false; |
| else txtFieldDispName.disabled = true; |
| } |
| } |
| </script> |
| |
| <style> |
| .CapitaFloatLeft2Column |
| { |
| position: relative; |
| float: left; |
| width: 156px; |
| } |
| .CapitaFloatRight2Column |
| { |
| position: relative; |
| float: left; |
| width: 264px; |
| } |
| .CapitaGroupControlContainer |
| { |
| position: relative; |
| width: 420px; |
| height: 34px; |
| } |
| </style> |
| </html> |
| |