mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-28 12:19:57 +03:00
- remove unused functions get_month_list and get_day_list
git-svn-id: http://piwigo.org/svn/trunk@2252 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
a55cf25bdf
commit
ef77dac315
2 changed files with 0 additions and 73 deletions
|
@ -308,7 +308,6 @@ else
|
|||
}
|
||||
|
||||
|
||||
get_month_list('date_creation_month', $month);
|
||||
$month_list = $lang['month'];
|
||||
$month_list[0]='------------';
|
||||
ksort($month_list);
|
||||
|
|
|
@ -1025,78 +1025,6 @@ function array_from_query($query, $fieldname)
|
|||
return $array;
|
||||
}
|
||||
|
||||
/**
|
||||
* instantiate number list for days in a template block
|
||||
*
|
||||
* @param string blockname
|
||||
* @param string selection
|
||||
*/
|
||||
function get_day_list($blockname, $selection)
|
||||
{
|
||||
global $template;
|
||||
|
||||
$template->assign_block_vars(
|
||||
$blockname,
|
||||
array(
|
||||
'SELECTED' => '',
|
||||
'VALUE' => 0,
|
||||
'OPTION' => '--'
|
||||
)
|
||||
);
|
||||
|
||||
for ($i = 1; $i <= 31; $i++)
|
||||
{
|
||||
$selected = '';
|
||||
if ($i == (int)$selection)
|
||||
{
|
||||
$selected = 'selected="selected"';
|
||||
}
|
||||
$template->assign_block_vars(
|
||||
$blockname,
|
||||
array(
|
||||
'SELECTED' => $selected,
|
||||
'VALUE' => $i,
|
||||
'OPTION' => str_pad($i, 2, '0', STR_PAD_LEFT)
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* instantiate month list in a template block
|
||||
*
|
||||
* @param string blockname
|
||||
* @param string selection
|
||||
*/
|
||||
function get_month_list($blockname, $selection)
|
||||
{
|
||||
global $template, $lang;
|
||||
|
||||
$template->assign_block_vars(
|
||||
$blockname,
|
||||
array(
|
||||
'SELECTED' => '',
|
||||
'VALUE' => 0,
|
||||
'OPTION' => '------------')
|
||||
);
|
||||
|
||||
for ($i = 1; $i <= 12; $i++)
|
||||
{
|
||||
$selected = '';
|
||||
if ($i == (int)$selection)
|
||||
{
|
||||
$selected = 'selected="selected"';
|
||||
}
|
||||
$template->assign_block_vars(
|
||||
$blockname,
|
||||
array(
|
||||
'SELECTED' => $selected,
|
||||
'VALUE' => $i,
|
||||
'OPTION' => $lang['month'][$i])
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* fill the current user caddie with given elements, if not already in
|
||||
* caddie
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue