diff --git a/web/documentserver-example/php/common.php b/web/documentserver-example/php/common.php index 61d79069..6b346b59 100644 --- a/web/documentserver-example/php/common.php +++ b/web/documentserver-example/php/common.php @@ -166,10 +166,10 @@ function getInternalExtension($filename) { function getDocumentType($filename) { $ext = strtolower('.' . pathinfo($filename, PATHINFO_EXTENSION)); - if (in_array($ext, $GLOBALS['ExtsDocument'])) return "text"; - if (in_array($ext, $GLOBALS['ExtsSpreadsheet'])) return "spreadsheet"; - if (in_array($ext, $GLOBALS['ExtsPresentation'])) return "presentation"; - return ""; + if (in_array($ext, $GLOBALS['ExtsDocument'])) return "word"; + if (in_array($ext, $GLOBALS['ExtsSpreadsheet'])) return "cell"; + if (in_array($ext, $GLOBALS['ExtsPresentation'])) return "slide"; + return "word"; } function getScheme() { diff --git a/web/documentserver-example/php/css/stylesheet.css b/web/documentserver-example/php/css/stylesheet.css index 6250cb36..af744e37 100644 --- a/web/documentserver-example/php/css/stylesheet.css +++ b/web/documentserver-example/php/css/stylesheet.css @@ -102,13 +102,13 @@ label .checkbox { text-align: center; text-decoration: none; } -.try-editor.document { +.try-editor.word { background-image: url("images/file_docx.png"); } -.try-editor.spreadsheet { +.try-editor.cell { background-image: url("images/file_xlsx.png"); } -.try-editor.presentation { +.try-editor.slide { background-image: url("images/file_pptx.png"); } .create-sample { @@ -292,13 +292,13 @@ footer { text-overflow: ellipsis; white-space: nowrap; } -.stored-edit.text { +.stored-edit.word { background-image: url("images/icon_docx.png"); } -.stored-edit.spreadsheet { +.stored-edit.cell { background-image: url("images/icon_xlsx.png"); } -.stored-edit.presentation { +.stored-edit.slide { background-image: url("images/icon_pptx.png"); } .stored-edit span { diff --git a/web/documentserver-example/php/index.php b/web/documentserver-example/php/index.php index 76a0a096..3a137497 100644 --- a/web/documentserver-example/php/index.php +++ b/web/documentserver-example/php/index.php @@ -142,17 +142,17 @@
';
echo ' ';
echo '
';
echo ' ';
- } else if ($storeFile->documentType == "spreadsheet") {
+ } else if ($storeFile->documentType == "cell") {
echo ' ';
echo '
';
echo ' ';
@@ -224,14 +224,14 @@
echo ' ';
echo '
';
echo ' ';
}
echo '
';
echo ' ';