-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcharacter_sheet.php
66 lines (63 loc) · 2.86 KB
/
character_sheet.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?php
// Check if readonly variable is set
$readonly = isset($readonly) ? $readonly : '';
?>
<!-- HTML code for character sheet -->
<div class="container">
<div class="row">
<!-- First main column -->
<div class="col-sm">
<div class="row">
<!-- Nested columns in first main column -->
<div class="col-sm">
<div class="form-group">
<label for="name">Name</label>
<input type="text" id="name" class="form-control" value="<?php echo $character['name']; ?>" <?php echo $readonly; ?>>
</div>
</div>
<div class="col-sm">
<div class="form-group">
<label for="birthYear">Birth Year</label>
<input type="number" id="birthYear" class="form-control" value="<?php echo $character['birthYear']; ?>" <?php echo $readonly; ?>>
</div>
</div>
<div class="col-sm">
<div class="form-group">
<label for="age">Age</label>
<input type="number" id="age" class="form-control" value="<?php echo $character['age']; ?>" <?php echo $readonly; ?>>
</div>
</div>
</div>
</div>
<!-- Second main column -->
<div class="col-sm">
<div class="row">
<!-- Nested columns in second main column -->
<div class="col-sm">
<div class="form-group">
<label for="occupation">Occupation</label>
<input type="text" id="occupation" class="form-control" value="<?php echo $character['occupation']; ?>" <?php echo $readonly; ?>>
</div>
</div>
<div class="col-sm">
<div class="form-group">
<label for="ransom">Ransom</label>
<input type="number" id="ransom" class="form-control" value="<?php echo $character['ransom']; ?>" <?php echo $readonly; ?>>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="form-group">
<label for="str">Strength</label>
<input type="number" id="str" class="form-control" value="<?php echo $character['str']; ?>" <?php echo $readonly; ?>>
</div>
<div class="form-group">
<label for="dex">Dexterity</label>
<input type="number" id="dex" class="form-control" value="<?php echo $character['dex']; ?>" <?php echo $readonly; ?>>
</div>
<div class="form-check">
<input type="checkbox" id="strengthSpell" class="form-check-input" <?php echo $character['strengthSpell'] ? 'checked' : ''; ?> <?php echo $readonly; ?>>
<label class="form-check-label" for="strengthSpell">Strength Spell</label>
</div>