示例#1
0
$upd_paginas->addColumn("pag", "STRING_TYPE", "POST", "pag");
$upd_paginas->addColumn("contenido", "STRING_TYPE", "POST", "contenido");
$upd_paginas->setPrimaryKey("id_pag", "NUMERIC_TYPE", "GET", "id_pag");
// Make an instance of the transaction object
$del_paginas = new tNG_multipleDelete($conn_ha);
$tNGs->addTransaction($del_paginas);
// Register triggers
$del_paginas->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Delete1");
$del_paginas->registerTrigger("END", "Trigger_Default_Redirect", 99, "../includes/nxt/back.php");
// Add columns
$del_paginas->setTable("paginas");
$del_paginas->setPrimaryKey("id_pag", "NUMERIC_TYPE", "GET", "id_pag");
// Execute all the registered transactions
$tNGs->executeTransactions();
// Get the transaction recordset
$rspaginas = $tNGs->getRecordset("paginas");
$row_rspaginas = mysql_fetch_assoc($rspaginas);
$totalRows_rspaginas = mysql_num_rows($rspaginas);
?>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Untitled Document</title>
<link href="../includes/skins/mxkollection3.css" rel="stylesheet" type="text/css" media="all" />
<script src="../includes/common/js/base.js" type="text/javascript"></script>
<script src="../includes/common/js/utility.js" type="text/javascript"></script>
<script src="../includes/skins/style.js" type="text/javascript"></script>
<?php 
echo $tNGs->displayValidationRules();
?>
示例#2
0
文件: salir.php 项目: Mayoh/grupo-ha
$restrict = new tNG_RestrictAccess($conn_ha, "../");
//Grand Levels: Any
$restrict->Execute();
//End Restrict Access To Page
// Make a logout transaction instance
$logoutTransaction = new tNG_logoutTransaction($conn_ha);
$tNGs->addTransaction($logoutTransaction);
// Register triggers
$logoutTransaction->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "VALUE", "true");
$logoutTransaction->registerTrigger("END", "Trigger_Default_Redirect", 99, "../login.php");
// Add columns
// End of logout transaction instance
// Execute all the registered transactions
$tNGs->executeTransactions();
// Get the transaction recordset
$rscustom = $tNGs->getRecordset("custom");
$row_rscustom = mysql_fetch_assoc($rscustom);
$totalRows_rscustom = mysql_num_rows($rscustom);
?>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Untitled Document</title>
<link href="../includes/skins/mxkollection3.css" rel="stylesheet" type="text/css" media="all" />
<script src="../includes/common/js/base.js" type="text/javascript"></script>
<script src="../includes/common/js/utility.js" type="text/javascript"></script>
<script src="../includes/skins/style.js" type="text/javascript"></script>
</head>

<body>
示例#3
0
$upd_usuarios->addColumn("usuario", "STRING_TYPE", "POST", "usuario");
$upd_usuarios->addColumn("contrasena", "STRING_TYPE", "POST", "contrasena");
$upd_usuarios->setPrimaryKey("id_usuario", "NUMERIC_TYPE", "GET", "id_usuario");
// Make an instance of the transaction object
$del_usuarios = new tNG_multipleDelete($conn_ha);
$tNGs->addTransaction($del_usuarios);
// Register triggers
$del_usuarios->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Delete1");
$del_usuarios->registerTrigger("END", "Trigger_Default_Redirect", 99, "../includes/nxt/back.php");
// Add columns
$del_usuarios->setTable("usuarios");
$del_usuarios->setPrimaryKey("id_usuario", "NUMERIC_TYPE", "GET", "id_usuario");
// Execute all the registered transactions
$tNGs->executeTransactions();
// Get the transaction recordset
$rsusuarios = $tNGs->getRecordset("usuarios");
$row_rsusuarios = mysql_fetch_assoc($rsusuarios);
$totalRows_rsusuarios = mysql_num_rows($rsusuarios);
?>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Untitled Document</title>
<link href="../includes/skins/mxkollection3.css" rel="stylesheet" type="text/css" media="all" />
<script src="../includes/common/js/base.js" type="text/javascript"></script>
<script src="../includes/common/js/utility.js" type="text/javascript"></script>
<script src="../includes/skins/style.js" type="text/javascript"></script>
<?php 
echo $tNGs->displayValidationRules();
?>
示例#4
0
$upd_servicios->addColumn("pag_serv", "STRING_TYPE", "POST", "pag_serv");
$upd_servicios->setPrimaryKey("id_servicio", "NUMERIC_TYPE", "GET", "id_servicio");
// Make an instance of the transaction object
$del_servicios = new tNG_multipleDelete($conn_ha);
$tNGs->addTransaction($del_servicios);
// Register triggers
$del_servicios->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Delete1");
$del_servicios->registerTrigger("END", "Trigger_Default_Redirect", 99, "../includes/nxt/back.php");
$del_servicios->registerTrigger("AFTER", "Trigger_FileDelete", 98);
// Add columns
$del_servicios->setTable("servicios");
$del_servicios->setPrimaryKey("id_servicio", "NUMERIC_TYPE", "GET", "id_servicio");
// Execute all the registered transactions
$tNGs->executeTransactions();
// Get the transaction recordset
$rsservicios = $tNGs->getRecordset("servicios");
$row_rsservicios = mysql_fetch_assoc($rsservicios);
$totalRows_rsservicios = mysql_num_rows($rsservicios);
?>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Untitled Document</title>
<link href="../includes/skins/mxkollection3.css" rel="stylesheet" type="text/css" media="all" />
<script src="../includes/common/js/base.js" type="text/javascript"></script>
<script src="../includes/common/js/utility.js" type="text/javascript"></script>
<script src="../includes/skins/style.js" type="text/javascript"></script>
<?php 
echo $tNGs->displayValidationRules();
?>
示例#5
0
$upd_banner->addColumn("banner", "FILE_TYPE", "FILES", "banner");
$upd_banner->setPrimaryKey("id_banner", "NUMERIC_TYPE", "GET", "id_banner");
// Make an instance of the transaction object
$del_banner = new tNG_multipleDelete($conn_ha);
$tNGs->addTransaction($del_banner);
// Register triggers
$del_banner->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Delete1");
$del_banner->registerTrigger("END", "Trigger_Default_Redirect", 99, "../includes/nxt/back.php");
$del_banner->registerTrigger("AFTER", "Trigger_FileDelete", 98);
// Add columns
$del_banner->setTable("banner");
$del_banner->setPrimaryKey("id_banner", "NUMERIC_TYPE", "GET", "id_banner");
// Execute all the registered transactions
$tNGs->executeTransactions();
// Get the transaction recordset
$rsbanner = $tNGs->getRecordset("banner");
$row_rsbanner = mysql_fetch_assoc($rsbanner);
$totalRows_rsbanner = mysql_num_rows($rsbanner);
?>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Untitled Document</title>
<link href="../includes/skins/mxkollection3.css" rel="stylesheet" type="text/css" media="all" />
<script src="../includes/common/js/base.js" type="text/javascript"></script>
<script src="../includes/common/js/utility.js" type="text/javascript"></script>
<script src="../includes/skins/style.js" type="text/javascript"></script>
<?php 
echo $tNGs->displayValidationRules();
?>
示例#6
0
$upd_categorias->addColumn("categoria", "STRING_TYPE", "POST", "categoria");
$upd_categorias->addColumn("liga_cat", "STRING_TYPE", "POST", "liga_cat");
$upd_categorias->setPrimaryKey("id_cat", "NUMERIC_TYPE", "GET", "id_cat");
// Make an instance of the transaction object
$del_categorias = new tNG_multipleDelete($conn_ha);
$tNGs->addTransaction($del_categorias);
// Register triggers
$del_categorias->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Delete1");
$del_categorias->registerTrigger("END", "Trigger_Default_Redirect", 99, "../includes/nxt/back.php");
// Add columns
$del_categorias->setTable("categorias");
$del_categorias->setPrimaryKey("id_cat", "NUMERIC_TYPE", "GET", "id_cat");
// Execute all the registered transactions
$tNGs->executeTransactions();
// Get the transaction recordset
$rscategorias = $tNGs->getRecordset("categorias");
$row_rscategorias = mysql_fetch_assoc($rscategorias);
$totalRows_rscategorias = mysql_num_rows($rscategorias);
?>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Untitled Document</title>
<link href="../includes/skins/mxkollection3.css" rel="stylesheet" type="text/css" media="all" />
<script src="../includes/common/js/base.js" type="text/javascript"></script>
<script src="../includes/common/js/utility.js" type="text/javascript"></script>
<script src="../includes/skins/style.js" type="text/javascript"></script>
<?php 
echo $tNGs->displayValidationRules();
?>
示例#7
0
$upd_tintuc->addColumn("ngaydangtin", "DATE_TYPE", "CURRVAL", "");
$upd_tintuc->setPrimaryKey("ID_tintuc", "NUMERIC_TYPE", "GET", "ID_tintuc");
// Make an instance of the transaction object
$del_tintuc = new tNG_multipleDelete($conn_conn_cms);
$tNGs->addTransaction($del_tintuc);
// Register triggers
$del_tintuc->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Delete1");
$del_tintuc->registerTrigger("END", "Trigger_Default_Redirect", 99, "list_tintuc.php");
$del_tintuc->registerTrigger("AFTER", "Trigger_FileDelete", 98);
// Add columns
$del_tintuc->setTable("tintuc");
$del_tintuc->setPrimaryKey("ID_tintuc", "NUMERIC_TYPE", "GET", "ID_tintuc");
// Execute all the registered transactions
$tNGs->executeTransactions();
// Get the transaction recordset
$rstintuc = $tNGs->getRecordset("tintuc");
$row_rstintuc = mysql_fetch_assoc($rstintuc);
$totalRows_rstintuc = mysql_num_rows($rstintuc);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<link href="../includes/skins/mxkollection3.css" rel="stylesheet" type="text/css" media="all" />
<script src="../includes/common/js/base.js" type="text/javascript"></script>
<script src="../includes/common/js/utility.js" type="text/javascript"></script>
<script src="../includes/skins/style.js" type="text/javascript"></script>
<?php 
echo $tNGs->displayValidationRules();
?>
示例#8
0
$upd_subcategorias->addColumn("id_cat", "NUMERIC_TYPE", "POST", "id_cat");
$upd_subcategorias->addColumn("subcat", "STRING_TYPE", "POST", "subcat");
$upd_subcategorias->setPrimaryKey("id_subcat", "NUMERIC_TYPE", "GET", "id_subcat");
// Make an instance of the transaction object
$del_subcategorias = new tNG_multipleDelete($conn_ha);
$tNGs->addTransaction($del_subcategorias);
// Register triggers
$del_subcategorias->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Delete1");
$del_subcategorias->registerTrigger("END", "Trigger_Default_Redirect", 99, "../includes/nxt/back.php");
// Add columns
$del_subcategorias->setTable("subcategorias");
$del_subcategorias->setPrimaryKey("id_subcat", "NUMERIC_TYPE", "GET", "id_subcat");
// Execute all the registered transactions
$tNGs->executeTransactions();
// Get the transaction recordset
$rssubcategorias = $tNGs->getRecordset("subcategorias");
$row_rssubcategorias = mysql_fetch_assoc($rssubcategorias);
$totalRows_rssubcategorias = mysql_num_rows($rssubcategorias);
?>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Untitled Document</title>
<link href="../includes/skins/mxkollection3.css" rel="stylesheet" type="text/css" media="all" />
<script src="../includes/common/js/base.js" type="text/javascript"></script>
<script src="../includes/common/js/utility.js" type="text/javascript"></script>
<script src="../includes/skins/style.js" type="text/javascript"></script>
<?php 
echo $tNGs->displayValidationRules();
?>