<?
namespace admin\controls;

class EmailRestriction
{
    public function getContent()
	{
		global $sys;

		$rw = $sys -> formGet( 'rw' );

		if ( $rw == 'edit' )
		{
			$id = $sys -> formGet( 'id' );
			return \admin\view\EmailRestriction::edit( $id );
		}
		else if ( $rw == 'add' )
		{
			return \admin\view\EmailRestriction::add();
		}
		else
		{
			if ( $rw == 'del' )
			{
				$id 	= $sys -> formGetInt( 'id' );
				\admin\factory\EmailRestriction::delete( $id );
			}
			return \admin\view\EmailRestriction::show();
		}
	}
}
?>