コード例 #1
0
                #echo $copies->getTotalCatalog() ;
                echo link_to_remote($copies->getTotalCatalog(), array('url' => 'rpt_acreditation/listCollection?filters[published_year]=' . $v_material_collection->getPublishedYear() . '&filters[cat_category_id]=' . $v_material_collection->getCatCategoryId() . '&total_catalog=' . $filters['TOTAL_CATALOG'], 'update' => 'content', 'script' => 'true', 'loading' => "showIndicator('content', 'snakebig_black');", 'complete' => "hideIndicator()"), array('class' => 'white', 'title' => __('Collection')));
            } else {
                echo "-";
            }
            ?>
                    
					<?php 
        } else {
            ?>
                    	<?php 
            if ($v_material_collection->getTotalColItem() != null) {
                $c = new Criteria();
                $c->add(VMaterialCatalogPeer::CAT_CATEGORY_ID, $v_material_collection->getCatCategoryId());
                $c->add(VMaterialCatalogPeer::PUBLISHED_YEAR, $v_material_collection->getPublishedYear());
                $copies = VMaterialCatalogPeer::doSelectOne($c);
                #echo $copies->getTotalCatalog() ;
                echo link_to_remote($copies->getTotalCatalog(), array('url' => 'rpt_acreditation/listCollection?filters[published_year]=' . $v_material_collection->getPublishedYear() . '&filters[cat_category_id]=' . $v_material_collection->getCatCategoryId(), 'update' => 'content', 'script' => 'true', 'loading' => "showIndicator('content', 'snakebig_black');", 'complete' => "hideIndicator()"), array('class' => 'white', 'title' => __('Collection')));
            } else {
                echo "-";
            }
            ?>
                        
                    <?php 
        }
        ?>
    
                    </td>
				</tr>
		<?php 
    }