refactor display_export.lib.php

refactor display_export.lib.php