\r
$daoLang = new wsDAOLang($this->con);\r
$lang = $daoLang->selectById($book->lang);\r
+ $langs = $daoLang->selectAll();\r
\r
$daoTheme = new wsDAOTheme($this->con);\r
$theme = $daoTheme->getThemeOfBook($book_id, true);\r
$flexLight->addVariable('id', $book_id, false, true, 'uint');\r
\r
$traductions = (!count($book->traductions))?$lang->traductions:$book->traductions;\r
+ $allTraductions = array();\r
+ foreach($langs as $lang) {\r
+ $allTraductions[$lang->lang_id] = $lang->traductions;\r
+ }\r
\r
$flex->addVariable('traductions', $traductions, false, true, 'JSONObject');\r
+ $flex->addVariable('allTraductions', $allTraductions, false, true, 'JSONObject');\r
$flex->addVariable('chapters', $book->chapters, false, true, 'JSONObject');\r
$flex->addVariable('extras', '<extras>' . $book->extras . '</extras>', false, true, 'XML');\r
$flex->addVariable('numerotation', $book->numerotation, false, true, 'String');\r
if ($complete) {\r
$flex->addSWF($swffile, 'page' . $i);\r
} else {\r
- $filesToCopy['data/p' . $i. '.swf'] = $swffile;\r
+ $filesToCopy['data/p' . $i . '.swf'] = $swffile;\r
}\r
\r
if ($i == 1) {\r