Bug(バグ) #275 » patch2.diff
apps/pc_frontend/modules/ashiato/templates/listSuccess.php (作業コピー) | ||
---|---|---|
<p><?php echo __('Pageview %d Count', array('%d' =>$count)) ?></p>
|
||
<ul class="list">
|
||
<?php foreach ($pager->getResults() as $ashiato) : ?>
|
||
<li><?php echo op_format_date($ashiato->updated_at, 'XDateTimeJaBr'); ?>
|
||
<li><?php echo op_format_date($ashiato->ua, 'XDateTimeJaBr'); ?>
|
||
<?php echo link_to($ashiato->Member_2->name, 'member/profile?id=' . $ashiato->Member_2->id); ?></li>
|
||
<?php endforeach; ?>
|
||
</ul>
|
apps/mobile_frontend/modules/ashiato/templates/listSuccess.php (作業コピー) | ||
---|---|---|
<table width="100%">
|
||
<?php foreach ($pager->getResults() as $ashiato) : ?>
|
||
<tr><td bgcolor="<?php echo cycle_vars($id, '#e0eaef,#ffffff') ?>">
|
||
<?php echo op_format_date($ashiato->updated_at, 'XDateTime'); ?>
|
||
<?php echo op_format_date($ashiato->ua, 'XDateTime'); ?>
|
||
<?php echo link_to($ashiato->Member_2->name, 'member/profile?id=' . $ashiato->Member_2->id); ?>
|
||
</td></tr>
|
||
<?php endforeach; ?>
|
lib/model/doctrine/PluginAshiatoTable.class.php (作業コピー) | ||
---|---|---|
$q = $this->createQuery()
|
||
->select('*')
|
||
->addSelect('MAX(updated_at) as updated_at')
|
||
->addSelect('MAX(updated_at) as ua')
|
||
->where('member_id_to = ?', $memberId)
|
||
->whereIn('r_date', $day_list)
|
||
->groupBy('member_id_from')
|
||
->groupBy('r_date')
|
||
->orderBy('updated_at DESC');
|
||
->orderBy('ua DESC');
|
||
$pager = new sfDoctrinePager('Ashiato', $size);
|
||
$pager->setQuery($q);
|