Exemplo n.º 1
0
 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;
 }