}
                        }
                    }
                    echo '/>' . "\n";
                    echo '<label for="alt_' . $primary_resource_id . '_' . $resource_type['type_id'] . '">' . _AT($resource_type['type']) . '</label><br/>' . "\n";
                }
            }
            echo '    </td>' . "\n";
            // table cell "text alternative"
            display_alternative_cell($rows_secondary_resources, 3, $cid, $primary_resource_id, "header3");
            // table cell "audio"
            display_alternative_cell($rows_secondary_resources, 1, $cid, $primary_resource_id, "header4");
            // table cell "visual"
            display_alternative_cell($rows_secondary_resources, 4, $cid, $primary_resource_id, "header5");
            // table cell "sign language"
            display_alternative_cell($rows_secondary_resources, 2, $cid, $primary_resource_id, "header6");
            echo '  </tr>' . "\n";
        }
        echo '  </tbody>' . "\n";
        echo '</table>' . "\n";
    }
    echo '<br style="clear:both;"/>' . "\n";
    ?>

<script type="text/javascript">
//<!--
// This function does:
// 1. save the removal into db via ajax
// 2. set the according field to "add" button
function removeAlternative(contentPath, cid, pid, a_type) 
{
Example #2
0
                            }
                        }
                    }
                    echo '/>' . "\n";
                    echo '<label for="alt_' . $primary_resource_id . '_' . $resource_type['type_id'] . '">' . _AT($resource_type['type']) . '</label><br/>' . "\n";
                }
            }
            echo '    </td>' . "\n";
            // table cell "text alternative"
            display_alternative_cell($secondary_result, 3, $cid, $primary_resource_id, "header3");
            // table cell "audio"
            display_alternative_cell($secondary_result, 1, $cid, $primary_resource_id, "header4");
            // table cell "visual"
            display_alternative_cell($secondary_result, 4, $cid, $primary_resource_id, "header5");
            // table cell "sign language"
            display_alternative_cell($secondary_result, 2, $cid, $primary_resource_id, "header6");
            echo '  </tr>' . "\n";
        }
        echo '  </tbody>' . "\n";
        echo '</table>' . "\n";
    }
    echo '<br style="clear:both;"/>' . "\n";
    ?>

<script type="text/javascript">
//<!--
// This function does:
// 1. save the removal into db via ajax
// 2. set the according field to "add" button
function removeAlternative(contentPath, cid, pid, a_type) 
{