Author: jablko
Date: Wed Oct 27 20:09:36 2010
New Revision: 8595
Log:
Add even/odd class
Modified:
trunk/plugins/sfIsaarPlugin/modules/sfIsaarPlugin/templates/_event.php
trunk/plugins/sfIsaarPlugin/modules/sfIsaarPlugin/templates/_relatedAuthorityRecord.php
trunk/plugins/sfIsadPlugin/modules/sfIsadPlugin/templates/_event.php
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedAuthorityRecord.php
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedFunction.php
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedResource.php
Modified: trunk/plugins/sfIsaarPlugin/modules/sfIsaarPlugin/templates/_event.php
==============================================================================
--- trunk/plugins/sfIsaarPlugin/modules/sfIsaarPlugin/templates/_event.php
Wed Oct 27 20:05:24 2010 (r8594)
+++ trunk/plugins/sfIsaarPlugin/modules/sfIsaarPlugin/templates/_event.php
Wed Oct 27 20:09:36 2010 (r8595)
@@ -27,7 +27,7 @@
</tr>
</thead><tbody>
<?php foreach ($resource->getEvents() as $item): ?>
- <tr class="related_obj_<?php echo $item->id ?>" id="<?php echo
url_for(array($item, 'module' => 'event')) ?>">
+ <tr class="<?php echo 0 == ++$row % 2 ? 'even' : 'odd' ?>
related_obj_<?php echo $item->id ?>" id="<?php echo url_for(array($item,
'module' => 'event')) ?>">
<td>
<?php echo render_title($item->informationObject) ?>
</td><td>
Modified:
trunk/plugins/sfIsaarPlugin/modules/sfIsaarPlugin/templates/_relatedAuthorityRecord.php
==============================================================================
---
trunk/plugins/sfIsaarPlugin/modules/sfIsaarPlugin/templates/_relatedAuthorityRecord.php
Wed Oct 27 20:05:24 2010 (r8594)
+++
trunk/plugins/sfIsaarPlugin/modules/sfIsaarPlugin/templates/_relatedAuthorityRecord.php
Wed Oct 27 20:09:36 2010 (r8595)
@@ -29,7 +29,7 @@
</tr>
</thead><tbody>
<?php foreach ($resource->getActorRelations() as $item): ?>
- <tr class="related_obj_<?php echo $item->id ?>" id="<?php echo
url_for(array($item, 'module' => 'relation')) ?>">
+ <tr class="<?php echo 0 == ++$row % 2 ? 'even' : 'odd' ?>
related_obj_<?php echo $item->id ?>" id="<?php echo url_for(array($item,
'module' => 'relation')) ?>">
<td>
<?php if ($resource->id == $item->objectId): ?>
<?php echo render_title($item->subject) ?>
Modified: trunk/plugins/sfIsadPlugin/modules/sfIsadPlugin/templates/_event.php
==============================================================================
--- trunk/plugins/sfIsadPlugin/modules/sfIsadPlugin/templates/_event.php
Wed Oct 27 20:05:24 2010 (r8594)
+++ trunk/plugins/sfIsadPlugin/modules/sfIsadPlugin/templates/_event.php
Wed Oct 27 20:09:36 2010 (r8595)
@@ -26,7 +26,7 @@
<?php $form->getWidgetSchema()->setNameFormat("editEvents[$i][%s]");
$i++ ?>
- <tr class="date related_obj_<?php echo $item->id ?>">
+ <tr class="date <?php echo 0 == ++$row % 2 ? 'even' : 'odd' ?>
related_obj_<?php echo $item->id ?>">
<td>
<div class="animateNicely">
<input name="<?php echo
$form->getWidgetSchema()->generateName('id') ?>" type="hidden" value="<?php
echo url_for(array($item, 'module' => 'event')) ?>"/>
Modified:
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedAuthorityRecord.php
==============================================================================
---
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedAuthorityRecord.php
Wed Oct 27 20:05:24 2010 (r8594)
+++
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedAuthorityRecord.php
Wed Oct 27 20:09:36 2010 (r8595)
@@ -27,7 +27,7 @@
</tr>
</thead><tbody>
<?php foreach ($isdf->relatedAuthorityRecord as $item): ?>
- <tr class="related_obj_<?php echo $item->id ?>" id="<?php echo
url_for(array($item, 'module' => 'relation')) ?>">
+ <tr class="<?php echo 0 == ++$row % 2 ? 'even' : 'odd' ?>
related_obj_<?php echo $item->id ?>" id="<?php echo url_for(array($item,
'module' => 'relation')) ?>">
<td>
<?php echo render_title($item->object) ?>
</td><td>
Modified:
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedFunction.php
==============================================================================
---
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedFunction.php
Wed Oct 27 20:05:24 2010 (r8594)
+++
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedFunction.php
Wed Oct 27 20:09:36 2010 (r8595)
@@ -29,7 +29,7 @@
</tr>
</thead><tbody>
<?php foreach ($isdf->relatedFunction as $item): ?>
- <tr class="related_obj_<?php echo $item->id ?>" id="<?php echo
url_for(array($item, 'module' => 'relation')) ?>">
+ <tr class="<?php echo 0 == ++$row % 2 ? 'even' : 'odd' ?>
related_obj_<?php echo $item->id ?>" id="<?php echo url_for(array($item,
'module' => 'relation')) ?>">
<td>
<?php if ($resource->id == $item->objectId): ?>
<?php echo render_title($item->subject) ?>
Modified:
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedResource.php
==============================================================================
---
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedResource.php
Wed Oct 27 20:05:24 2010 (r8594)
+++
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedResource.php
Wed Oct 27 20:09:36 2010 (r8595)
@@ -27,7 +27,7 @@
</tr>
</thead><tbody>
<?php foreach ($isdf->relatedResource as $item): ?>
- <tr class="related_obj_<?php echo $item->id ?>" id="<?php echo
url_for(array($item, 'module' => 'relation')) ?>">
+ <tr class="<?php echo 0 == ++$row % 2 ? 'even' : 'odd' ?>
related_obj_<?php echo $item->id ?>" id="<?php echo url_for(array($item,
'module' => 'relation')) ?>">
<td>
<?php echo render_title($item->object) ?>
</td><td>
--
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/qubit-commits?hl=en.