summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcode.inc17
1 files changed, 11 insertions, 6 deletions
diff --git a/code.inc b/code.inc
index dec53f1..249dff8 100755
--- a/code.inc
+++ b/code.inc
@@ -105,15 +105,20 @@ function upload_examples_form($form_state)
'#value' => $proposal_data->full_name,
'#title' => t('Contributor Name'),
);
-
+ $options = array('' => '(Select)');
+ for($i=1;$i<=100;$i++){
+ $options[$i] = $i;
+ }
+ //var_dump($options);
$form['number'] = array(
'#type' => 'select',
'#title' => t('Chapter No'),
- '#options' => array('' => '(Select)', '1' => '1', '2', '3', '4', '5', '6', '7', '8', '9', '10',
- '11', '12', '13', '14', '15', '16', '17', '18', '19', '20',
- '21', '22', '23', '24', '25', '26', '27', '28', '29', '30',
- '31', '32', '33', '34', '35', '36', '37', '38', '39', '40',
- '41', '42', '43', '44', '45', '46', '47', '48', '49', '50'),
+ '#options' => $options,
+ // '#options' => array('' => '(Select)', '1' => '1', '2', '3', '4', '5', '6', '7', '8', '9', '10',
+ // '11', '12', '13', '14', '15', '16', '17', '18', '19', '20',
+ // '21', '22', '23', '24', '25', '26', '27', '28', '29', '30',
+ // '31', '32', '33', '34', '35', '36', '37', '38', '39', '40',
+ // '41', '42', '43', '44', '45', '46', '47', '48', '49', '50'),
'#multiple' => FALSE,
'#size' => 1,
'#required' => TRUE,