Exemple #1
0
<?php

/**
########################################
#OOB/N1 Framework [©2004,2006]
#
#  @copyright Pablo Micolini
#  @license BSD
######################################## 
*/
OOB_module::includeClass('seguridad', 'seguridad_permission');
if (!seguridad::isAllowed(seguridad_action::nameConstructor('new', 'permission', 'seguridad'))) {
    throw new OOB_exception("Acceso Denegado", "403", "Acceso Denegado. Consulte con su Administrador!", true);
}
global $ari;
$ari->t->assign("form", true);
$sp = new oob_safepost("form");
$modSelect = '';
$arrModulo = array();
$arrIdModulo = array();
if ($objModulo = OOB_module::listModules()) {
    foreach ($objModulo as $m) {
        $arrModulo[] = $m->nicename();
        $arrIdModulo[] = $m->name();
        if (isset($_POST['cboModulo'])) {
            //echo $_POST['cboModulo']."<br>";
            if ($_POST['cboModulo'] == $m->name()) {
                $modSelect = $m->name();
            }
        }
    }
Exemple #2
0
<?php

# Eumafes v2 [�2005 - Nutus, Todos los derechos reservados]
/*
 * Created on 06-ago-2005
 * @author Victor Stornati (victor.stornati@nutus.com.ar)
 */
OOB_module::includeClass('currency', 'currency_currency');
class currency_value
{
    private $id = ID_UNDEFINED;
    //@todo: object datetime
    private $date = '';
    private $value = '';
    private $currency = NO_OBJECT;
    /** Starts the currency value. 
     	if no currency value set we must believe is a new one */
    function __construct($id = ID_UNDEFINED)
    {
        global $ari;
        if ($id > ID_MINIMAL) {
            $this->id = $id;
            if (!$this->fill()) {
                throw new OOB_exception("Invalid Currency Value {$id}", "403", "Invalid Currency Value", false);
            }
        }
    }
    /** Returs the value for the given var */
    public function get($var)
    {
        if (isset($this->{$var}) && !empty($this->{$var})) {