<?php
/**
 * Part of the Inforex project
 * Copyright (C) 2013 Michał Marcińczuk, Jan Kocoń, Marcin Ptak
 * Wrocław University of Technology
 * See LICENCE 
 */
 
class Ajax_annotation_type_shared_attribute_add extends CPageAdministration {
	function execute(){
		global $db;

		$annotation_type_id = intval($_POST['annotation_type_id']);
		$shared_attribute_id = intval($_POST['shared_attribute_id']);
		
		$sql = "INSERT INTO annotation_types_shared_attributes (annotation_type_id, shared_attribute_id) VALUES (?, ?)";
		$db->execute($sql, array($annotation_type_id, $shared_attribute_id));				
		return;
	}
	
}