+
+ passed)) {
+ echo 'El proyecto terminó la primera ronda el día '.date('d/m/Y', strtotime($project->passed)).'.';
+ if ($project->passed != $project->willpass) {
+ echo '
Aunque debería haberla terminado el día '.date('d/m/Y', strtotime($project->willpass)).'.';
+ }
+ } else {
+ echo 'El proyecto terminará la primera ronda el día '.date('d/m/Y', strtotime($project->willpass)).'.';
+ } ?>
+
+
- Cambiar las fechas puede causar cambios en los días de campaña del proyecto.
- 'action' => '',
- 'level' => 3,
- 'method' => 'post',
- 'title' => '',
- 'hint' => 'Cambiar las fechas solamente si se conocen los efectos colaterales',
- 'class' => 'aqua',
- 'footer' => array(
- 'view-step-preview' => array(
- 'type' => 'submit',
- 'name' => 'save-dates',
- 'label' => Text::get('regular-save'),
- 'class' => 'next'
- )
- ),
- 'elements' => array(
- 'id' => array (
- 'type' => 'hidden',
- 'value' => $project->id
- ),
- 'created' => array(
- 'type' => 'datebox',
- 'required' => true,
- 'title' => 'Fecha de creación',
- 'size' => 8,
- 'value' => !empty($project->created) ? $project->created : null
- ),
- 'updated' => array(
- 'type' => 'datebox',
- 'required' => true,
- 'title' => 'Fecha de enviado a revisión',
- 'size' => 8,
- 'value' => !empty($project->updated) ? $project->updated : null
- ),
- 'published' => array(
- 'type' => 'datebox',
- 'title' => 'Fecha de inicio de campaña',
- 'size' => 8,
- 'value' => !empty($project->published) ? $project->published : null
- ),
- 'success' => array(
- 'type' => 'datebox',
- 'title' => 'Fecha de éxito',
- 'size' => 8,
- 'value' => !empty($project->success) ? $project->success : null
- ),
- 'closed' => array(
- 'type' => 'datebox',
- 'title' => 'Fecha de cierre',
- 'size' => 8,
- 'value' => !empty($project->closed) ? $project->closed : null
- ),
- 'passed' => array(
- 'type' => 'datebox',
- 'title' => 'Fecha de paso a segunda ronda',
- 'size' => 8,
- 'value' => !empty($project->passed) ? $project->passed : null
- )
+
\ No newline at end of file
+
+
diff --git a/view/admin/projects/list.html.php b/view/admin/projects/list.html.php
index 34288265..380ece70 100644
--- a/view/admin/projects/list.html.php
+++ b/view/admin/projects/list.html.php
@@ -20,24 +20,28 @@
use Goteo\Library\Text;
+// paginacion
+require_once 'library/pagination/pagination.php';
+
$filters = $this['filters'];
-//arrastramos los filtros
-$filter = "?status={$filters['status']}&category={$filters['category']}&owner={$filters['owner']}&name={$filters['name']}&order={$filters['order']}";
+$the_filters = '';
+foreach ($filters as $key=>$value) {
+ $the_filters .= "&{$key}={$value}";
+}
+$pagedResults = new \Paginated($this['projects'], 10, isset($_GET['page']) ? $_GET['page'] : 1);
?>
+