This is for a shopping cart tool i'm using. I wrote a little reminder so i'd remember what was being done with a particular portion of code. Does this look about right.
This mod (if you want to call it that) is used to add data on the index page.
To do this mod you go to the bottom of the index page to where it says:
// end border
eb($bg_colour,$colour_1);
Now what you add after this is up to you html can be used in this portion of page.
Here's an example of what you might want to add:
// start border
sb("100%","$la_new_this_month",$colour_1,$bg_colour);
echo"<table align=\center\" width=\"100%\"><tr><td align=\"center\">hi
</td></tr></table>";
// end border
eb($bg_colour,$colour_1);
----------------------------------------------------------------------------------------------------------
What I just did was add another table on the index page right below the table that displays the date.
1st "// start border" The "//" is used in php for comments is this case it lets us know where the border for this particular begins.
2nd "sb("100%", "$la_new_this_month",$colour_1,$bg_colour);" sb is a acronym to start a border in php. "100%" this specifies the border width. "$la_new_this_month", is a variable it specifies the heading that will appear in the border in this case "New This Month", "New This Month" is a pre-defined text that is present in our language.inc file. $colour_1 is a varible that specifies our pre-defined colour. $bg_colour is another variable and it specifies our pre-defined background colour. All of these are seperated by a comma.
3rd "echo"<table align=center width=\"100%\"><tr><td align=\center\">hi" echo" this means that everything here after will be written (visible to the page) is this case hi gets written (visible on page) to the page. I didn't bother to explain the rest as it's t is simple html.
4th "</td></tr></table>";" this is too is all just simple html for closing a table.
5th "// end border" Once again we have a comment.
6th "eb($bg_colour,$colour_1);" eb is another acronym this one being for ending a border. The rest we can figure out by looking above at line two.