I assume you want that codeblocks replaces the $(proejct) with the project title and $Name: $ with the file name?
There are multiple ways to do this.
The easiest way is this:
Settings->Editor->Default code
Add your default code there.
You can use variable expansion (
http://wiki.codeblocks.org/index.php/Variable_expansion) in your default code. So for you this would look like this:
/**************************************************************************
* Project: $(PROJECT_NAME)
* Function:
**************************************************************************
* $Author: mario $
* $Name: $
**************************************************************************
*
* Copyright 2007 by company name
*
*************************************************************************/
To trigger this template you have to use the shortcut File->New->File->C/c++ source file->Go ecc...