Skip to content

Commit

Permalink
trabajando en el admin de busqueda especializada
Browse files Browse the repository at this point in the history
  • Loading branch information
PabloRN committed Jul 1, 2011
1 parent bca8df3 commit a9d7d38
Show file tree
Hide file tree
Showing 19 changed files with 284 additions and 264 deletions.
16 changes: 16 additions & 0 deletions apps/admin/modules/respuestaBusqueda/actions/actions.class.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

require_once dirname(__FILE__).'/../lib/respuestaBusquedaGeneratorConfiguration.class.php';
require_once dirname(__FILE__).'/../lib/respuestaBusquedaGeneratorHelper.class.php';

/**
* respuestaBusqueda actions.
*
* @package bibliocnic
* @subpackage respuestaBusqueda
* @author Your name here
* @version SVN: $Id: actions.class.php 12474 2008-10-31 10:41:27Z fabien $
*/
class respuestaBusquedaActions extends autoRespuestaBusquedaActions
{
}
43 changes: 43 additions & 0 deletions apps/admin/modules/respuestaBusqueda/config/generator.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
generator:
class: dmAdminDoctrineGenerator
param:
model_class: respuestab
theme: dmAdmin
non_verbose_templates: true
with_show: false
route_prefix: respuesta_busqueda
with_doctrine_route: false
config:
actions: ~
fields: { }
list:
display:
- '=id'
- busqueda_id
- mensaje
- uri
- created_at
- updated_at
sort:
- created_at
- desc
table_method: getAdminListQuery
table_count_method: ~
sortable: false
filter:
display:
- id
- mensaje
- busqueda_id
- uri
- created_at
- updated_at
form:
display:
NONE: [busqueda_id]
Mensaje: [mensaje]
Others: [uri]
class: respuestabAdminForm
fields: { }
edit: ~
new: ~
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

/**
* respuestaBusqueda module configuration.
*
* @package bibliocnic
* @subpackage respuestaBusqueda
* @author Your name here
* @version SVN: $Id: configuration.php 12474 2008-10-31 10:41:27Z fabien $
*/
class respuestaBusquedaGeneratorConfiguration extends BaseRespuestaBusquedaGeneratorConfiguration
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

/**
* respuestaBusqueda module helper.
*
* @package bibliocnic
* @subpackage respuestaBusqueda
* @author Your name here
* @version SVN: $Id: helper.php 12474 2008-10-31 10:41:27Z fabien $
*/
class respuestaBusquedaGeneratorHelper extends BaseRespuestaBusquedaGeneratorHelper
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

/**
* respuestaBusqueda admin export
*
* @package bibliocnic
* @subpackage respuestaBusqueda
* @author Your name here
*/
class respuestabAdminExport extends myDoctrineTableExport
{
}
17 changes: 17 additions & 0 deletions apps/admin/modules/respuestaBusqueda/lib/respuestabAdminForm.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

/**
* respuestaBusqueda admin form
*
* @package bibliocnic
* @subpackage respuestaBusqueda
* @author Your name here
*/
class respuestabAdminForm extends BaserespuestabForm
{
public function configure()
{
parent::configure();
unset($this['created_at'], $this['updated_at']);
}
}
15 changes: 15 additions & 0 deletions apps/front/modules/busqueda/actions/components.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*
* No redirection nor database manipulation ( insert, update, delete ) here
*
*
*/
class busquedaComponents extends myFrontModuleComponents
{
Expand All @@ -13,5 +14,19 @@ public function executeForm()
$this->form = $this->forms['busqueda'];
}

public function executeList()
{
$query = $this->getListQuery();

$this->busquedaPager = $this->getPager($query);
}

public function executeShow()
{
$query = $this->getShowQuery();

$this->busqueda = $this->getRecord($query);
}


}
18 changes: 18 additions & 0 deletions apps/front/modules/busqueda/templates/_list.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php // Vars: $busquedaPager

echo $busquedaPager->renderNavigationTop();

echo _open('ul.elements');

foreach ($busquedaPager as $busqueda)
{
echo _open('li.element');

echo _link($busqueda);

echo _close('li');
}

echo _close('ul');

echo $busquedaPager->renderNavigationBottom();
3 changes: 3 additions & 0 deletions apps/front/modules/busqueda/templates/_show.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?php // Vars: $busqueda

echo $busqueda;
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php
/**
* Respuesta busqueda actions
*/
class respuestaBusquedaActions extends myFrontModuleActions
{


}
25 changes: 25 additions & 0 deletions apps/front/modules/respuestaBusqueda/actions/components.class.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php
/**
* Respuesta busqueda components
*
* No redirection nor database manipulation ( insert, update, delete ) here
*/
class respuestaBusquedaComponents extends myFrontModuleComponents
{

public function executeListByBusqueda()
{
$query = $this->getListQuery();

$this->respuestaBusquedaPager = $this->getPager($query);
}

public function executeShow()
{
$query = $this->getShowQuery();

$this->respuestaBusqueda = $this->getRecord($query);
}


}
18 changes: 18 additions & 0 deletions apps/front/modules/respuestaBusqueda/templates/_listByBusqueda.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php // Vars: $respuestaBusquedaPager

echo $respuestaBusquedaPager->renderNavigationTop();

echo _open('ul.elements');

foreach ($respuestaBusquedaPager as $respuestaBusqueda)
{
echo _open('li.element');

echo _link($respuestaBusqueda);

echo _close('li');
}

echo _close('ul');

echo $respuestaBusquedaPager->renderNavigationBottom();
3 changes: 3 additions & 0 deletions apps/front/modules/respuestaBusqueda/templates/_show.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?php // Vars: $respuestaBusqueda

echo $respuestaBusqueda;
17 changes: 9 additions & 8 deletions bibliocnic.sql

Large diffs are not rendered by default.

301 changes: 52 additions & 249 deletions bibliocnic_datos_.sql → bibliocnicdatos.sql

Large diffs are not rendered by default.

10 changes: 9 additions & 1 deletion config/dm/modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,12 @@ Content:
model: busqueda
page: true
components:
form:
form:
list:
show:
respuesta_busqueda:
model: respuestab
page: true
components:
listByBusqueda:
show:
8 changes: 4 additions & 4 deletions config/doctrine/schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ Respuestab:
actAs:
Timestampable:
columns:
id: {type: integer, primary: true}
id: {type: integer, primary: true, autoincrement: true}
mensaje: {type: clob, extra: markdown}
busqueda_id: {type: integer}
uri: {type: string}
Expand All @@ -238,7 +238,7 @@ Respuesta:
Timestampable:
DmBlameable:
columns:
id: {type: integer, primary: true}
id: {type: integer, primary: true, autoincrement: true}
mensaje: {type: clob, extra: markdown}
pregunta_id: {type: integer}
relations:
Expand Down Expand Up @@ -267,7 +267,7 @@ Pregunta:
actAs:
Timestampable:
columns:
id: {type: integer, primary: true}
id: {type: integer, primary: true, autoincrement: true}
user_id: {type: integer, notnull: true}
titulo: {type: string(128)}
mensaje: {type: clob, extra: markdown}
Expand All @@ -290,7 +290,7 @@ Diseminacion:

Prestamo:
columns:
id: {type: integer, primary: true}
id: {type: integer, primary: true, autoincrement: true}
user_id: {type: integer, notnull: true}
recurso_id: {type: integer, notnull: true}
fecha_prestamo: {type: timestamp, notnull: true}
Expand Down
5 changes: 4 additions & 1 deletion lib/model/doctrine/Busqueda.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,8 @@
*/
class Busqueda extends BaseBusqueda
{

public function __toString()
{
return self::getTitulo();
}
}
2 changes: 1 addition & 1 deletion web/themeSolutions/css/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ float: right
padding: 20px 0 0 0;
background-color:#3B4852;
min-height: 300px;
1border: 1px solid #7C7C7C;

}
#dm_content .dm_page_content {
padding: 0 25px 0 20px;
Expand Down

0 comments on commit a9d7d38

Please sign in to comment.