mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-13 01:18:42 +01:00
added function
This commit is contained in:
parent
e35efb3f53
commit
a400950613
@ -20,7 +20,6 @@
|
|||||||
* along with this library; if not, write to the Free Software Foundation, *
|
* along with this library; if not, write to the Free Software Foundation, *
|
||||||
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
|
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
|
||||||
\**************************************************************************/
|
\**************************************************************************/
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|
||||||
class sbox
|
class sbox
|
||||||
@ -283,6 +282,17 @@
|
|||||||
'ZW'=>'ZIMBABWE'
|
'ZW'=>'ZIMBABWE'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
var $weekdays = array(
|
||||||
|
'',
|
||||||
|
'Monday',
|
||||||
|
'Tuesday',
|
||||||
|
'wednesday',
|
||||||
|
'Thursday',
|
||||||
|
'Friday',
|
||||||
|
'Saturday',
|
||||||
|
'Sunday'
|
||||||
|
);
|
||||||
|
|
||||||
function sbox()
|
function sbox()
|
||||||
{
|
{
|
||||||
foreach ($this->country_array as $key => $name)
|
foreach ($this->country_array as $key => $name)
|
||||||
@ -362,6 +372,16 @@
|
|||||||
return $s;
|
return $s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getWeekdays($name, $selected=0)
|
||||||
|
{
|
||||||
|
$out = '';
|
||||||
|
for($i=0;$i<count($this->weekdays);$i++)
|
||||||
|
{
|
||||||
|
$out .= '<option value="'.$i.'"'.($selected!=$i?'':' selected').'>'.($this->weekdays[$i]!=''?lang($this->weekdays[$i]):'').'</option>'."\n";
|
||||||
|
}
|
||||||
|
return '<select name="'.$name.'">'."\n".$out.'</select>'."\n";
|
||||||
|
}
|
||||||
|
|
||||||
function getMonthText($name, $selected=0)
|
function getMonthText($name, $selected=0)
|
||||||
{
|
{
|
||||||
$out = '';
|
$out = '';
|
||||||
|
Loading…
Reference in New Issue
Block a user