mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-31 13:18:06 +00:00 
			
		
		
		
	backport assigning processes to other user
This commit is contained in:
		
							parent
							
								
									5950be6292
								
							
						
					
					
						commit
						dbb2340269
					
				|  | @ -209,6 +209,15 @@ else if ($action == "removefromprocesses") { | |||
| 		UI::exitError(getMLText("admin_tools"),getMLText("cannot_delete_yourself")); | ||||
| 	} | ||||
| 
 | ||||
| 	if(!empty($_POST["assignTo"])) { | ||||
| 		$userToAssign = $dms->getUser($_POST["assignTo"]); | ||||
| 		if (!is_object($userToAssign)) { | ||||
| 			UI::exitError(getMLText("admin_tools"),getMLText("invalid_user_id")); | ||||
| 		} | ||||
| 	} else { | ||||
| 		$userToAssign = null; | ||||
| 	} | ||||
| 
 | ||||
| 	$userToRemove = $dms->getUser($userid); | ||||
| 	if (!is_object($userToRemove)) { | ||||
| 		UI::exitError(getMLText("admin_tools"),getMLText("invalid_user_id")); | ||||
|  |  | |||
|  | @ -193,9 +193,9 @@ $(document).ready( function() { | |||
| 		$this->pageNavigation(getMLText("admin_tools"), "admin_tools"); | ||||
| 		$this->contentHeading(getMLText("rm_user_from_processes")); | ||||
| 
 | ||||
| 		$this->warningMsg(getMLText("confirm_rm_user_from_processes", array ("username" => htmlspecialchars($rmuser->getFullName())))); | ||||
| 		$this->rowStart(); | ||||
| 		$this->columnStart(4); | ||||
| 		$this->warningMsg(getMLText("confirm_rm_user_from_processes", array ("username" => htmlspecialchars($rmuser->getFullName())))); | ||||
| 
 | ||||
| 		$reviewStatus = $rmuser->getReviewStatus(); | ||||
| 		$tmpr = array(); | ||||
|  | @ -295,24 +295,26 @@ $(document).ready( function() { | |||
| 		} | ||||
| 		echo "</table>"; | ||||
| 
 | ||||
| 		/* | ||||
| 		$options = array(); | ||||
| 		$allUsers = $dms->getAllUsers($sortusersinlist); | ||||
| 		foreach ($allUsers as $currUser) { | ||||
| 			if (!$currUser->isGuest()) | ||||
| 				$options[] = array($currUser->getID(), htmlspecialchars($currUser->getLogin()), ($currUser->getID()==$user->getID()), array(array('data-subtitle', htmlspecialchars($currUser->getFullName())))); | ||||
| 		$this->infoMsg(getMLText("info_rm_user_from_processes_user")); | ||||
| 
 | ||||
| 		$options = array(array(0, getMLText('do_no_transfer_to_user'))); | ||||
| 		foreach ($allusers as $currUser) { | ||||
| 			if ($currUser->isGuest() || ($currUser->getID() == $rmuser->getID()) ) | ||||
| 				continue; | ||||
| 
 | ||||
| 			if ($rmuser && $currUser->getID()==$rmuser->getID()) $selected=$count; | ||||
| 			$options[] = array($currUser->getID(), htmlspecialchars($currUser->getLogin()." - ".$currUser->getFullName())); | ||||
| 		} | ||||
| 		$this->formField( | ||||
| 			getMLText("user"), | ||||
| 			getMLText("transfer_process_to_user"), | ||||
| 			array( | ||||
| 				'element'=>'select', | ||||
| 				'id'=>'newuser', | ||||
| 				'name'=>'newuserid', | ||||
| 				'name'=>'assignTo', | ||||
| 				'class'=>'chzn-select', | ||||
| 				'options'=>$options | ||||
| 			) | ||||
| 		); | ||||
| 		 */ | ||||
| 
 | ||||
| 		$this->formSubmit("<i class=\"fa fa-remove\"></i> ".getMLText('rm_user_from_processes')); | ||||
| ?>
 | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Uwe Steinmann
						Uwe Steinmann