init
This commit is contained in:
17
modules/Documents/changeStatus.php
Normal file
17
modules/Documents/changeStatus.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
global $current_user;
|
||||
$db=$GLOBALS['db'];
|
||||
if($_REQUEST['mass']!=""){
|
||||
|
||||
$ids=$_REQUEST['mass'];
|
||||
|
||||
|
||||
if($current_user->is_admin==1){
|
||||
$db=$GLOBALS['db'];
|
||||
$db->query("update documents set status='".$_REQUEST['return_module']."' where id in ('".implode("','",$ids)."')");
|
||||
|
||||
}
|
||||
}
|
||||
header("Location: index.php?module=Documents&action=ListView");
|
||||
?>
|
||||
Reference in New Issue
Block a user