IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 20153


Ignore:
Timestamp:
Oct 14, 2008, 3:34:05 PM (18 years ago)
Author:
bills
Message:

drop stamp name

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pstamp/web/request.php

    r18987 r20153  
    6868$require_class_id = 0;
    6969
    70 $rvar_user_tag="";
    7170$rvar_select_by = "";
    7271$rvar_img_type = "";
     
    181180// HERE is the logic for running the various commands
    182181
    183 // How do we know? Well if we aren't running the initial get of the web page?
     182// How do we know whether or not this is the intial page load or not?
    184183// Well, in that case rvar_img_type is not set so key off of that
    185184// TODO: find a better way to decide whether or not to run commands
     
    205204                $jobRunning = getRequestStatus();
    206205                if (!$jobRunning) {
     206                  //   echo "1  getRequestStatus reuturned 0\n";
    207207                    $jobFinished = 1;
    208208                    $request_id = 0;
     
    222222
    223223            if (!$jobRunning) {
     224               //  echo "2  getRequestStatus reuturned 0\n";
    224225                $jobFinished = 1;
    225226                $request_id = 0;
     
    239240function build_request_cmd()
    240241{
    241     global $rvar_project, $rvar_user_tag;
     242    global $rvar_project;
    242243    global $sky_checked, $rsky_checked;
    243244    global $list_checked;
     
    276277    $cmd .= " --project $rvar_project";
    277278
    278     if (!$rvar_user_tag) {
    279         if ($making_stamps) {
    280             throw new Exception('Stamp Name must be specified.');
    281         }
    282         $cmd .= " -stamp_name temp_tag";
    283     } else {
    284         $cmd .= " -stamp_name $rvar_user_tag";
     279    if ($making_stamps) {
     280        // TODO: put options on the GUI for these
     281        $cmd .= " -mask -weight";
    285282    }
    286283
     
    487484        $command_line .= " -dbname $dbname";
    488485    }
     486    // echo "Running $command_line\n";
     487
    489488    run_command($command_line);
    490489    if ($command_status == 0) {
     
    612611</td>
    613612
    614 </tr>
    615 
    616 <!-- third row of table just contains a blank column followed by the user tag input -->
    617 <tr>
    618 <!-- blank label -->
    619 <td width=20% > </td>
    620 <!-- user tag input text -->
    621 <td>&nbsp;<b>Stamp Name:</b>&nbsp;<input type="text" name="user_tag" size=20 value=<?php echo $rvar_user_tag; ?> ></td>
    622613</tr>
    623614
Note: See TracChangeset for help on using the changeset viewer.