2001-06-12 19:21:47 +02:00
|
|
|
<?php
|
|
|
|
/**************************************************************************\
|
|
|
|
* phpGroupWare *
|
|
|
|
* http://www.phpgroupware.org *
|
|
|
|
* Written by Mark Peters <skeeter@phpgroupware.org> *
|
|
|
|
* -------------------------------------------- *
|
|
|
|
* This program is free software; you can redistribute it and/or modify it *
|
|
|
|
* under the terms of the GNU General Public License as published by the *
|
|
|
|
* Free Software Foundation; either version 2 of the License, or (at your *
|
|
|
|
* option) any later version. *
|
|
|
|
\**************************************************************************/
|
|
|
|
|
|
|
|
/* $Id$ */
|
|
|
|
|
2001-06-22 03:15:14 +02:00
|
|
|
function country_set($config)
|
|
|
|
{
|
|
|
|
$country = array(
|
2001-06-25 09:01:14 +02:00
|
|
|
'user_choice' => 'Users Choice',
|
2001-06-22 03:15:14 +02:00
|
|
|
'force_select' => 'Force Selectbox'
|
|
|
|
);
|
|
|
|
|
|
|
|
while (list ($key, $value) = each ($country))
|
|
|
|
{
|
|
|
|
if ($config['countrylist'] == $key)
|
|
|
|
{
|
|
|
|
$selected = ' selected';
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
$selected = '';
|
|
|
|
}
|
|
|
|
$descr = lang($value);
|
|
|
|
|
|
|
|
$out .= '<option value="' . $key . '"' . $selected . '>' . $descr . '</option>' . "\n";
|
|
|
|
}
|
|
|
|
return $out;
|
|
|
|
}
|
2001-12-18 06:53:31 +01:00
|
|
|
?>
|