function camila_information_text($msg) { global $_CAMILA; $text = new CHAW_text($msg, HAW_TEXTFORMAT_BOLD); $text->set_br(2); $text->set_color('red'); $_CAMILA['page']->add_text($text); }
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Camila PHP Framework; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ require_once CAMILA_DIR . 'datagrid/form.class.php'; require_once CAMILA_DIR . 'datagrid/elements/form/hidden.php'; require_once CAMILA_DIR . 'datagrid/elements/form/filebox.php'; require_once CAMILA_DIR . 'datagrid/elements/form/textbox.php'; require_once CAMILA_DIR . 'datagrid/elements/form/template_file_listbox.php'; require_once CAMILA_DIR . 'datagrid/elements/form/checklist.php'; require_once CAMILA_DIR . 'datagrid/elements/form/text_separator.php'; $export_deck_title = new CHAW_text(camila_get_translation('camila.export.options'), $_CAMILA['page_title_attributes']); $export_deck_title->set_br(2); $export_deck_title->set_color($_CAMILA['page_title_color'], $_CAMILA['page_title_boxcolor']); $_CAMILA['page']->add_text($export_deck_title); $form = new phpform('camila'); $form->submitbutton = camila_get_translation('camila.export.xml2pdf'); $form->drawrules = false; $form->preservecontext = true; global $_CAMILA; $pos = strrpos($_CAMILA['page_url'], '?'); if ($pos !== false) { new form_hidden($form, substr($_CAMILA['page_url'], $pos + 1)); } new form_template_file_listbox($form, 'xml2pdf', camila_get_translation('camila.export.template'), CAMILA_TMPL_DIR . '/' . $_CAMILA['lang'], false, $_CAMILA['adm_usergroup'], '', true); new form_text_separator(&$form, camila_get_translation('camila.export.options')); $nodata = 'n'; new form_checklist($form, xml2pdf_checklist_options, '', array(camila_get_translation('camila.export.nodata')), array('y')); new form_text_separator(&$form, '');
$camila_temp_text2->set_br(2); if ($camila_mcount > 0 && basename($_SERVER['PHP_SELF']) != CAMILA_HOME) { $_CAMILA['page']->add_text($camila_temp_text); } else { $_CAMILA['page']->add_text($camila_temp_text2); } if ($camila_linkset_items > 0 && $camila_mcount > 0) { $_CAMILA['page']->add_linkset($camila_linkset); } if ($_CAMILA['page_url'] != CAMILA_HOME) { $_CAMILA['page']->camila_collapsible_end(); } } $text = new CHAW_text($_CAMILA['page_full_title'], $_CAMILA['page_title_attributes']); $text->set_br(1); $text->set_color($_CAMILA['page_title_color'], $_CAMILA['page_title_boxcolor']); $_CAMILA['page']->add_text($text); if (!$_CAMILA['page']->camila_exporting()) { $query = 'select * from ' . CAMILA_APPLICATION_PREFIX . 'camila_bookmarks where base_url=' . $_CAMILA['db']->qstr(basename($_SERVER['PHP_SELF'])) . ' and lang=' . $_CAMILA['db']->qstr($_CAMILA['lang']) . ' order by sequence'; $result = $_CAMILA['db']->Execute($query); if ($result === false) { camila_error_page(camila_get_translation('camila.sqlerror') . ' ' . $_CAMILA['db']->ErrorMsg()); } $bookmark_count = 0; $camila_linkset_sep = new CHAW_text(' ' . camila_get_translation('camila.export.separator') . ' '); $camila_linkset_sep->set_br(0); $text = new CHAW_text(''); $text->set_br(1); $_CAMILA['page']->add_text($text); while (!$result->EOF) { if ($bookmark_count > 0) {