Ejemplo n.º 1
0
        mysql_class::ex_sqlx("update `access_det` set `{$feild}` = '{$value}' where `id`={$id}");
    }
}
if (!isset($_REQUEST['acc_id'])) {
    die("<script language=\"javascript\">alert('خطا در استفاده');</script>");
}
$acc_id = (int) $_REQUEST['acc_id'];
$grid = new jshowGrid_new("access_det", "grid1");
$grid->echoQuery = TRUE;
$grid->whereClause = " `acc_id` = {$acc_id}";
$grid->columnHeaders[0] = null;
$grid->columnHeaders[1] = null;
$grid->columnHeaders[2] = 'عبارت امنیتی';
$grid->addFunction = 'add_item';
$grid->editFunction = 'edit_item';
$grid->intial();
$grid->executeQuery();
$out = $grid->getGrid();
?>
<!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>
		<!-- Style Includes -->
		<link type="text/css" href="../js/jquery/themes/trontastic/jquery-ui.css" rel="stylesheet" />
		<link type="text/css" href="../js/jquery/window/css/jquery.window.css" rel="stylesheet" />

		<link type="text/css" href="../css/style.css" rel="stylesheet" />

		<!-- JavaScript Includes -->
		<script type="text/javascript" src="../js/jquery/jquery.js"></script>
Ejemplo n.º 2
0
<?php

session_start();
include_once "../kernel.php";
if (!isset($_SESSION[conf::app . '_user_id'])) {
    die(lang_fa_class::access_deny);
}
$se = security_class::auth((int) $_SESSION[conf::app . '_user_id']);
if (!$se->can_view) {
    die(lang_fa_class::access_deny);
}
$gr = new jshowGrid_new('user', 'grid1');
$gr->intial();
$gr->executeQuery();
$out = $gr->getGrid();
$out = session_id();
?>
<html>
	<head>
		<title>
			آزمایش چاپ
		</title>
		<link rel="stylesheet" href="../css/style.css" type="text/css" />
		<link rel="stylesheet" href="../css/print.css" type="text/css" media="print" />
	</head>
	<body dir="rtl">
		<?php 
echo $out;
?>
	</body>
</html>