function admin_categories()
 {
     global $_CAMILA;
     require_once CAMILA_DIR . 'datagrid/db_form.class.php';
     require_once CAMILA_DIR . 'datagrid/elements/form/hidden.php';
     require_once CAMILA_DIR . 'datagrid/elements/form/textbox.php';
     require_once CAMILA_DIR . 'datagrid/elements/form/integer.php';
     $dbform = new dbform(CAMILA_TABLE_PLANG, 'page_url', 'short_title,full_title', 'page_url', 'asc', 'page_url LIKE ' . $_CAMILA['db']->qstr('cf_app.php?cat%') . ' and lang=' . $_CAMILA['db']->qstr($_CAMILA['lang']));
     new form_hidden($dbform, 'page_url');
     new form_textbox($dbform, 'short_title', camila_get_translation('camila.worktable.name'), true, 20);
     new form_textbox($dbform, 'full_title', camila_get_translation('camila.worktable.desc'), true, 40, 20);
     $dbform->mapping = camila_get_translation('camila.worktable.categories.mapping');
     $dbform->onupdate = camila_configurator_worktable_description_db_onupdate;
     $dbform->process();
     $dbform->draw();
 }
Esempio n. 2
0
<?php

/* This File is part of Camila PHP Framework
   Copyright (C) 2006-2009 Umberto Bresciani

   Camila PHP Framework is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2 of the License, or
   (at your option) any later version.

   Camila PHP Framework is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   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 '../camila/header.php';
if (CAMILA_USER_CAN_CHANGE_PWD) {
    require_once CAMILA_DIR . "datagrid/db_form.class.php";
    require_once CAMILA_DIR . "datagrid/elements/form/password_change.php";
    $form = new dbform(CAMILA_TABLE_USERS, 'id');
    new form_password_change($form, 'password', camila_get_translation('camila.form.password'));
    $form->keyvalue = array(intval($_CAMILA['user_id']));
    $form->process();
    $form->draw();
}
require '../camila/footer.php';