[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: /sitemgr/sitemgr-site/blocks block-Choose_lang.p
From: |
Patrick Walsh <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: /sitemgr/sitemgr-site/blocks block-Choose_lang.php,NONE,1.1.2.1 |
Date: |
Fri, 22 Nov 2002 01:04:46 -0500 |
Update of /cvsroot/phpgroupware//sitemgr/sitemgr-site/blocks
In directory subversions:/tmp/cvs-serv23918
Added Files:
Tag: Version-0_9_14-branch
block-Choose_lang.php
Log Message:
Quick language picker
--- NEW FILE ---
<?php
if (eregi("block-Choose_lang.php", $PHP_SELF)) {
Header("Location: index.php");
die();
}
function getlangname($lang)
{
$GLOBALS['phpgw']->db->query("select lang_name from languages where lang_id =
'$lang'",__LINE__,__FILE__);
$GLOBALS['phpgw']->db->next_record();
return $GLOBALS['phpgw']->db->f('lang_name');
}
$title = lang('Choose langugage');
if ($GLOBALS['sitemgr_info']['sitelanguages'])
{
$boxstuff = '<form name="langselect" action="'.$_SERVER['REQUEST_URI'].'"
method="post">';
$boxstuff .= '<select onChange="this.form.submit()" name="language">';
foreach ($GLOBALS['sitemgr_info']['sitelanguages'] as $lang)
{
$selected='';
if ($lang ==
$GLOBALS['phpgw_info']['user']['preferences']['common']['lang'])
{
$selected = 'selected="selected" ';
}
$boxstuff .= '<option ' . $selected . 'value="' . $lang . '">'.
getlangname($lang) . '</option>';
}
$boxstuff .= '</select></form>';
$content = $boxstuff;
}
else
{
$content = lang('No sitelanguages configured');
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: /sitemgr/sitemgr-site/blocks block-Choose_lang.php,NONE,1.1.2.1,
Patrick Walsh <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] CVS: /sitemgr/sitemgr-site blockconfig.inc.php,1.2.2.1,1.2.2.2 functions.inc.php,1.2.2.3,1.2.2.4 index.php,1.4.2.1,1.4.2.2
- Next by Date:
[Phpgroupware-cvs] CVS: /sitemgr/sitemgr-site/inc class.blocks_bo.inc.php,NONE,1.1.2.1 class.Template2.inc.php,1.1,1.1.2.1 class.bo.inc.php,1.6.2.2,1.6.2.3 class.ui.inc.php,1.7.2.3,1.7.2.4
- Previous by thread:
[Phpgroupware-cvs] CVS: /sitemgr/sitemgr-site blockconfig.inc.php,1.2.2.1,1.2.2.2 functions.inc.php,1.2.2.3,1.2.2.4 index.php,1.4.2.1,1.4.2.2
- Next by thread:
[Phpgroupware-cvs] CVS: /sitemgr/sitemgr-site/inc class.blocks_bo.inc.php,NONE,1.1.2.1 class.Template2.inc.php,1.1,1.1.2.1 class.bo.inc.php,1.6.2.2,1.6.2.3 class.ui.inc.php,1.7.2.3,1.7.2.4
- Index(es):