\r
public static function pageBooks($args, &$x)\r
{\r
- self::page('books', $args[1]);\r
+ extranetAjax::page('books', $args[1]);\r
$x->addContent('listeBooks', wsUrl::listeBooks());\r
}\r
\r
public static function parPageBooks($args, &$x)\r
{\r
- self::parPage('books', $_POST['par_page']);\r
+ extranetAjax::parPage('books', $_POST['par_page']);\r
$x->addContent('listeBooks', wsUrl::listeBooks());\r
}\r
\r
public static function sortBooks($args, &$x)\r
{\r
- self::sort('books', $args[1]);\r
+ extranetAjax::sort('books', $args[1]);\r
$x->addContent('listeBooks', wsUrl::listeBooks());\r
}\r
\r
public static function filtreBooks($args, &$x)\r
{\r
if (isset($args[1]) && $args[1] == 'efface') {\r
- self::filtre('books');\r
+ extranetAjax::filtre('books');\r
$x->addReload();\r
return;\r
} else {\r
- self::filtre('books', $_POST);\r
+ extranetAjax::filtre('books', $_POST);\r
$x->addContent('listeBooks', wsUrl::listeBooks());\r
}\r
}\r
$res .= '<th>' . extranetUrl::orderby(__('Titre de la publication'), 'nom', $settings, 'sort' . $change) . '</th>';\r
$res .= '<th>' . extranetUrl::orderby(__(''), 'lang', $settings, 'sort' . $change) . '</th>';\r
$res .= '<th>' . extranetUrl::orderby(__('Proprietaire'), 'proprietaire_nom', $settings, 'sort' . $change) . '</th>';\r
- $res .= '<th>' . extranetUrl::orderby(__('Facturation'), 'facturable', $settings, 'sort' . $change) . '</th>';\r
+ $res .= '<th>' . /*extranetUrl::orderby(__('Facturation'), 'facturable', $settings, 'sort' . $change) .*/ '</th>';\r
$res .= '<th>' . extranetUrl::orderby(__('Status'), 'status', $settings, 'sort' . $change) . '</th>';\r
$res .= '<th class="min"></th><th class="min"></th><th class="min"></th><th class="min"></th><th class="min"></th></tr>';\r
$i = 0;\r
$flex->addVariable('numerotation', $book->numerotation, false, true, 'String');\r
$flexLight->addVariable('theme', $theme->parametres->toStandardObject());\r
$flexLight->addVariable('pages', count($pages));\r
- $flexLight->addVariable('fwidth', $size[0], false, true, 'Number');\r
- $flexLight->addVariable('fheight', $size[1], false, true, 'Number');\r
+ $flexLight->addVariable('fwidth', round($size[0]), false, true, 'Number');\r
+ $flexLight->addVariable('fheight', round($size[1]), false, true, 'Number');\r
$flexLight->addVariable('pagesInDatas', $complete, false, true, 'Boolean');\r
$flex->addVariable('index', $index);\r
$flex->addVariable('textes', $textes);\r
$swffile = ROOT . '/docs/' . $infos['document_id'] . '/p' . $infos['document_page'] . '.swf';\r
if ($i == 1) {\r
$flexLight->addSWF($swffile, 'page' . $i);\r
-\r
} else {\r
$flex->addSWF($swffile, 'page' . $i);\r
}\r