echo "<div class='row'>\n";
//$current = $data->f.figure_title."\t".$data->fbm.figure_manufacturer_name."\t".$data->fbb.figure_brand_name."\n";
//$current = $data['figure_title']."\t".$data['figure_manufacturer_name']."\t".$data['figure_brand_name']."\n";
//$i++;
//file_put_contents('MyAlienCollection.xls', $current);
//header('Refresh: 0; url=MyAlienCollection.xls');
// COLUMN 1 (image clickable)
// Get Image
$imageURL = figures_getImagePath("item", "thumb2", $data['figure_id']);
echo "<div class='col-lg-1 col-md-1 col-sm-2 col-xs-2'>\n";
echo "<div class='side-small'><a href='".INFUSIONS."figurelib/item_details.php?item_id=".$data['figure_id']."'>\n<img src='".figures_getImagePath("item", "thumb2", $data['figure_id'])."' height='20' width='20' alt='".$locale['CLFP_002']." : ".$data['figure_title']."' title='".$locale['CLFP_002']." : ".$data['figure_title']."' /></a>";
echo "</div></div>\n";
// COLUMN 2 (name of figure)
echo "<div class='col-lg-2 col-md-2 col-sm-4 col-xs-4'>\n";
echo "<div class='side-small'><a href='".INFUSIONS."figurelib/item_details.php?item_id=".$data['figure_id']."' title='".$locale['CLFP_002']." : ".$data['figure_title']."' alt='".$locale['CLFP_002']." : ".$data['figure_title']."'>".trimlink($data['figure_title'],13)."</a>";
echo "</div></div>\n";
// COLUMN 3 (manufacturer)
echo "<div class='col-lg-2 col-md-2 col-sm-4 col-xs-4'>\n";
echo "<div class='side-small' title='".$locale['CLFP_003']." : ".$data['figure_manufacturer_name']."' alt='".$locale['CLFP_003']." : ".$data['figure_manufacturer_name']."'>".trimlink($data['figure_manufacturer_name'],13)."</div>\n";
echo "</div>\n";
// COLUMN 4 (brand)
echo "<div class='col-lg-2 hidden-2 hidden-sm hidden-xs'>\n";
echo "<div class='side-small' title='".$locale['CLFP_004']." : ".$data['figure_brand_name']."' alt='".$locale['CLFP_004']." : ".$data['figure_brand_name']."'>".trimlink($data['figure_brand_name'],13)."</div>\n";
echo "</div>\n";
// COLUMN 5 (scale)
echo "<div class='col-lg-1 hidden-1 hidden-sm hidden-xs'>\n";
echo "<div class='side-small' title='".$locale['CLFP_005']." : ".$data['figure_scale_name']."' alt='".$locale['CLFP_005']." : ".$data['figure_scale_name']."'>".trimlink($data['figure_scale_name'],6)."</div>\n";
echo "</div>\n";
// No release date or unknown = "no data"
if ($data['figure_pubdate'] == "") {
// COLUMN 6 (release date)
echo "<div class='col-lg-1 col-md-1 hidden-sm hidden-xs'>\n";
echo "<div class='side-small' title='".$locale['CLFP_006']." : ".$locale['CLFP_008']."' alt='".$locale['CLFP_006']." : ".$locale['CLFP_008']."'>".trimlink($locale['CLFP_008'],5)."</div>\n";
echo "</div>\n";
} else {
echo "<div class='col-lg-1 col-md-1 hidden-sm hidden-xs'>\n";
echo "<div class='side-small' title='".$locale['CLFP_006']." : ".$data['figure_pubdate']."' alt='".$locale['CLFP_006']." : ".$data['figure_pubdate']."'>".trimlink($data['figure_pubdate'],7)."</div>\n";
echo "</div>\n";
}
// COLUMN 7 (rating)
$drating = dbarray(dbquery("
SELECT
SUM(rating_vote) sum_rating,
COUNT(rating_item_id) count_votes
FROM ".DB_RATINGS."
WHERE rating_type='FI'
AND rating_item_id='".$data['figure_id']."'
"));
$rating = ($drating['count_votes'] > 0 ? str_repeat("<img src='".INFUSIONS."figurelib/images/starsmall.png'>",ceil($drating['sum_rating']/$drating['count_votes'])) : "-");
echo "<div class='col-lg-2 hidden-2 hidden-sm hidden-xs'>\n";
echo "<div class='side-small' title='".$locale['CLFP_010']."' alt='".$locale['CLFP_010']."'>".$rating."</div>\n";
echo "</div>\n";
// COLUMN 8 (edit)
echo "<div class='col-lg-1 col-md-1 col-sm-2 col-xs-2'>\n";
echo "<div class='side-small'>\n";
echo figures_displayMyCollectionForm($data['figure_id']);
echo "</div>\n";
echo "</div>\n";
echo "</div>\n";
}
// PAGE NAV
echo $info['page_nav'] ? "<div class='text-right'>".$info['page_nav']."</div>" : '';
echo "<hr>\n";
echo "<div align='center'>";
//echo "<a href='".INFUSIONS."figurelib/my_collection_csv.php'> Export to Excel</a>";
//echo " | <a href='".INFUSIONS."figurelib/my_collection_pdf_list.php'><i class='fa fa-file-pdf-o' aria-hidden='true'> Export to PDF (List)</i></a>";
echo " | ";
echo " <a href='".INFUSIONS."figurelib/my_collection_pdf_table.php'> Export to PDF (Table)</a>";
echo " | ";
echo "</div>\n";
}
}
Category Forum
Modifications and Requests - 9Labels
Statistics
1 participant
Notifications
You are not receiving notifications from this thread.
Related Questions