0){ var time = new Date(lockingTime*1000); topic.publish('dGrowl', '
', {sticky:true}); var padVal = function(val){ return val.length < 2 ? [0,val].join('') : val; } dom.byId('entity_lock_timer').innerHTML = showTime(); setInterval(function() { dom.byId('entity_lock_timer').innerHTML = showTime(); },1000); } function showTime (){ var currentDate = new Date(); var currentTime = currentDate.getTime(); var diff = time.getTime() - currentTime; if (diff > 0) { var durationLeft = new Date(diff); var days = diff > 86400000 ? (diff - (diff % 86400000)) / 86400000 + ' " .$msg['abonnements_periodicite_unite_jour']. " ' : ''; var hours = durationLeft.getUTCHours().toString(); var minutes = durationLeft.getUTCMinutes().toString(); var seconds = durationLeft.getUTCSeconds().toString(); var timerContent = days + padVal(hours)+':'+padVal(minutes)+':'+padVal(seconds); dom.byId('entity_lock_timer').innerHTML = timerContent; return timerContent; }else{ topic.publish('LockingTimer', 'lockingTimerOver'); return '00:00:00'; } } }); "; $entity_locked_form = "

".$msg['entity_currently_locked_title']."

".$msg['entity_currently_locked']."

"; $entity_unload_script = " "; $entity_polling_script = " "; $save_error_message = "

".$msg['locked_entity_save_error']."

".$msg['entity_currently_locked']."

"; ?>