Ignore:
Timestamp:
Mar 5, 2008, 3:26:58 AM (16 years ago)
Author:
rvelices
Message:
  • remove unused functions get_month_list and get_day_list
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions.inc.php

    r2221 r2252  
    10271027
    10281028/**
    1029  * instantiate number list for days in a template block
    1030  *
    1031  * @param string blockname
    1032  * @param string selection
    1033  */
    1034 function get_day_list($blockname, $selection)
    1035 {
    1036   global $template;
    1037 
    1038   $template->assign_block_vars(
    1039     $blockname,
    1040     array(
    1041       'SELECTED' => '',
    1042       'VALUE' => 0,
    1043       'OPTION' => '--'
    1044       )
    1045     );
    1046 
    1047   for ($i = 1; $i <= 31; $i++)
    1048   {
    1049     $selected = '';
    1050     if ($i == (int)$selection)
    1051     {
    1052       $selected = 'selected="selected"';
    1053     }
    1054     $template->assign_block_vars(
    1055       $blockname,
    1056       array(
    1057         'SELECTED' => $selected,
    1058         'VALUE' => $i,
    1059         'OPTION' => str_pad($i, 2, '0', STR_PAD_LEFT)
    1060         )
    1061       );
    1062   }
    1063 }
    1064 
    1065 /**
    1066  * instantiate month list in a template block
    1067  *
    1068  * @param string blockname
    1069  * @param string selection
    1070  */
    1071 function get_month_list($blockname, $selection)
    1072 {
    1073   global $template, $lang;
    1074 
    1075   $template->assign_block_vars(
    1076     $blockname,
    1077     array(
    1078       'SELECTED' => '',
    1079       'VALUE' => 0,
    1080       'OPTION' => '------------')
    1081     );
    1082 
    1083   for ($i = 1; $i <= 12; $i++)
    1084   {
    1085     $selected = '';
    1086     if ($i == (int)$selection)
    1087     {
    1088       $selected = 'selected="selected"';
    1089     }
    1090     $template->assign_block_vars(
    1091       $blockname,
    1092       array(
    1093         'SELECTED' => $selected,
    1094         'VALUE' => $i,
    1095         'OPTION' => $lang['month'][$i])
    1096       );
    1097   }
    1098 }
    1099 
    1100 /**
    11011029 * fill the current user caddie with given elements, if not already in
    11021030 * caddie
Note: See TracChangeset for help on using the changeset viewer.