Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
universe:earth:officers2 [ 9 Feb 2008 21:20] – james | universe:earth:officers2 [ 9 Feb 2008 21:28] (current) – james | ||
---|---|---|---|
Line 3: | Line 3: | ||
<php> | <php> | ||
// work out how many officers to promote. | // work out how many officers to promote. | ||
- | // $Ensigns = rand(1, | + | $Ensigns = rand(1, |
- | // $Lts = $Ensigns + rand(1, | + | $Lts = $Ensigns + rand(1, |
- | // $LtCdrs = $Lts + rand (0,10); | + | $LtCdrs = $Lts + rand (0,10); |
- | // $Cdrs = $LtCdrs + rand (0,8); | + | $Cdrs = $LtCdrs + rand (0,8); |
- | // $Capts = $Cdrs + rand (0,4); | + | $Capts = $Cdrs + rand (0,4); |
- | // $RAdms = $Capts + rand (0,1); | + | $RAdms = $Capts + rand (0,1); |
$apps = rand (6,200); | $apps = rand (6,200); | ||
$no = 590000; | $no = 590000; | ||
Line 16: | Line 16: | ||
$Ranks=array(" | $Ranks=array(" | ||
// set up a table inside a form so that the chosen applicants can be taken forwards to the next stage. | // set up a table inside a form so that the chosen applicants can be taken forwards to the next stage. | ||
- | echo "The following Officers have been promoted with effect from 3209.001 \n"; | + | echo "<p>The following Officers have been promoted with effect from 3209.001 \n"; |
- | echo "\n"; | + | echo " |
- | Echo "\^ Last 4 \^ | + | < |
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
$appl=1; | $appl=1; | ||
// for each applicant then roll the various dice and then set the variables | // for each applicant then roll the various dice and then set the variables | ||
Line 105: | Line 114: | ||
$no=rand(0, | $no=rand(0, | ||
- | echo "\| $no.$post.$gen.$Gender | + | echo "< |
$appl++; | $appl++; | ||
} while ($appl< | } while ($appl< | ||
+ | echo "</ | ||
</ | </ | ||