Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Page Numbering - Change My Navigation Menu


i am busy with a image gallery and i have it working. but now i want to change my navigation menu this one: [1] [2] [3] [4]  to:

<<first [1] [2] [3] [4] [5] [6] last>> i have also this code, (c second code ) but i cant link it to my foto folder and unsort it from 10 to 1 ,like the newest u c first. Code:




View Complete Forum Thread with Replies

Related Forum Messages:
How To Change Template Menu Link Text Color For Page Currently Viewed ??
Say you have a left menu that stays the same on every page within in your site. Obviously you would make this menu a template or library item, so that when you edit one version, all the others are updated.

Let's say the left menu is the following:

Page_1
Page_2
Page_3

Now, when I am viewing Page_1, I want the "Page_1" text in the left menu to be red, so that the viewer knows what page they are on. When I click on the left menu link for "Page_2", then I want the "Page_1" text to go back to black and the "Page_2" text to be red.

View Replies !
[PEAR:QuickForm] Dynamically Change A Dropdown Menu According To Another Menu?
I've been using QuickForm for a few months now and I am now given a
new challenge:

I've got a search form with a dozen of dropdown menus, the first
dropdown menu being "Brand". If you select either Brand A, B, C, D...
Z, the second dropdown menu "Model" must be dynamically changed to
model AA, AB, AC, AD..., according to the models manufactured by the
brand selected in the first box.

I've seen that done on quite a few sites, but never found if QuickForm
had a quick & clean way of doing that.

View Replies !
Navigation Menu
i create a navigation menu like the one on this site so it goes something like this:

QuotePHP Freaks Forums > PHP and MySQL > PHP Help >

Start new topic whats it called and then maybe i can look it up on google.

View Replies !
Dynamic Navigation Menu
I need to build a dynamic menu that will include certain links depending on what variables are in the URL. This is doable - right?

For example: catalog.php?product=widget&color=green

Menu would look like:

Green Widgets
Brand 1 Green Widget
Brand 2 Green Widget
Brand 3 Green Widget
etc.

Any help would be greatly appreciated!

View Replies !
Navigation Menu Recommendation
Can anyone recommend a decent php navigation menu system, one that can click and expand up and down etc (similar to explorer in windows).

I know there are heaps of js tools for this, but i'd prefer to avoid js and use php if possible (coz ultimately it looks just like html)

Or, if you think js is better applied for this use, tell me and I'll stop searching for a php tool.

View Replies !
Turning Navigation Menu Into A Function
I'm working from the book Foundation: PHP for Dreamweaver 8. The work was originally designed for php 5.0. I have installed a test area on my machine using php 5.2 and have not had problems with the lessons until I tried to get the navigation menu into a function and.

I have a suspicion that the problem might be due to the upgrade from php 5.0 to 5.2 because I have run the author's correct code and get the same result as the code I created using his instructions.

Three files are involved: contact.php, navmenu.php, and styles_rules_monthly.php. I have listed the code for each in the order stated in the previous sentence. The out put is producing a bulleted list instead of menu buttons (so it appears the style sheet is failing to import correctly). Code:

View Replies !
Very Simple Navigation Menu With Multiple Levels
im getting my self really confused i think im thinking way to complicated about this. Basically i want a very simple navigation menu with multiple levels eg. Code:

View Replies !
Generating Tigra DHTML Navigation Menu
I have installed "Tigra" dynamic navigation menu, and now it will be necessary , that the menu structure can be generated dynamically from mysql. The syntax (to be generated) required for DTML structure is like: Code:

var MENU_ITEMS = [
['Home','http://www.your-site.com/'],

['Level 0 Item 1', null, null,
['Level 1 Item 0', 'another.html'],
['Level 1 Item 1'],
['Level 1 Item 2'],
['Level 1 Item 3'],
],
];

The DB structure I use is Hierarchical data structure. The problem is, how to generate this code correctly dynamically. I have tried many kinds of while-loops, but I just can't get close tags "]," placed correctly .

View Replies !
Navigation Menu With Hierarchical Nested Lists...
I have a horizontal menu that is dynamically created from a MySQL database. Getting it to display the menu items at the top-level is easy, but I was wondering what exactly I need to do to get it to display any submenu items that match the parent's id? I'm having trouble sorting out the pseudo code on paper that will allow this to work.

My main purpose is to have an easy way to add/edit main menu items and/or submenu items on the backend without having people delve into the actual website code. All of that logic has pretty much been coded already though, what I really am stuck on is displaying menus and the corresponding menu's sub menus. Code:

View Replies !
Page Numbering
I have a user based system I am creating, that has 97k users, so as you can imagine for page numbering I simply cant list every page number

I have a script that goes either side of the current page i.e if current page is 30, then page numbering starts from 20 and goes to 40 for example.

To do this I am using:

for($i = 1; $i <= $total_pages; $i++){
    if(($page) == $i){

        $pagelinks.= " |<span class='currPage'> $i </span>| ";
        } else {
      
         if (($i < $page+10 && $i > $page-10 )){
            $pagelinks.="<a href="?page=$i$urlvars2">$i[/url] ";
                        }  }}

But my question is, is there anyway for the values under 10, for example, page 3 that only 10 page links are created instead of the regular 20, so it looks a bit inconsistent with the other pages. Is there a neat and tidy way to format that if statement to say if current page is under 10, bump up the top end limiter?

View Replies !
Get A Free Drop Down Menu Script To Use On The Website's Navigation?
I am implementing a website with dreamweaver. I dont know much about
programming but I can handle scripts and manupilate.

does anyone know a website that i can get a free drop down menu script
to use on the website's navigation?

View Replies !
Page Numbering Problem
I've had a rather good start to sorting out my page numbering script for a project im working, i'm to the point where i can do the following:

Display the total number of pages and the page currently viewing, allow the user the define the number of items to display per page and to be able to jump to page of choice.

So with that mentioned all functionality is there, now i want some eye candy to go with it

As mentioned ive sorted out the total number of, and current page viewing displays out, now i want to show the number of items from and to out of the total, now the total part is complete its the from - to areas that im having trouble with.

This is an example of the output (Without drop down menu for no of items per page):

Items 7 to 9 of 3 Previous 1 2 3 Next Results page 3 of 3

The "Items 7 to 9 of 3" is the bit im trying to solve if anyone can help me here that would be great.

NOTE: i would provide some code but i dont see it nessasary here as its just the formula im after...

View Replies !
Page Numbering Tutorial By PHP Freaks
In this tutorial the "select * from pages limit.." query customized for my needs actually contains a "where site = '".$id."'" clause. This $id changes depending upon a value that the user will select from a drop down on my page and thereafter the page will get refreshed. Hence the number of records returned would also be different.

But the mysql_result() function that i have used from the tutorial continuously returns the same number of records while actually the number of records varies according to $id. [lets say mysql_result gives 31 each time though the query filters only 16 or 10 records]

As a result it shows 1 2 3 4 5 6 7 page links each time even though there are not enough records to fill 7 pages ...

View Replies !
Page Numbering For Query Results.
Need some help please on page numbering for query results.

View Replies !
Page Numbering - Display A Set Amount Of Records From My Result.
I am having a problem with trying to display a set amount of records from my result. I have modified the Page Numbering tutorial from this site and adapted it to use MSSQL. I have verified that the correct values for my variables are being passed to the query.

The calculation for the records that should be displayed per page is correct.
The total number of records returned from my query is correct. And the calculated number of total pages to be displayed is correct.

So, initially it displays the first 10 results as it should, and has the pages numbers at the bottom.  The problem is, when I click on a different page number the same 10 results are ALWAYS displayed.  Even though my $page variable IS being updated. Code:

View Replies !
Right-click Menu Change
Is there a possibility to change/define what will appear in menu after
right-clicking on text input box ?
If not - how to do this ?



View Replies !
Change Bgcolor Of Menu When Click
I have a horizontal menus, using css. I would like to change the color of 1 column in menu when click the said column.. I actually have this code well the idea is already there, but my problem is, since the menus are member of the while condition, all columns has been changed.. I want only one column change the bgcolor when it clicked itself. Code:

View Replies !
How Do You Change The Colour Of A Menu Drop Down?
Could somone please help me with changing the colour of a default menu dropdown? The border / dropdown arrow. Code:

View Replies !
Change List View To Dropdown Menu
Im working on a script that has to be change so a user can choose from a dropdown menu instead of a list that now is displayed.
Here is the part that is insert on the index page.

View Replies !
Ordering And Re-ordering My Dynamic Navigation Menu
I am attempting to develop a couple of functions that will allow me organize and re-organize my navigation menu after I edit or add a new page to my website using my CMS.

Has anyone successfully done somthing like this before? if so please share your method.
What I have below works for the most part, but I am looking to make things work better.

* note* Throughout the code you will find the 'title_level' varable and column title, this will hold a number 1 to however many results are in the database and is used to place in order each link/button in the navigation. Code:

View Replies !
How To Do Page Navigation Bar Using Php Codes?
I would like to know how to set up a page navigating system in a web site using php codes.

View Replies !
Keep An Html Page And Use Php For Navigation
How can i keep an html page and use php for navigation so it can be easily updated.

View Replies !
How To Create The Navigation Page
how to create the navigation page in php. The navigation should be from first page,next page,end page,and previous page.Give an example to code for the navigation page.

View Replies !
Page Navigation From Search Results
I have created a search form that searchs for results from my database matching the criteria to what ever the user inputs. I have done this using 2 php pages the first page points to the second, where the data is sanitised and cleaned accordingly. The results are displayed on the 2nd page. Code:

View Replies !
Home Link From Navigation Page
I got a code which helps me to create navigational links and only show 4 results per page. Now I want to add a link on each page such that if anyone clicks on that link it takes it to HOME page. I have added

<a href="Home.htm"><b><font size="4">Home!!</font></b></a>

inside the loop that generates NEXT and PREVIOUS page link but whenever I click on HOME it does nothing at all.

View Replies !
Navigation Back To An Html Page
I can't seem to figure out how to navigate back to an html page from a php page.

View Replies !
Adding Page Navigation To Record Set
I have gone through the tutorial on php freaks for adding page navigation to records. I am in the middle of integrating the page navigation and have stuck on  2 areas.

1)
I have a page which displays a set of records (limited to 6 per page)
Below,is the Next and Previous navigation text bUt it is not hyperlinked!!!?? 

The line of code specifically is:

<?php
echo("<a href="$PHP_SELF&page=$pageprev">PREV".$limit."[/url] ");  - This should be hyper-linked but is not??

I think there could be a problem with the <href bit being AFTER the <?php. I am basing this on the fact that a previous record i made began the hyper-link <href BEFORE the <?php where as before the <?php was added only after : Code:

View Replies !
Sessions - Using A Login That Will Change Menu Depending On The User Group Your Are Listed In The Database.
I have a sessions problem i am using a login that will change menu depending on the user group your are listed in the database.

This all works fine but as i browse through pages my user id or pilot_id changes to that of another person any idea why this would happen. Code:

View Replies !
Page Has Expired Message In Between The Php Page When I Click Back In Explorer Menu
I have a php script page, which is basically quiz. Visitors (after login in
with their email address) are supposed to answer each question, and when
they click the button at the bottom, the next page will show which problems
they got right or wrong.

Now my visitors, after seeing some problems they got wrong, click Back
button at the Explorer menu, and if they do, they get the below message:
=========================
Warning: Page has Expired The page you requested was created using
information you submitted in a form. This page is no longer available. As a
security precaution, Internet Explorer does not automatically resubmit your
information for you.

To resubmit your information and view this Web page, click the Refresh
button.
========================
Below are the script that I am using. This scripts are after initial login
page, which asks for visitor's email address. I have authorized visitors
already in my MySQL table, and only the visitors whose email address is in
my MySQL table are allowed to login......

View Replies !
Automating Page Navigation And Control Transfer
Is there a system available to do the following:
consider an app of a few pages:

page1.php:
form1----->page3.php
form2----->page4.php

page2.php:
form3----->page3.php
form4----->page4.php

when I am at page3.php, I do not know whether I came there from
page1->form1 or page2->form3.
I can check for $_SERVER['HTTP_REFERER'] and get an answer. But this
example is simple. Let us generailze that I want an app that keeps a
track of all the pages the user requested, in the order that they were
sent to him.

Obviously, it can be written based on sessions. Is there already some
popular open source application for this?

Also, this brings me to a broader question of page navigation rules. In
an app made of 20-50 pages/scripts, life will be hell if there is no
systematic approach to transferring control between pages. Is there
some kind of structure already made and readily available into which
you just plug-in your pages by telling some rules ?

E.g. the scheme is something like:
$ListOfPages = array(
1=>"Main.php",
2=>"Edit.php",
3->"Add.php",
..........,
N->"Error.php");

$RuleSet = array(
1=>array("Main.php","Edit.php","allow_edit"),
2=>array("Main.php","Add.php","allow_add"),
...................
3=>array("Main.php","Error.php","my_error_handler")
);
The RuleSet is a set of page transfer rules based on evaluation to true
of the specified functions, i.e., allow_edit(), allow_add(),
my_error_handler() etc.
Obviously, form submission is the chief means of control transfer for
PHP programs and the use of ?op=add_something in URL's(GET) and <input
type=hidden name=op value=add_something> (POST) are a step towards
making some kind of structure.

So the grand code will look like:
$MyGrandAppControllerObj = new GrandAppControllerObj();
$MyGrandAppControllerObj->setPages($ListOfPages);
$MyGrandAppControllerObj->setRules($RuleSet);
$MyGrandAppControllerObj->Run();

View Replies !
Multiple Navigation Tables On One Page (master - Slave)
I just wanted to refresh only part of the page, i.e., table2 on my php page. here is my javascript code which performs the refresh it works fine and my php file display all the records. the only problem is: I have got two tables on the same page and i only want to refresh the second table when i click the a row of my first table rows. Code:

View Replies !
Chain Menu But The Menu Should Be Multiple Select Menu/list
I am looking for codes to be able to do the same thing with multiple select menu/list.

PHP codes or javascripts codes are both fine.

1) javascript + php approach: Prefer to be javascripts codes to display the chain menu. I can use the php to get the all three levels menu data from the database, and assign these values to the javascript.

2) php codes only: Or use the pure php codes (the problem is if just using php codes then I have to submit the form to the server every time, when top level menu select changes to create new menu.).

View Replies !
Form Processing: Change The "action=" Based On Pull Down Menu
I have an html form for that uses username and password to login to a
specific area of the website. The "area" the user wants to go to is
based on a pull down menu. Becasue the user/password info is in
differnet databases, how can I call different validation scripts based
on this input ?

See below please. Somethinglike this:

form.html:
<form name="loginform" method="post" action="login.php">
<select name="loginform">
<option value="one">Section 1</option>
<option value="two">Section 2</option>
</select>

login.php:

@extract($_POST);
if($_POST[loginform] == "one") {

echo "action = /forums/scc/dispatch.cgi/_admin/AVFLogin"
NAME="LoginForm" >
echo "<input type=hidden name="autologin" value="1">
";
echo "<input type=hidden name="formstyle" value="standard">
";
echo "<input type=hidden name="returnforum" value="_admin">
";
echo "<input type=hidden name="returnmsg"
value="acahomepage">
";

} else {

echo "action = /path to different cgi
";
echo :different values for hidden fields".

}

View Replies !
Setup A Link In My Page That Will Change My Page
I am working on a page with a right column that I want to use for
navigation. In this right column I am using the below code to set a
value for the link. I am using the variable $test right now.

I want to click on the link and when the value is set to a certain
value, say 1, I want the script to run and load a page based on a
switch case. This way I can use different links for navigation that
will load different forms and areas of my application. So here is the
code for the link line. Code:

View Replies !
How To Change One Page To Change All?
i need to know how to create a page where i only have to change one thing on one page so it changes that text or image on every page of my site. in other words i want to be able to create a template, so if i do want to vchange something in the duture, i only have to change on page, instead of changing each individual page.

View Replies !
1 Menu/12 Categories/1 PHP Page
I'm trying to replicate this type of php coding here.

<snipped url>

Basically, it's a simple menu on the left side that retrieves the info of a table (cat) and 12 different fields (ex: Area Guides, Business, etc...) containing web site addresses.

My question to you is, how can we use the same php page (res.php in this case) to retrieve the content of 12 different fields?

You see, I would have created 12 different php pages while this guy managed to use only one page to do it!

Could you please tell me how he did it and maybe paste me some php code to do something similar?

View Replies !
Getting The Page Title For The Sub Menu?
how I could get the page title for the sub menu? I have been working on this one for hours and am getting nowhere. How can I make my php code display the syntax highlighting? I have forgotten. Code:

View Replies !
Index.php?=page & Menu
I currently am new sorta in the php field. Basically I haven't really made my own php scripted site. So I am learning as I go.

I want to do something that shows like: www.mysite.com/index.php?=hosting

Then on the hosting page I would display my content.

Ho would I go about doing that and including a right and left side menu?

View Replies !
Jump Menu Call Page
Is it possible to use a jump menu to call a page within a page? To be clearer. I can place an " include ('whatever.php'); " within my page which is fine. But i would like this include to be a variable set by the options within a jump menu. So when I select from the menu the include will swap from its default to the newly selected one. Am I making sense?

View Replies !
Setup A Page When You Open A Drop Down Menu Of Options
How do I setup a page when you open a drop down menu of options, select an option and then an image on the page changes to the selection you landed on. Code:

View Replies !
Changed Page From .htm To And My Drop Down Menu Stoped Working
I have been building a rottweiler site for a friend. I just installed "The Search Engine Project" so I need to change one of my pages from .htm to .php so I can integrate the search results window into my layout.

But, whenever I change the page from .htm to .php my menu, a project 7 css drop down menu, stoppes working. Why is this? Code:

View Replies !
Dynamic Menu Link Color Changer On One Page.
I have one issue i need a little assist on. I am using the PHP active link color change-hack from a list apart. The code is an instance like this repeated once for every link to a subpage in the menu: Code:

View Replies !
Drop Down Menu - Every A Value Of It Is Selected To Reload The Page And Submit That Value.
i have a drop down menu and i want every a value of it is selected to reload the page and submit that value. i'm using something like this: HTML Code:

<select name="menu">
<option selected value="1">GENERAL</option>
<?php
while ($cat = mysql_fetch_array($q)) {
$cid = $cat[0];
$cname = $cat[1];
echo "<option value='$cid'>$cname</option>
";
}

echo "</select>";

i tried using <select name="c" size="1" onChange="MM_jumpMenu('parent',this,0)"> but i got confused so i'm looking for an alternative way..

View Replies !
Able To Change The CSS Stylesheet Of A Web Page
I am trying to think through the best way to perform the following :

I need to be able to change the CSS stylesheet of a web page when the user clicks a link like "click for larger print"

I understand basically how this is done but I'm wondering if someone could give me a syntax pointer or two.

View Replies !
Can I Change The Title Of A Page
Maybe this is a stupid question, but is it possible to randomly change the title of a page with PHP?

View Replies !
Change Data On The Same Page To Something Else
I'm trying to change data on this line of code using a drop down option box.

map.centerAndZoom(new GPoint(-79.89505, 40.85708), 10);

When the page opens I want the above data to be used.

I want to use a drop down menu to select a different radius. Lets say 30 miles. I want to update the page so that the above line of code will update and look like this.

map.centerAndZoom(new GPoint(-79.89505, 40.85708), 30);

Here is some sections of code I am using.

<form action='<?php echo $_SERVER['PHP_SELF'];?>' method='post'>
<select name="radius" class="selectBoxes">
<option value="20">20 miles</option>
<option value="30">30 miles</option>
<option value="40">40 miles</option>
</select>
<input type='submit' name='submit' value='Click To Update Map'>
</form>

<script>
map.centerAndZoom(new GPoint(-79.89505, 40.85708), 10);
</script>

View Replies !
Change Variable In Another Page
i have my form displaying information from my mssql database 1 record.  When i click next it goes to php page which from there i want to change the value of a variable in my other php page whihc loads the query for my form then reload my form page with the new record.

View Replies !
Guestbook Page Change
The only problem i have is that i have lots of messages all apperaing on one page How do uIget the script to start a new page automatically once a certain number of messages have been posted.

View Replies !
Change Page Content?
I want to make a page that has a dropdown menu with 13 options on it and when one of the various options are chosen, make it change the information below to the corrresponding information to that option.

View Replies !
Change Content Of Page...
I have a directory called members, and in it i have a seperate page for each member, but I would rather pass a variable in the url that would choose what to have the page display. so you'd go to "member.php?member=person1", and on the page it would be something like this (this is in javascript, since that's all i know)

if (member == "person1") {
document.write("This is member one, he likes swimming, ice cream, etc"); }

if (member == "person2") {
document.write("This is member two, she likes jogging, complaining, coctail parties, etc"); }

how would i do this in php? thanks a lot :)

View Replies !
Detect Change Of Remote Page
i have some links on my site, i need to be absolutely sure that the
html has not been modified, even one character. i would rather not
rely on http headers, just the html (so it is not dependant on the
webserver). should i make a database to actually mirror the page, and
then check against my copy? any better ideas? :)

View Replies !
Page Info Change On Submit
I have a menu on my site that is all pulled out of a MySQL database. So the links actually look like this: <a href="about">About Us</a> And when the user clicks on this link I want the page to go to the database and get the info for "about" and then refresh the page and display the info.

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved