aboutsummaryrefslogtreecommitdiffstats
path: root/search.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2005-04-11 20:31:50 +0000
committerplegall <plg@piwigo.org>2005-04-11 20:31:50 +0000
commit8549bee38a9c7d1ace16bc99c292e7a66c125eba (patch)
tree41d714c1699272c6c74318adc57a6e6029936485 /search.php
parentfdc5ce0a556df37b126d759ccdd0800115306998 (diff)
- functions get_day_list and get_month_list moved from search.php to
include/functions.inc.php : these functions are now also used in admin/element_set_global.php - elements batch management improved : ability to set the number of elements to display per line, ability to set {author, name, creation date} fields, ability to add and remove keywords, ability to take selected elements out of caddie git-svn-id: http://piwigo.org/svn/trunk@762 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'search.php')
-rw-r--r--search.php55
1 files changed, 0 insertions, 55 deletions
diff --git a/search.php b/search.php
index 4bf65c5be..e731477ca 100644
--- a/search.php
+++ b/search.php
@@ -133,61 +133,6 @@ if (isset($_POST['submit']) and count($errors) == 0)
redirect($url);
}
//----------------------------------------------------- template initialization
-/**
- * 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]));
- }
-}
// start date
get_day_list('start_day', @$_POST['start_day']);