Office文檔生成工具 OpenTBS 1.7.4 發布
OpenTBS 是基于 TinyButStrong 模板引擎的 PHP 工具(TinyButStrong是一個可以讓PHP腳本和HTML文件干凈分離的PHP模板引擎。TBS設計成可以使用任何可視化HTML編輯器來編寫TBS的HTML模板頁。),用來幫助生成 OpenOffice 和 MS Office 文檔。
OpenTBS 1.7.4 發布,該版本改進如下:
fixes the parameter "default=current", which did not work and could build invalid documents when the target image was missing. It adds the commands OPENTBS_REPLACEFILE and OPENTBS_FILEEXISTS.
示例代碼:
include_once('tbs_class.php');
include_once('tbs_plugin_opentbs.php');
$TBS = new clsTinyButStrong;
$TBS->Plugin(TBS_INSTALL, OPENTBS_PLUGIN);</pre>
TinyButStrong is a library that enables you to dynamically create XML/HTML pages and any other files based on text source. It's a Template Engine for the PHP language. It enables you to easily display information from your database, but also to seriously harmonize and simplify your PHP programming.
TinyButStrong is oriented to HTML but not specialized to Html. This means it can work as well with Text files, XML, RSS, RTF, WML, Excel (xml), ... The OpenTBS plug-in enables your to merge OpenOffice and Ms Office documents.
TinyButStrong's trumps:
- simplicity : 1 file only, 1 Php class only with 6 methods and 5 properties.
- visual / WYSIWYG editors (such as Dreamweaver or FrontPage) friendly
- database friendly,
- fast development,
Main features:
- can connect to any database type (in native: MySql, SQLite, PostgreSQL),
- easy date-time and numeric formats,
- blocks with alternated display,
- multi-columns display,
- conditional display,
- event functions,
- file inclusion and other scripts execution,
- cache system,
- plug-ins.