From ab089e3052759bbd134e859d1167126f427f7fbf Mon Sep 17 00:00:00 2001 From: Sergey Linnik Date: Fri, 2 Dec 2016 15:14:13 +0300 Subject: [PATCH] php: change table recent files --- .../php/css/images/desktop-24.png | Bin 0 -> 1068 bytes .../php/css/images/download-24.png | Bin 0 -> 1197 bytes .../php/css/images/embeded-24.png | Bin 0 -> 1232 bytes .../php/css/images/mobile-24.png | Bin 0 -> 1110 bytes .../php/css/stylesheet.css | 110 +++++++++++++++++- web/documentserver-example/php/doceditor.php | 28 +---- web/documentserver-example/php/index.php | 89 ++++++++++---- web/documentserver-example/php/js/jscript.js | 2 +- 8 files changed, 177 insertions(+), 52 deletions(-) create mode 100644 web/documentserver-example/php/css/images/desktop-24.png create mode 100644 web/documentserver-example/php/css/images/download-24.png create mode 100644 web/documentserver-example/php/css/images/embeded-24.png create mode 100644 web/documentserver-example/php/css/images/mobile-24.png diff --git a/web/documentserver-example/php/css/images/desktop-24.png b/web/documentserver-example/php/css/images/desktop-24.png new file mode 100644 index 0000000000000000000000000000000000000000..a619c78b2a4acff1a671a7c08e32553b7eea0b69 GIT binary patch literal 1068 zcmaJ=U1-x#7|kr(bhHm{AWo)>8Hj>yns&`-Xq{ctx{4j6D{S}!rpav^y5wfboz035 zWBv>u90(#zrVbqFK!hpigAX#M4|@<42ZHz@Zf@vmrS-~GOG zuXJ}EbJXprBM8C~>*N!7+--f^Yw-VLKKKIf_B?v86= zkd-?NI_N2MCB;Hc^h;Fx5i($MSU>?tAWfxTH8?X!6?Hj0x3+1DEJ9E&NNpt57w;y+ zPzR*X<#mc~h9Ozj#kBfZmN`s%+>D2IQ-^N^=Q5T8f2NK`M)o z#?f>>pLgZGE~sZ{#_#uA8Xk`mBb>&NiUiZC8ZBi79vGr7Ye$8X4|k$%DPJD#5&QsECipxtMAoK@~xa4^mjcCCd`W^C52= zE->$QvkVjQh1xn8-tTD(`jGPe5Ur(b?2!kO>>`Z$L*QnueUC| zt?j)0c-vZYy`%Qa&r9Eqo*q~owZB{6cY8X!FfyB~@;0WK261-p)cMsr{O{UV_6NIO z*w!3%9ZNL}_KC<#CIH^p$Qz@Nn)lDlk1fq*L&N=(O*cOXC+|_wiTcTc(R$Z$znZA3 XA;zv57yah+igkZukuLsW$JvoT`wU#2 literal 0 HcmV?d00001 diff --git a/web/documentserver-example/php/css/images/download-24.png b/web/documentserver-example/php/css/images/download-24.png new file mode 100644 index 0000000000000000000000000000000000000000..2cb316c399d408a57ef4a573242bfed60e570f31 GIT binary patch literal 1197 zcmeAS@N?(olHy`uVBq!ia0vp^5+KaM1|%Pp+x`Gjk|nMYCBgY=CFO}lsSJ)O`AMk? zp1FzXsX?iUDV2pMQ*9U+n3Xa^B1$5BeXNr6bM+EIYV;~{3xK*A7;Nk-3KEmEQ%e+* zQqwc@Y?a>c-mj#PnPRIHZt82`Ti~3Uk?B!Ylp0*+7m{3+ootz+WN)WnQ(*-(AUCxn zQK2F?C$HG5!d3}vt`(3C64qBz04piUwpD^SD#ABF!8yMuRl!uxSU1_g&``n5OwZ87 z)XdCKN5ROz&`93^h|F{iO{`4Ktc=VRpg;*|TTx1yRgjAt)Gi>;Rw<*Tq`*pFzr4I$ zuiRKKzbIYb(9+TpWQLKEE>MMTab;dfVufyAu`f(~1RD^r68eAMwS&*t9 zlvv ztM~P_^2{qPNz6-5^>ndS0-B(gnVDkc>geR^=w@o@VqjoqXy|I{Wa?&O>1bkM=wxVa z=49yt)9aF-T$-DjR|3H{644~kf%h=vIPQxAvWdAr1yM%I8k8y0K~D`*y3IN`FvHukc3(-l%S=XYx@ z%Z$qY^Tzss`#D~dqF1%I68>e>bKWpEHrjDF-DQ%>Evst z{qHRg)@u_}BR3iFR7XxryybS_?qc08!)XSMu7M$(9)@!*z9s0pTITg?>iP%pr2b($ zz!nq1n4}Fhba&Xc*Zh>tt)IOpOMmN`uQ2RI9ojV|U{ z{OjA4B72SZYx7Ac-mj#PnPRIHZt82`Ti~3Uk?B!Ylp0*+7m{3+ootz+WN)WnQ(*-(AUCxn zQK2F?C$HG5!d3}vt`(3C64qBz04piUwpD^SD#ABF!8yMuRl!uxSU1_g&``n5OwZ87 z)XdCKN5ROz&`93^h|F{iO{`4Ktc=VRpg;*|TTx1yRgjAt)Gi>;Rw<*Tq`*pFzr4I$ zuiRKKzbIYb(9+TpWQLKEE>MMTab;dfVufyAu`f(~1RD^r68eAMwS&*t9 zlvv ztM~P_^2{qPNz6-5^>ndS0-B(gnVDkcYG!I^X6j_=VqjoqXy|I{XyRsUY2spHv4~Pj*wm=R%;iu*SQ+p9GSqG*19cEx)bn$d?45_%4 z^ymM7duClmVdmb0D_B_=xs8q=Kd#Q<;me+6Xmqxk^~lWVZ8?$cr`b1a8q8r_Rc_`d z&(J8)!LX}gqRiz+#SijnY@US-S2Vbf#Cg={Pml;zlFXQ(Ho=PV$U~1q3g0+a$ov#z z;5A?hYH#=wEhg4DYA@5q8+oCn3!}t zwlz$gXejGp%f3@A<3W5$iYlw{G9ByiS>X}0hh^5U8Y}cqTT$CN!<+*A|1;o zdmSEMU#_F=|1hj7MAZjqHV=zBz1tezGfN!Lid0r}#R)HdH81y5a;h?Zavj z)!+q;+Z(6w3Y>R2{n0GI^3iD}n`t(TLH-kdRG-j#)9^r6W3}^U8)jBkxpN9ks@t!N pNc`gonYBpe`$enD1G)?x1`P4r(slFSoM;1;F`lk|F6*2UngFXhm{$M* literal 0 HcmV?d00001 diff --git a/web/documentserver-example/php/css/images/mobile-24.png b/web/documentserver-example/php/css/images/mobile-24.png new file mode 100644 index 0000000000000000000000000000000000000000..0626062ccbc782508f60998b75aa61caeac92177 GIT binary patch literal 1110 zcmaJ=TSyd97#>^8E>>?*QgRwC655%aU3Y8;H&=Id-K9osUC`))vol9`(3vyN9NX0= zjiQ30up2>C1cg*oLPl3I=w?ts^boz2NpC^fLqr62MqTTnZJ3#J;rqV-KmY%o1C0&! zix-wGq$p}}JSHZ{xZL^X&m;d2ncxpHtiX{L+=SY2Mz$bTtD+PHab0eQ2`H;QU8As? zqFl6=Y{4zkWN$lTdxX)p!B9YK0JsTQdbgpmb- zpYgdB561zXXShl~&vWa6*TZ>P4|#bvS1I^;!CM7p9-2h6)HWd@MrUG?Rgg|&Yzi!! z$z+&}k3m*D%LM`fN5kuN6NKCDF|eF<8+KVvL4>wqX(rZ?0USj+g}QN&CYeqjK{sb* z4SS|cq+o1THd&7GI7i9>CF%cAU7tnUI066U`%hsz*<(UB0d3T6DWq|2Wlktl2wPCb z$VwvAnX6)B8ewFokqN?0JXqJP87j)y6;pUg65@u9WkZ2+F-Q{yM$=Rw!bQWL2v;Y1 zJUqum{B;3;pq7h9eN|OaznAB8ToEbVIy7*OtN!7J^Ku<4=q8CQLQC5P)u@GZFm+@> z%b!aiuigw-&7VtcUM@?LVV%bQ)#%(7agQ^dwJll98Xp?O?G~|h;CTOiawVR}#oA={ zUFz55WR1&RF#dITri71K!Z5HKP?*CsSP`E^ubaqf?B$nD5I@^Em^xli#*AKo~C3ky=sZd`5^|Lhca_H#V Qoz6{&Z$p8QV literal 0 HcmV?d00001 diff --git a/web/documentserver-example/php/css/stylesheet.css b/web/documentserver-example/php/css/stylesheet.css index 4325c624..7dccb82f 100644 --- a/web/documentserver-example/php/css/stylesheet.css +++ b/web/documentserver-example/php/css/stylesheet.css @@ -67,7 +67,7 @@ header img { width: 100%; } .main-panel { - margin: 80px auto; + margin: 80px auto 16px; width: 600px; } .portal-name { @@ -279,11 +279,11 @@ label .checkbox { position: absolute; visibility: hidden; } -.bottom-panel { - bottom: 0; - position: fixed; +footer { text-align: right; - width: 100%; + width: auto; + margin-bottom: 15px; + margin-right: 15px; } .help-block span { font-size: 16px; @@ -380,4 +380,102 @@ label .checkbox { height: 0; clear: both; visibility: hidden; -} \ No newline at end of file +} + +.td100 { + width: 100%; +} + +.block-lang { + padding-right: 10px; + padding-top: 9px; +} +/*Icon table*/ +#tableRow { + vertical-align: top; +} +.tableRow { + background: transparent; + + -moz-transition: all 0.2s ease-in-out; + -webkit-transition: all 0.2s ease-in-out; + -o-transition: all 0.2s ease-in-out; + -ms-transition: all 0.2s ease-in-out; + transition: all 0.2s ease-in-out; +} +.tableRow:hover { + background-color: #ebebeb; +} + +.tableHeader { + background: transparent; + color: #333; + cursor: default; + font-family: 'Open Sans', sans-serif; + font-size: 13px; + height: 40px; + -khtml-user-select: none; + user-select: none; + -moz-user-select: none; + -webkit-user-select: none; +} +.tableHeaderCell { + padding: 2px 1px 2px 5px; + text-align: center; +} +.tableHeaderCellFileName { + text-align: left; +} +.contentCells { + padding: 4px 1px 4px 5px; + font-family: 'Open Sans', sans-serif; + font-size: 16px; + border-bottom: 1px solid #e5e5e5; + white-space: nowrap; + -khtml-user-select: none; + user-select: none; + -moz-user-select: none; + -webkit-user-select: none; +} +.contentCells-shift { + padding-right: 30px; +} +.contentCells-icon { + width: 6%; +} +.contentCellsSmall { + padding: 5px 1px 5px 6px; + font-family: 'Open Sans', sans-serif; + font-size: 13px; + border-bottom: 1px solid #e5e5e5; + white-space: nowrap; + text-align: center; +} +.primaryRow { + background-color: #e9e9e9; +} +.secondaryRow { + background-color: #F9F9F9; +} +.select-user { + margin-left: 15px; +} +.user-block-table { + height: 100%; + width: 100%; +} +.user-block-table td { + background-color: #F4F4F4; + border-bottom: 1px solid white; + padding: 12px 0; +} +#user, #language { + width: 130px; +} +.icon-download { + margin-bottom: -5px; +} +.icon-delete { + cursor: pointer; + margin-bottom: -6px; +} diff --git a/web/documentserver-example/php/doceditor.php b/web/documentserver-example/php/doceditor.php index c4f9a4b5..354d3561 100644 --- a/web/documentserver-example/php/doceditor.php +++ b/web/documentserver-example/php/doceditor.php @@ -42,11 +42,11 @@ { $filename = $_GET["fileID"]; } - $type = $_GET["type"]; + $createExt = $_GET["fileExt"]; - if (!empty($type)) + if (!empty($createExt)) { - $filename = tryGetDefaultByType($type); + $filename = tryGetDefaultByType($createExt); $new_url = "doceditor.php?fileID=" . $filename; header('Location: ' . $new_url, true); @@ -56,24 +56,8 @@ $fileuri = FileUri($filename); - function tryGetDefaultByType($type) { - $ext; - switch ($type) - { - case "document": - $ext = ".docx"; - break; - case "spreadsheet": - $ext = ".xlsx"; - break; - case "presentation": - $ext = ".pptx"; - break; - default: - return; - } - - $demoName = "demo" . $ext; + function tryGetDefaultByType($createExt) { + $demoName = "demo." . $createExt; $demoFilename = GetCorrectName($demoName); if(!@copy(dirname(__FILE__) . DIRECTORY_SEPARATOR . "app_data" . DIRECTORY_SEPARATOR . $demoName, getStoragePath($demoFilename))) @@ -168,7 +152,7 @@ width: "100%", height: "100%", - type: "", + type: "", documentType: "", document: { title: fileName, diff --git a/web/documentserver-example/php/index.php b/web/documentserver-example/php/index.php index 486a41e7..ff3a9aff 100644 --- a/web/documentserver-example/php/index.php +++ b/web/documentserver-example/php/index.php @@ -73,10 +73,10 @@
- ONLYOFFICE™ Online Editors + ONLYOFFICE™ Integration Edition – Welcome!

- Get started with a demo-sample of ONLYOFFICE™ Online Editors, the first html5-based editors. You may upload your own documents for testing using the "Choose file" button and selecting the necessary files on your PC. + Get started with a demo-sample of ONLYOFFICE™ Integration Edition, the first html5-based editors. You may upload your own documents for testing using the "Upload file" button and selecting the necessary files on your PC.
Choose file @@ -91,38 +91,81 @@
You are also enabled to view and edit documents pre-uploaded to the portal.
Your documents

- + +
+
+ + + + + + + + + + name.'>'; + echo ' '; + echo ' '; + echo ' '; + echo ' '; + echo ' '; + echo ' '; + echo ''; + } + ?> + +
FilenameEditorsViewers
'; + echo ' '; + echo ' '.$storeFile->name.''; + echo ' '; + echo ' '; + echo ' download'; + echo ' '; + echo ' '; + echo ' '; + echo ' download'; + echo ' '; + echo ' '; + echo ' '; + echo ' download'; + echo ' '; + echo ' '; + echo ' '; + echo ' download'; + echo ' '; + echo ' '; + echo ' '; + echo ' download'; + echo ' '; + echo ' '; + echo ' '; + echo ' download'; + echo ' '; + echo '
+
+
+



- Want to learn how it works? - + Want to learn the magic?
- Read the editor API Documentation + Explore ONLYOFFICE™ Integration Edition API Documentation.


@@ -130,7 +173,7 @@
Any questions?
- Please, submit your request and we'll help you shortly. + Please, submit your request here.
@@ -173,7 +216,7 @@
-
© Ascensio System SIA . All rights reserved.
+ diff --git a/web/documentserver-example/php/js/jscript.js b/web/documentserver-example/php/js/jscript.js index 651365c4..64bf51fb 100644 --- a/web/documentserver-example/php/js/jscript.js +++ b/web/documentserver-example/php/js/jscript.js @@ -182,7 +182,7 @@ if (typeof jQuery != "undefined") { jq(document).on("click", "#beginEmbedded:not(.disable)", function () { var fileId = encodeURIComponent(jq('#hiddenFileName').val()); - var url = "doceditor.php?action=embedded&fileID=" + fileId; + var url = "doceditor.php?type=embedded&fileID=" + fileId; jq("#mainProgress").addClass("embedded"); jq("#beginEmbedded").addClass("disable");