Location: PHPKode > projects > Exero CMS > upload/admin/items/link_other.php
<?
/*========================================*\
|      Link [Other] Item for Exero CMS    |
|       Copyright © 2006 Jack Polgar       |
|        http://www.jackpolgar.com         |
\*========================================*/

class link_other {
	function _interface() {
	global $iteminfo;
		print_form_textbox("URL","info",$iteminfo['info']);
	}
	function _create() {
	global $db;
		$groupaccess = implode(',',$_POST['groupaccess']);
		$db->query("INSERT INTO items VALUES(
			'',
			'".$db->real_escape_string($_POST['name'])."',
			'link_other',
			'".$db->real_escape_string($_POST['info'])."',
			'',
			'".$groupaccess."')");
	}
	function _edit() { }
	function _delete() { }
	function _save() {
	global $db;
		$groupaccess = implode(',',$_POST['groupaccess']);
		$db->query("UPDATE items SET title='".$db->real_escape_string($_POST['name'])."', info='".$db->real_escape_string($_POST['info'])."', groupaccess='".$groupaccess."' WHERE id='".$db->real_escape_string($_POST['itemid'])."'");		
	}
}
?>
Return current item: Exero CMS