コード例 #1
0
function vars_login($urlParams)
{
    global $Path, $dic;
    $modulo = strtolower(MODULO) . '/';
    $seccion = encrypt('LOGIN', 1);
    ## Logica de negocio ##
    // Mensajes via URL
    switch ($urlParams[e]) {
        case 1:
            $msj = $dic[login][msj_noauth];
            break;
        case 2:
            $msj = $dic[login][msj_salir];
            break;
        default:
            $msj = $dic[login][msj_entrar];
            break;
    }
    ## Envio de valores ##
    $negocio = array(MORE => incJs($Path[srcjs] . $modulo . 'login.js') . incCss($Path[css] . 'maruti-login.css'), MODULE => strtolower(MODULO), SECTION => strtolower($seccion));
    $texto = array(login => $dic[general][login], usuario => $dic[general][usuario], clave => $dic[general][clave], entrar => $dic[general][entrar], MSJ => $msj);
    $data = array_merge($negocio, $texto);
    return $data;
}
コード例 #2
0
function include_editable($tipo = 1)
{
    global $Path;
    if ($tipo == 1) {
        $includes = incJs($Path[js] . 'jquery-ui-1.11.1/jquery-ui.min.js') . incCss($Path[js] . 'jqueryui-editable-1.5.1/jqueryui-editable/css/jqueryui-editable.css') . incJs($Path[js] . 'jqueryui-editable-1.5.1/jqueryui-editable/js/jqueryui-editable.js');
    } else {
        $include = incJs($Path[js] . 'jquery-ui-1.11.1/jquery-ui.min.js') . incJs($Path[js] . 'jquery.jeditable.js');
    }
    return $includes;
}