From a7408bd65966ef556c76c5677c44a7bf27f0ae0c Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Mon, 30 Apr 2012 01:42:15 +0200 Subject: [PATCH] Added files to frontend --- frontend/css/cvm.css | 262 ++++++++++++++++++++++++++++ frontend/images/button_restart.png | Bin 0 -> 2059 bytes frontend/images/button_start.png | Bin 0 -> 1039 bytes frontend/images/button_stop.png | Bin 0 -> 298 bytes frontend/images/icon_alerts.png | Bin 0 -> 410 bytes frontend/images/icon_api.png | Bin 0 -> 420 bytes frontend/images/icon_backup.png | Bin 0 -> 315 bytes frontend/images/icon_ip.png | Bin 0 -> 256 bytes frontend/images/icon_overview.png | Bin 0 -> 357 bytes frontend/images/icon_reinstall.png | Bin 0 -> 447 bytes frontend/images/icon_statistics.png | Bin 0 -> 279 bytes frontend/images/icon_webshell.png | Bin 0 -> 232 bytes frontend/images/loading.gif | Bin 0 -> 493 bytes frontend/images/logo.png | Bin 0 -> 5164 bytes frontend/interface.php | 25 +++ frontend/js/cvm.js | 17 ++ frontend/templates/main.tpl | 118 +++++++++++++ 17 files changed, 422 insertions(+) create mode 100644 frontend/css/cvm.css create mode 100644 frontend/images/button_restart.png create mode 100644 frontend/images/button_start.png create mode 100644 frontend/images/button_stop.png create mode 100644 frontend/images/icon_alerts.png create mode 100644 frontend/images/icon_api.png create mode 100644 frontend/images/icon_backup.png create mode 100644 frontend/images/icon_ip.png create mode 100644 frontend/images/icon_overview.png create mode 100644 frontend/images/icon_reinstall.png create mode 100644 frontend/images/icon_statistics.png create mode 100644 frontend/images/icon_webshell.png create mode 100644 frontend/images/loading.gif create mode 100644 frontend/images/logo.png create mode 100644 frontend/interface.php create mode 100644 frontend/js/cvm.js create mode 100644 frontend/templates/main.tpl diff --git a/frontend/css/cvm.css b/frontend/css/cvm.css new file mode 100644 index 0000000..61d6b5c --- /dev/null +++ b/frontend/css/cvm.css @@ -0,0 +1,262 @@ +html, body +{ + font-family: 'Open Sans', sans-serif; + background-color: #E4EAEA; +} + +h1, h2, h3, h4, h5 +{ + margin: 0px; + color: #343352; +} + +h1 +{ + margin-bottom: 7px; +} + +h2 +{ + margin-bottom: 9px; +} + +h3 +{ + font-size: 20px; +} + +p +{ + margin: 5px 0px; +} + +table +{ + +} + +th +{ + text-align: left; +} + +table.vpsinfo td +{ + padding: 2px 13px; +} + +.clear +{ + clear: both; +} + +.wrapper +{ + width: 900px; + margin: 0px auto; +} + +.header +{ + font-size: 40px; + font-weight: bold; +} + +.main +{ + position: relative; + background-color: #F1F1F1; + padding: 9px 13px; + border: 2px solid #817F9D; + padding-left: 225px; + min-height: 400px; +} + +.sidebar +{ + position: absolute; + top: 16px; + left: 8px; + width: 200px; + background-color: #DCDCDC; +} + +.sidebar a.button +{ + display: block; + padding: 5px 8px; + text-decoration: none; + color: #343352; + font-size: 18px; + font-weight: bold; + padding-left: 30px; + background-repeat: no-repeat; + background-position: 8px 10px; +} + +.sidebar a.button:hover +{ + background-color: #CDCCDE; +} + +#button_overview +{ + background-image: url(../images/icon_overview.png); +} + +#button_statistics +{ + background-image: url(../images/icon_statistics.png); +} + +#button_webshell +{ + background-image: url(../images/icon_webshell.png); +} + +#button_ip +{ + background-image: url(../images/icon_ip.png); +} + +#button_reinstall +{ + background-image: url(../images/icon_reinstall.png); +} + +#button_backup +{ + background-image: url(../images/icon_backup.png); +} + +#button_api +{ + background-image: url(../images/icon_api.png); +} + +#button_alerts +{ + background-image: url(../images/icon_alerts.png); +} + +.quota-item +{ + float: left; + width: 203px; + margin-right: 23px; + margin-bottom: 10px; +} + +.quota-bar +{ + position: relative; + border: 1px solid #343352; + width: 100%; + height: 18px; +} + +.quota-bar-inner +{ + background-color: #12005E; + height: 100%; +} + +.quota-bar-label +{ + position: absolute; + top: 0px; + left: 0px; + right: 0px; + bottom: 0px; + font-size: 13px; + font-weight: bold; + color: white; + padding-left: 5px; + text-shadow: 0px 0px 3px #000673, 0px 0px 1px #000000, 0px 0px 3px #000000, 0px 0px 2px #000673; + -webkit-text-shadow: 0px 0px 3px #000673, 0px 0px 1px #000000, 0px 0px 3px #000000, 0px 0px 2px #000673; + -moz-text-shadow: 0px 0px 3px #000673, 0px 0px 1px #000000, 0px 0px 3px #000000, 0px 0px 2px #000673; + -o-text-shadow: 0px 0px 3px #000673, 0px 0px 1px #000000, 0px 0px 3px #000000, 0px 0px 2px #000673; + -ms-text-shadow: 0px 0px 3px #000673, 0px 0px 1px #000000, 0px 0px 3px #000000, 0px 0px 2px #000673; +} + +.quota-item.wide +{ + width: 316px; +} + +.quota-item.last +{ + margin-right: 0px; +} + +.quota +{ + margin-bottom: 19px; +} + +.infobox +{ + border: 1px solid #B0B0B0; + background-color: #EDEDED; + padding: 6px 9px; +} + +.controlbox +{ + margin-bottom: 23px; +} + +.controlbutton +{ + border: 2px solid #343352; + font-size: 24px; + color: #343352; + text-align: center; + font-weight: bold; + float: left; + text-decoration: none; + padding: 9px; + margin-right: 12px; + width: 189px; +} + +.controlbutton.last +{ + margin-right: 0px; +} + +.controlbutton img +{ + display: block; + margin: 0px auto; +} + +.controlbutton:hover +{ + background-color: #CDD0E1; +} + +.controlbutton.disabled, .constrolbutton.disabled:hover +{ + border: 2px solid #737379; + background-color: #9B9B9B; + cursor: default; +} + +.online +{ + color: #078812; + font-weight: bold; +} + +.offline +{ + color: #A7101C; + font-weight: bold; +} + +.suspended +{ + color: #5B5F6B; + font-weight: bold; +} diff --git a/frontend/images/button_restart.png b/frontend/images/button_restart.png new file mode 100644 index 0000000000000000000000000000000000000000..03ffe2dbf341042d68cd20cd81419c99743bee95 GIT binary patch literal 2059 zcmV+m2=w=fP)Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L01ejw01ejxLMWSf00007bV*G`2iyb< z3=|f{9`x)000)anL_t(|+U;9?a8%V5|DF4G0~?4+qA~^|FtLRYqGdmD7CHq}n{nDv z*d$x0ew1NUEbUBdXNtvk%3z&BajK)Xv=v+NqqI{Nc2gpw)e$lZ4J3Ovk~AN-Q7Y9< z8^cGG=3_VSp8i3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X~rMDno2#~UI zh}bywW$>@0Y9CZ(K>+_Yl-ARJ z@R<^PKA*0b9-LsR+ge%zr&6j15UADAv;>ESFfweZ%Reg!bc3-m7`$Om5{Z&AoQ~SR z0;n{Kt%LH0#hGYU$OVKsGi1UhEp$3NZpS48QvwwD82}?DG3Hjc+iSa|36Rp?2cqAa zteg4Ki2n0SfqRTeg(h+0HqiG2^}kC<9=RAy%Pjw61hc1(lWAJ3jcJBdIEq+wHYoGkei` zO|$p`d_HzzfL>luuHBbxOHM*vVh+c8D`8*{CU2Ai&esrM0MV{sueKOaCEo? z)EWle1K_GS$|A2a#ynCs4rOE;G{UM?t1Rcv74HPcY?zve(*TYVsDp`5kfQTni_~RI zxEf5K8@H^IxGO?HU~q8wYpFI%Cfh4aPJ7+=K)e-Z4HTIJ6Y%(qqSKqkkIaw@0>+m_ z?M(#ig3&R0W}>!!Ft2S51zt&)&Xk&^`}(^7F{^mVZ>&}>#QF0?k)gROFz?c=dVNdq zPsh_tYIDuobVA|5Om(7V;1?sS%ajuL5@;QOvLw}n3G|}Q>iJM8 z(4DhnDD}i;brqo15Wxkeg#a%CF#QuEIsvB?cz~EB1ho+HvHA10P`1t?v-+#C3)|?a pQ!|P*&B_zoRi-e7DNG^T_%C7+@a2xVPw4;v002ovPDHLkV1hI5!&d+R literal 0 HcmV?d00001 diff --git a/frontend/images/button_start.png b/frontend/images/button_start.png new file mode 100644 index 0000000000000000000000000000000000000000..b631414417b4d86172278167cb45bef0a00f81a7 GIT binary patch literal 1039 zcmV+q1n~QbP)Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L01ejw01ejxLMWSf00007bV*G`2iyb< z3={{iuGAg?00WOnL_t(|+U=Q7Y!p=-$G^Xst`;#uYe_^eB-RLN6gqDPIB3#{7YxSk zj(akC%q!tLzp8%bU!Pjfc)nHyn~=zGK6_#%a*sEkWN5>0E2s+?0nkL z%$?zISd~pck+n>G^y-w85F+@Ji~@>i1p3(!=E&Af-Roo&u=st*s>-Ax%!3^r;m4&D zP~b5J?`dv!(z+ge2LQ(M4?j|Ky)!Oa)vpxp5-v1!2~B(RWf=u5)^3GzKP{(r`|8H0P`fXd zQ@j0m<+Y-m+U?srze4T)$S}-pG788N=)=Gx>bhhycIN-%rvKjjw>ePMvSaC`<2%k7kcK_(;H@B8wIlZ~zpH-M5iP4z# z@SWRRTw`#rof`f!e{NEVLkDlL078Ezv+~gR__6;g`QRoGEcauiI`1cwUth1ru?rK4qpp%Z^RE;lEc)0lzR1v8{N@ zOzBgdoBXe#|Th$Q2U>sKi*n93={D#|;c7+Ad7%91E zGCBOCSL$V@1l$JkZp(VHCh^rx0`3xM@Sfuw92@)UPOajrD+CbeB&oSwiA4MgJj`+g zOp-#;dMCJgMB%>+@wL-0lP_Zh&=-NMa^TnVLpRZ&L4yW9;yx6GIER~3Qyl;R002ov JPDHLkV1kA3=+giI literal 0 HcmV?d00001 diff --git a/frontend/images/button_stop.png b/frontend/images/button_stop.png new file mode 100644 index 0000000000000000000000000000000000000000..8ace279ae06cb405e8bd2287334e96319dce69d7 GIT binary patch literal 298 zcmeAS@N?(olHy`uVBq!ia0vp^4j|0I1|(Ny7TyC=jKx9jP7LeL$-D$|*pj^6T^Rm@ z;DWu&Cj&(|3p^r=f!eQwFr$;k>O}H9yX7V%GN6ZjG7h9r#RZ1x~6Ff z$z}%bF)`dE^!rUt`R2{{-~QD}=rnkf?;f~6@3Vow4c{)e6?u#w8C4kU9d>p;zUZx~ zz;jl#G0{(N;fGIe|Nh)3@Zk5{xwFE5Gi{i8f5RD;cMnrO{g|w!HT#>*`z<>p7w@NLwaRI+)+^UFzmq-D%_VE{ zeYSg+)!&-G|JkEv7jw01i?ikE`0UrVJXI>wKW|O+%L6bP0l+XkKDR7|7 literal 0 HcmV?d00001 diff --git a/frontend/images/icon_api.png b/frontend/images/icon_api.png new file mode 100644 index 0000000000000000000000000000000000000000..61fcf18ed367993cc6b4c93b414439a1e47b4215 GIT binary patch literal 420 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|*pj^6T^Rm@ z;DWu&Cj&(|3p^r=f!eQwFr$;k>`dwwn5K^8I~yVDIySbAK)W*C$GCc)RWOje8GwL@hnTu=I?c*W1pD=M7RT z87&scH~tJN;raV3XOk35`uU}jJ(m_*N<@?^NuT}C%P{5P!A;NJF|O$e=XsUtaiF4Uo-U3d7N_rCP~#_87= zzDQhjh1JL8E0fuJ9y|Sj90u-5_ERM#B;FYq7|cmXNa(OEF1s5W6uW`ND_UV=XF20W pPEIwpZr&8}BMvWxJ>DoXFeJYgyQp!kLKJ8XgQu&X%Q~loCICC`P7VM7 literal 0 HcmV?d00001 diff --git a/frontend/images/icon_overview.png b/frontend/images/icon_overview.png new file mode 100644 index 0000000000000000000000000000000000000000..293bf1d6ca08e455944fa33cd47173a7a101eb9b GIT binary patch literal 357 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|*pj^6T^Rm@ z;DWu&Cj&(|3p^r=85sDEfH31!Z9ZwBAbW|YuPgf<7EW<4m4B*gATuRPTq8=H^K)}k z^GX<;i&7IyQd1PlGfOfQ+&z5*!W;R-fr<`zx;TbdoL)M4BVUt&h%3ME52YWh>gGaW z;*U-oDSz?kj=sXnXNwkR|F-4xJ@RyFf-=jgxwrORpL}~ybVrDoXz{P`(~sC*^P~o* zIxx>^Fu%Zj%gVTAo}~ldmIJBBT-fidG5*J{aINS8pG?FxVGE{vR?V{_vchBBs-h}i zy-;Ab%bC3C9FLb7@9nD$EDm!SRxEEwVRe{auzfyL36lf!V+nT7lToFLQ+GFSu|D-t tWKZcct>@_vSZz|)E_o*YH}~(kcrjmZy@PZ3F97|*;OXk;vd$@?2>>4Cfj0mE literal 0 HcmV?d00001 diff --git a/frontend/images/icon_reinstall.png b/frontend/images/icon_reinstall.png new file mode 100644 index 0000000000000000000000000000000000000000..97335a686702ad22cd8ce409760c690791069696 GIT binary patch literal 447 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|*pj^6T^Rm@ z;DWu&Cj&(|3p^r=85sDEfH31!Z9ZwBAbW|YuPgf<7EW;mp|~&g3xPtCC9V-A&iT2y zsd*&~&PAz-C8;S2<(VZJ3hti10pX2&;y|mUJY5_^EKaYTZ0mQ}L7>&1N07D4r8{4M zgLgM8t37Lx_eSvr9hWW?OIqnY;EoVUa5*fc$T~^-2(Qoi+VWz43tRhLwLz z3zolSe&FKr{y>=TCNYx{Dia z9`*itW9sq7|0%t%Ti!@__neh7-*7DS+K#*#Z?r5UCZv?zSaqx7a`U`nh3`wF{N$nz zOh4c%^WExl(Ie&fCGiL10*Ws)y<>Jxkl(@D!LVdQOz}6Zlyef=3hP59Uny|5m~1+> kl~eO)z2^U~#=5!pF9+l;2)jKw9T=1hp00i_>zopr0Nv`afB*mh literal 0 HcmV?d00001 diff --git a/frontend/images/icon_statistics.png b/frontend/images/icon_statistics.png new file mode 100644 index 0000000000000000000000000000000000000000..fe13c4ae616e06e75312f33c30eda36ca23c5e3a GIT binary patch literal 279 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|*pj^6T^Rm@ z;DWu&Cj&(|3p^r=85sDEfH31!Z9ZwBAbW|YuPgf<7EW;<-dATOe*uLgOI#yLobz*Y zQ}ap~oQqNuOHxx5$}>wc6x=<11Hv2m#DR*6JY5_^EKVmUC@{^CU^jd;DLF+!2*~>D z{wQjWq=^Tl(A$raiAh+PZ!4!i_^&o5*Y_Ll4nS;|5bN=JahAF z2}ubFi5VKDjNE#Y3mHqM2fb-ZOkm(PWNg(>$b8J?6xey4At+cy`0xaFhNe>j3J>gf RRDs4Zc)I$ztaD0e0s!<^K+XUF literal 0 HcmV?d00001 diff --git a/frontend/images/loading.gif b/frontend/images/loading.gif new file mode 100644 index 0000000000000000000000000000000000000000..ef371f130a4b9070f0bdff151ce8aa3493bcaef4 GIT binary patch literal 493 zcmZ?wbhEHbbYO5`XkcV8F%J6w|G(mYZa>$MU}whwS0gU~=v0UwQg1|Kd4YZgp?Ix92y1+ar%@&pMaAI<@T`_wi3Y z*T3~X|8?&BKYkvr_9KfvcKB#bKeOyJXRp`tE33YCoz2>QXPtQf&|#P+#}H@oJ~j@n z_CwMiB}|k$Po-XbCS$fZIK8yeHLX8d&1BY}rrnq3|LpNwef`b0-@N^&pMTl)x9|LJ zZiIy*K(FY4y%I>k!tevV&ws4=ZvOr<^TWy literal 0 HcmV?d00001 diff --git a/frontend/images/logo.png b/frontend/images/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..c309d8eff474fae7483dd33e8762888483455553 GIT binary patch literal 5164 zcmbtY_ct33v=1RMV#MCnqBTQpwPV%Rsy!M-QG3T0T6CnoXpPovbs3RTvqDm!KZL@f-AkFyzBw0};q5PEyf?iZ-;CgR)9Zqllld5ks+iu2WKK`Mt z>+?op4Wy?1#qi`@>98Kn;QxswySn!4XksWl41H^GpGef>;ha74i*dwnFwQx)ER?j%tq=La1#rkdr``jFyIj zC|-P$O#gycJdhq$ePvx9Yh+Ltb-xj3ptz4K^YTAbDOGlcwSfP|P*PG&WYCRA?WxB+ z6?H)FaG}><6PU&rmNm@tqi@Ji84_m@{8}7u%5}&fqM%IwqhOr{>GU5AwoaP^3#q;t zB|j>+jKR7cE@=kS|8}X%8#z$Y4a}HzFu?946XW*lt3pP7LQQK-wSK&Dz=#6Y|4@S0BdCW~ zMD6>h9j5J?uk>iGA)}Qa`F8E~w^<^~BH`#`_E|&-8mSYeY%-e}BwG({_je;{blC}e zo*SwC5#3^vm_LOi%woSi@q7~a1Hfk7ooUitz%qN6{JkiyQQ?z^wyCXPoQA$QjfSL1 z6Rn|JL(?sXjucd_bYXjTO2gyX&s-dA^c&mZz9LC+3@sNs8!@0s8VTibP4!l!`*4q` zR?@TqB@1~i3=}4+G%=KIHR}*NAR^UOw36Pu)sO=gvnyrk#33ZghCWcaBHRSc#s z>D7h8xJpH#BY%TV+~$g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$NW;++iG?YugH#`5pqKf_Z3d0E0V4(ziPD?$@aKMfEJD8bxEvG@(Zy|LTU zQJi7r1iG}@aJ3=(aP;ikG;79nB{)L84TyCHyRyn_1Qlr~{me(5vCNECZiQu|_geA0 ze>F$zLC8z9y2`!}iA5Q__h_=J1j>}yO1D9}V-V|NeFWa}yh5 I3>=a6Kd+s;Y5)KL literal 0 HcmV?d00001 diff --git a/frontend/interface.php b/frontend/interface.php new file mode 100644 index 0000000..83030f9 --- /dev/null +++ b/frontend/interface.php @@ -0,0 +1,25 @@ +Load("main"); +$template_main->Localize($locale->strings); +$template_main->Compile(array( + 'server-location' => $sContainer->sNode->sPhysicalLocation, + 'operating-system' => $sContainer->sTemplate->sName, + 'guaranteed-ram' => "{$sContainer->sGuaranteedRam}MB", + 'burstable-ram' => "{$sContainer->sBurstableRam}MB", + 'disk-space' => "{$sContainer->sDiskSpace}MB", + 'total-traffic-limit' => "{$sContainer->sTotalTrafficLimit} bytes", + 'bandwidth-limit' => "100mbit", +)); +$template_main->Output(); + +?> diff --git a/frontend/js/cvm.js b/frontend/js/cvm.js new file mode 100644 index 0000000..be19542 --- /dev/null +++ b/frontend/js/cvm.js @@ -0,0 +1,17 @@ +var command_running = false; + +$(function(){ + $('.button-loader').click(function(){ + if(command_running === false) + { + $('.button-loader').addClass('disabled').click(function(event){ + event.preventDefault(); + event.stopPropagation(); + return false; + }); + + $(this).children('.button-icon').addClass('running')[0].src = "images/loading.gif"; + command_running = true; + } + }); +}); diff --git a/frontend/templates/main.tpl b/frontend/templates/main.tpl new file mode 100644 index 0000000..5394855 --- /dev/null +++ b/frontend/templates/main.tpl @@ -0,0 +1,118 @@ + + + + CVM + + + + + + +
+
+ +
+
+ +

Overview

+ + +
+
+

Disk space

+
+
+
55/100GB
+
+
+
+

RAM

+
+
+
241/1024MB
+
+
+
+

Traffic

+
+
+
80/1000GB
+
+
+
+
+ + + +
+

VPS configuration

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
StatusRunning Stopped Suspended
Server location<%?server-location>
Operating system<%?operating-system>
IPv4 Addresses98.142.213.226, 204.12.235.84
IPv6 Addresses2607:f7a0:1:1::24:6
Guaranteed RAM<%?guaranteed-ram>
Burstable RAM<%?burstable-ram>
Disk space<%?disk-space>
Traffic<%?total-traffic-limit>
Bandwidth<%?bandwidth-limit>
+
+
+
+ +