<link rel="stylesheet" type="text/css" href="../style/av_common.css?t=<?php 
echo Util::get_css_id();
?>
"/>
	</head>
	
	<body>
                                                                                
		<h1> <?php 
echo _("New policy group");
?>
 </h1>

		<?php 
if (empty($id)) {
    Policy_group::insert($conn, $ctx, $name, $descr);
} else {
    if ($id == '00000000000000000000000000000000') {
        echo ossim_error(_("You cannot modify the default group."), AV_NOTICE);
        exit;
    }
    Policy_group::update($conn, $id, $name, $descr);
}
$db->close();
?>
		<p><?php 
echo _("Policy group successfully inserted");
?>
</p>		
		
		<script>document.location.href="policygroup.php"</script>