forked from science-ation/science-ation
Don't show local "Download additional mateirals" link for external awards.
This commit is contained in:
parent
a55dd4b9be
commit
6f22c31be3
@ -120,6 +120,7 @@ case 'award_load':
|
||||
award_awards.order AS awards_order,
|
||||
award_awards.per_fair,
|
||||
award_awards.external_additional_materials,
|
||||
award_awards.award_source_fairs_id,
|
||||
award_types.type
|
||||
FROM
|
||||
award_awards ,
|
||||
@ -155,6 +156,7 @@ case 'edit_load':
|
||||
award_awards.order AS awards_order,
|
||||
award_awards.per_fair,
|
||||
award_awards.external_additional_materials,
|
||||
award_awards.award_source_fairs_id,
|
||||
award_types.type
|
||||
FROM
|
||||
award_awards ,
|
||||
@ -391,6 +393,7 @@ $q=mysql_query("SELECT
|
||||
award_awards.order AS awards_order,
|
||||
award_awards.per_fair,
|
||||
award_awards.external_additional_materials,
|
||||
award_awards.award_source_fairs_id,
|
||||
award_types.type,
|
||||
sponsors.organization
|
||||
FROM
|
||||
@ -484,7 +487,7 @@ function print_award(&$r, $fairs_id, $editor=false, $editor_data=array())
|
||||
`order`");
|
||||
echo mysql_error();
|
||||
|
||||
if($r['external_additional_materials'] == 1 && $editor==false) {
|
||||
if($r['external_additional_materials'] == 1 && $editor==false && $r['award_source_fairs_id'] == NULL) {
|
||||
echo "<div align=\"right\">";
|
||||
echo "<a href=\"{$_SERVER['PHP_SELF']}?action=additional_materials&award_awards_id={$r['id']}&fairs_id={$fairs_id}\" target=\"_blank\">";
|
||||
echo "<button>".i18n('Download Additional Materials').'</button></a><br/>';
|
||||
|
Loading…
Reference in New Issue
Block a user