<?php
include_once 'Piragibe/PGBRequires.php';
/**
* Standard include file for all that's willing to use the framework.
*
* This is basically a set of requires for all classes in the framework plus some javascript
* utility functions that are called from code generated by the framework. <b>DO NOT REMOVE</b>
* the functions, thus, or some things will stop working.
* @package Piragibe
* @author Francisco Piragibe
* @version 1.00
* @copyright Copyright © 2006, Francisco Piragibe
* This file is part of The PIRAGIBE Framework.
*
* The PIRAGIBE 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.
*
* The PIRAGIBE 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 The PIRAGIBE Framework; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
$ma = array(
'delrec' => array( 'pt' => 'Quer mesmo excluir o registro?',
'en' => 'Do you REALLY want to delete this record?'
)
);
$oIN = new PGBNlsAgent('pt');
$oIN->setMessageArray( $ma );
?>
<script language="JavaScript">
var v_oper = 0;
function janela_cega( url, nome, w, h ) {
window.open( url, nome, "scrollbars=0,toolbar=0,status=0,menubar=0,width=" + w + ",height=" + h );
}
function toggleDisplay( nome, apos, pos ) {
var ca = document.getElementById('__' + nome + '_lgdeta_' + pos ).value;
var cl = document.getElementById('__' + nome + '_dm_0_' + apos ).className;
if ( ca == 0 ) {
cl = cl.substring(0, cl.length-3);
try {
document.getElementById('__' + nome + '_dmt_' + apos ).style.display = '';
}
catch( e ) {
}
document.getElementById('__' + nome + '_lgdeta_' + pos ).value = '1';
}
else {
cl = cl + "sec";
try {
document.getElementById('__' + nome + '_dmt_' + apos ).style.display = 'none';
}
catch( e ) {
}
document.getElementById('__' + nome + '_lgdeta_' + pos ).value = '0';
}
try {
for( var i=0; i>=0; i++ ) {
document.getElementById('__' + nome + '_dm_' + i + '_' + apos ).className = cl;
}
}
catch( e ) {
}
}
function confirma() {
if ( v_oper == 3 ) {
v_oper = 0;
return confirm( '<?= $oIN->getMessage('delrec') ?>' );
}
else {
return true;
}
}
function delecao() {
v_oper = 3;
}
</script>