Jump to content

could you please check this out?


jossylala

Recommended Posts

Here is the code

	

<td width="3%"><span class="headerLinkColor">»</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

Link to comment
https://forums.phpfreaks.com/topic/195677-could-you-please-check-this-out/
Share on other sites

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

 

<?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">»</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">   <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" > </TD>
                      <TD vAlign="top" align="center" width="176"><span class="linkColor"> <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


tags.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.