Texas Instruments matrix-gui-2.0 Hacking--menubar.php

Source: Internet
Author: User

<?PHP/** Copyright (C) Texas Instruments Incorporated-http://www.ti.com/  * * * redistribution and use in source and binary forms, with or without * modification, is permitted provided tha t the following conditions * is met: * * redistributions of source code must retain the above copyright * Notice , this list of conditions and the following disclaimer. * * redistributions in binary form must reproduce the above copyright * Notice, this list of conditions and the foll Owing disclaimer in the * documentation and/or other materials provided with the * distribution.  * * Neither the name of Texas Instruments Incorporated nor the names of * Its contributors is used to endorse or Promote products derived * from this software without specific prior written permission. * * This software are provided by the COPYRIGHT holders and CONTRIBUTORS * ' as is ' and any EXPRESS OR implied warranties  , including, but not * LIMITED to, the implied warranties of merchantability and FITNESS for * A particular PURPOSE is Disclaimed. In NO EVENT shall the COPYRIGHT * OWNER OR CONTRIBUTORS is liable for any DIRECT, INDIRECT, incidental, * special, EX Emplary, or consequential damages (including, but not * LIMITED to, procurement of substitute GOODS OR SERVICES; LOSS of Use, * DATA, OR profits;   or business interruption) however caused and on any * theory of liability, WHETHER in contract, STRICT liability, OR TORT * (including negligence OR OTHERWISE) arising in any-out-of-the----the-software, even IF advised of the PO Ssibility of SUCH DAMAGE. **/? ><?PHP/*----Note----This file was meant to being included in the PHP file of another page. Therefore, some variables used in this file are assumed to being set within the page that includes this file. You'll notice that these variables is always checked to make sure they is set (set from the other page). If the variable isn ' t set then the variable is given a default Valuewhich usually are meant to deactivate something. This is do to allow pages it is including this file to only set the variables they care about*///Some parts of the code doesn ' t set the submenu variable when the user was at the Main Menu which was relected in the "to P "Variable# See if the submenu is set and assigned the appropriate value $submenu= Isset ($_get["submenu"]) ==true? $_get["submenu"] :"Main_Menu"; # to see if the previous page is set $previous_page= Isset ($previous _page) = =true? $previous _page:-1whether or not a link to the previous page is open, if Previous_page is-1, which means I can't go any farther $enable_previous_link= $previous _page >=0; # See if the next page is set $next_page= Isset ($next _page) = =true? $next _page:-1; # Did you open the link to the next page $enable_next_link= $next _page >0; # Check to see if the homepage link is open $enable_main_menu_link= Isset ($enable _main_menu_link) = =true? $enable _main_menu_link:false;?><!--by id ="MenuBar"This is a menu bar--<table ID ="MenuBar"width ="100%"style ="margin-bottom:10px;"> <tr> &LT;TD align =" Left"> <?PHP # Build link address $link="submenu.php?submenu=". $submenu."&page=". $previous _page; # Build CSS string, hide_link means to hide the meaning of the link $css _string= ($enable _previous_link = =false) ?"Hide_link":""; # Generate hyperlinks and decide whether to show echo based on Css_string"<a href = ' $link ' class = ' previous_arrow $css _string ' ></a>"; //Added These, HTML elements so, each side would be even# These two icons are not used for hyperlinks, and of course they are hidden (Hide_link) echo"<a href = ' # ' class = ' hide_link ' ></a>"; Echo"<a href = ' # ' class = ' hide_link ' ></a> ;"; ?> </td> <!--banner: banner, it seems to say the meaning of the logo--&LT;TD align ="Center"ID ="Banner"> <?php echo"";            echo $menu _title; ?> </td> <td align =" Right"> <?PHP # See if there is a link to the home page feature $css _string= ($enable _main_menu_link = =false) ?"Hide_link":""; # Invalid link echo"<a id = ' Back_link ' class = ' $css _string ' href = ' # ' ></a>"; # Link to the homepage of the hyperlink echo"<a id = ' Main_menu_link ' class = ' $css _string ' href = ' submenu.php?submenu=main_menu&page=0 ' ></a>"; $css _string= ($enable _next_link = =true) ?"":"Hide_link"; # whether to show links to the next page $link="submenu.php?submenu=". $submenu."&page=". $next _page; Echo"<a href = ' $link ' class = ' $css _string ' >< ;/a>"; ?> </td> </tr></table>

Texas Instruments matrix-gui-2.0 Hacking--menubar.php

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.