Changeset 15969
- Timestamp:
- Dec 31, 2007, 10:54:00 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippMonitor/scripts/generate (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippMonitor/scripts/generate
r15954 r15969 217 217 ($type, $line) = split (" ", $code[$i], 2); 218 218 if ($type eq "PHP") { 219 print fFILE "$line\n";219 print FILE "$line\n"; 220 220 } 221 221 if ($type eq "HTML") { 222 print fFILE "?> $line <?\n";222 print FILE "?> $line <?\n"; 223 223 } 224 224 } … … 232 232 ($label, $value, $string) = &parse_label ($show[$i]); 233 233 if ($show[$i] eq "none") { next; } 234 # print fFILE "echo \"<th class=\\\"list\\\"> $name[$i] </th>\\n\";\n";234 # print FILE "echo \"<th class=\\\"list\\\"> $name[$i] </th>\\n\";\n"; 235 235 if ($label eq "op") { 236 print fFILE "write_table_header (\"list\", \"$name[$i]\", \"$opf{$value}\", \$buttonLink, \$ID, '$myFile');\n";236 print FILE "write_table_header (\"list\", \"$name[$i]\", \"$opf{$value}\", \$buttonLink, \$ID, '$myFile');\n"; 237 237 } else { 238 print fFILE "write_table_header (\"list\", \"$name[$i]\", \"$field[$i]\", \$buttonLink, \$ID, '$myFile');\n";238 print FILE "write_table_header (\"list\", \"$name[$i]\", \"$field[$i]\", \$buttonLink, \$ID, '$myFile');\n"; 239 239 } 240 240 } … … 252 252 $field = &parse_fieldname ($field); 253 253 254 print fFILE " if ($field $testline) {\n";255 print fFILE " \$class = \"$class\";\n";256 print fFILE " }\n";254 print FILE " if ($field $testline) {\n"; 255 print FILE " \$class = \"$class\";\n"; 256 print FILE " }\n"; 257 257 } 258 258 } … … 262 262 263 263 if ($WHERE) { 264 print fFILE "\$WHERE = \"WHERE $WHERE\";\n";264 print FILE "\$WHERE = \"WHERE $WHERE\";\n"; 265 265 } 266 266 for ($i = 0; $i < @field; $i++) { 267 267 $value = $field[$i]; 268 268 if ($value eq "*") { next; } 269 print fFILE "\$WHERE = check_restrict ('$value', \$WHERE);\n";270 } 271 print fFILE "\$WHERE = check_ordering (\$WHERE);\n";269 print FILE "\$WHERE = check_restrict ('$value', \$WHERE);\n"; 270 } 271 print FILE "\$WHERE = check_ordering (\$WHERE);\n"; 272 272 } 273 273 … … 278 278 $value = $field[$i]; 279 279 if ($value eq "*") { next; } 280 print fFILE "\$buttonLink = button_restrict ('$value', \$buttonLink);\n";280 print FILE "\$buttonLink = button_restrict ('$value', \$buttonLink);\n"; 281 281 } 282 282 } … … 296 296 # create the basic link variable 297 297 if ($link[$i]) { 298 print fFILE " \$link = \"$link[$i]\" . \"?menu=$MENU&\" . \$ID['link'];\n";298 print FILE " \$link = \"$link[$i]\" . \"?menu=$MENU&\" . \$ID['link'];\n"; 299 299 # add extra GET data to target 300 300 if ($extras[$i]) { &parse_extras ($linkarg{$extras[$i]}); } … … 312 312 # create the basic link variable 313 313 if ($link[$i]) { 314 print fFILE " \$link = \"$link[$i]\" . \"?menu=$MENU&\" . \$ID['link'];\n";314 print FILE " \$link = \"$link[$i]\" . \"?menu=$MENU&\" . \$ID['link'];\n"; 315 315 # add extra GET data to target 316 316 if ($extras[$i]) { &parse_extras ($linkarg{$extras[$i]}); } … … 325 325 if (($label eq "image") && !$link[$i]) { 326 326 # print the actual table cell line with the image... 327 printf FILE " echo \"<td class=\\\"\$class\\\"><img src=\\\"$image{$value}\\\"></td>\\n\";\n"; 327 print FILE " echo \"<td class=\\\"\$class\\\">\n"; 328 print FILE " echo \" <img src=\\\"$image{$value}\\\"></td>\\n\";\n"; 328 329 next; 329 330 } … … 331 332 if (($label eq "image") && $link[$i]) { 332 333 # create the basic link 333 print fFILE " \$link = \"$link[$i]\" . \"?menu=$MENU&\" . \$ID['link'];\n";334 print FILE " \$link = \"$link[$i]\" . \"?menu=$MENU&\" . \$ID['link'];\n"; 334 335 # add extra php data to target 335 336 if ($extras[$i]) { &parse_extras ($linkarg{$extras[$i]}); } 336 337 # print the actual table cell line with the link... 337 print fFILE " echo \"<td class=\\\"\$class\\\"><a href=\\\"\$link\\\"> <img src=\\\"$image{$value}\\\"> </a></td>\\n\";\n";338 print FILE " echo \"<td class=\\\"\$class\\\"><a href=\\\"\$link\\\"> <img src=\\\"$image{$value}\\\"> </a></td>\\n\";\n"; 338 339 next; 339 340 } … … 347 348 if ($field[$i] eq "*") { 348 349 # * fields create an empty cell 349 print fFILE "echo \"<td> </td>\\n\";\n";350 print FILE "echo \"<td> </td>\\n\";\n"; 350 351 } else { 351 print fFILE "write_query_row ('$field[$i]', $width[$i]);\n";352 print FILE "write_query_row ('$field[$i]', $width[$i]);\n"; 352 353 } 353 354 } … … 408 409 for ($i = 0; $i < @extfields; $i++) { 409 410 ($label, $value, $outline) = &parse_label ($extfields[$i]); 410 print fFILE " \$link = \$link . \"&$outline\";\n";411 print FILE " \$link = \$link . \"&$outline\";\n"; 411 412 } 412 413 }
Note:
See TracChangeset
for help on using the changeset viewer.
