<{php}>
$module = $GLOBALS['xoopsModule'];
if ( isset($module) ) {
$module = $module->getVar('dirname');
} else {
$module = 'system';
}
$GLOBALS['xoopsTpl']->assign('modname', $module);
<{/php}>
All the lines below this block will then be able to acces the new variable "modname" (that's why I told you to put this around the top).
Example:
<link rel="stylesheet" href="<{$xoops_imageurl}><{$modname}>.css" />
or
<body class="<{$modname}>">
...
Skalpa.>