Changeset 20153
- Timestamp:
- Oct 14, 2008, 3:34:05 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/pstamp/web/request.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pstamp/web/request.php
r18987 r20153 68 68 $require_class_id = 0; 69 69 70 $rvar_user_tag="";71 70 $rvar_select_by = ""; 72 71 $rvar_img_type = ""; … … 181 180 // HERE is the logic for running the various commands 182 181 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? 184 183 // Well, in that case rvar_img_type is not set so key off of that 185 184 // TODO: find a better way to decide whether or not to run commands … … 205 204 $jobRunning = getRequestStatus(); 206 205 if (!$jobRunning) { 206 // echo "1 getRequestStatus reuturned 0\n"; 207 207 $jobFinished = 1; 208 208 $request_id = 0; … … 222 222 223 223 if (!$jobRunning) { 224 // echo "2 getRequestStatus reuturned 0\n"; 224 225 $jobFinished = 1; 225 226 $request_id = 0; … … 239 240 function build_request_cmd() 240 241 { 241 global $rvar_project , $rvar_user_tag;242 global $rvar_project; 242 243 global $sky_checked, $rsky_checked; 243 244 global $list_checked; … … 276 277 $cmd .= " --project $rvar_project"; 277 278 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"; 285 282 } 286 283 … … 487 484 $command_line .= " -dbname $dbname"; 488 485 } 486 // echo "Running $command_line\n"; 487 489 488 run_command($command_line); 490 489 if ($command_status == 0) { … … 612 611 </td> 613 612 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> <b>Stamp Name:</b> <input type="text" name="user_tag" size=20 value=<?php echo $rvar_user_tag; ?> ></td>622 613 </tr> 623 614
Note:
See TracChangeset
for help on using the changeset viewer.
