core-jgi/org.adempiere.ui.zk/calendar.zul

72 lines
2.3 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<?component name="divtab" macro-uri="divtab.zul"?>
<?component name="divarrow" macro-uri="divarrow.zul"?>
<zk>
<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>
<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>
<button id="btnCurrentDate" mold="os" label="${today}"/>
<button id="btnSwitchTimeZone" mold="os" label="${switchTimeZone}"/>
<span id="FDOW">
${FirstDayofWeek}:
<listbox id="lbxFDOW" mold="select"/>
</span>
<span>
${RequestType}:
<listbox id="lbxRequestTypes" mold="select"/>
</span>
<separator orient="vertical"/>
<label id="lblDate"/>
<toolbarbutton id="btnRefresh" label="${refresh}" class="refresh"/>
</div>
</hbox>
</div>
<div class="float-right">
<hbox>
<divtab id="divTabDay" text="${Day}"/>
<divtab id="divTabWeek" text="${Week}"/>
<divtab id="divTabWeekdays" text="${Days}"/>
<divtab id="divTabMonth" text="${Month}"/>
</hbox>
</div>
</toolbar>
</calendars>
</center>
<south open="false" size="300px" title="${EventsAnalysis}" collapsible="true">
<image id="mychart" width="600" height="250" vflex="1" hflex="1"/>
</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>