<%@ Control Language="C#" AutoEventWireup="false" EnableViewState="false" Inherits="R7.Epsilon.AdminPageInfo" %>
<%@ Import Namespace="DotNetNuke.Security" %>
<% if (PortalSecurity.IsInRole ("Administrators")) { %>

        <a class="skin-page-permalink" href="<%= PagePermalink %>" title="<%: Localizer.GetString ("PagePermalink.Tooltip") %>"><%= Localizer.GetString ("PagePermalink.Text") %>

<% } %>

<%@ Control Language="C#" AutoEventWireup="false" EnableViewState="false" Inherits="R7.Epsilon.AdminPageInfo" %>
<%@ Import Namespace="DotNetNuke.Security" %>
<% if (PortalSecurity.IsInRole ("Administrators")) { %>

        <button type="button" class="close" data-dismiss="alert">×</button>
        <a class="skin-page-permalink" href="<%= PagePermalink %>" title="<%: Localizer.GetString ("PagePermalink.Tooltip") %>"><%= Localizer.GetString ("PagePermalink.Text") %>

<% } %>

Make admin page info panel dismissible

Make admin page info panel dismissible


<%@ Application Inherits="DotNetNuke.Web.Common.Internal.DotNetNukeHttpApplication" Language="C#" %>
<%@ Import Namespace="DotNetNuke.Entities.Portals" %>
<%@ Import Namespace="DotNetNuke.Entities.Users" %>
<%@ Import Namespace="R7.Epsilon.Components" %>
<script runat="server">
public override string GetVaryByCustomString (HttpContext context, string arg)
{
    var result = string.Empty;
    foreach (var part in arg.Split (';'))
    {
        if (part == "PortalId") {
            result += "portalid=" + PortalSettings.Current.PortalId;
        }
        else if (part == "UserRoles") {
            if (Request.IsAuthenticated) {
                var user = UserController.GetCurrentUserInfo ();
                if (user != null)
                    result += "userroles=" + Utils.FormatList (",", (Array)user.Roles);
            }
        }
        else {
            result += base.GetVaryByCustomString (context, arg);
        }
    }

    return result;
}
</script>

<%@ Application Inherits="DotNetNuke.Web.Common.Internal.DotNetNukeHttpApplication" Language="C#" %>
<%@ Import Namespace="DotNetNuke.Entities.Portals" %>
<%@ Import Namespace="DotNetNuke.Entities.Users" %>
<%@ Import Namespace="R7.Epsilon.Components" %>
<script runat="server">
public override string GetVaryByCustomString (HttpContext context, string custom)
{
    var result = string.Empty;
    foreach (var part in custom.Split (';'))
    {
        if (part == "PortalId") {
            result += "portalid=" + PortalSettings.Current.PortalId;
        }
        else if (part == "UserRoles") {
            if (Request.IsAuthenticated) {
                var user = UserController.Instance.GetCurrentUserInfo ();
                if (user != null) {
                    result += "userroles=" + Utils.FormatList (",", (Array) user.Roles);
                }
            }
        }
        else {
            result += base.GetVaryByCustomString (context, custom);
        }
    }

    return result;
}
</script>

Use UserController.Instance, rename formal parameter


<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
  <head runat="server">
    <meta http-equiv="Refresh" content="60" />
    <title>TeamTracker</title>
	<link rel="icon" href="team.png">
  </head>
  <body>
  <b>Support Team Availability Matrix</b>
    <form id="Body" runat="server">
      <asp:table id="StatusTable" runat="server" CellPadding="5" />
    </form>
	v1.0
  </body>
</html>

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html>

    <meta http-equiv="Refresh" content="60" />
    <title>TeamTracker</title>
	<link rel="icon" href="team.png">

  Support Team Availability Matrix

    <form id="Body" runat="server">
      <asp:table id="StatusTable" runat="server" CellPadding="5" />
    </form>
	v1.0

Add logo option, header font type, size, color


<%@ Page Language="c#" CodeBehind="editLanguage.aspx.cs" AutoEventWireup="True" MasterPageFile="../masterpages/umbracoPage.Master"
    Inherits="umbraco.settings.editLanguage" %>

<%@ Register TagPrefix="cc1" Namespace="umbraco.uicontrols" Assembly="controls" %>
<asp:Content ContentPlaceHolderID="body" runat="server">
    <cc1:UmbracoPanel ID="Panel1" runat="server" Width="608px" Height="336px" hasMenu="true"
        Style="text-align: center">
        <cc1:Pane ID="Pane7" runat="server">
            <cc1:PropertyPanel runat="server" ID="pp_language">
                <asp:DropDownList ID="Cultures" runat="server">
                </asp:DropDownList>
            </cc1:PropertyPanel>
        </cc1:Pane>
    </cc1:UmbracoPanel>
    <script type="text/javascript">
        jQuery(document).ready(function () {
            UmbClientMgr.appActions().bindSaveShortCut();
        });
    </script>
</asp:Content>

<%@ Page Language="c#" CodeBehind="editLanguage.aspx.cs" AutoEventWireup="True" MasterPageFile="../masterpages/umbracoPage.Master"
    Inherits="umbraco.settings.editLanguage" %>

<%@ Register TagPrefix="cc1" Namespace="umbraco.uicontrols" Assembly="controls" %>
<asp:Content ContentPlaceHolderID="body" runat="server">
    <cc1:UmbracoPanel ID="Panel1" runat="server" Width="608px" Height="336px" hasMenu="true">
        <cc1:Pane ID="Pane7" runat="server">
            <cc1:PropertyPanel runat="server" ID="pp_language">
                <asp:DropDownList ID="Cultures" runat="server">
                </asp:DropDownList>
            </cc1:PropertyPanel>
        </cc1:Pane>
    </cc1:UmbracoPanel>
    <script type="text/javascript">
        jQuery(document).ready(function () {
            UmbClientMgr.appActions().bindSaveShortCut();
        });
    </script>
</asp:Content>

Fix for U4-4026 Inline styling affect header text

Inline styling on container affect header text and dropdown with
text-align:center on language in settings section.


<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IQueryable<CRP.Core.Domain.Item>>" %>
<%@ Import Namespace="CRP.Core.Resources"%>
<%@ Import Namespace="CRP.Controllers"%>

        <%  // for loop to go through all the items passed
            foreach(var item in Model) { %>

                    <a href='<%= Url.Action("Details", "Item", new {id = item.Id}) %>'>

<%= Html.Encode(item.Name) %>

                        <img src='<%= Url.Action("GetImage", "Item", new {id = item.Id}) %>' />

Last day to register online: <%= Html.Encode(item.Expiration.HasValue ? item.Expiration.Value.ToString("D") : string.Empty) %>

                        <% Html.RenderPartial(StaticValues.Partial_TagView, item.Tags); %>

                            <%= Html.Encode(item.Summary) %>
                            <%--<%= item.Description.Length > 1000 ? Html.HtmlEncode(item.Description.Substring(0, 1000)) : Html.HtmlEncode(item.Description) %>--%>

        <% } %>

<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IQueryable<CRP.Core.Domain.Item>>" %>
<%@ Import Namespace="CRP.Core.Resources"%>
<%@ Import Namespace="CRP.Controllers"%>

        <%  // for loop to go through all the items passed
            foreach(var item in Model) { %>

                    <a href='<%= Url.Action("Details", "Item", new {id = item.Id}) %>'>

<%= Html.Encode(item.Name) %>

                        <img src='<%= Url.Action("GetImage", "Item", new {id = item.Id}) %>' />

Last day to register online: <%= Html.Encode(item.Expiration.HasValue ? item.Expiration.Value.ToString("D") : string.Empty) %>

                        <% Html.RenderPartial(StaticValues.Partial_TagView, item.Tags); %>

                        <a href='<%= Url.Action("Details", "Item", new {id = item.Id}) %>'>
                            <%= Html.Encode(item.Summary) %>
                            <%--<%= item.Description.Length > 1000 ? Html.HtmlEncode(item.Description.Substring(0, 1000)) : Html.HtmlEncode(item.Description) %>--%>

                        <%Item item1 = item;%><%= Html.ActionLink<ItemController>(a => a.Details(item1.Id), "Click here to register.", new{style="color: rgb(0, 0, 255)"}) %>

        <% } %>

Change the paragraph tag to an anchor tag linked to the item. Also added specific blue text "Click here to register."

git-tfs-id: [https://tfs.caes.ucdavis.edu:8088/tfs/DefaultCollection]$/CRP/Trunk/CRP;C7802


Make aside panes wider GH-79

Make aside panes wider GH-79


<%@ Page Language="C#" AutoEventWireup="true" CodeFile="default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html>

    <title>Test Form</title>
    <link rel="icon" href="favicon.ico"/>

    <form id="form1" runat="server">

        <asp:TextBox ID="TextBox1" runat="server" OnTextChanged="TextBox1_TextChanged"></asp:TextBox>
        <asp:CheckBox ID="CheckBox1" runat="server" OnCheckedChanged="CheckBox1_CheckedChanged" />

        <input id="Submit1" type="submit" value="Submit" />

            <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>

            <asp:Label ID="Label2" runat="server" Text="Label"></asp:Label>

        <input id="Text1" type="text" /></form>

Revert "Added a very special div"

Revert "Added a very special div"

This reverts commit 9b4d3671c0576c8af205f1f76b1d5b3497efabea.


    <ui-select ng-model="ctrl.documentLibrary.selected" theme="bootstrap">
        <ui-select-match placeholder="Select or search for a document library...">

                {{$select.selected.Title}} ({{$select.selected.RootFolder.ServerRelativeUrl}})

        </ui-select-match>
        <ui-select-choices repeat="item in ctrl.documentLibraries | filter: $select.search">

                {{item.Title | highlight: $select.search}} ({{item.RootFolder.ServerRelativeUrl}})

                No Description

        </ui-select-choices>
    </ui-select>

    <ui-select ng-model="ctrl.documentLibrary.selected" theme="bootstrap">
        <ui-select-match placeholder="Select or search for a document library...">

                {{$select.selected.Title}} ({{$select.selected.RootFolder.ServerRelativeUrl}})

        </ui-select-match>
        <ui-select-choices repeat="item in ctrl.documentLibraries | filter: $select.search">

                 ({{item.RootFolder.ServerRelativeUrl}})

                No Description

        </ui-select-choices>
    </ui-select>

Document Library Picker - Fix Search Highlighting


Adjust so packages.config points to resources repo

Currently points to example repo


<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Settings.aspx.cs" Inherits="Settings" %>

<!DOCTYPE html>

    <title>Settings</title>

    Back
    <form id="SettingsForm" runat="server">

        <asp:SqlDataSource
          ID="dataSource"
          Runat="server"
          SelectCommand="SELECT * FROM Setting"
          UpdateCommand="UPDATE Setting SET [key]=@key, value=@value WHERE id=@id"
          DataSourceMode="DataSet">
        </asp:SqlDataSource>
        <asp:GridView
          ID="settingsView"
          Runat="server"
          DataSourceID="dataSource"
          AutoGenerateColumns="false"
          DataKeyNames="id"
          ShowHeader="true"
          ShowFooter="false">
          <AlternatingRowStyle BackColor="LightBlue" />
          <Columns>
            <asp:CommandField
              ShowEditButton="true"
              ShowDeleteButton="false" />
            <asp:BoundField
              HeaderText="Key"
              ReadOnly="true"
              DataField="key" />
            <asp:BoundField
              HeaderText="Value"
              ReadOnly="false"
              DataField="value" />
          </Columns>
        </asp:GridView>

    </form>

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Settings.aspx.cs" Inherits="Settings" %>

<!DOCTYPE html>

    <title>Settings</title>

    Back
    <form id="SettingsForm" runat="server">

        <asp:SqlDataSource
          ID="dataSource"
          Runat="server"
          SelectCommand="SELECT * FROM Setting"
          UpdateCommand="UPDATE Setting SET value=@value WHERE id=@id"
          DataSourceMode="DataSet">
        </asp:SqlDataSource>
        <asp:GridView
          ID="settingsView"
          Runat="server"
          DataSourceID="dataSource"
          AutoGenerateColumns="false"
          DataKeyNames="id"
          ShowHeader="true"
          ShowFooter="false">
          <AlternatingRowStyle BackColor="LightBlue" />
          <Columns>
            <asp:CommandField
              ShowEditButton="true"
              ShowDeleteButton="false" />
            <asp:BoundField
              HeaderText="Key"
              ReadOnly="true"
              DataField="key" />
            <asp:BoundField
              HeaderText="Value"
              ReadOnly="false"
              DataField="value" />
          </Columns>
        </asp:GridView>

    </form>

Fix for setting value update after key was made read-only.


Use MAIN tag for content pane

Use MAIN tag for content pane


<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ViewAgent.ascx.cs" Inherits="R7.News.Agent.ViewAgent" %>
<%@ Import Namespace="System.Web" %>

<asp:ListView id="listAgent" DataKeyNames="EntryId" runat="server" OnItemDataBound="listAgent_ItemDataBound">
    <LayoutTemplate>

    </LayoutTemplate>
    <ItemTemplate>

            <asp:HyperLink id="linkEdit" runat="server">
                <asp:Image id="imageEdit" runat="server" IconKey="Edit" resourcekey="Edit" />
            </asp:HyperLink>
            EntryId: <%# Eval ("EntryId") %>

            Title: <%# Eval ("Title") %>

            CreatedOnDate: <%# Eval ("ContentItem.CreatedOnDate") %>

            LastModifiedOnDate: <%# Eval ("ContentItem.LastModifiedOnDate") %>

            CreatedByUserID: <%# Eval ("ContentItem.CreatedByUserID") %>

            LastModifiedByUserID: <%# Eval ("ContentItem.LastModifiedByUserID") %>

            Description: <%# HttpUtility.HtmlDecode ((string) Eval ("Description")) %>

            Visibility: <%# Eval ("Visibility") %>

    </ItemTemplate>
    <ItemSeparatorTemplate>

    </ItemSeparatorTemplate>
</asp:ListView>

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ViewAgent.ascx.cs" Inherits="R7.News.Agent.ViewAgent" %>
<%@ Import Namespace="System.Web" %>

<asp:ListView id="listAgent" DataKeyNames="EntryId" runat="server" OnItemDataBound="listAgent_ItemDataBound">
    <LayoutTemplate>

    </LayoutTemplate>
    <ItemTemplate>

            <asp:HyperLink id="linkEdit" runat="server">
                <asp:Image id="imageEdit" runat="server" IconKey="Edit" resourcekey="Edit" />
            </asp:HyperLink>
            EntryId: <%# Eval ("EntryId") %>

            Title: <%# Eval ("Title") %>

            CreatedOnDate: <%# Eval ("ContentItem.CreatedOnDate") %>

            LastModifiedOnDate: <%# Eval ("ContentItem.LastModifiedOnDate") %>

            CreatedByUserID: <%# Eval ("ContentItem.CreatedByUserID") %>

            LastModifiedByUserID: <%# Eval ("ContentItem.LastModifiedByUserID") %>

            Description: <%# HttpUtility.HtmlDecode ((string) Eval ("Description")) %>

    </ItemTemplate>
    <ItemSeparatorTemplate>

    </ItemSeparatorTemplate>
</asp:ListView>

Fix agent module shouldn't use news entry visibility


<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<LogOnViewModel>" %>
<%@ Import Namespace="Orchard.Users.ViewModels"%>

<%=Html.TitleForPage(Model.Title)%>

<%=_Encoded("Please enter your username and password.")%> <%= Html.ActionLink("Register", "Register")%><%=_Encoded(" if you don't have an account.")%>

<%= Html.ValidationSummary(T("Login was unsuccessful. Please correct the errors and try again.").ToString())%>
<%
using (Html.BeginFormAntiForgeryPost(Url.Action("LogOn", new {ReturnUrl = Request.QueryString["ReturnUrl"]}))) { %>
<fieldset class="login-form">
    <legend><%=_Encoded("Account Information")%></legend>

        <%=_Encoded("Username:")%>
        <%= Html.TextBox("userNameOfEmail", "", new { autofocus = "autofocus" })%>
        <%= Html.ValidationMessage("userNameOrEmail")%>

        <%=_Encoded("Password:")%>
        <%= Html.Password("password")%>
        <%= Html.ValidationMessage("password")%>

        <%= Html.CheckBox("rememberMe")%><%=_Encoded("Remember me?")%>

    <input type="submit" value="<%=_Encoded("Log On") %>" />
</fieldset><%
} %>

<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<LogOnViewModel>" %>
<%@ Import Namespace="Orchard.Users.ViewModels"%>

<%=Html.TitleForPage(Model.Title)%>

<%=_Encoded("Please enter your username and password.")%> <%= Html.ActionLink("Register", "Register")%><%=_Encoded(" if you don't have an account.")%>

<%= Html.ValidationSummary(T("Login was unsuccessful. Please correct the errors and try again.").ToString())%>
<%
using (Html.BeginFormAntiForgeryPost(Url.Action("LogOn", new {ReturnUrl = Request.QueryString["ReturnUrl"]}))) { %>
<fieldset class="login-form">
    <legend><%=_Encoded("Account Information")%></legend>

        <%=_Encoded("Username:")%>
        <%= Html.TextBox("userNameOrEmail", "", new { autofocus = "autofocus" })%>
        <%= Html.ValidationMessage("userNameOrEmail")%>

        <%=_Encoded("Password:")%>
        <%= Html.Password("password")%>
        <%= Html.ValidationMessage("password")%>

        <%= Html.CheckBox("rememberMe")%><%=_Encoded("Remember me?")%>

    <input type="submit" value="<%=_Encoded("Log On") %>" />
</fieldset><%
} %>

Fix typo from previous merge

Fix typo from previous merge

--HG--
branch : dev


Fix BottomPane is missing in 2cols layout


<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<Orchard.Core.Localization.ViewModels.ContentLocalizationsViewModel>" %>
<%
    Html.RegisterStyle("base.css"); %>

<%
    if (Model.Localizations.Count() > 0) { %>
    <%--//todo: need this info in the view model--%>

<%:Html.UnorderedList(Model.Localizations, (c, i) => Html.ItemDisplayLink(c.Culture.Culture, c), "localizations") %>
<%
    } %>

<%:Html.ActionLink(T("+ New translation").Text, "translate", "admin", new { area = "Localization", id = Model.MasterId }, null)%>

Remove "+New Translation" link on the front-end (keep in "Manage Content" though).

--HG--
branch : dev


<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <meta name="Description" content="A bulletin board system written in ASP.NET" />
    <meta name="Keywords" content="Yet Another Forum.net, Forum, ASP.NET, BB, Bulletin Board, opensource" />
    <title>This title is overwritten</title>

    <form id="form1" runat="server" enctype="multipart/form-data">
        <YAF:Forum runat="server" ID="forum"></YAF:Forum>
    </form>

Fix for a rare problem that could occur if there was an exception very early in the ASP.NET page life-cycle (before the "forum" control was instantiated)


<%@ Control Language="C#" AutoEventWireup="false" CodeBehind="TermLinks.ascx.cs" Inherits="R7.News.Controls.TermLinks" %>
<asp:ListView id="listTermLinks" runat="server" DataKeyNames="TermId">
    <LayoutTemplate>

    </LayoutTemplate>
    <ItemTemplate>
        <a href="<%# Eval ("Url") %>"><%# Eval ("Name") %>
    </ItemTemplate>
</asp:ListView>

Add missing li to term list, adjust visual style


<%@ Page Language="C#" AutoEventWireup="true" Inherits="System.Web.UI.Page" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <title>The website is restarting</title>
    <META HTTP-EQUIV=REFRESH CONTENT="10; URL=<%=Request["url"] %>">

The website is restarting

Please wait for 10s while we prepare to serve the page you have requested...

        You can modify the design of this page by editing /config/splashes/booting.aspx

<%@ Page Language="C#" AutoEventWireup="true" Inherits="System.Web.UI.Page" %>

<%
// NH: Adds this inline check to avoid a simple codebehind file in the legacy project!
if (!umbraco.cms.helpers.url.ValidateProxyUrl(Request["url"], Request.Url.AbsoluteUri))
{
    throw new ArgumentException("Can't redirect to the requested url - it's not local or an approved proxy url", "url");
}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <title>The website is restarting</title>
    <meta http-equiv="REFRESH" content="10; URL=<%=Request["url"] %>">

The website is restarting

Please wait for 10s while we prepare to serve the page you have requested...

        You can modify the design of this page by editing /config/splashes/booting.aspx

Update to U4-1485 for 4.11.4

Update to U4-1485 for 4.11.4


<%@ PAGE LANGUAGE = C# %>
<%--
-- Test calling map path on a relative path. This should print
-- the full path of map-path.aspx
--%>
<html>
<script runat=server>
   void Page_Load()
   {
	Response.Write (Server.MapPath ("map-path.aspx"));
   }
</script>
<body>
</body>
</html>

Test MapPath on relative paths

Test MapPath on relative paths

svn path=/trunk/xsp/; revision=20545


<%@ Page Language="c#" CodeFile="error.aspx.cs" AutoEventWireup="True" Inherits="YAF.error" %>

<title>Forum Error</title>
<link type="text/css" rel="stylesheet" href="resources/forum.css" />
<link type="text/css" rel="stylesheet" href="themes/yafpro/theme.css" />

      Forum Error

      <asp:Label ID="ErrorMsg" Enabled="true" runat="server" />

      Try Again

Fix for lack of formatting.

Fix for lack of formatting.


<%@ Page Language="C#" %>

<title>CompareValidator</title>

<form runat="server">
<asp:Label text="Enter twice the same string:" runat="server"/>

<asp:TextBox id="Text1" runat="server" /> ==
<asp:TextBox id="Text2" runat="server" />
<asp:CompareValidator runat="server"
	EnableClientScript="true"
	ControlToValidate="Text1" ControlToCompare="Text2" Operation="Equal"
	ErrorMessage="Strings do not match!"/>

<asp:Button text="Check" onclick="Check_Click" runat="server"/>

<asp:Label id="message" runat="server"/>
</form>

Add test page for the CompareValidator control.

svn path=/trunk/xsp/; revision=89984


<%@ Control Language="C#" AutoEventWireup="true" EnableViewState="false" CodeFile="ForumSubForumList.ascx.cs"
    Inherits="YAF.Controls.ForumSubForumList" %>
<asp:Repeater ID="SubforumList" runat="server" OnItemCreated="SubforumList_ItemCreated">
    <HeaderTemplate>

<YAF:LocalizedLabel ID="SubForums" LocalizedTag="SUBFORUMS" runat="server" />:

 </HeaderTemplate>
    <ItemTemplate>
        <YAF:ThemeImage ID="ThemeSubforumIcon" runat="server" /> <%# GetForumLink((System.Data.DataRow)Container.DataItem) %></ItemTemplate>
    <SeparatorTemplate>, </SeparatorTemplate>
    <FooterTemplate>

    </FooterTemplate>
</asp:Repeater>

Fix for rendering bug... Div was no longer containing the subForums messing up theming.