$book->parametres = $r->parametres;\r
$book->extras = $r->extras;\r
$book->numerotation = $r->numerotation;\r
+\r
return $book;\r
}\r
\r
$book = $this->selectById($book_id);\r
$pages = $this->getPagesOfBook($book_id);\r
\r
+ $daoDoc = new wsDAODocument($this->con);\r
+ $firstDoc = $daoDoc->selectById($pages[1]['document_id']);\r
+ $size=$firstDoc->generalInfos['size'];\r
+\r
$daoTheme = new wsDAOTheme($this->con);\r
$theme = $daoTheme->getThemeOfBook($book_id);\r
\r
$flex->addVariable('numerotation', $book->numerotation);\r
$flex->addVariable('theme', $theme->parametres->toStandardObject());\r
$flex->addVariable('pages', count($pages));\r
+ $flex->addVariable('fwidth',$size[0],false,true,'Number');\r
+ $flex->addVariable('fheight',$size[1],false,true,'Number');\r
foreach($pages as $i => $infos) {\r
$flex->addBitmap(ROOT . '/docs/' . $infos['document_id'] . '/p' . $infos['document_page'] . '.jpg', 'thumb' . $i);\r
}\r
$rub[] = '|';\r
} else {\r
$field = $this->fields[$f];\r
- $rub[$f] = '('.$field['type'].')'.str_repeat("\t", 2 - floor((strlen($field['type'])+2) / 12)).$field['label'];\r
+ $rub[$f] = '(' . $field['type'] . ')' . str_repeat("\t", 2 - floor((strlen($field['type']) + 2) / 12)) . $field['label'];\r
}\r
}\r
$rubriques[$form['label']] = $rub;\r