1 | <?php |
---|
2 | |
---|
3 | /** |
---|
4 | * Sistema Integral de Planificación y Presupuesto (SIPP) |
---|
5 | * @file accion_especifica_de_proyecto_seguimiento.admin.inc |
---|
6 | * Drupal part Module to Sistema Integral de Planificación y Presupuesto (SIPP) |
---|
7 | * Copyright 2013 Sistema Automatizado para la Planificación Estratégico-Situacional en la Administración Pública Venezolana (CENDITEL) |
---|
8 | * |
---|
9 | * This program is free software; you can redistribute it and/or modify |
---|
10 | * it under the terms of the GNU General Public License as published by |
---|
11 | * the Free Software Foundation; either version 2 of the License, or |
---|
12 | * (at your option) any later version. |
---|
13 | * |
---|
14 | * This program is distributed in the hope that it will be useful, |
---|
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
17 | * GNU General Public License for more details. |
---|
18 | * |
---|
19 | * You should have received a copy of the GNU General Public License |
---|
20 | * along with this program; if not, write to the Free Software |
---|
21 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
---|
22 | * |
---|
23 | * @author Cenditel Merida - Ing Diego Uzcategui |
---|
24 | * @date 2013-03-01 // (año-mes-dia) |
---|
25 | * @version 0.1 // (0.1) |
---|
26 | * |
---|
27 | */ |
---|
28 | |
---|
29 | /* |
---|
30 | * ente_planificador_admin_settings |
---|
31 | * Configurar seguimiento proyecto y sus acciones |
---|
32 | */ |
---|
33 | function accion_especifica_de_proyecto_seguimiento_admin_settings() { |
---|
34 | $ftypes = array( |
---|
35 | 0 => t('Seleccione'), |
---|
36 | '1' => t('January'), |
---|
37 | '2' => t('February'), |
---|
38 | '3' => t('March'), |
---|
39 | '4' => t('April'), |
---|
40 | '5' => t('May'), |
---|
41 | '6' => t('June'), |
---|
42 | '7' => t('July'), |
---|
43 | '8' => t('August'), |
---|
44 | '9' => t('September'), |
---|
45 | '10' => t('Octuber'), |
---|
46 | '11' => t('November'), |
---|
47 | '12' => t('December'), |
---|
48 | ); |
---|
49 | $current_year = date("Y"); |
---|
50 | if (!variable_get('accion_especifica_de_proyecto_seguimiento_anho_creacion', 0)) { |
---|
51 | $years[0] = t('Seleccione'); |
---|
52 | } |
---|
53 | for($i = $current_year - 10; $i <= $current_year; $i++) { |
---|
54 | $years[$i] = $i; |
---|
55 | } |
---|
56 | $form = array(); |
---|
57 | $form['days'] = array( |
---|
58 | '#type' => 'fieldset', |
---|
59 | '#title' => t('Fechas'), |
---|
60 | '#collapsible' => TRUE, |
---|
61 | '#collapsed' => FALSE, |
---|
62 | ); |
---|
63 | /* |
---|
64 | $form['days']['accion_especifica_de_proyecto_seguimiento_anho_creacion'] = array( |
---|
65 | '#title' => t('Gestionar proyectos para el año'), |
---|
66 | '#type' => 'select', |
---|
67 | '#default_value' => variable_get('accion_especifica_de_proyecto_seguimiento_anho_creacion', 0), |
---|
68 | '#options' => $years, |
---|
69 | ); |
---|
70 | */ |
---|
71 | $form['days']['seguimiento'] = array( |
---|
72 | '#type' => 'fieldset', |
---|
73 | '#title' => t('Seguimiento de Proyectos y sus Acciones Especificas'), |
---|
74 | '#collapsible' => TRUE, |
---|
75 | '#collapsed' => FALSE, |
---|
76 | ); |
---|
77 | $form['days']['seguimiento']['accion_especifica_de_proyecto_seguimiento_mes_seguimiento'] = array( |
---|
78 | '#title' => t('Habilitar seguimiento para el mes'), |
---|
79 | '#type' => 'select', |
---|
80 | '#default_value' => variable_get('accion_especifica_de_proyecto_seguimiento_mes_seguimiento', 0), |
---|
81 | '#options' => $ftypes, |
---|
82 | ); |
---|
83 | $form['days']['seguimiento']['accion_especifica_de_proyecto_seguimiento_anho_seguimiento'] = array( |
---|
84 | '#title' => t('Habilitar seguimiento para el año'), |
---|
85 | '#type' => 'select', |
---|
86 | '#default_value' => variable_get('accion_especifica_de_proyecto_seguimiento_anho_seguimiento', 0), |
---|
87 | '#options' => $years, |
---|
88 | ); |
---|
89 | $form['visual'] = array( |
---|
90 | '#type' => 'fieldset', |
---|
91 | '#title' => t('Visualización'), |
---|
92 | '#collapsible' => TRUE, |
---|
93 | '#collapsed' => FALSE, |
---|
94 | ); |
---|
95 | //estado critico |
---|
96 | $form['visual']['critico'] = array( |
---|
97 | '#type' => 'fieldset', |
---|
98 | '#title' => t('Estado critico'), |
---|
99 | '#collapsible' => TRUE, |
---|
100 | '#collapsed' => FALSE, |
---|
101 | ); |
---|
102 | $form['visual']['critico']['accion_especifica_de_proyecto_seguimiento_color_critica'] = array( |
---|
103 | '#title' => t('Color de fondo'), |
---|
104 | '#type' => 'textfield', |
---|
105 | '#default_value' => variable_get('accion_especifica_de_proyecto_seguimiento_color_critica', '#fd0002'), |
---|
106 | '#required' => TRUE, |
---|
107 | '#size' => 10, |
---|
108 | ); |
---|
109 | $form['visual']['critico']['accion_especifica_de_proyecto_seguimiento_colort_critica'] = array( |
---|
110 | '#title' => t('Color de fuente'), |
---|
111 | '#type' => 'textfield', |
---|
112 | '#default_value' => variable_get('accion_especifica_de_proyecto_seguimiento_colort_critica', '#FFFFFF'), |
---|
113 | '#required' => TRUE, |
---|
114 | '#size' => 10, |
---|
115 | ); |
---|
116 | $form['visual']['critico']['accion_especifica_de_proyecto_seguimiento_texto_critica'] = array( |
---|
117 | '#title' => t('Texto a mostrar'), |
---|
118 | '#type' => 'textfield', |
---|
119 | '#default_value' => variable_get('accion_especifica_de_proyecto_seguimiento_texto_critica', 'Zona crÃtica'), |
---|
120 | '#required' => TRUE, |
---|
121 | ); |
---|
122 | // estado discreta |
---|
123 | $form['visual']['discreta'] = array( |
---|
124 | '#type' => 'fieldset', |
---|
125 | '#title' => t('Estado discreto'), |
---|
126 | '#collapsible' => TRUE, |
---|
127 | '#collapsed' => FALSE, |
---|
128 | ); |
---|
129 | $form['visual']['discreta']['accion_especifica_de_proyecto_seguimiento_color_discreta'] = array( |
---|
130 | '#title' => t('Color de fondo'), |
---|
131 | '#type' => 'textfield', |
---|
132 | '#default_value' => variable_get('accion_especifica_de_proyecto_seguimiento_color_discreta', '#cc6733'), |
---|
133 | '#required' => TRUE, |
---|
134 | '#size' => 10, |
---|
135 | ); |
---|
136 | $form['visual']['discreta']['accion_especifica_de_proyecto_seguimiento_colort_discreta'] = array( |
---|
137 | '#title' => t('Color de fuente'), |
---|
138 | '#type' => 'textfield', |
---|
139 | '#default_value' => variable_get('accion_especifica_de_proyecto_seguimiento_colort_discreta', '#FFFFFF'), |
---|
140 | '#required' => TRUE, |
---|
141 | '#size' => 10, |
---|
142 | ); |
---|
143 | $form['visual']['discreta']['accion_especifica_de_proyecto_seguimiento_texto_discreta'] = array( |
---|
144 | '#title' => t('Texto a mostrar'), |
---|
145 | '#type' => 'textfield', |
---|
146 | '#default_value' => variable_get('accion_especifica_de_proyecto_seguimiento_texto_discreta', 'Zona discreta'), |
---|
147 | '#required' => TRUE, |
---|
148 | ); |
---|
149 | // estado moderada |
---|
150 | $form['visual']['moderada'] = array( |
---|
151 | '#type' => 'fieldset', |
---|
152 | '#title' => t('Estado moderado'), |
---|
153 | '#collapsible' => TRUE, |
---|
154 | '#collapsed' => FALSE, |
---|
155 | ); |
---|
156 | $form['visual']['moderada']['accion_especifica_de_proyecto_seguimiento_color_moderada'] = array( |
---|
157 | '#title' => t('Color de fondo'), |
---|
158 | '#type' => 'textfield', |
---|
159 | '#default_value' => variable_get('accion_especifica_de_proyecto_seguimiento_color_moderada', '#fdff00'), |
---|
160 | '#required' => TRUE, |
---|
161 | '#size' => 10, |
---|
162 | ); |
---|
163 | $form['visual']['moderada']['accion_especifica_de_proyecto_seguimiento_colort_moderada'] = array( |
---|
164 | '#title' => t('Color de fuente'), |
---|
165 | '#type' => 'textfield', |
---|
166 | '#default_value' => variable_get('accion_especifica_de_proyecto_seguimiento_colort_moderada', '#000000'), |
---|
167 | '#required' => TRUE, |
---|
168 | '#size' => 10, |
---|
169 | ); |
---|
170 | $form['visual']['moderada']['accion_especifica_de_proyecto_seguimiento_texto_moderada'] = array( |
---|
171 | '#title' => t('Texto a mostrar'), |
---|
172 | '#type' => 'textfield', |
---|
173 | '#default_value' => variable_get('accion_especifica_de_proyecto_seguimiento_texto_moderada', 'Zona moderada'), |
---|
174 | '#required' => TRUE, |
---|
175 | ); |
---|
176 | // estado optima |
---|
177 | $form['visual']['optima'] = array( |
---|
178 | '#type' => 'fieldset', |
---|
179 | '#title' => t('Estado Optimo'), |
---|
180 | '#collapsible' => TRUE, |
---|
181 | '#collapsed' => FALSE, |
---|
182 | ); |
---|
183 | $form['visual']['optima']['accion_especifica_de_proyecto_seguimiento_color_optima'] = array( |
---|
184 | '#title' => t('Color de fondo'), |
---|
185 | '#type' => 'textfield', |
---|
186 | '#default_value' => variable_get('accion_especifica_de_proyecto_seguimiento_color_optima', '#20ff21'), |
---|
187 | '#required' => TRUE, |
---|
188 | '#size' => 10, |
---|
189 | ); |
---|
190 | $form['visual']['optima']['accion_especifica_de_proyecto_seguimiento_colort_optima'] = array( |
---|
191 | '#title' => t('Color de fuente'), |
---|
192 | '#type' => 'textfield', |
---|
193 | '#default_value' => variable_get('accion_especifica_de_proyecto_seguimiento_colort_optima', '#000000'), |
---|
194 | '#required' => TRUE, |
---|
195 | '#size' => 10, |
---|
196 | ); |
---|
197 | $form['visual']['optima']['accion_especifica_de_proyecto_seguimiento_texto_optima'] = array( |
---|
198 | '#title' => t('Texto a mostrar'), |
---|
199 | '#type' => 'textfield', |
---|
200 | '#default_value' => variable_get('accion_especifica_de_proyecto_seguimiento_texto_optima', 'Zona optima'), |
---|
201 | '#required' => TRUE, |
---|
202 | ); |
---|
203 | // estado sejecucion |
---|
204 | $form['visual']['sejecucion'] = array( |
---|
205 | '#type' => 'fieldset', |
---|
206 | '#title' => t('Estado Sobre ejecución'), |
---|
207 | '#collapsible' => TRUE, |
---|
208 | '#collapsed' => FALSE, |
---|
209 | ); |
---|
210 | $form['visual']['sejecucion']['accion_especifica_de_proyecto_seguimiento_color_sejecucion'] = array( |
---|
211 | '#title' => t('Color de fondo'), |
---|
212 | '#type' => 'textfield', |
---|
213 | '#default_value' => variable_get('accion_especifica_de_proyecto_seguimiento_color_sejecucion', '#9966cd'), |
---|
214 | '#required' => TRUE, |
---|
215 | '#size' => 10, |
---|
216 | ); |
---|
217 | $form['visual']['sejecucion']['accion_especifica_de_proyecto_seguimiento_colort_sejecucion'] = array( |
---|
218 | '#title' => t('Color de fuente'), |
---|
219 | '#type' => 'textfield', |
---|
220 | '#default_value' => variable_get('accion_especifica_de_proyecto_seguimiento_colort_sejecucion', '#000000'), |
---|
221 | '#required' => TRUE, |
---|
222 | '#size' => 10, |
---|
223 | ); |
---|
224 | $form['visual']['sejecucion']['accion_especifica_de_proyecto_seguimiento_texto_sejecucion'] = array( |
---|
225 | '#title' => t('Texto a mostrar'), |
---|
226 | '#type' => 'textfield', |
---|
227 | '#default_value' => variable_get('accion_especifica_de_proyecto_seguimiento_texto_sejecucion', 'Sobre ejecución'), |
---|
228 | '#required' => TRUE, |
---|
229 | ); |
---|
230 | // estado sejecucion |
---|
231 | $form['visual']['default'] = array( |
---|
232 | '#type' => 'fieldset', |
---|
233 | '#title' => t('Estado sin planificación'), |
---|
234 | '#collapsible' => TRUE, |
---|
235 | '#collapsed' => FALSE, |
---|
236 | ); |
---|
237 | $form['visual']['default']['accion_especifica_de_proyecto_seguimiento_color_default'] = array( |
---|
238 | '#title' => t('Color de fondo'), |
---|
239 | '#type' => 'textfield', |
---|
240 | '#default_value' => variable_get('accion_especifica_de_proyecto_seguimiento_color_default', '#633303'), |
---|
241 | '#required' => TRUE, |
---|
242 | '#size' => 10, |
---|
243 | ); |
---|
244 | $form['visual']['default']['accion_especifica_de_proyecto_seguimiento_colort_default'] = array( |
---|
245 | '#title' => t('Color de fuente'), |
---|
246 | '#type' => 'textfield', |
---|
247 | '#default_value' => variable_get('accion_especifica_de_proyecto_seguimiento_colort_default', '#FFFFFF'), |
---|
248 | '#required' => TRUE, |
---|
249 | '#size' => 10, |
---|
250 | ); |
---|
251 | $form['visual']['default']['accion_especifica_de_proyecto_seguimiento_texto_default'] = array( |
---|
252 | '#title' => t('Texto a mostrar'), |
---|
253 | '#type' => 'textfield', |
---|
254 | '#default_value' => variable_get('accion_especifica_de_proyecto_seguimiento_texto_default', 'No hay planificación'), |
---|
255 | '#required' => TRUE, |
---|
256 | ); |
---|
257 | |
---|
258 | return system_settings_form($form); |
---|
259 | } |
---|