public function show_prsp_archive_page() { // Get first bit of static text $archivepage = self::get_script_text('archive-page-1.txt'); echo $archivepage; // Generate drop-down list of Template names for archiving Templates w/Attributes $temp_ids = ProspectTemplate::get_all_template_ids(0); foreach ($temp_ids as $tid) { echo '<option value="' . $tid . '">' . $tid . '</option>'; } $archivepage = self::get_script_text('archive-page-2.txt'); echo $archivepage; // Repeat Template names for command to archive all Records of a given Template type foreach ($temp_ids as $tid) { echo '<option value="' . $tid . '">' . $tid . '</option>'; } $archivepage = self::get_script_text('archive-page-3.txt'); echo $archivepage; $all_exhibits = ProspectExhibit::get_all_exhibit_defs(true); foreach ($all_exhibits as $xhbt) { echo '<option value="' . $xhbt->id . '">' . $xhbt->gen->l . '</option>'; } $archivepage = self::get_script_text('archive-page-4.txt'); echo $archivepage; }
<script src="<?php echo plugins_url('lib/d3.min.js', dirname(__FILE__)); ?> "></script> <script src="<?php echo plugins_url('js/map-hub.js', dirname(__FILE__)); ?> "></script> <script src="<?php echo plugins_url('js/view-exhibit.min.js', dirname(__FILE__)); ?> "></script> <?php $the_xhbt = new ProspectExhibit(true, get_the_ID(), true); if ($the_xhbt->inspect->modal->scOn) { echo '<script src="http://w.soundcloud.com/player/api.js"></script>'; } ?> <script> var prspdata = { ajax_url: <?php global $post; $blog_id = get_current_blog_id(); echo '"' . get_admin_url($blog_id, 'admin-ajax.php') . '"'; ?> , site_url: <?php echo '"' . site_url() . '"';