2012-08-03 15:46:55 +07:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<?component name="divtab" macro-uri="divtab.zul"?>
|
|
|
|
<?component name="divarrow" macro-uri="divarrow.zul"?>
|
|
|
|
<zk>
|
2013-04-14 09:07:16 +07:00
|
|
|
<zscript><![CDATA[
|
|
|
|
import org.compiere.util.Msg;
|
|
|
|
import org.compiere.util.Env;
|
|
|
|
import org.compiere.util.Util;
|
|
|
|
var today = Msg.getMsg(Env.getCtx(),"Today");
|
|
|
|
var refresh = Util.cleanAmp(Msg.getMsg(Env.getCtx(),"Refresh"));
|
|
|
|
var switchTimeZone = Msg.getMsg(Env.getCtx(),"SwitchTimeZone");
|
|
|
|
var Day = Msg.getMsg(Env.getCtx(),"Day");
|
|
|
|
var Week = Msg.getMsg(Env.getCtx(),"Week");
|
|
|
|
var Month = Msg.getMsg(Env.getCtx(),"Month");
|
|
|
|
var Days = Msg.getMsg(Env.getCtx(),"5Days");
|
|
|
|
var EventsAnalysis = Msg.getMsg(Env.getCtx(),"EventsAnalysis");
|
|
|
|
var FirstDayofWeek = Msg.getMsg(Env.getCtx(),"FirstDayofWeek");
|
|
|
|
var RequestType = Msg.getElement(Env.getCtx(),"RequestType");
|
|
|
|
|
|
|
|
]]></zscript>
|
2012-08-03 15:46:55 +07:00
|
|
|
<style src="calendar.css"/>
|
|
|
|
<borderlayout id="main">
|
|
|
|
<center border="none">
|
|
|
|
<calendars firstDayOfWeek="Monday" model="${cm}" mold="month" id="cal">
|
|
|
|
<toolbar sclass="calendar-toolbar">
|
|
|
|
<div class="float-left">
|
|
|
|
<hbox>
|
|
|
|
<divarrow id="divArrowLeft" type="arrow-left"/>
|
|
|
|
<divarrow id="divArrowRight" type="arrow-right"/>
|
|
|
|
<div>
|
2013-04-14 09:07:16 +07:00
|
|
|
<button id="btnCurrentDate" mold="os" label="${today}"/>
|
|
|
|
<button id="btnSwitchTimeZone" mold="os" label="${switchTimeZone}"/>
|
2012-08-03 15:46:55 +07:00
|
|
|
<span id="FDOW">
|
2013-04-14 09:07:16 +07:00
|
|
|
${FirstDayofWeek}:
|
|
|
|
<listbox id="lbxFDOW" mold="select"/>
|
2012-08-03 15:46:55 +07:00
|
|
|
</span>
|
|
|
|
<span>
|
2013-04-14 09:07:16 +07:00
|
|
|
${RequestType}:
|
2012-08-03 15:46:55 +07:00
|
|
|
<listbox id="lbxRequestTypes" mold="select"/>
|
|
|
|
</span>
|
|
|
|
<separator orient="vertical"/>
|
|
|
|
<label id="lblDate"/>
|
2013-04-14 09:07:16 +07:00
|
|
|
<toolbarbutton id="btnRefresh" label="${refresh}" class="refresh"/>
|
2012-08-03 15:46:55 +07:00
|
|
|
</div>
|
|
|
|
</hbox>
|
|
|
|
</div>
|
|
|
|
<div class="float-right">
|
|
|
|
<hbox>
|
2013-04-14 09:07:16 +07:00
|
|
|
<divtab id="divTabDay" text="${Day}"/>
|
|
|
|
<divtab id="divTabWeek" text="${Week}"/>
|
|
|
|
<divtab id="divTabWeekdays" text="${Days}"/>
|
|
|
|
<divtab id="divTabMonth" text="${Month}"/>
|
2012-08-03 15:46:55 +07:00
|
|
|
</hbox>
|
|
|
|
</div>
|
|
|
|
</toolbar>
|
|
|
|
</calendars>
|
|
|
|
</center>
|
2013-04-14 09:07:16 +07:00
|
|
|
<south open="false" size="300px" title="${EventsAnalysis}" collapsible="true">
|
|
|
|
<image id="mychart" width="600" height="250" vflex="1" hflex="1"/>
|
2012-08-03 15:46:55 +07:00
|
|
|
</south>
|
|
|
|
</borderlayout>
|
|
|
|
|
|
|
|
<popup id="updateMsg" width="320px">
|
|
|
|
<image src="~./zk/img/progress2.gif"/>
|
|
|
|
<label id="popupLabel"/>
|
|
|
|
<timer id="timer" delay="1000" running="false">
|
|
|
|
<attribute name="onTimer">
|
|
|
|
updateMsg.close();
|
|
|
|
</attribute>
|
|
|
|
</timer>
|
|
|
|
</popup>
|
|
|
|
</zk>
|