Thanks for the help!
rbg
rowdie wrote:
try making your class without an id
.phpusermenu a {}
then use <a class='phpusermenu' ...
id's are unique, they should only be used once in a page. It's easier to just make it a class.
Hope this helps,
Rowd
a#phpusermenu a {
background: #F6F8FA;
font-weight: normal;
padding: 0px 0px 0px 30px;
border-right: 1px solid #D9E3EB;
border-bottom: 1px solid #D9E3EB;
border-left: 1px solid #D9E3EB;
border-top: 1px solid #D9E3EB;
width: 120px;
color: #666666;
}
a#phpusermenu a:hover {
background-color: #FFFFFF;
text-decoration: none;
border: 1px solid #8CA9C1;
color: #799BB7;
}
a#phpusermenu a.highlight {padding-left: 30px;background-color: #fcc; border-right: 1px solid #666666; border-bottom: 1px solid #ADACAD; border-left: 1px solid silver;text-decoration: none;}
echo "<a id=phpusermenu href='/timesheet/index_user.php?login=".Encrypt($xoopsUser->getVar('uname'))."&password=".Encrypt($xoopsUser->getVar('pass'))."&ref=".Encrypt($_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME'])."'> My Timesheet</a>";
global $xoopsUser;
function Encrypt($string, $key="xxxxxx") {
$result = '';
for($i=1; $i<=strlen($string); $i++) {
$char = substr($string, $i-1, 1);
$keychar = substr($key, ($i % strlen($key))-1, 1);
$char = chr(ord($char)+ord($keychar));
$result.=$char;
}
return $result;
}
echo "<a class=menuTop id=usermenu href='/timesheet/index_user.php?login=".Encrypt($xoopsUser->getVar('uname'))."&password=".Encrypt($xoopsUser->getVar('pass'))."&ref=".Encrypt($_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME'])."'>My Timesheet</a>";
echo "<a class=menuTop id=usermenu
// above this line is the standard XOOPS footer.php
// below is the new function and link added
function Encrypt($string, $key="xxxxxx") {
$result = '';
for($i=1; $i<=strlen($string); $i++) {
$char = substr($string, $i-1, 1);
$keychar = substr($key, ($i % strlen($key))-1, 1);
$char = chr(ord($char)+ord($keychar));
$result.=$char;
}
return $result;
}
echo "<a href='/wp2/timesheet/index_user.php?login=".Encrypt($xoopsUser->getVar('uname'))."&password=".Encrypt($xoopsUser->getVar('pass'))."&ref=".Encrypt($_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME'])."'>Click To Go To Timesheet</a>";
?>