Advertisement

12.11.2007 at 09:40PM PST, ID: 23017613
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.2

select language -- selection not displayed

Asked by ppblue in Hypertext Markup Language (HTML), PHP Scripting Language, Server Side Includes (SSI)

Tags: , , ,

I have a page where the language selection is done via include files.
The language cannot be selected in the web page.

1. language list script
-----------------
      //this file indicates listing of all available languages

class Language
{
      var $description; //language name
      var $filename; //language PHP constants file
      var $template; //template filename
}

      //a list of languages
      $lang_list = array();

      //to add new languages add similiar structures

      $lang_list[0] = new Language();
      $lang_list[0]->description = "English";
      $lang_list[0]->filename = "english.php";
      $lang_list[0]->template_path = "./templates/tmpl1/";

             $lang_list[0] = new Language();
      $lang_list[0]->description = "Chinese";
      $lang_list[0]->filename = "chinese.php";
      $lang_list[0]->template_path = "./templates/tmpl1/";

?>
---------------
2. Language file code for inclusion:
------------------
{* language selection form *}

{if $lang_list_count > 1}

      {section name=i loop=$lang_list}
      {if $smarty.section.i.index > 0}<font class="lightsmall">/</font> {/if}
      <a class="lightsmall" href="javascript:document.lang_form.new_language.value={$smarty.section.i.index};document.lang_form.submit();">{$lang_list[i]->description}</a>
      {/section}

      <form name="lang_form" method="post" action="index.php">
      <input type="hidden" name="new_language">
        </form>

{/if}
--------------------------------------------
3. Code used in HTML page for inclusion:

                 {include file="language.tpl.html"}


Any suggestion what is wrong?Start Free Trial
 
Loading Advertisement...
 
[+][-]12.13.2007 at 05:54AM PST, ID: 20464230

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.13.2007 at 02:33PM PST, ID: 20468324

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.13.2007 at 11:21PM PST, ID: 20470214

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Hypertext Markup Language (HTML), PHP Scripting Language, Server Side Includes (SSI)
Tags: language, add, php, select
Sign Up Now!
Solution Provided By: simonbun
Participating Experts: 1
Solution Grade: A
 
 
[+][-]12.14.2007 at 01:44AM PST, ID: 20470655

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.14.2007 at 01:51AM PST, ID: 20470681

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628