Author Topic: could you please check this out?  (Read 78 times)

0 Members and 1 Guest are viewing this topic.

Offline jossylalaTopic starter

  • Irregular
    • View Profile
could you please check this out?
« on: March 18, 2010, 09:07:01 AM »
Here is the code
	


<
td width="3%"><span class="headerLinkColor">&raquo;</span></td>

	


	


	


	


<
td align="left">

	


	


	


	


<
a target="leftFrame" href="<?=ADMIN_FOLDERS_PATH?><?=$folder_name?>/?sid=<?=$sid?>" class="headerLinkColor">

	


	


	


	


<?=
$cat_name?></a>

	


	


	


	


</td>

	


	


	



	


	


	


</tr></table>

	


	


	



	


	


<?PHP   if( $flag  == 4){

	


	


	


	


echo 
"</td>";

	


	


	


	


$flag=1;

	


	


	


}else{

	


	


	


	


$flag++;

	


	


	


}

	


	



	


	


 }
// for loop ?></tr>

	


	


</table>

	


	


	


	


 

	


	


</td>



And am getting links like this

http://admin/credit_mgmt/?sid=532bb180e67ea7234d73502205321bfe


i need the link to be site url/admin/credit_mgmt/?sid=532bb180e67ea7234d73502205321bfe

any help? thanks

Offline MatthewJ

  • Devotee
  • Gender: Male
    • View Profile
Re: could you please check this out?
« Reply #1 on: March 18, 2010, 09:10:44 AM »
so add what you need to this variable where it is declared ADMIN_FOLDERS_PATH

It's hard to answer questions when you leave out the relevant code or information

Offline jossylalaTopic starter

  • Irregular
    • View Profile
Re: could you please check this out?
« Reply #2 on: March 18, 2010, 09:24:00 AM »
what should the variable am to add look like? Note this was working perfectly until ma host upgraded to another php version

Online thorpe

  • Administrator
  • 'Mind Boggling!'
  • *
    • View Profile
Re: could you please check this out?
« Reply #3 on: March 18, 2010, 09:37:24 AM »
Try using the proper php tags.

Code: [Select]
<a target="leftFrame" href="<?php echo ADMIN_FOLDERS_PATH?><?php echo $folder_name?>/?sid=<?php echo $sid?>" class="headerLinkColor">

Offline jossylalaTopic starter

  • Irregular
    • View Profile
Re: could you please check this out?
« Reply #4 on: March 18, 2010, 09:45:29 AM »
Okay,here is my full header.php code. thats where the link is locate.
@ thorpe, i tried changing it but its did work. please check this and get back to me. thanks

Code: [Select]
<?php include ($_SERVER["DOCUMENT_ROOT"] ."/includes/config.inc.php");

$user_id loggedUser($sid);
$contents selectFrom("SELECT id,user_id FROM " TBL_ADMIN_USERS " WHERE user_id='$user_id'");
$user_type getUserType($user_id);

switch (
$user_type){

case('SA'): $Type="Sub Admin"; break;
case('A'): $Type="Administrator"; break;
default:   $Type="Admin"
}
$Result getRights($user_id);
?>

<html>
<head>
<title><?=TITLE?></title>
<link rel="stylesheet" href="<?=ADMIN_CSS_PATH?>interface.css" type="text/css">
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<TABLE width="100%" height="120" border="0" cellPadding="0" cellSpacing="0" background="images/hdrbg.gif">
  <TBODY>
    <TR>
      <TD height="120" valign="top"><TABLE height="120" cellSpacing="0" cellPadding="0" width="100%" border="0">
          <TBODY>
            <TR>
              <TD vAlign="top" align="right" colSpan="3" height="11"></TD>
            </TR>
            <TR>
              <TD width="20%" height="85" align="center" vAlign="middle"><span class="indexText">Administration</span><br>
                <strong><a href="<?echo HOST_URL?>" target="_blank"><span class="linkColor"><?echo $HTTP_HOST?></span></a></strong></TD>
                                                        <TD width=65% height="85" align="center" vAlign=top>
                                <table width="100%" border="0"><tr>
<?PHP
$flag = 1;
for ($j=0; $j<count($Result); $j++){
$folder_name = $Result[$j]["folder_name"];
$cat_name = $Result[$j]["cat_name"];
//echo "cat_name >>>>>>>>>> $cat_name";
if($flag == 1){ echo "<td>";}

?>

<table width="100%" border="0"><tr>

<td width="3%"><span class="headerLinkColor">&raquo;</span></td>
<td align="left">
<a target="leftFrame" href="<?=ADMIN_FOLDERS_PATH?><?=$folder_name?>/?sid=<?=$sid?>" class="headerLinkColor">
<?=$cat_name?></a>
</td>

</tr></table>

<?PHP   if( $flag  == 4){
echo "</td>";
$flag=1;
}else{
$flag++;
}
}// for loop ?></tr>
</table>
</td>
              <TD width=15% height="85" align="center">Your IP is<br> <span class="linkColor"><?echo getIP();?></span>
              </TD>
            </TR>
            <TR>
              <TD vAlign="top" colSpan="3" height="24"><TABLE cellSpacing="0" cellPadding="0" width=100% border="0">
                  <TBODY>
                    <TR>
                      <TD width="467" height="24" background="images/hdr12.gif">
      <TABLE height="24" cellSpacing="0" cellPadding="0" width="187" border="0">
                          <TBODY>
 

                            <TR>
                              <TD width="187" background="images/hdr11.gif">&nbsp;&nbsp;&nbsp;<B>Logged in as: <span class="linkColor"><?php echo $contents['user_id']?></span></B></TD>
                            </TR>
                          </TBODY>
                        </TABLE></TD>
                      <TD width=69 valign="top" ><IMG height="24" src="images/hdr13.gif" width="54"></TD>
                      <TD width="297" valign="top" >&nbsp;</TD>
                      <TD vAlign="top" align="center" width="176"><span class="linkColor">&nbsp;<strong>You are
                        Admin. </strong></span></TD>
                    </TR>
                  </TBODY>
                </TABLE></TD>
            </TR>
          </TBODY>
        </TABLE></TD>
    </TR>
  </TBODY>
</TABLE>
</body>
</html>

EDIT: If your going to post code, please use [code][/code] tags.
« Last Edit: March 18, 2010, 09:47:34 AM by thorpe »

Offline scvinodkumar

  • Enthusiast
  • Gender: Male
  • PHP Web Developer
    • View Profile
    • Web Collection
Re: could you please check this out?
« Reply #5 on: March 18, 2010, 09:50:18 AM »
i think you better enable the php open short tag in php.ini, i hope it will solve your issue, since your code shows that you have used php short tags oftenly.

PHP Freaks Forums

« on: »

Tired of these ads? Purchase a supporter subscription to get rid of them.