Exemple #1
0
function WDRenderCellCreateDoc()
{
    $docx = GetMessage('WDUF_CREATE_DOCX');
    $xlsx = GetMessage('WDUF_CREATE_XLSX');
    $pptx = GetMessage('WDUF_CREATE_PPTX');
    $dropdown = GetMessage('WDUF_CREATE_IN_SERVICE', array('#SERVICE#' => '<span class="wd-fa-add-file-editor">
		<span class="wd-fa-add-file-editor-text" onclick="WDOpenMenuCreateService(this); return false;">' . CWebDavTools::getServiceEditNameForCurrentUser() . '</span>
		<span class="wd-fa-add-file-editor-arrow"></span>
	</span>'));
    return <<<HTML
\t<td class="wd-fa-add-file-light-cell">
\t\t<span class="wd-fa-add-file-light wd-test-file-create">
\t\t\t<span class="wd-fa-add-file-light-text">
\t\t\t\t<span class="wd-fa-add-file-light-title">
\t\t\t\t\t<span class="wd-fa-add-file-light-title-text">{$dropdown}</span>
\t\t\t\t</span>
\t\t\t\t<span class="wd-fa-add-file-editor-file">
\t\t\t\t\t<a class="wd-fa-add-file-editor-link-block" href="javascript:void(0)" onclick="return WDCreateDocument('docx')">
\t\t\t\t\t\t<span class="wd-fa-add-file-editor-icon feed-file-icon-doc"></span>
\t\t\t\t\t\t<span class="wd-fa-add-file-editor-link">{$docx}</span>
\t\t\t\t\t</a>
\t\t\t\t\t<a class="wd-fa-add-file-editor-link-block" href="javascript:void(0)" onclick="return WDCreateDocument('xlsx');">
\t\t\t\t\t\t<span class="wd-fa-add-file-editor-icon feed-file-icon-csv"></span>
\t\t\t\t\t\t<span class="wd-fa-add-file-editor-link">{$xlsx}</span>
\t\t\t\t\t</a>
\t\t\t\t\t<a class="wd-fa-add-file-editor-link-block" href="javascript:void(0)" onclick="return WDCreateDocument('pptx');">
\t\t\t\t\t\t<span class="wd-fa-add-file-editor-icon feed-file-icon-ppt"></span>
\t\t\t\t\t\t<span class="wd-fa-add-file-editor-link">{$pptx}</span>
\t\t\t\t\t</a>
\t\t\t\t</span>
\t\t\t</span>
\t\t</span>
\t</td>
HTML;
}