PageRenderTime 42ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/application/views/adminlte/fichas/efectos_old.php

https://gitlab.com/juancjara/gproc-react
PHP | 199 lines | 158 code | 35 blank | 6 comment | 12 complexity | 336614aed1e6fd85899d4b3bc704800d MD5 | raw file
  1. <?php $edit = ($action == 'save') ?>
  2. <aside class="right-side">
  3. <section class="content-header">
  4. <h5 class="text-center">
  5. <?= "Comité de Calidad de ". $objeto['subtitle'] ?>
  6. </h5>
  7. <h4 class="text-center">
  8. Plan de Mejora - <?= $oAcreditadoEtapaFicha->oEventoEtapaFicha->evef_nombre ?>
  9. <label class="label label-sm label-<?= $oAcreditadoEtapaFicha->class_estado() ?>">
  10. <?= $oAcreditadoEtapaFicha->estado() ?></label>
  11. </h4>
  12. <h5 class="text-center">
  13. <?= ($oAcreditadoEtapaFicha->oAcreditadoEtapa->acet_estado == Model_AcreditadoEtapa::ESTADO_OBSERVADO && $oAcreditadoEtapaFicha->oAcreditadoEtapa->acet_fecha_fin_observado) ?
  14. "Levantar observación antes de: ".date('d/m', strtotime($oAcreditadoEtapaFicha->oAcreditadoEtapa->acet_fecha_fin_observado)) : NULL
  15. ?>
  16. </h5>
  17. <h5 class="text-center">
  18. <?= $objeto['even_nombre'] ?>
  19. </h5>
  20. </section>
  21. <section class="content">
  22. <form class="form-horizontal ficha" method="post" action="<?= URL::query(['acev_id' => $objeto['acev_id']]) ?>">
  23. <div class="_actions">
  24. <?php if ($edit): ?>
  25. <!--button type="button" class="btn btn-flat btn-github download_ficha"
  26. data-url="/efectosOld/pdf<?= URL::query() ?>"
  27. title="Descargar ficha" data-toggle="tooltip">
  28. <i class="fa fa-download"></i> PDF
  29. </button-->
  30. <button type="button" name="finish" class="btn btn-flat btn-success btn_save" value="0">
  31. Guardar sin terminar</button>
  32. <button type="submit" name="finish" class="btn btn-flat btn-primary btn_finish" value="1">
  33. Finalizar ficha</button>
  34. <div class="pull-right">
  35. <a href="/efectosOld" class="btn btn-flat btn-danger">Cancelar</a>
  36. </div>
  37. <?php elseif ($oAcreditadoEtapaFicha->acef_path): ?>
  38. <a href="/file/<?= $oAcreditadoEtapaFicha->acef_path ?>"
  39. target="_blank" class="btn btn-flat btn-github">
  40. <i class="fa fa-file-text"></i>
  41. Descargar documento firmado</a>
  42. <?php endif ?>
  43. </div>
  44. <hr>
  45. <table class="table table-bordered">
  46. <thead>
  47. <tr class="success text-center" >
  48. <th class="tobjetivo" title="Asociar cada objetivo específico con una DIMENSIÓN de la matriz de Calidad">
  49. O.E.</th>
  50. <th class="tresultado" title="Cada resultado debe estar asociado a un FACTOR de la matriz de calidad">
  51. R.</th>
  52. <th class="t-ladoderecho">
  53. <table class="table-condensed table-efectos">
  54. <thead>
  55. <tr>
  56. <th class=" success t-actividades text-center" title="Se incluirán una o más actividades por cada estándar que se quiera lograr. Es posible que una actividad contribuya al logro de más de un estándar">
  57. Actividades (A.)</th>
  58. <th class=" success t-efectos text-center" title="Se debe explicar como se espera que la ejecución de cada actividad incida en la mejora de la calidad de la educación">
  59. Efecto Esperado</th>
  60. </tr>
  61. </thead>
  62. </table>
  63. </th>
  64. </tr>
  65. </thead>
  66. <tbody>
  67. <?php // Dimensiones (objetivos) ?>
  68. <?php $oe = 0 ?>
  69. <?php $re = 0 ?>
  70. <?php foreach ($dimensiones as $val1 => $row1): ?>
  71. <?php if (Arr::path($data, "dimensiones|{$row1['dime_codigo']}|hide", NULL, '|')) continue ?>
  72. <?php $nFactores = Arr::path($data, "dimensiones|{$row1['dime_codigo']}|nFactores", count($row1['data']), '|') ?>
  73. <tr>
  74. <th rowspan="<?= $nFactores ?>" class="tobjetivo">
  75. <label title="<?= Arr::path($data, "dimensiones|{$row1['dime_codigo']}|objetivo", NULL, '|') ?>">
  76. O.E.<?= ++$oe ?></label>
  77. </th>
  78. <?php
  79. //debug2 ($data);
  80. //end($row1['data']);
  81. //$last1 = key($row1['data']);
  82. foreach ($row1['data'] as $val2 => $row2)
  83. if ( ! Arr::path($data, "factores|{$row2['fact_codigo']}|hide", NULL, '|'))
  84. $last1 = $val2;
  85. ?>
  86. <?php // Factores (resultados) ?>
  87. <?php foreach ($row1['data'] as $val2 => $row2): ?>
  88. <?php if (Arr::path($data, "factores|{$row2['fact_codigo']}|hide", NULL, '|')) continue ?>
  89. <?php
  90. //$rows = count($row2['data']);
  91. //end($row2['data']);
  92. //$last2 = key($row2['data']);
  93. ?>
  94. <th class="tresultado">
  95. <label title="<?= Arr::path($data, "factores|{$row2['fact_codigo']}|resultado", NULL, '|') ?>">
  96. R.<?= ++$re ?>
  97. </label>
  98. </th>
  99. <?php // Estandares ?>
  100. <td class="t-ladoderecho">
  101. <table class="table table-bordered table_actividades">
  102. <tbody>
  103. <?php // actividades ?>
  104. <?php foreach (Arr::path($data, "actividades|{$row2['fact_codigo']}",
  105. array(0 => NULL), "|") as $i => $actividad): ?>
  106. <tr data-id="<?= $i ?>">
  107. <td class="t-actividades">
  108. <?php $j = $i + 1 ?>
  109. <strong><?= "A.{$re}.{$j}" ?></strong><br>
  110. <?= Arr::path($actividad, 'miactividad'); ?>
  111. </td>
  112. <td class="t-efectos">
  113. <?php if ($edit): ?>
  114. <textarea class="form-control" maxlength="1500" placeholder="Ingrese Efecto Esperado" rows="4" required
  115. name="<?= "efectos[{$row2['fact_codigo']}][$i][efecto]" ?>"
  116. ><?= Arr::path($data4, "efectos|{$row2['fact_codigo']}|$i|efecto", NULL, "|") ?></textarea>
  117. <?php else: ?>
  118. <p class="form-control-static">
  119. <?= Arr::path($data4, "efectos|{$row2['fact_codigo']}|$i|efecto", NULL, "|") ?>
  120. </p>
  121. <?php endif ?>
  122. </td>
  123. </tr>
  124. <?php endforeach ?>
  125. </tbody>
  126. </table>
  127. <?php if ($edit): ?>
  128. <button type="button" name="next" class="btn btn-flat btn-default btn_save pull-right" value="0">
  129. Guardar
  130. </button>
  131. <?php endif ?>
  132. </td>
  133. </tr>
  134. <?php if ($val2 != $last1): ?> <tr> <?php endif ?>
  135. <?php endforeach ?>
  136. <?php endforeach ?>
  137. </tbody>
  138. </table>
  139. <?= Theme_View::factory('fichas/firmas', ['data' => $data4] + compact('edit')) ?>
  140. <div class="_actions">
  141. <?php if ($edit): ?>
  142. <!--button type="button" class="btn btn-flat btn-github download_ficha"
  143. data-url="/efectosOld/pdf<?= URL::query() ?>"
  144. title="Descargar ficha" data-toggle="tooltip">
  145. <i class="fa fa-download"></i> PDF
  146. </button-->
  147. <button type="button" name="finish" class="btn btn-flat btn-success btn_save" value="0">
  148. Guardar sin terminar</button>
  149. <button type="submit" name="finish" class="btn btn-flat btn-primary btn_finish" value="1">
  150. Finalizar ficha</button>
  151. <div class="pull-right">
  152. <a href="/efectosOld" class="btn btn-flat btn-danger">Cancelar</a>
  153. </div>
  154. <?php elseif ($oAcreditadoEtapaFicha->acef_path): ?>
  155. <a href="/file/<?= $oAcreditadoEtapaFicha->acef_path ?>"
  156. target="_blank" class="btn btn-flat btn-github">
  157. <i class="fa fa-file-text"></i>
  158. Descargar documento firmado</a>
  159. <?php endif ?>
  160. </div>
  161. </form>
  162. </section>
  163. </aside>
  164. <iframe class="iframe"></iframe>