Portions created by the Initial Developer are Copyright (C) 2008-2012 the Initial Developer. All Rights Reserved. Contributor(s): Matthew Vale */ require_once "root.php"; require_once "resources/require.php"; //check permissions require_once "resources/check_auth.php"; if (permission_exists('languages_view')) { //access granted } else { echo "access denied"; exit; } //add multi-lingual support $language = new text; $text = $language->get(); //additional includes require_once "resources/header.php"; require_once "resources/paging.php"; //get variables used to control the order $order_by = $_GET["order_by"]; $order = $_GET["order"]; //show the content echo "\n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo "
".$text['title-languages']." 
\n"; echo " ".$text['description-languages']."

\n"; echo "
\n"; //table headers echo "\n"; echo "\n"; echo "\n"; echo th_order_by('language_code', $text['label-culture_code'], $order_by, $order, '', "style='width:4em;'"); echo th_order_by('language_name', $text['label-name'], $order_by, $order); echo "\n"; $c= 0; $warn_about_wrong_culture = false; foreach($_SESSION['app']['languages'] as $lang_code){ //TODO add sorting $tr_link = "href='languages_compare.php?target_language=$lang_code'"; echo "\n"; echo ""; echo ""; echo ""; echo "\n"; $c++; } //complete the content echo "
".$text['label-flag']."
"; echo "$lang_code$lang_code"; if(strlen($lang_code) < 5){ $warn_about_wrong_culture = true; echo "$nbsp;*1"; } echo "".$text["language-$lang_code"]."
"; if($warn_about_wrong_culture){ $lang_code = $_SESSION['domain']['language']['code']; echo "

*1 ".$text['warning-incorrect_language_culture_code']."https://msdn.microsoft.com/$lang_code/library/ee825488%28v=cs.20%29.aspx

"; } //include the footer require_once "resources/footer.php"; ?>