3 <script type=
"text/javascript">//<![CDATA[
4 XHR.poll(
5, '<%=url('admin/system/clock_status')%
>', null,
7 var s = document.getElementById('<%=self.option%
>-clock-status');
10 s.innerHTML = rv.timestring || '?';
15 function sync_clock(btn)
18 btn.value = '<%:Synchronizing...%
>';
20 (new XHR()).post('<%=url('admin/system/clock_status')%
>',
21 { token: '<%=token%
>', set: Math.floor((new Date()).getTime() /
1000) },
25 btn.value = '<%:Sync with browser%
>';
33 <span id=
"<%=self.option%>-clock-status"><em><%:Collecting data...%
></em></span>
34 <input type=
"button" class=
"cbi-button cbi-button-apply" value=
"<%:Sync with browser%>" onclick=
"return sync_clock(this)" />