1
0
Fork 0
mirror of https://github.com/janickiy/yii2-nomer synced 2025-03-09 15:39:59 +00:00

add files to project

This commit is contained in:
janickiy 2020-02-05 06:34:26 +03:00
commit 5cac498444
3729 changed files with 836998 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

View file

@ -0,0 +1,418 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="190"
height="40"
id="svg2"
version="1.1"
inkscape:version="0.48.1 r9760"
sodipodi:docname="buttons3.svg"
inkscape:export-filename="C:\Users\Marek.MOL\My Documents\Aptana Studio 3 Workspace\gantt\buttons.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90">
<defs
id="defs4">
<linearGradient
id="linearGradient4383">
<stop
style="stop-color:#0097fb;stop-opacity:1;"
offset="0"
id="stop4385" />
<stop
style="stop-color:#51baff;stop-opacity:1;"
offset="1"
id="stop4387" />
</linearGradient>
<linearGradient
inkscape:collect="always"
id="linearGradient4375">
<stop
style="stop-color:#ffffff;stop-opacity:1;"
offset="0"
id="stop4377" />
<stop
style="stop-color:#ffffff;stop-opacity:0;"
offset="1"
id="stop4379" />
</linearGradient>
<linearGradient
inkscape:collect="always"
id="linearGradient4367">
<stop
style="stop-color:#ffffff;stop-opacity:1;"
offset="0"
id="stop4369" />
<stop
style="stop-color:#ffffff;stop-opacity:0;"
offset="1"
id="stop4371" />
</linearGradient>
<linearGradient
id="linearGradient4355">
<stop
style="stop-color:#718d1d;stop-opacity:1;"
offset="0"
id="stop4357" />
<stop
style="stop-color:#9dc428;stop-opacity:1;"
offset="1"
id="stop4359" />
</linearGradient>
<linearGradient
id="linearGradient4293">
<stop
id="stop4295"
offset="0"
style="stop-color:#46b5ff;stop-opacity:1;" />
<stop
id="stop4297"
offset="1"
style="stop-color:#8cd1ff;stop-opacity:1;" />
</linearGradient>
<linearGradient
id="linearGradient4234">
<stop
style="stop-color:#909090;stop-opacity:1;"
offset="0"
id="stop4236" />
<stop
style="stop-color:#181818;stop-opacity:1;"
offset="1"
id="stop4238" />
</linearGradient>
<linearGradient
id="linearGradient4174">
<stop
id="stop4176"
offset="0"
style="stop-color:#5c5c5c;stop-opacity:1;" />
<stop
id="stop4178"
offset="1"
style="stop-color:#eeeeee;stop-opacity:1;" />
</linearGradient>
<linearGradient
id="linearGradient4140">
<stop
id="stop4142"
offset="0"
style="stop-color:#535353;stop-opacity:1;" />
<stop
id="stop4144"
offset="1"
style="stop-color:#909090;stop-opacity:1;" />
</linearGradient>
<linearGradient
id="linearGradient4101">
<stop
id="stop4103"
offset="0"
style="stop-color:#93b826;stop-opacity:1;" />
<stop
id="stop4105"
offset="1"
style="stop-color:#bcdd5a;stop-opacity:1;" />
</linearGradient>
<linearGradient
id="linearGradient4095">
<stop
style="stop-color:#def2ff;stop-opacity:1;"
offset="0"
id="stop4097" />
<stop
style="stop-color:#c8e9ff;stop-opacity:1;"
offset="1"
id="stop4099" />
</linearGradient>
<linearGradient
id="linearGradient3972">
<stop
id="stop3974"
offset="0"
style="stop-color:#85ceff;stop-opacity:1;" />
<stop
id="stop3976"
offset="1"
style="stop-color:#c8e9ff;stop-opacity:1;" />
</linearGradient>
<linearGradient
id="linearGradient3872">
<stop
style="stop-color:#e5f2bf;stop-opacity:1;"
offset="0"
id="stop3874" />
<stop
style="stop-color:#c6e272;stop-opacity:1;"
offset="1"
id="stop3876" />
</linearGradient>
<linearGradient
id="linearGradient3836">
<stop
id="stop3838"
offset="0"
style="stop-color:#ffffff;stop-opacity:1;" />
<stop
id="stop3840"
offset="1"
style="stop-color:#ffffff;stop-opacity:0;" />
</linearGradient>
<linearGradient
id="linearGradient3770">
<stop
style="stop-color:#838383;stop-opacity:1;"
offset="0"
id="stop3772" />
<stop
style="stop-color:#c6c6c6;stop-opacity:1;"
offset="1"
id="stop3774" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3770"
id="linearGradient4138"
gradientUnits="userSpaceOnUse"
gradientTransform="translate(0.49178773,-1070.3622)"
x1="14.25"
y1="1051.337"
x2="14.25"
y2="1031.7034" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient4293"
id="linearGradient4299"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0.09473684,0,0,0.9,51,-928.12598)"
x1="14.25"
y1="1051.337"
x2="14.25"
y2="1031.7034" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient4101"
id="linearGradient4301"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0.09473684,0,0,0.9,71,-928.12598)"
x1="14.25"
y1="1051.337"
x2="14.25"
y2="1031.7034" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient4293"
id="linearGradient4305"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0.09473684,0,0,0.9,21,-928.12598)"
x1="14.25"
y1="1051.337"
x2="14.25"
y2="1031.7034" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient4355"
id="linearGradient4361"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0.09473684,0,0,0.9,71,-908.12598)"
x1="14.25"
y1="1051.337"
x2="14.25"
y2="1031.7034" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient4383"
id="linearGradient4363"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0.09473684,0,0,0.9,21,-908.12598)"
x1="14.25"
y1="1051.337"
x2="14.25"
y2="1031.7034" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient4383"
id="linearGradient4365"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0.09473684,0,0,0.9,51,-908.12598)"
x1="14.25"
y1="1051.337"
x2="14.25"
y2="1031.7034" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient4367"
id="linearGradient4373"
x1="51"
y1="30"
x2="69"
y2="30"
gradientUnits="userSpaceOnUse"
gradientTransform="translate(-50,0)" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient4375"
id="linearGradient4381"
x1="1"
y1="30"
x2="19"
y2="30"
gradientUnits="userSpaceOnUse"
gradientTransform="translate(50,0)" />
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="1"
inkscape:cx="68.772784"
inkscape:cy="16.606201"
inkscape:document-units="px"
inkscape:current-layer="layer2"
showgrid="false"
showguides="false"
inkscape:window-width="1280"
inkscape:window-height="776"
inkscape:window-x="0"
inkscape:window-y="24"
inkscape:window-maximized="1"
inkscape:guide-bbox="true">
<sodipodi:guide
orientation="1,0"
position="20,16.971"
id="guide3906" />
<sodipodi:guide
orientation="1,0"
position="50,33.941126"
id="guide3908" />
<sodipodi:guide
orientation="1,0"
position="70,39.59798"
id="guide3910" />
<sodipodi:guide
orientation="1,0"
position="90,26.162951"
id="guide3912" />
<sodipodi:guide
orientation="1,0"
position="110,-6"
id="guide3914" />
<sodipodi:guide
orientation="1,0"
position="130,-6.25"
id="guide3916" />
<sodipodi:guide
orientation="1,0"
position="150,-9"
id="guide3918" />
<sodipodi:guide
orientation="1,0"
position="170,-12.5"
id="guide3920" />
</sodipodi:namedview>
<metadata
id="metadata7">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-1012.3622)" />
<g
inkscape:groupmode="layer"
id="layer2"
inkscape:label="buttons">
<path
id="path4321"
d="M 53.21875,1 C 51.991951,1 51,1.9919514 51,3.21875 l 0,13.5625 C 51,18.008049 51.991951,19 53.21875,19 l 13.5625,0 C 68.008049,19 69,18.008049 69,16.78125 L 69,3.21875 C 69,1.9919514 68.008049,1 66.78125,1 l -13.5625,0 z m 5.4375,4.5 2.6875,0 c 0.49441,0 0.71875,0.2009 0.71875,0.71875 l 0,2.375 2,0 c 1.18283,0 1.48822,0.6367816 0.6875,1.4375 l -4.0625,4.03125 c -0.55213,0.55213 -0.85954,0.546711 -1.40625,0 l -4.0625,-4.03125 c -0.55765,-0.5576494 -0.72318,-1.4375 0.5625,-1.4375 l 2.15625,0 0,-2.375 C 57.9375,5.661837 58.0759,5.5 58.65625,5.5 z"
style="fill:#ffffff;fill-opacity:1;stroke:none"
inkscape:connector-curvature="0" />
<path
sodipodi:nodetypes="ssssssssssccscsssscsccs"
inkscape:connector-curvature="0"
style="fill:#ffffff;fill-opacity:1;stroke:none"
d="M 3.21875,1 C 1.991951,1 1,1.991951 1,3.21875 l 0,13.5625 C 1,18.008049 1.991951,19 3.21875,19 l 13.5625,0 C 18.008049,19 19,18.008049 19,16.78125 L 19,3.21875 C 19,1.991951 18.008049,1 16.78125,1 z m 6.75,4.5 c 0.220798,-6.77e-4 0.44269,0.161435 0.71875,0.4375 L 14.75,9.96875 c 0.800704,0.800719 0.495307,1.4375 -0.6875,1.4375 l -2,0 0,2.375 c 0,0.517851 -0.22435,0.71875 -0.71875,0.71875 l -2.6875,0 C 8.075912,14.5 7.9375,14.338164 7.9375,13.78125 l 0,-2.375 -2.15625,0 c -1.285655,0 -1.120139,-0.87985 -0.5625,-1.4375 L 9.28125,5.9375 C 9.5546,5.664144 9.747952,5.500677 9.96875,5.5 z"
id="path4323" />
<path
sodipodi:nodetypes="sssssssssssssssssssssssssssssssssssssssssssssssssssssscsccssccssccccccssccssccsccsccssccscccccsssccccssccccssssccscccccsccsss"
inkscape:connector-curvature="0"
id="path4319"
d="M 73.21875,1 C 71.991951,1 71,1.9919514 71,3.21875 l 0,13.5625 C 71,18.008049 71.991951,19 73.21875,19 l 13.5625,0 C 88.008049,19 89,18.008049 89,16.78125 L 89,3.21875 C 89,1.9919514 88.008049,1 86.78125,1 z m 20,0 C 91.991951,1 91,1.9919514 91,3.21875 l 0,13.5625 C 91,18.008049 91.991951,19 93.21875,19 l 13.5625,0 C 108.00805,19 109,18.008049 109,16.78125 l 0,-13.5625 C 109,1.9919514 108.00805,1 106.78125,1 z m 20,0 C 111.99195,1 111,1.9919514 111,3.21875 l 0,13.5625 C 111,18.008049 111.99195,19 113.21875,19 l 13.5625,0 C 128.00805,19 129,18.008049 129,16.78125 l 0,-13.5625 C 129,1.9919514 128.00805,1 126.78125,1 z m 20,0 C 131.99195,1 131,1.9919514 131,3.21875 l 0,13.5625 C 131,18.008049 131.99195,19 133.21875,19 l 13.5625,0 C 148.00805,19 149,18.008049 149,16.78125 l 0,-13.5625 C 149,1.9919514 148.00805,1 146.78125,1 z m 20,0 C 151.99195,1 151,1.9919514 151,3.21875 l 0,13.5625 C 151,18.008049 151.99195,19 153.21875,19 l 13.5625,0 C 168.00805,19 169,18.008049 169,16.78125 l 0,-13.5625 C 169,1.9919514 168.00805,1 166.78125,1 z m 20,0 C 171.99195,1 171,1.9919514 171,3.21875 l 0,13.5625 C 171,18.008049 171.99195,19 173.21875,19 l 13.5625,0 C 188.00805,19 189,18.008049 189,16.78125 l 0,-13.5625 C 189,1.9919514 188.00805,1 186.78125,1 z M 77.75,5.5 C 78.709017,5.5 79,5.7090416 79,6.21875 79,7.5457765 79.02465,8.1061474 79.03125,8.75 L 82.125,6.125 c 0.801342,-0.675812 1.4375,-0.435815 1.4375,0.5625 l 0,7 c 0,1.085121 -0.879417,0.939409 -1.4375,0.46875 L 79.03125,11.5625 c 0.005,0.631068 0.03125,0.914443 0.03125,2.125 0,0.71449 -0.702612,0.75 -1.3125,0.75 -0.682848,0 -1.35832,-0.04255 -1.28125,-0.75 0,-3.246876 0.03125,-3.9771891 0.03125,-7.46875 0.0091,-0.4620592 0.2943,-0.7201 1.25,-0.71875 z m 104.5,0 c 0.9557,-0.00135 1.24092,0.2566908 1.25,0.71875 0,3.4915609 0.0312,4.221874 0.0312,7.46875 0.0771,0.707446 -0.5984,0.75 -1.28125,0.75 -0.60989,0 -1.3125,-0.03551 -1.3125,-0.75 0,-1.210557 0.0263,-1.493932 0.0312,-2.125 l -3.09375,2.59375 c -0.55808,0.470659 -1.4375,0.616371 -1.4375,-0.46875 l 0,-7 c 0,-0.998315 0.63616,-1.238312 1.4375,-0.5625 l 3.09375,2.625 C 180.97575,8.1061474 181,7.5457765 181,6.21875 181,5.7090416 181.29099,5.5 182.25,5.5 z M 99.96875,5.625 c 0.38091,-0.00235 0.625,0.3135529 0.625,0.9375 l 0,2.1875 3.25,-2.75 c 0.80134,-0.6758121 1.4375,-0.435815 1.4375,0.5625 l 0,7 c 0,1.085121 -0.87942,0.939409 -1.4375,0.46875 l -3.25,-2.78125 0,2.3125 c 0,1.085121 -0.879415,0.939409 -1.4375,0.46875 L 95.125,10.59375 c -0.547145,-0.461426 -0.552559,-0.7215 0,-1.1875 L 99.15625,6 c 0.300505,-0.2534295 0.58395,-0.37357 0.8125,-0.375 z m 22.34375,0 c 0.38091,-0.00235 0.625,0.3135531 0.625,0.9375 l 0,7 c 0,1.085121 -0.87942,0.93941 -1.4375,0.46875 L 117.46875,10.625 c -0.54715,-0.461426 -0.55256,-0.75275 0,-1.21875 L 121.5,6 c 0.3005,-0.2534295 0.58395,-0.3735879 0.8125,-0.375 z m 15.375,0 c 0.22855,0.00141 0.512,0.1215705 0.8125,0.375 l 4.03125,3.40625 c 0.55255,0.466 0.54714,0.757324 0,1.21875 L 138.5,14.03125 c -0.55808,0.47066 -1.4375,0.616371 -1.4375,-0.46875 l 0,-7 c 0,-0.6239469 0.24409,-0.9398534 0.625,-0.9375 z m 17.65625,0 c 0.22941,0.00104 0.51199,0.1215705 0.8125,0.375 l 3.25,2.75 0,-2.1875 c 0,-0.6239471 0.24408,-0.9398531 0.625,-0.9375 0.22854,0.00143 0.51199,0.1215705 0.8125,0.375 l 4.03125,3.40625 c 0.55256,0.466 0.54714,0.726074 0,1.1875 l -4.03125,3.4375 c -0.55809,0.470659 -1.4375,0.616371 -1.4375,-0.46875 l 0,-2.3125 -3.25,2.78125 c -0.55809,0.470659 -1.4375,0.616371 -1.4375,-0.46875 l 0,-7 c 0,-0.6239469 0.24266,-0.9392377 0.625,-0.9375 z"
style="fill:#ffffff;fill-opacity:1;stroke:none" />
<path
style="fill:url(#linearGradient4301);fill-opacity:1.0;stroke:none"
d="M 73.21875,1 C 71.991951,1 71,1.9919514 71,3.21875 l 0,13.5625 C 71,18.008049 71.991951,19 73.21875,19 l 13.5625,0 C 88.008049,19 89,18.008049 89,16.78125 L 89,3.21875 C 89,1.9919514 88.008049,1 86.78125,1 z m 20,0 C 91.991951,1 91,1.9919514 91,3.21875 l 0,13.5625 C 91,18.008049 91.991951,19 93.21875,19 l 13.5625,0 C 108.00805,19 109,18.008049 109,16.78125 l 0,-13.5625 C 109,1.9919514 108.00805,1 106.78125,1 z m 20,0 C 111.99195,1 111,1.9919514 111,3.21875 l 0,13.5625 C 111,18.008049 111.99195,19 113.21875,19 l 13.5625,0 C 128.00805,19 129,18.008049 129,16.78125 l 0,-13.5625 C 129,1.9919514 128.00805,1 126.78125,1 z m 20,0 C 131.99195,1 131,1.9919514 131,3.21875 l 0,13.5625 C 131,18.008049 131.99195,19 133.21875,19 l 13.5625,0 C 148.00805,19 149,18.008049 149,16.78125 l 0,-13.5625 C 149,1.9919514 148.00805,1 146.78125,1 z m 20,0 C 151.99195,1 151,1.9919514 151,3.21875 l 0,13.5625 C 151,18.008049 151.99195,19 153.21875,19 l 13.5625,0 C 168.00805,19 169,18.008049 169,16.78125 l 0,-13.5625 C 169,1.9919514 168.00805,1 166.78125,1 z m 20,0 C 171.99195,1 171,1.9919514 171,3.21875 l 0,13.5625 C 171,18.008049 171.99195,19 173.21875,19 l 13.5625,0 C 188.00805,19 189,18.008049 189,16.78125 l 0,-13.5625 C 189,1.9919514 188.00805,1 186.78125,1 z M 77.75,5.5 C 78.709017,5.5 79,5.7090416 79,6.21875 79,7.5457765 79.02465,8.1061474 79.03125,8.75 L 82.125,6.125 c 0.801342,-0.675812 1.4375,-0.435815 1.4375,0.5625 l 0,7 c 0,1.085121 -0.879417,0.939409 -1.4375,0.46875 L 79.03125,11.5625 c 0.005,0.631068 0.03125,0.914443 0.03125,2.125 0,0.71449 -0.702612,0.75 -1.3125,0.75 -0.682848,0 -1.35832,-0.04255 -1.28125,-0.75 0,-3.246876 0.03125,-3.9771891 0.03125,-7.46875 0.0091,-0.4620592 0.2943,-0.7201 1.25,-0.71875 z m 104.5,0 c 0.9557,-0.00135 1.24092,0.2566908 1.25,0.71875 0,3.4915609 0.0312,4.221874 0.0312,7.46875 0.0771,0.707446 -0.5984,0.75 -1.28125,0.75 -0.60989,0 -1.3125,-0.03551 -1.3125,-0.75 0,-1.210557 0.0263,-1.493932 0.0312,-2.125 l -3.09375,2.59375 c -0.55808,0.470659 -1.4375,0.616371 -1.4375,-0.46875 l 0,-7 c 0,-0.998315 0.63616,-1.238312 1.4375,-0.5625 l 3.09375,2.625 C 180.97575,8.1061474 181,7.5457765 181,6.21875 181,5.7090416 181.29099,5.5 182.25,5.5 z M 99.96875,5.625 c 0.38091,-0.00235 0.625,0.3135529 0.625,0.9375 l 0,2.1875 3.25,-2.75 c 0.80134,-0.6758121 1.4375,-0.435815 1.4375,0.5625 l 0,7 c 0,1.085121 -0.87942,0.939409 -1.4375,0.46875 l -3.25,-2.78125 0,2.3125 c 0,1.085121 -0.879415,0.939409 -1.4375,0.46875 L 95.125,10.59375 c -0.547145,-0.461426 -0.552559,-0.7215 0,-1.1875 L 99.15625,6 c 0.300505,-0.2534295 0.58395,-0.37357 0.8125,-0.375 z m 22.34375,0 c 0.38091,-0.00235 0.625,0.3135531 0.625,0.9375 l 0,7 c 0,1.085121 -0.87942,0.93941 -1.4375,0.46875 L 117.46875,10.625 c -0.54715,-0.461426 -0.55256,-0.75275 0,-1.21875 L 121.5,6 c 0.3005,-0.2534295 0.58395,-0.3735879 0.8125,-0.375 z m 15.375,0 c 0.22855,0.00141 0.512,0.1215705 0.8125,0.375 l 4.03125,3.40625 c 0.55255,0.466 0.54714,0.757324 0,1.21875 L 138.5,14.03125 c -0.55808,0.47066 -1.4375,0.616371 -1.4375,-0.46875 l 0,-7 c 0,-0.6239469 0.24409,-0.9398534 0.625,-0.9375 z m 17.65625,0 c 0.22941,0.00104 0.51199,0.1215705 0.8125,0.375 l 3.25,2.75 0,-2.1875 c 0,-0.6239471 0.24408,-0.9398531 0.625,-0.9375 0.22854,0.00143 0.51199,0.1215705 0.8125,0.375 l 4.03125,3.40625 c 0.55256,0.466 0.54714,0.726074 0,1.1875 l -4.03125,3.4375 c -0.55809,0.470659 -1.4375,0.616371 -1.4375,-0.46875 l 0,-2.3125 -3.25,2.78125 c -0.55809,0.470659 -1.4375,0.616371 -1.4375,-0.46875 l 0,-7 c 0,-0.6239469 0.24266,-0.9392377 0.625,-0.9375 z"
id="rect4264"
inkscape:connector-curvature="0"
sodipodi:nodetypes="sssssssssssssssssssssssssssssssssssssssssssssssssssssscsccssccssccccccssccssccsccsccssccscccccsssccccssccccssssccscccccsccsss"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90" />
<path
style="fill:url(#linearGradient4299);fill-opacity:1;stroke:none"
d="M 53.21875,1 C 51.991951,1 51,1.9919514 51,3.21875 l 0,13.5625 C 51,18.008049 51.991951,19 53.21875,19 l 13.5625,0 C 68.008049,19 69,18.008049 69,16.78125 L 69,3.21875 C 69,1.9919514 68.008049,1 66.78125,1 l -13.5625,0 z m 5.4375,4.5 2.6875,0 c 0.49441,0 0.71875,0.2009 0.71875,0.71875 l 0,2.375 2,0 c 1.18283,0 1.48822,0.6367816 0.6875,1.4375 l -4.0625,4.03125 c -0.55213,0.55213 -0.85954,0.546711 -1.40625,0 l -4.0625,-4.03125 c -0.55765,-0.5576494 -0.72318,-1.4375 0.5625,-1.4375 l 2.15625,0 0,-2.375 C 57.9375,5.661837 58.0759,5.5 58.65625,5.5 z"
id="rect4256"
inkscape:connector-curvature="0" />
<path
id="path4303"
d="M 3.21875,1 C 1.991951,1 1,1.991951 1,3.21875 l 0,13.5625 C 1,18.008049 1.991951,19 3.21875,19 l 13.5625,0 C 18.008049,19 19,18.008049 19,16.78125 L 19,3.21875 C 19,1.991951 18.008049,1 16.78125,1 z m 6.75,4.5 c 0.220798,-6.77e-4 0.44269,0.161435 0.71875,0.4375 L 14.75,9.96875 c 0.800704,0.800719 0.495307,1.4375 -0.6875,1.4375 l -2,0 0,2.375 c 0,0.517851 -0.22435,0.71875 -0.71875,0.71875 l -2.6875,0 C 8.075912,14.5 7.9375,14.338164 7.9375,13.78125 l 0,-2.375 -2.15625,0 c -1.285655,0 -1.120139,-0.87985 -0.5625,-1.4375 L 9.28125,5.9375 C 9.5546,5.664144 9.747952,5.500677 9.96875,5.5 z"
style="fill:url(#linearGradient4305);fill-opacity:1;stroke:none"
inkscape:connector-curvature="0"
sodipodi:nodetypes="ssssssssssccscsssscsccs" />
<path
style="fill:url(#linearGradient4381);fill-opacity:1;stroke:none"
d="M 53.21875,21 C 51.991951,21 51,21.991951 51,23.21875 l 0,13.5625 C 51,38.008049 51.991951,39 53.21875,39 l 13.5625,0 C 68.008049,39 69,38.008049 69,36.78125 l 0,-13.5625 C 69,21.991951 68.008049,21 66.78125,21 l -13.5625,0 z m 5.4375,4.5 2.6875,0 c 0.49441,0 0.71875,0.2009 0.71875,0.71875 l 0,2.375 2,0 c 1.18283,0 1.48822,0.636782 0.6875,1.4375 l -4.0625,4.03125 c -0.55213,0.55213 -0.85954,0.546711 -1.40625,0 l -4.0625,-4.03125 c -0.55765,-0.557649 -0.72318,-1.4375 0.5625,-1.4375 l 2.15625,0 0,-2.375 c 0,-0.556913 0.1384,-0.71875 0.71875,-0.71875 z"
id="path4325"
inkscape:connector-curvature="0" />
<path
id="path4327"
d="M 3.21875,21 C 1.991951,21 1,21.991951 1,23.21875 l 0,13.5625 C 1,38.008049 1.991951,39 3.21875,39 l 13.5625,0 C 18.008049,39 19,38.008049 19,36.78125 l 0,-13.5625 C 19,21.991951 18.008049,21 16.78125,21 z m 6.75,4.5 c 0.220798,-6.77e-4 0.44269,0.161435 0.71875,0.4375 l 4.0625,4.03125 c 0.800704,0.800719 0.495307,1.4375 -0.6875,1.4375 l -2,0 0,2.375 c 0,0.517851 -0.22435,0.71875 -0.71875,0.71875 l -2.6875,0 C 8.075912,34.5 7.9375,34.338164 7.9375,33.78125 l 0,-2.375 -2.15625,0 c -1.285655,0 -1.120139,-0.87985 -0.5625,-1.4375 L 9.28125,25.9375 C 9.5546,25.664144 9.747952,25.500677 9.96875,25.5 z"
style="fill:url(#linearGradient4373);fill-opacity:1;stroke:none"
inkscape:connector-curvature="0"
sodipodi:nodetypes="ssssssssssccscsssscsccs" />
<path
style="fill:#ffffff;fill-opacity:1;stroke:none"
d="M 73.21875,21 C 71.991951,21 71,21.991951 71,23.21875 l 0,13.5625 C 71,38.008049 71.991951,39 73.21875,39 l 13.5625,0 C 88.008049,39 89,38.008049 89,36.78125 l 0,-13.5625 C 89,21.991951 88.008049,21 86.78125,21 z m 20,0 C 91.991951,21 91,21.991951 91,23.21875 l 0,13.5625 C 91,38.008049 91.991951,39 93.21875,39 l 13.5625,0 C 108.00805,39 109,38.008049 109,36.78125 l 0,-13.5625 C 109,21.991951 108.00805,21 106.78125,21 z m 20,0 C 111.99195,21 111,21.991951 111,23.21875 l 0,13.5625 C 111,38.008049 111.99195,39 113.21875,39 l 13.5625,0 C 128.00805,39 129,38.008049 129,36.78125 l 0,-13.5625 C 129,21.991951 128.00805,21 126.78125,21 z m 20,0 C 131.99195,21 131,21.991951 131,23.21875 l 0,13.5625 C 131,38.008049 131.99195,39 133.21875,39 l 13.5625,0 C 148.00805,39 149,38.008049 149,36.78125 l 0,-13.5625 C 149,21.991951 148.00805,21 146.78125,21 z m 20,0 C 151.99195,21 151,21.991951 151,23.21875 l 0,13.5625 C 151,38.008049 151.99195,39 153.21875,39 l 13.5625,0 C 168.00805,39 169,38.008049 169,36.78125 l 0,-13.5625 C 169,21.991951 168.00805,21 166.78125,21 z m 20,0 C 171.99195,21 171,21.991951 171,23.21875 l 0,13.5625 C 171,38.008049 171.99195,39 173.21875,39 l 13.5625,0 C 188.00805,39 189,38.008049 189,36.78125 l 0,-13.5625 C 189,21.991951 188.00805,21 186.78125,21 z M 77.75,25.5 c 0.959017,0 1.25,0.209042 1.25,0.71875 0,1.327027 0.02465,1.887397 0.03125,2.53125 L 82.125,26.125 c 0.801342,-0.675812 1.4375,-0.435815 1.4375,0.5625 l 0,7 c 0,1.085121 -0.879417,0.939409 -1.4375,0.46875 L 79.03125,31.5625 c 0.005,0.631068 0.03125,0.914443 0.03125,2.125 0,0.71449 -0.702612,0.75 -1.3125,0.75 -0.682848,0 -1.35832,-0.04255 -1.28125,-0.75 0,-3.246876 0.03125,-3.977189 0.03125,-7.46875 0.0091,-0.462059 0.2943,-0.7201 1.25,-0.71875 z m 104.5,0 c 0.9557,-0.0014 1.24092,0.256691 1.25,0.71875 0,3.491561 0.0312,4.221874 0.0312,7.46875 0.0771,0.707446 -0.5984,0.75 -1.28125,0.75 -0.60989,0 -1.3125,-0.03551 -1.3125,-0.75 0,-1.210557 0.0263,-1.493932 0.0312,-2.125 l -3.09375,2.59375 c -0.55808,0.470659 -1.4375,0.616371 -1.4375,-0.46875 l 0,-7 c 0,-0.998315 0.63616,-1.238312 1.4375,-0.5625 l 3.09375,2.625 C 180.97575,28.106147 181,27.545777 181,26.21875 181,25.709042 181.29099,25.5 182.25,25.5 z m -82.28125,0.125 c 0.38091,-0.0023 0.625,0.313553 0.625,0.9375 l 0,2.1875 3.25,-2.75 c 0.80134,-0.675812 1.4375,-0.435815 1.4375,0.5625 l 0,7 c 0,1.085121 -0.87942,0.939409 -1.4375,0.46875 l -3.25,-2.78125 0,2.3125 c 0,1.085121 -0.879415,0.939409 -1.4375,0.46875 L 95.125,30.59375 c -0.547145,-0.461426 -0.552559,-0.7215 0,-1.1875 L 99.15625,26 c 0.300505,-0.253429 0.58395,-0.37357 0.8125,-0.375 z m 22.34375,0 c 0.38091,-0.0023 0.625,0.313553 0.625,0.9375 l 0,7 c 0,1.085121 -0.87942,0.93941 -1.4375,0.46875 L 117.46875,30.625 c -0.54715,-0.461426 -0.55256,-0.75275 0,-1.21875 L 121.5,26 c 0.3005,-0.253429 0.58395,-0.373588 0.8125,-0.375 z m 15.375,0 c 0.22855,0.0014 0.512,0.121571 0.8125,0.375 l 4.03125,3.40625 c 0.55255,0.466 0.54714,0.757324 0,1.21875 L 138.5,34.03125 c -0.55808,0.47066 -1.4375,0.616371 -1.4375,-0.46875 l 0,-7 c 0,-0.623947 0.24409,-0.939853 0.625,-0.9375 z m 17.65625,0 c 0.22941,0.001 0.51199,0.121571 0.8125,0.375 l 3.25,2.75 0,-2.1875 c 0,-0.623947 0.24408,-0.939853 0.625,-0.9375 0.22854,0.0014 0.51199,0.121571 0.8125,0.375 l 4.03125,3.40625 c 0.55256,0.466 0.54714,0.726074 0,1.1875 l -4.03125,3.4375 c -0.55809,0.470659 -1.4375,0.616371 -1.4375,-0.46875 l 0,-2.3125 -3.25,2.78125 c -0.55809,0.470659 -1.4375,0.616371 -1.4375,-0.46875 l 0,-7 c 0,-0.623947 0.24266,-0.939238 0.625,-0.9375 z"
id="path4329"
inkscape:connector-curvature="0"
sodipodi:nodetypes="sssssssssssssssssssssssssssssssssssssssssssssssssssssscsccssccssccccccssccssccsccsccssccscccccsssccccssccccssssccscccccsccsss" />
<path
inkscape:export-ydpi="90"
inkscape:export-xdpi="90"
sodipodi:nodetypes="sssssssssssssssssssssssssssssssssssssssssssssssssssssscsccssccssccccccssccssccsccsccssccscccccsssccccssccccssssccscccccsccsss"
inkscape:connector-curvature="0"
id="path4331"
d="M 73.21875,21 C 71.991951,21 71,21.991951 71,23.21875 l 0,13.5625 C 71,38.008049 71.991951,39 73.21875,39 l 13.5625,0 C 88.008049,39 89,38.008049 89,36.78125 l 0,-13.5625 C 89,21.991951 88.008049,21 86.78125,21 z m 20,0 C 91.991951,21 91,21.991951 91,23.21875 l 0,13.5625 C 91,38.008049 91.991951,39 93.21875,39 l 13.5625,0 C 108.00805,39 109,38.008049 109,36.78125 l 0,-13.5625 C 109,21.991951 108.00805,21 106.78125,21 z m 20,0 C 111.99195,21 111,21.991951 111,23.21875 l 0,13.5625 C 111,38.008049 111.99195,39 113.21875,39 l 13.5625,0 C 128.00805,39 129,38.008049 129,36.78125 l 0,-13.5625 C 129,21.991951 128.00805,21 126.78125,21 z m 20,0 C 131.99195,21 131,21.991951 131,23.21875 l 0,13.5625 C 131,38.008049 131.99195,39 133.21875,39 l 13.5625,0 C 148.00805,39 149,38.008049 149,36.78125 l 0,-13.5625 C 149,21.991951 148.00805,21 146.78125,21 z m 20,0 C 151.99195,21 151,21.991951 151,23.21875 l 0,13.5625 C 151,38.008049 151.99195,39 153.21875,39 l 13.5625,0 C 168.00805,39 169,38.008049 169,36.78125 l 0,-13.5625 C 169,21.991951 168.00805,21 166.78125,21 z m 20,0 C 171.99195,21 171,21.991951 171,23.21875 l 0,13.5625 C 171,38.008049 171.99195,39 173.21875,39 l 13.5625,0 C 188.00805,39 189,38.008049 189,36.78125 l 0,-13.5625 C 189,21.991951 188.00805,21 186.78125,21 z M 77.75,25.5 c 0.959017,0 1.25,0.209042 1.25,0.71875 0,1.327027 0.02465,1.887397 0.03125,2.53125 L 82.125,26.125 c 0.801342,-0.675812 1.4375,-0.435815 1.4375,0.5625 l 0,7 c 0,1.085121 -0.879417,0.939409 -1.4375,0.46875 L 79.03125,31.5625 c 0.005,0.631068 0.03125,0.914443 0.03125,2.125 0,0.71449 -0.702612,0.75 -1.3125,0.75 -0.682848,0 -1.35832,-0.04255 -1.28125,-0.75 0,-3.246876 0.03125,-3.977189 0.03125,-7.46875 0.0091,-0.462059 0.2943,-0.7201 1.25,-0.71875 z m 104.5,0 c 0.9557,-0.0014 1.24092,0.256691 1.25,0.71875 0,3.491561 0.0312,4.221874 0.0312,7.46875 0.0771,0.707446 -0.5984,0.75 -1.28125,0.75 -0.60989,0 -1.3125,-0.03551 -1.3125,-0.75 0,-1.210557 0.0263,-1.493932 0.0312,-2.125 l -3.09375,2.59375 c -0.55808,0.470659 -1.4375,0.616371 -1.4375,-0.46875 l 0,-7 c 0,-0.998315 0.63616,-1.238312 1.4375,-0.5625 l 3.09375,2.625 C 180.97575,28.106147 181,27.545777 181,26.21875 181,25.709042 181.29099,25.5 182.25,25.5 z m -82.28125,0.125 c 0.38091,-0.0023 0.625,0.313553 0.625,0.9375 l 0,2.1875 3.25,-2.75 c 0.80134,-0.675812 1.4375,-0.435815 1.4375,0.5625 l 0,7 c 0,1.085121 -0.87942,0.939409 -1.4375,0.46875 l -3.25,-2.78125 0,2.3125 c 0,1.085121 -0.879415,0.939409 -1.4375,0.46875 L 95.125,30.59375 c -0.547145,-0.461426 -0.552559,-0.7215 0,-1.1875 L 99.15625,26 c 0.300505,-0.253429 0.58395,-0.37357 0.8125,-0.375 z m 22.34375,0 c 0.38091,-0.0023 0.625,0.313553 0.625,0.9375 l 0,7 c 0,1.085121 -0.87942,0.93941 -1.4375,0.46875 L 117.46875,30.625 c -0.54715,-0.461426 -0.55256,-0.75275 0,-1.21875 L 121.5,26 c 0.3005,-0.253429 0.58395,-0.373588 0.8125,-0.375 z m 15.375,0 c 0.22855,0.0014 0.512,0.121571 0.8125,0.375 l 4.03125,3.40625 c 0.55255,0.466 0.54714,0.757324 0,1.21875 L 138.5,34.03125 c -0.55808,0.47066 -1.4375,0.616371 -1.4375,-0.46875 l 0,-7 c 0,-0.623947 0.24409,-0.939853 0.625,-0.9375 z m 17.65625,0 c 0.22941,0.001 0.51199,0.121571 0.8125,0.375 l 3.25,2.75 0,-2.1875 c 0,-0.623947 0.24408,-0.939853 0.625,-0.9375 0.22854,0.0014 0.51199,0.121571 0.8125,0.375 l 4.03125,3.40625 c 0.55256,0.466 0.54714,0.726074 0,1.1875 l -4.03125,3.4375 c -0.55809,0.470659 -1.4375,0.616371 -1.4375,-0.46875 l 0,-2.3125 -3.25,2.78125 c -0.55809,0.470659 -1.4375,0.616371 -1.4375,-0.46875 l 0,-7 c 0,-0.623947 0.24266,-0.939238 0.625,-0.9375 z"
style="fill:url(#linearGradient4361);fill-opacity:1;stroke:none" />
<path
id="path4333"
d="M 53.21875,21 C 51.991951,21 51,21.991951 51,23.21875 l 0,13.5625 C 51,38.008049 51.991951,39 53.21875,39 l 13.5625,0 C 68.008049,39 69,38.008049 69,36.78125 l 0,-13.5625 C 69,21.991951 68.008049,21 66.78125,21 l -13.5625,0 z m 5.4375,4.5 2.6875,0 c 0.49441,0 0.71875,0.2009 0.71875,0.71875 l 0,2.375 2,0 c 1.18283,0 1.48822,0.636782 0.6875,1.4375 l -4.0625,4.03125 c -0.55213,0.55213 -0.85954,0.546711 -1.40625,0 l -4.0625,-4.03125 c -0.55765,-0.557649 -0.72318,-1.4375 0.5625,-1.4375 l 2.15625,0 0,-2.375 c 0,-0.556913 0.1384,-0.71875 0.71875,-0.71875 z"
style="fill:url(#linearGradient4365);fill-opacity:1;stroke:none"
inkscape:connector-curvature="0" />
<path
sodipodi:nodetypes="ssssssssssccscsssscsccs"
inkscape:connector-curvature="0"
style="fill:url(#linearGradient4363);fill-opacity:1;stroke:none"
d="M 3.21875,21 C 1.991951,21 1,21.991951 1,23.21875 l 0,13.5625 C 1,38.008049 1.991951,39 3.21875,39 l 13.5625,0 C 18.008049,39 19,38.008049 19,36.78125 l 0,-13.5625 C 19,21.991951 18.008049,21 16.78125,21 z m 6.75,4.5 c 0.220798,-6.77e-4 0.44269,0.161435 0.71875,0.4375 l 4.0625,4.03125 c 0.800704,0.800719 0.495307,1.4375 -0.6875,1.4375 l -2,0 0,2.375 c 0,0.517851 -0.22435,0.71875 -0.71875,0.71875 l -2.6875,0 C 8.075912,34.5 7.9375,34.338164 7.9375,33.78125 l 0,-2.375 -2.15625,0 c -1.285655,0 -1.120139,-0.87985 -0.5625,-1.4375 L 9.28125,25.9375 C 9.5546,25.664144 9.747952,25.500677 9.96875,25.5 z"
id="path4335" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 30 KiB

View file

@ -0,0 +1,409 @@
/**
*
* JQuery fn.gantt gantt chart plugin v0.2
* Copyright 2011 by Marek Bielańczuk
* http://mbielanczuk.com/
* Released under the MIT and GPL Licenses.
*
* Date: Tue Jun 21 00:18:16 +0200 2011
*/
jQuery.fn.gantt = function (options) {
var defaults = {
source: null,
itemsPerPage: 7,
months: ["Styczeń", "Luty", "Marzec", "Kwiecień", "Maj", "Czerwiec", "Lipiec", "Sierpień", "Wrzesień", "Październik", "Listopad", "Grudzień"],
dow: ["N", "Pn", "Wt", "Śr", "Cz", "Pt", "So"],
startPos: new Date()
};
var options = jQuery.extend(defaults, options);
var data = null; // Recived data
var pageNum = 0; // Current page number
var pageCount = 0; // Aviable pages count
var rowsOnLastPage = 0; // How many rows on last page
var rowsNum = 0; //
var hPosition = 0; // Current position on diagram (Horizontal)
var dateStart = null;
var dateEnd = null;
var create = function(jQuerythis) {
if (!options.source)
return;
jQuery.getJSON(options.source, function(rData) {
data = rData;
rowsNum = data.length;
pageCount = Math.ceil(rowsNum/options.itemsPerPage);
rowsOnLastPage = rowsNum - (Math.floor(rowsNum/options.itemsPerPage) * options.itemsPerPage);
dateStart = tools.getMinDate();
dateEnd = tools.getMaxDate();
var contTable = createContainer();
jQuerythis.append(contTable);
fillHollydays();
fillData();
jQuerythis.css({
height: jQuery(".fn-gantt").height() + "px"
});
jQuery('.fn-gantt .dataPanel').css({'margin-left': hPosition+'px'});
var d = Math.round((options.startPos/1000 - dateStart/1000) / 86400 )-2;
if (d > 0)
{
navigateTo(-1*d * tools.getCellSize());
} else {
repositionLabel();
}
});
var createContainer = function() {
/* Left panel */
var ganttLeftPanel = jQuery('<div class="leftPanel"/>')
.append(jQuery('<div class="row spacer"/>')
.css("height", tools.getCellSize()*4+"px")
.css("width", "100%"));
jQuery.each(data, function(i, entry) {
if (i >= pageNum*options.itemsPerPage && i < (pageNum*options.itemsPerPage+options.itemsPerPage))
{
ganttLeftPanel
.append(jQuery('<div class="row name"/>').append(jQuery('<span class="label"/>').html(entry.name)))
.append(jQuery('<div class="row desc"/>').append(jQuery('<span class="label"/>').html(entry.desc)));
}
});
/* Navigation panel */
var ganttNavigate = jQuery('<div class="navigate" />')
.append(jQuery('<a href="javascript:///" class="nav-link nav-page-back"/>')
.html('&lt;')
.click( function () {
navigatePage(-1);
}))
.append(jQuery('<div class="page-number"/>')
.append(jQuery('<span/>')
.html(pageNum+1 + ' of ' + pageCount)))
.append(jQuery('<a href="javascript:///" class="nav-link nav-page-next"/>')
.html('&gt;')
.click( function () {
navigatePage(1);
}))
.append(jQuery('<a href="javascript:///" class="nav-link nav-begin"/>')
.html('&#124;&lt;')
.click( function () {
navigateTo('begin');
}))
.append(jQuery('<a href="javascript:///" class="nav-link nav-prev-week"/>')
.html('&lt;&lt;')
.click( function () {
navigateTo(tools.getCellSize()*7);
}))
.append(jQuery('<a href="javascript:///" class="nav-link nav-prev-day"/>')
.html('&lt;')
.click( function () {
navigateTo(tools.getCellSize());
}))
.append(jQuery('<a href="javascript:///" class="nav-link nav-next-day"/>')
.html('&gt;')
.click( function () {
navigateTo(tools.getCellSize() * -1);
}))
.append(jQuery('<a href="javascript:///" class="nav-link nav-next-week"/>')
.html('&gt;&gt;')
.click( function () {
navigateTo(tools.getCellSize() * -7);
}))
.append(jQuery('<a href="javascript:///" class="nav-link nav-end"/>')
.html('&gt;&#124;')
.click( function () {
navigateTo('end');
}));
/* Container */
var gantt = jQuery('<div class="fn-gantt" />');
gantt
.append(
jQuery('<div class="fn-content"/>')
.append(ganttLeftPanel)
.append(
jQuery('<div class="rightPanel"/>')
.append(createDataContainer())
))
.append(jQuery('<div class="bottom"/>')
.append(ganttNavigate));
return gantt;
};
// Creates Data container with header
var createDataContainer = function() {
var range = tools.parseDateRange(dateStart, dateEnd);
var years = jQuery("<div class='row'/>");
var year = range[0].getFullYear();
var daysInYear = 0;
var months = jQuery("<div class='row'/>");
var month = range[0].getMonth();
var daysInMonth = 0;
var days = jQuery('<div class="row"/>');
var dow = jQuery('<div class="row"/>');
var today = new Date();
today = new Date(today.getFullYear(), today.getMonth(), today.getDate());
jQuery.each(range, function(i, rday) {
if (rday.getFullYear() != year) {
years.append(jQuery('<div class="row header year"/>')
.css("width", tools.getCellSize()*daysInYear + "px")
.append(jQuery("<div class='label'/>").html(year)));
year = rday.getFullYear();
daysInYear = 0;
}
daysInYear++;
if (rday.getMonth() != month) {
months.append(jQuery('<div class="row header month"/>')
.css("width", tools.getCellSize()*daysInMonth + "px")
.append(jQuery("<div class='label'/>").html(options.months[month])));
month = rday.getMonth();
daysInMonth = 0;
}
daysInMonth++;
var day_class = (today - rday == 0) ? ' today' : (options.hollydays && options.hollydays.join().indexOf(rday.getTime())>-1) ? "hollyday" : rday.getDay() == 6 ? "sa" : (rday.getDay() == 0 ? "sn" : "wd");
days.append(jQuery('<div class="row day '+day_class+'" />').html(rday.getDate()));
dow.append(jQuery('<div class="row day '+day_class+'" />').html( options.dow[rday.getDay()] ));
});
years.append(jQuery('<div class="row header year"/>')
.css("width", tools.getCellSize()*daysInYear + "px")
.append(jQuery("<div class='label'/>").html(year)));
months.append(jQuery('<div class="row header month"/>')
.css("width", tools.getCellSize()*daysInMonth + "px")
.append(jQuery("<div class='label'/>").html(options.months[month])));
var dataPanel = jQuery("<div class='dataPanel'/>").css("width", range.length*tools.getCellSize()+"px");
dataPanel.append(years);
dataPanel.append(months);
dataPanel.append(days);
dataPanel.append(dow);
jQuery.each(data, function(i, entry) {
if (i >= pageNum*options.itemsPerPage && i < (pageNum*options.itemsPerPage+options.itemsPerPage))
{
var dRow = jQuery('<div class="row">');
jQuery.each(range, function(j, day) {
var todayCls = (today - day == 0) ? ' today' : day.getDay() == 6 ? ' sa' : (day.getDay() == 0 ? ' sn' : '');
dRow.append(jQuery('<div class="row day' + todayCls + '" id="d'+i+'-'+ tools.genId(day.getTime())+'" />')
.html(day));
});
dataPanel.append(dRow);
}
});
return dataPanel;
};
createProgressBar = function(days, cls, desc) {
var cellWidth = tools.getCellSize();
var barMarg = tools.getProgressBarMargin() || 0;
var bar = jQuery("<div class='bar' />")
.addClass( cls )
.css({
width: ((cellWidth * ++days) - barMarg)
});
if (desc)
{
bar
.mouseover(function(e){
var hint = jQuery("<div class='fn-gantt-hint' />").html(desc);
jQuery("body").append(hint);
hint.css('left', e.pageX);
hint.css('top', e.pageY);
hint.show();
})
.mouseout(function(){
jQuery(".fn-gantt-hint").remove();
})
.mousemove(function(e){
jQuery('.fn-gantt-hint').css('left', e.pageX);
jQuery('.fn-gantt-hint').css('top', e.pageY+15);
});
}
return bar;
};
var fillHollydays = function() {
if (options.hollydays)
{
jQuery.each(data, function(i, entry) {
jQuery.each(options.hollydays, function(j, hollyday) {
jQuery('#d'+i+'-'+ tools.genId(tools.dateDeserialize(hollyday).getTime()))
.addClass("hollyday");
});
});
}
};
var fillData = function() {
jQuery.each(data, function(i, entry) {
if (i >= pageNum * options.itemsPerPage && i < (pageNum*options.itemsPerPage+options.itemsPerPage))
{
jQuery.each(entry.values, function(j, day) {
var _bar = createProgressBar(
Math.floor(((Date.parse(tools.dateDeserialize(day.to)) / 1000)
- (Date.parse(tools.dateDeserialize(day.from)) / 1000)) / 86400),
day.customClass ? day.customClass : '',
day.desc ? day.desc : ''
);
jQuery('#d'+i+'-'+ tools.genId(tools.dateDeserialize(day.from).getTime()))
.append(_bar
);
});
}
});
};
navigateTo = function(val) {
switch (val) {
case 'begin':
jQuery('.fn-gantt .dataPanel').animate({
'margin-left': '0px'
}, 'fast', function() {repositionLabel();});
break;
case 'end':
var mLeft = jQuery('.fn-gantt .dataPanel').width() - jQuery('.fn-gantt .rightPanel').width();
jQuery('.fn-gantt .dataPanel').animate({
'margin-left': '-' + mLeft + 'px'
}, 'fast', function() {repositionLabel();});
break;
default:
var max_left = (jQuery('.fn-gantt .dataPanel').width() - jQuery('.fn-gantt .rightPanel').width()) * -1;
var cur_marg = jQuery('.fn-gantt .dataPanel').css('margin-left').replace('px','');
var val = parseInt(cur_marg) + val;
if (val <= 0 && val >= max_left)
jQuery('.fn-gantt .dataPanel').animate({
'margin-left': val + 'px'
}, 'fast', repositionLabel);
break;
}
};
navigatePage = function(val) {
if ((pageNum+val) >= 0 && (pageNum+val) < Math.ceil(rowsNum/options.itemsPerPage))
{
pageNum += val;
hPosition = jQuery('.fn-gantt .dataPanel').css('margin-left').replace('px','');
jQuerythis.empty();
create(jQuerythis);
}
};
repositionLabel = function() {
jQuery('.fn-gantt .dataPanel').stop();
var wrapper = { offset: jQuery('.fn-gantt .rightPanel').offset(),
width: jQuery('.fn-gantt .rightPanel').width(),
height: jQuery('.fn-gantt .rightPanel').height()};
jQuery(".fn-gantt .rightPanel .year, .fn-gantt .rightPanel .month").each(function(i, obj) {
var objDim = { offset: jQuery(obj).offset(),
width: jQuery(obj).width(),
height: jQuery(obj).height()};
if (objDim.offset.left + objDim.width > wrapper.offset.left
&& objDim.offset.left < wrapper.offset.left+wrapper.width)
{
var viewArea = {
left: objDim.offset.left > wrapper.offset.left ? objDim.offset.left : wrapper.offset.left,
right: objDim.offset.left+objDim.width < wrapper.offset.left + wrapper.width ? objDim.offset.left+objDim.width : wrapper.offset.left + wrapper.width
};
jQuery(obj).children(".label").css("float", "left");
var labelWidth = jQuery(obj).children(".label").width();
var objMarg = objDim.offset.left < wrapper.offset.left ? wrapper.offset.left-objDim.offset.left : 0;
if (viewArea.right-viewArea.left > labelWidth)
jQuery(obj).children(".label")
.css("margin-left", objMarg + (viewArea.right - viewArea.left)/2 - labelWidth/2 + "px");
}
});
};
};
var tools = new function() {
this.getMaxDate = function() {
var maxDate = null;
jQuery.each(data, function(i, entry) {
jQuery.each(entry.values, function(i, date) {
maxDate = maxDate < tools.dateDeserialize(date.to) ? tools.dateDeserialize(date.to) : maxDate;
});
});
maxDate.setDate(maxDate.getDate() + 2);
if (maxDate.getDate() <= 4)
maxDate.setDate(maxDate.getDate() + 4);
return maxDate;
};
this.getMinDate = function() {
var minDate = null;
jQuery.each(data, function(i, entry) {
jQuery.each(entry.values, function(i, date) {
minDate = minDate > tools.dateDeserialize(date.from) || minDate == null ? tools.dateDeserialize(date.from) : minDate;
});
});
minDate.setDate(minDate.getDate() - 2);
if (minDate.getDate() >= 27)
minDate.setDate(minDate.getDate() - 4);
return minDate;
};
this.parseDateRange = function(from, to) {
var current = new Date(from.getTime());
var end = new Date(to.getTime());;
var ret = new Array();
var i = 0;
do {
ret[i++] = new Date(current.getTime());
current.setDate(current.getDate()+1);
} while (current <= to);
return ret;
};
this.dateDeserialize = function (dateStr) {
return eval('new' + dateStr.replace(/\//g, ' '));
};
this.genId = function (ticks) {
var t = Math.floor(ticks / 86400000);
return t * 86400000;
};
var _getCellSize = null;
this.getCellSize = function() {
if (!_getCellSize)
{
jQuery("body").append(
jQuery("<div style='display: none; position: absolute;' class='fn-gantt' id='measureCellWidth'><div class='row'></div></div>")
);
_getCellSize = jQuery('#measureCellWidth .row').height();
jQuery('#measureCellWidth').empty().remove();
}
return _getCellSize;
};
this.getPageHeight = function() {
return pageNum+1 == pageCount ? rowsOnLastPage*tools.getCellSize() : options.itemsPerPage*tools.getCellSize();
};
var _getProgressBarMargin = null;
this.getProgressBarMargin = function() {
if (!_getProgressBarMargin)
{
jQuery("body").append(
jQuery("<div style='display: none; position: absolute;' id='measureBarWidth' ><div class='fn-gantt'><div class='rightPanel'><div class='dataPanel'><div class='row day'><div class='bar' /></div></div></div></div></div>")
);
_getProgressBarMargin = parseInt(jQuery('#measureBarWidth .fn-gantt .rightPanel .day .bar').css("margin-left").replace("px",""));
_getProgressBarMargin += parseInt(jQuery('#measureBarWidth .fn-gantt .rightPanel .day .bar').css("margin-right").replace("px",""));
jQuery('#measureBarWidth').empty().remove();
}
return _getProgressBarMargin;
};
};
jQuery(this).empty();
create(jQuery(this));
};

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,264 @@
.gantt {
width: 575px;
height: 500px;
margin: 20px auto;
border: 15px solid #ddd;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
}
.gantt:after {
content: ".";
visibility: hidden;
display: block;
height: 0;
clear: both;
}
.fn-gantt {
width: 100%;
}
.fn-gantt .fn-content {
overflow: hidden;
width: 100%;
}
/* left panel */
.fn-gantt .leftPanel {
float: left;
width: 225px;
overflow: hidden;
border-right: 1px solid #DDD;
}
.fn-gantt .row {
float: left;
height: 24px;
line-height: 24px;
}
.fn-gantt .leftPanel .label {
margin: 0 0 0 5px;
}
.fn-gantt .leftPanel .name, .fn-gantt .leftPanel .desc {
float: left;
height: 23px;
margin: 0;
border-bottom: 1px solid #DDD;
background-color: #f6f6f6;
}
.fn-gantt .leftPanel .name {
width: 110px;
}
.fn-gantt .leftPanel .desc {
width: 115px;
}
.fn-gantt .spacer
{
margin: -2px 0 1px 0;
border-bottom: 1px solid #DDD;
background-color: #f6f6f6;
}
/* right panel */
.fn-gantt .rightPanel {
float: left;
width: 349px;
overflow: hidden;
}
.fn-gantt .day {
overflow: visible;
width: 24px;
line-height: 24px;
text-align: center;
border-left: 1px solid #DDD;
border-bottom: 1px solid #DDD;
margin: -1px 0 0 -1px;
}
.fn-gantt .hollyday {
background-color: #f9e5e2;
}
.fn-gantt .today {
background-color: #e2ebff;
}
.fn-gantt .sa, .fn-gantt .sn, .fn-gantt .wd {
height: 23px;
margin: 0 0 0 -1px;
}
.fn-gantt .sa {
background-color: #dfdfdf;
}
.fn-gantt .sn {
background-color: #dedede;
}
.fn-gantt .wd {
background-color: #f6f6f6;
}
.fn-gantt .rightPanel .month, .fn-gantt .rightPanel .year {
float: left;
overflow: hidden;
border-left: 1px solid #DDD;
border-bottom: 1px solid #DDD;
height: 23px;
margin: 0 0 0 -1px;
background-color: #f6f6f6;
}
.fn-gantt-hint {
border: 5px solid #edc332;
background-color: #fff5d4;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
padding: 10px;
position: absolute;
display: none;
z-index: 10001;
}
.fn-gantt .bar {
border: none;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
background-color: #89c5f8;
height: 18px;
margin: 4px 3px 3px 3px;
position: relative;
z-index: 10000;
}
.fn-gantt .ganttRed {
background-color: #8F0000;
}
.fn-gantt .ganttGreen {
background-color: #b3cf6f;
}
.fn-gantt .ganttOrange {
background-color: #ff7e24;
}
/* bottom (navigation) */
.fn-gantt .bottom {
clear: both;
background-color: #f6f6f6;
width: 100%;
}
.fn-gantt .navigate {
text-align: center;
}
.fn-gantt .navigate .page-number {
display: inline-block;
font-size: 10px;
height: 20px;
}
.fn-gantt .navigate .page-number span {
color: #666666;
margin: 5px;
position: relative;
top: 13px;
}
.fn-gantt .navigate a:link, .fn-gantt .navigate a:visited, .fn-gantt .navigate a:active {
text-decoration: none;
}
.fn-gantt .nav-link {
margin: 0px 0px 8px 0px;
display: inline-block;
width: 20px;
height: 20px;
font-size: 0px;
}
.fn-gantt .navigate .nav-page-back {
background-image: url(img/buttons.png);
background-position: 0 0;
}
.fn-gantt .navigate .nav-page-next {
background-image: url(img/buttons.png);
background-position: -50px 0;
margin-right: 15px;
}
.fn-gantt .navigate .nav-page-back:hover {
background-position: 0 -20px;
}
.fn-gantt .navigate .nav-page-next:hover {
background-position: -50px -20px;
}
.fn-gantt .navigate .nav-begin {
background-image: url(img/buttons.png);
background-position: -70px 0;
}
.fn-gantt .navigate .nav-prev-week {
background-image: url(img/buttons.png);
background-position: -90px 0;
}
.fn-gantt .navigate .nav-prev-day {
background-image: url(img/buttons.png);
background-position: -110px 0;
}
.fn-gantt .navigate .nav-next-day {
background-image: url(img/buttons.png);
background-position: -130px 0;
}
.fn-gantt .navigate .nav-next-week {
background-image: url(img/buttons.png);
background-position: -150px 0;
}
.fn-gantt .navigate .nav-end {
background-image: url(img/buttons.png);
background-position: -170px 0;
}
.fn-gantt .navigate .nav-begin:hover {
background-position: -70px -20px;
}
.fn-gantt .navigate .nav-prev-week:hover {
background-position: -90px -20px;
}
.fn-gantt .navigate .nav-prev-day:hover {
background-position: -110px -20px;
}
.fn-gantt .navigate .nav-next-day:hover {
background-position: -130px -20px;
}
.fn-gantt .navigate .nav-next-week:hover {
background-position: -150px -20px;
}
.fn-gantt .navigate .nav-end:hover {
background-position: -170px -20px;
}