SourceTec Software

It is currently Thu Apr 24, 2014 1:55 am

All times are UTC + 8 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: menu and php
PostPosted: Sun Oct 16, 2011 3:07 am 
Offline
Member

Joined: Wed May 18, 2011 1:22 am
Posts: 4
I have this code :

<?php if ($_SESSION['customer_id']) { ?>
<li<?php echo (($current_page_base == 'logoff') ? ' class="current">' : '>');?><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo '<span>' . HEADER_TITLE_LOGOFF . '</span>'; ?></a></li>
<?php
} else {
if (STORE_STATUS == '0') {
?>
<li<?php echo (($current_page_base == 'login') ? ' class="current">' : '>');?><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo '<span>' . HEADER_TITLE_LOGIN . '</span>'; ?></a></li>
<?php } } ?>

I put it in sothik dhtml menu ...
how to do!


Top
 Profile  
 
 Post subject: Re: menu and php
PostPosted: Sun Oct 16, 2011 4:42 am 
Offline
Guru
User avatar

Joined: Tue Aug 05, 2003 6:39 pm
Posts: 1130
Location: Ohio
maxmizer wrote:
I have this code :

<?php if ($_SESSION['customer_id']) { ?>
<li<?php echo (($current_page_base == 'logoff') ? ' class="current">' : '>');?><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo '<span>' . HEADER_TITLE_LOGOFF . '</span>'; ?></a></li>
<?php
} else {
if (STORE_STATUS == '0') {
?>
<li<?php echo (($current_page_base == 'login') ? ' class="current">' : '>');?><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo '<span>' . HEADER_TITLE_LOGIN . '</span>'; ?></a></li>
<?php } } ?>

I put it in sothik dhtml menu ...
how to do!

This example relates to a MySQL application, but it should help. . .

http://www.sothink.com/page/drop-down-m ... -menu.html


Top
 Profile  
 
 Post subject: Re: menu and php
PostPosted: Sun Oct 16, 2011 3:54 pm 
Offline
Member

Joined: Wed May 18, 2011 1:22 am
Posts: 4
[quote="mjperry51"][quote="maxmizer"]I have this code :

<?php if ($_SESSION['customer_id']) { ?>
<li<?php echo (($current_page_base == 'logoff') ? ' class="current">' : '>');?><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo '<span>' . HEADER_TITLE_LOGOFF . '</span>'; ?></a></li>
<?php
} else {
if (STORE_STATUS == '0') {
?>
<li<?php echo (($current_page_base == 'login') ? ' class="current">' : '>');?><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo '<span>' . HEADER_TITLE_LOGIN . '</span>'; ?></a></li>
<?php } } ?>

I put it in sothik dhtml menu ...
how to do![/quote]

This example relates to a MySQL application, but it should help. . .

http://www.sothink.com/page/drop-down-m ... -menu.html[/quote]


I understand you and I have already tried ...
but being the neophyte in the compilation of the code I wanted to ask
if someone helps me ...

thanks


Top
 Profile  
 
 Post subject: Re: menu and php
PostPosted: Tue Oct 18, 2011 5:13 pm 
Offline
Member

Joined: Wed May 18, 2011 1:22 am
Posts: 4
Nobody to help me


Top
 Profile  
 
 Post subject: Re: menu and php
PostPosted: Tue Oct 18, 2011 11:00 pm 
Offline
Guru
User avatar

Joined: Mon May 10, 2004 3:53 am
Posts: 1752
Location: Rescue, CA, USA
Hi Maximizer,

Evidently none of us on this forum do much PHP integration with menus. I suggest that you write to support@sothink.com. Be sure to include your registration information.

Regards,

Bill
Unofficial DHTML Menu Resource Site


Top
 Profile  
 
 Post subject: Re: menu and php
PostPosted: Wed Oct 19, 2011 2:06 pm 
Offline
Member

Joined: Wed May 18, 2011 1:22 am
Posts: 4
thanks, but I do not think that serves a large integration, because in reality it would be enough to transform the output of [code]"echo zen_href_link (FILENAME_LOGOFF,'', 'SSL'" [\code]and put it in a variable $ var.
then just put <? = $ var?> on the menu.

could also affect other

thank you


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 8 hours


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group