[autorun]\r
label=$title\r
-icon=fluidbook.ico\r
+icon=data/fluidbook.ico\r
open=$exe\r
action=$title
\ No newline at end of file
if ($entreprise_id == 'new' || !$client->ws_admin) {\r
$class = 'empty-field';\r
$default_id = '';\r
- $default = __('Entrez le nom du revendeur ou de l\'administrateur');\r
+ $default = __("Entrez le nom du revendeur ou de l'administrateur");\r
} else {\r
$class = '';\r
$default_id = $client->ws_admin;\r
$res .= '<table class="liste">';\r
$res .= '<tr><th>' . __("Traduction de l'application en anglais") . '</th><th></th></tr>';\r
$res .= '</table>';\r
- $res .= cubeLang::translationForm(array(ROOT . '/inc/extranet', FLASH_SOURCES), 'en' , ROOT . '/l10n', '', array(), '<a href="#" class="submit">' . $core->typo->BoutonOK('Enregistrer') . '</a>');\r
+ $res .= cubeLang::translationForm(array(ROOT . '/inc/extranet',ROOT . '/inc/ws', COMPOSER_SOURCES), 'en' , ROOT . '/l10n', '', array(), '<a href="#" class="submit">' . $core->typo->BoutonOK('Enregistrer') . '</a>');\r
$res .= '</form>';\r
$res .= commonPage::bf();\r
$res .= commonPage::bMain();\r
cubePage::contextMenu();\r
\r
$droits = wsDroits::getDroits();\r
- \r
+\r
commonDroits::min(1);\r
$settings = is_null($settings) ? $core->user->getSettings('books') : $settings;\r
$change = is_null($dashboard) ? 'Books' : 'Dashboard/' . $dashboard;\r
\r
\r
$tab = cubeLang::getTranslationsList(PLAYER_SOURCES, array('php', 'as'), array(), $lang->traductions);\r
- \r
+\r
$s->setCellValueByColumnAndRow(0, 1, 'ID', true);\r
$s->setCellValueByColumnAndRow(1, 1, 'English', true);\r
$s->setCellValueByColumnAndRow(2, 1, $lang_name, true);\r
$wmode = isset($args[1]) ? $args[1] : '';\r
\r
$e = explode('_', $args[0]);\r
- $newurl=null;\r
+ $newurl = null;\r
if (count($e) == 2 || $e[2] < TIME - 10) {\r
$e[2] = TIME;\r
http::redirect(SITE_PATH . 'viewer/' . implode('_', $e) . '/' . $wmode);\r
self::checkDocumentVersionOfBook($book_id);\r
wsSecureSWF::checkProtectedSWF();\r
\r
- echo self::commonViewer($book_id, $e[1], false, $wmode,$newurl);\r
+ echo self::commonViewer($book_id, $e[1], false, $wmode, $newurl);\r
}\r
\r
public static function commonViewer($book_id, $hash, $standalone = false, $wmode = 'default') {\r
if ($entreprise_id == 'new' || !$client->ws_admin) {\r
$class = 'empty-field';\r
$default_id = '';\r
- $default = __('Entrez le nom du revendeur ou de l\'administrateur');\r
+ $default = __("Entrez le nom du revendeur ou de l'administrateur");\r
} else {\r
$class = '';\r
$default_id = $client->ws_admin;\r
if (!is_null($demandeur->ws_admin) && !in_array($demandeur->ws_admin, $administrateurs)) {\r
// Si déjà géré par un revendeur\r
$revendeur = $daoUtilisateur->selectById($demandeur->ws_admin, 'utilisateurs_entreprise');\r
- $actions[__('Je confie la demande à ' . $revendeur->rs . ' (' . $revendeur->prenom . ' ' . $revendeur->nom . ')')] = $demandeur->ws_admin;\r
+ $actions[__('Je confie la demande à') . ' ' . $revendeur->rs . ' (' . $revendeur->prenom . ' ' . $revendeur->nom . ')'] = $demandeur->ws_admin;\r
} else {\r
$liste = $daoUtilisateur->selectWSRevendeursFacturables();\r
$revendeurs = array();\r
// .\r
// .\r
$this->fields['friend'] = array('type' => 'boolean', 'default' => true, 'editable' => true, 'label' => __('Envoyer à un ami'));\r
- $this->fields['email_title'] = array('type' => 'text', 'default' => __('%name% vous invite à découvrir %title%'), 'editable' => true, 'label' => __("Titre de l'email \"Envoyer à un ami\""));\r
- $this->fields['email_body'] = array('type' => 'textarea', 'default' => __('Veuillez cliquer sur le lien suivant : %link%'), 'editable' => true, 'label' => __("Corps de l'email \"Envoyer à un ami\""));\r
+ $this->fields['email_title'] = array('type' => 'text', 'default' => __('%name% vous invite à découvrir %title%'), 'editable' => true, 'label' => __("Titre de l'email").' "'.__('Envoyer à un ami').'"');\r
+ $this->fields['email_body'] = array('type' => 'textarea', 'default' => __('Veuillez cliquer sur le lien suivant : %link%'), 'editable' => true, 'label' => __("Corps de l'email").' "'.__('Envoyer à un ami').'"');\r
$this->fields['email_editable'] = array('type' => 'boolean', 'default' => true, 'editable' => true, 'label' => __("Permettre au lecteur de modifier le corps de l'email"));\r
$this->fields['askAcknowledge'] = array('type' => 'boolean', 'default' => false, 'editable' => true, 'label' => __("Demander au destinataire un accusé de réception"), 'grade' => 3);\r
$this->fields['facebook'] = array('type' => 'boolean', 'default' => true, 'editable' => true, 'label' => __('Facebook'));\r
\r
$this->copyFluidbookFiles();\r
$this->copyOtherFiles(array('Fluidbook.app.zip'));\r
+ $this->moveDatasSWF();\r
}\r
\r
public function makePackage()\r
$rm->execute();\r
}\r
}\r
+ \r
+ protected function moveDatasSWF(){\r
+ rename($this->vdir.'/FluidbookDatas.swf',$this->vdir.'/data/FluidbookDatas.swf');\r
+ rename($this->vdir.'/FluidbookDatasLight.swf',$this->vdir.'/data/FluidbookDatasLight.swf');\r
+ }\r
\r
public function __destruct()\r
{\r
{\r
parent::preparePackage();\r
\r
- $this->copyOtherFiles(array('fluidbook.ico', 'autorun.inf'));\r
+ $this->copyOtherFiles(array('fluidbook.ico'=>'data/fluidbook.ico', 'autorun.inf'));\r
$this->replaceAutorun();\r
+ $this->moveDatasSWF();\r
}\r
\r
public function replaceAutorun()\r
\r
$this->copyFluidbookFiles();\r
$this->copyOtherFiles(array('Fluidbook.exe' => $this->exeName));\r
+ $this->moveDatasSWF();\r
}\r
\r
public function makePackage()\r
\r
$this->copyFluidbookFiles();\r
$this->copyOtherFiles(array('Fluidbook.exe' => $this->exeName));\r
+ $this->moveDatasSWF();\r
\r
$this->makeNSI();\r
}\r