
* JsonReaderError.aspx: display a nice json conversion error * CalendarEntryList.cs: new Google data for the calendar entries * JsonReaderError.cs: Json error model * README.md: Documentation url * NpgsqlBlogProvider.cs: Update the blog post title * BlogsController.cs: - Updating the blog post title - bug fix rendering the avatar * FrontOfficeController.cs: - the client cannot modify its estimation * GoogleController.cs: - implementing the calendar entries retrieval * HomeController.cs: - the home start page from configuration parameter named "StartPage" * Global.asax.cs: - back to a clean global.asax * style.css: showing the main area with a background transparent color * Post.aspx: Bug fix: the message was displayed two times (we keep the one from app.master) * UserPost.aspx: the blog title comes from the poster profile found in ViewData * DateQuery.aspx: implementing the date query * Web.config: the start page now comes from Web.config * Web.csproj: the Sql db creation script should not be deployed, neither as package.config * BlogManager.cs: updating the blog post title * BlogProvider.cs: yavscModel/Blogs/BlogManager.cs * YavscModel.csproj: new cs files to compile * App.master: returning from the Google login
99 lines
2.6 KiB
Plaintext
99 lines
2.6 KiB
Plaintext
<%@ Page Title="Date search" Language="C#" Inherits="System.Web.Mvc.ViewPage<AskForADate>" MasterPageFile="~/Models/App.master" %>
|
|
|
|
|
|
<asp:Content ContentPlaceHolderID="head" ID="headContent" runat="server">
|
|
|
|
<script type="text/javascript" src="/Scripts/jquery-2.1.1.min.js"></script>
|
|
|
|
<script type="text/javascript" src="/Scripts/jquery.timepicker.js"></script>
|
|
<script type="text/javascript" src="/Scripts/jquery.mousewheel.js"></script>
|
|
<link rel="stylesheet" type="text/css" href="/Theme/jquery.timepicker.css" />
|
|
<script type="text/javascript" src="/Scripts/jquery-ui.js"></script>
|
|
<link rel="stylesheet" href="/Theme/jquery-ui.css">
|
|
<style>
|
|
|
|
.ui-icon .ui-icon-circle-triangle-e {
|
|
background-image: url(/images/ui-bg_flechg.png);
|
|
}
|
|
.ui-datepicker-next .ui-corner-all {
|
|
background-image: url(/images/ui-bg_flechd.png);
|
|
}
|
|
|
|
|
|
</style>
|
|
<script>
|
|
$.widget( "ui.timespinner", $.ui.spinner, {
|
|
options: {
|
|
// seconds
|
|
step: 60 * 1000,
|
|
// hours
|
|
page: 60
|
|
},
|
|
_parse: function( value ) {
|
|
if ( typeof value === "string" ) {
|
|
// already a timestamp
|
|
if ( Number( value ) == value ) {
|
|
return Number( value );
|
|
}
|
|
return +Globalize.parseDate( value );
|
|
}
|
|
return value;
|
|
},
|
|
_format: function( value ) {
|
|
return Globalize.format( new Date(value), "t" );
|
|
}
|
|
});
|
|
</script>
|
|
</asp:Content>
|
|
|
|
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
|
|
|
|
|
<% using ( Html.BeginForm("DateQuery","Google") ) { %>
|
|
|
|
<p>Période de recherche:</p>
|
|
<p>
|
|
<%= Html.LabelFor(model=>model.MinDate) %>:<br>
|
|
Le <input type="text" id="MinDate">
|
|
à
|
|
<input type="text" id="MinTime" class="time"/>
|
|
<%= Html.ValidationMessageFor(model=>model.MinDate) %>
|
|
</p>
|
|
|
|
<p>
|
|
<%= Html.LabelFor(model=>model.MaxDate) %>:<br>
|
|
Le <input type="text" id="MaxDate">
|
|
à
|
|
<input type="text" id="MaxTime" class="time"/>
|
|
<%= Html.ValidationMessageFor(model=>model.MaxDate) %>
|
|
</p>
|
|
|
|
<p>
|
|
Durée minimale : <input type="text" id="Duration" class="time"/>
|
|
</p>
|
|
|
|
<p>
|
|
<%= Html.LabelFor(model=>model.UserName) %>:<br>
|
|
<%= Html.TextBoxFor(model=>model.UserName) %><br>
|
|
<%= Html.ValidationMessageFor(model=>model.UserName) %>
|
|
</p>
|
|
|
|
<script>
|
|
$(function() {
|
|
|
|
$('#MinTime').timepicker({ 'scrollDefault': 'now' });
|
|
$('#MaxTime').timepicker({ 'scrollDefault': 'now' });
|
|
$( "#MinDate" ).datepicker();
|
|
$( "#MaxDate" ).datepicker();
|
|
$( "#Duration" ).timespinner();
|
|
|
|
});
|
|
</script>
|
|
|
|
|
|
<input type="submit">
|
|
<% } %>
|
|
<pre><%= Html.Encode(ViewData["json"]) %></pre>
|
|
|
|
</asp:Content>
|