1 | <?php |
---|
2 | /** |
---|
3 | * Sistema Integral de Planificación y Presupuesto (SIPP) |
---|
4 | * @file proyectos-operativos-flujo-avance.tpl.php |
---|
5 | * Drupal part Module to Sistema Integral de Planificación y Presupuesto (SIPP) |
---|
6 | * Copyright 2011 Sistema Automatizado para la Planificación Estratégico-Situacional en la Administración Pública Venezolana (CENDITEL) |
---|
7 | * |
---|
8 | * This program is free software; you can redistribute it and/or modify |
---|
9 | * it under the terms of the GNU General Public License as published by |
---|
10 | * the Free Software Foundation; either version 2 of the License, or |
---|
11 | * (at your option) any later version. |
---|
12 | * |
---|
13 | * This program is distributed in the hope that it will be useful, |
---|
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
16 | * GNU General Public License for more details. |
---|
17 | * |
---|
18 | * You should have received a copy of the GNU General Public License |
---|
19 | * along with this program; if not, write to the Free Software |
---|
20 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
---|
21 | * |
---|
22 | * @author Cenditel Merida - Ing. Jose Puentes |
---|
23 | * @date 2015-10-23 // (año-mes-dia) |
---|
24 | * @version 0.1 // (0.1) |
---|
25 | */ |
---|
26 | |
---|
27 | $state_proyect = $proyecto->_workflow; //estado de transicion del proyecto |
---|
28 | ?> |
---|
29 | <div class="content-top" style="padding-bottom: 30px"> |
---|
30 | <h3><?php print t('Estado del Proyecto');?></h3> |
---|
31 | <br> |
---|
32 | <?php foreach($states as $sid => $state): ?> |
---|
33 | <?php if ($sid < $state_proyect): ?> |
---|
34 | <?php $color = "#4c9d3e"; ?> |
---|
35 | <?php $border_column = "#bbb"; ?> |
---|
36 | <?php $style_1 = "border: 1px solid #f98800; height: 5px; width: 2px; background: #f98800; position:absolute; margin-top: -30px; margin-left: 6px;"; ?> |
---|
37 | <?php $style_2 = "border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 13px solid #f98800; height: 0px; width: 0px; position:absolute; margin-top: -23px;"; ?> |
---|
38 | <?php elseif ($sid == $state_proyect): ?> |
---|
39 | <?php $style_1 = "border: 1px solid #9a6f49; height: 20px; width: 2px; background: #9a6f49; position:absolute; margin-top:-30px; margin-left: 6px;"; ?> |
---|
40 | <?php $style_2 = "border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 13px solid #9a6f49; height: 0px; width: 0px; position:absolute; margin-top: -9px;"; ?> |
---|
41 | <?php $color = "#459bc8"; ?> |
---|
42 | <?php $border_column = "#9a6f49" ?> |
---|
43 | <?php else: ?> |
---|
44 | <?php $color = "#fdff00"; ?> |
---|
45 | <?php $border_column = "#bbb"; ?> |
---|
46 | <?php $style_1 = "border: 1px solid #ff0000; height: 5px; width: 2px; background: #ff0000; position:absolute; margin-top:42px; margin-left: 6px;"; ?> |
---|
47 | <?php $style_2 = "border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 13px solid #ff0000; height: 0px; width: 0px; position:absolute; margin-top: 30px;"; ?> |
---|
48 | <?php endif ?> |
---|
49 | <span align="center" style="padding: 10px; border: 2px solid <?php print $border_column; ?>; background:<?php print $color; ?>"> |
---|
50 | <span style="<?php print $style_1; ?>"></span> |
---|
51 | <span style="<?php print $style_2; ?>"></span> |
---|
52 | <span style="font-size:12px"><?php print $state; ?></span> |
---|
53 | </span> |
---|
54 | <?php endforeach ?> |
---|
55 | </div> |
---|