| Current Path : /home/etiennec/www/oldsite/tmp/cache/skel/ |
| Current File : /home/etiennec/www/oldsite/tmp/cache/skel/html_19aeade15f58c3fe4d2fd04ae18579d0.php |
<?php
/*
* Squelette : ../plugins/auto/agenda_2_0/formulaires/inc-editer_evenement_pickers.html
* Date : Tue, 27 Jul 2010 09:37:20 GMT
* Compile : Sat, 20 Dec 2014 21:11:21 GMT
* Boucles :
*/
//
// Fonction principale du squelette ../plugins/auto/agenda_2_0/formulaires/inc-editer_evenement_pickers.html
// Temps de compilation total: 0.718 ms
//
function html_19aeade15f58c3fe4d2fd04ae18579d0($Cache, $Pile, $doublons=array(), $Numrows=array(), $SP=0) {
if (isset($Pile[0]["doublons"]) AND is_array($Pile[0]["doublons"]))
$doublons = nettoyer_env_doublons($Pile[0]["doublons"]);
$connect = '';
$page = (
'<script type=\'text/javascript\' src=\'' .
interdire_scripts(find_in_path('javascript/dates.js')) .
'\'></script>
<script type=\'text/javascript\' src=\'' .
interdire_scripts(find_in_path('javascript/jquery.datePicker.js')) .
'\'></script>
<script type=\'text/javascript\' src=\'' .
interdire_scripts(find_in_path('javascript/jquery.timePicker.js')) .
'\'></script>
<script type=\'text/javascript\'>
Date.dayNames = [\'' .
_T('public/spip/ecrire:date_jour_1') .
'\', \'' .
_T('public/spip/ecrire:date_jour_2') .
'\', \'' .
_T('public/spip/ecrire:date_jour_3') .
'\', \'' .
_T('public/spip/ecrire:date_jour_4') .
'\', \'' .
_T('public/spip/ecrire:date_jour_5') .
'\', \'' .
_T('public/spip/ecrire:date_jour_6') .
'\', \'' .
_T('public/spip/ecrire:date_jour_7') .
'\'];
Date.abbrDayNames = [\'' .
_T('public/spip/ecrire:date_jour_1_abbr') .
'\', \'' .
_T('public/spip/ecrire:date_jour_2_abbr') .
'\', \'' .
_T('public/spip/ecrire:date_jour_3_abbr') .
'\', \'' .
_T('public/spip/ecrire:date_jour_4_abbr') .
'\', \'' .
_T('public/spip/ecrire:date_jour_5_abbr') .
'\', \'' .
_T('public/spip/ecrire:date_jour_6_abbr') .
'\', \'' .
_T('public/spip/ecrire:date_jour_7_abbr') .
'\'];
Date.monthNames = [\'' .
_T('public/spip/ecrire:date_mois_1') .
'\', \'' .
_T('public/spip/ecrire:date_mois_2') .
'\', \'' .
_T('public/spip/ecrire:date_mois_3') .
'\', \'' .
_T('public/spip/ecrire:date_mois_4') .
'\', \'' .
_T('public/spip/ecrire:date_mois_5') .
'\', \'' .
_T('public/spip/ecrire:date_mois_6') .
'\', \'' .
_T('public/spip/ecrire:date_mois_7') .
'\', \'' .
_T('public/spip/ecrire:date_mois_8') .
'\', \'' .
_T('public/spip/ecrire:date_mois_9') .
'\', \'' .
_T('public/spip/ecrire:date_mois_10') .
'\', \'' .
_T('public/spip/ecrire:date_mois_11') .
'\', \'' .
_T('public/spip/ecrire:date_mois_12') .
'\'];
Date.abbrMonthNames = [\'Jan\', \'Feb\', \'Mar\', \'Apr\', \'May\', \'Jun\', \'Jul\', \'Aug\', \'Sep\', \'Oct\', \'Nov\', \'Dec\'];
Date.firstDayOfWeek = 1;
Date.format = \'dd/mm/yyyy\';
$.dpText = {
TEXT_PREV_YEAR : \'' .
texte_script(_T('agenda:annee_precedente')) .
'\',
TEXT_PREV_MONTH : \'' .
texte_script(_T('agenda:mois_precedent')) .
'\',
TEXT_NEXT_YEAR : \'' .
texte_script(_T('agenda:annee_suivante')) .
'\',
TEXT_NEXT_MONTH : \'' .
texte_script(_T('agenda:mois_suivant')) .
'\',
TEXT_CLOSE : \'' .
texte_script(_T('agenda:fermer')) .
'\',
TEXT_CHOOSE_DATE : \'<img src=\\\'' .
interdire_scripts(find_in_path('img_pack/picker-16.gif')) .
'\\\' alt=\\\'' .
attribut_html(_T('agenda:afficher_calendrier')) .
'\\\' />\',
TITLE_CHOOSE_DATE : \'' .
texte_script(_T('agenda:afficher_calendrier')) .
'\'
}
$(function()
{
$(\'input.date\').datePicker({startDate:\'01/01/1900\'}).dpSetPosition($.dpConst.POS_TOP, $.dpConst.POS_RIGHT);
$(\'#date_debut\').bind(
\'dpClosed\',
function(e, selectedDates)
{
var d = selectedDates[0];
if (d) {
d = new Date(d);
$(\'#date_fin\').dpSetStartDate(d.addDays(0).asString());
}
}
);
$(\'#date_fin\').bind(
\'dpClosed\',
function(e, selectedDates)
{
var d = selectedDates[0];
if (d) {
d = new Date(d);
$(\'#date_debut\').dpSetEndDate(d.addDays(0).asString());
}
}
);
if ($(\'#repetitions_picker\').length){
$(\'#repetitions_picker\').datePicker({
inline:true,
selectMultiple:true,
startDate:\'01/01/1900\'
})
.bind(
\'dateSelected\',
function(e, selectedDate, $td, state)
{
var dates = $(this).dpGetSelected();
var t=$(\'#repetitions_picker\').siblings(\'textarea\').eq(0);
t.html("");
d = new Date();
for (i=0;i<dates.length;i++){
if (dates[i]){
d.setTime(dates[i]);
t.append(d.getDate()+\'/\'+(d.getMonth()+1)+\'/\'+d.getFullYear()+\' \');
}
}
}
)
.siblings(\'textarea\');
var dates_init = $(\'#repetitions_picker\').siblings(\'textarea\').eq(0).html().split(\' \');
for (i=0;i<dates_init.length;i++)
if (dates_init[i].length)
$(\'#repetitions_picker\').dpSetSelected(dates_init[i],true,false);
$(\'#repetitions_picker\').dpSetDisplayedMonth(dates_init[0].split(\'/\')[1]-1,dates_init[0].split(\'/\')[2]);
$(\'div.ajouter_repetitions\').addClass(\'cachee\');
}
$("#heure_debut, #heure_fin").timePicker();
// Store time used by duration.
var oldTime = $.timePicker("#heure_debut").getTime();
// Keep the duration between the two inputs.
$("#heure_debut").change(function() {
if ($("#heure_fin").val()) { // Only update when second input has a value.
// Calculate duration.
var duration = ($.timePicker("#heure_fin").getTime() - oldTime);
var time = $.timePicker("#heure_debut").getTime();
// Calculate and update the time in the second input.
$.timePicker("#heure_fin").setTime(new Date(new Date(time.getTime() + duration)));
oldTime = time;
}
});
// Validate.
/*$("#time4").change(function() {
if($.timePicker("#time3").getTime() > $.timePicker(this).getTime()) {
$(this).addClass("error");
}
else {
$(this).removeClass("error");
}
});*/
});
$(\'document\').ready(function(){
if ($(\'#horaire\').get(0).checked==false) { $(\'span.afficher_horaire\').show();} else {$(\'span.afficher_horaire\').hide();}
});
</script>
');
return analyse_resultat_skel('html_19aeade15f58c3fe4d2fd04ae18579d0', $Cache, $page, '../plugins/auto/agenda_2_0/formulaires/inc-editer_evenement_pickers.html');
}
?>