Location: PHPKode > projects > PhpWAFr - PHP Web Application Framework > phpwafr-1.1.2/content/object_associate.php
<?php
/**
 * object_associate.php ::  Modelo de transação para processar vários registros.
 *
 * PHP version 4
 *
 * phpWAFr version 1.1.2
 * copyright (c) 2007 Associação SoftwareLivre.org
 *
 * phpWAFr is an open source PHP library designed to accelerate
 * the development of transactional database Web applications.
 *
 * phpWAFr is released under the terms of the LGPL license 2.1
 * http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html  LGPL License 2.1
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * @package    phpWAFr
 * @version    1.1.2
 * @author     Marcelo Rezende <hide@address.com>
 * @copyright  copyright (c) 2007 Associação SoftwareLivre.org
 * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html  LGPL License 2.1
 */ 

require_once("../inc/common.php");

/*
	verificação do nível do usuário
*/
verifyUser(1);

/*
	conexão com o banco de dados
*/
$conn = new db();
$conn->open();

/*
	captura e prepara a lista de registros
*/ 
$list = getParam("f_destination");
if (is_array($list)) {
	$list = implode(",",$list);
}

/*
	coloque abaixo o código que processa,
	os registros selecionados
*/
echo $list;

/*
	fecha a conexão com o banco de dados
*/
$conn->close();
?>
Return current item: PhpWAFr - PHP Web Application Framework