-
Notifications
You must be signed in to change notification settings - Fork 0
/
project_new.php
143 lines (101 loc) · 5.05 KB
/
project_new.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<?php include('database.php'); ?>
<div class="title"><h2>Neues Projekte</h2></div>
<div class="container">
<div class="wrapper">
<form id="contact-form" method="post" role="form" novalidate="true">
<div class="section_title">Projekt</div>
<div class="messages"></div>
<div class="controls">
<div class="form_project">
<div class="form-group">
<label for="form_project_name">Projektname</label>
<input id="form_project_name" type="text" name="form_project_name" class="form-control" placeholder="Projekt" data-error="Project Name is required." required='required'>
<div class="help-block with-errors"></div>
</div>
</div>
<div class="form_company">
<div class="form-group">
<label for="form_company">Firma</label>
<?php
$sql = "SELECT * FROM kunden";
$result = mysqli_query($conn, $sql);
echo "<select name='form_company' class='form-control' required='required' data-error='Firstname is required.'>";
while ($row = mysqli_fetch_assoc($result)) {
echo "<option value='" . $row['id'] . "'>" . $row['company'] . "</option>";
}
echo "</select>";
?>
<div class="help-block with-errors"></div>
</div>
</div>
<div class="form_names">
<div class="form-group">
<label for="form_start">Startdatum</label>
<input id="form_start" type="date" name="form_start" class="form-control" data-error="Startdate is required." required='required'>
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
<label for="form_deadline">Deadline</label>
<input id="form_deadline" type="date" name="form_deadline" class="form-control" data-error="Deadline is required." required='required'>
<div class="help-block with-errors"></div>
</div>
</div>
<div class="section_title">Positionen</div>
<div id="positions">
<div>Position Nr. 1</div>
<hr></hr>
<div>
<div class="form-group">
<input id="position_name_1" type="text" name="position_name_1" class="form-control" placeholder="Musterstraße 11" data-error="Position Name is required." required='required'>
<div class="help-block with-errors"></div>
</div>
</div>
<div class="form_names">
<div class="form-group">
<label for="form_priceclass_1">Preisklasse</label>
<?php
$sql = "SELECT * FROM priceclass";
$result = mysqli_query($conn, $sql);
echo "<select id ='form_priceclass_1' name='form_priceclass_1' class='form-control'>";
while ($row = mysqli_fetch_assoc($result)) {
echo "<option value='" . $row['id'] . "'>" . $row['priceclass_name'] . "</option>";
}
echo "</select>";
?>
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
<label for="form_est_hours_1">Zeitschätzung</label>
<input id="form_est_hours_1" type="number" step="0.25" name="form_est_hours_1" class="form-control" placeholder="Musterstraße 11" data-error="Time is required." required='required'>
<div class="help-block with-errors"></div>
</div>
</div>
</div>
<div class="row">
<btn id="add_position_form" class="btn_add_position">Neue Position</button>
</div>
<div class="section_title">Weiteres</div>
<div class="row">
<div class="form-group">
<label form="form_memo">Memo</label>
<textarea id="form_memo" name="memo" class="form-control" placeholder="Kundenmemos ..." rows="5"></textarea>
<div class="help-block with-errors"></div>
</div>
</div>
<div class="row form_checkboxes form-group">
<div>
<div class="help-block with-errors"></div>
</div>
</div>
<div class="row">
<button type="submit" class="btn btn-send btn-block disabled" value="Send message">Speichern</button>
</div>
<div class="row">
<p class="text-muted"><strong>*</strong> Eingabe erforderlich.</p>
</div>
</div>
<input type="hidden" name="new_project" value="new">
<input type="hidden" id="project_positions" name="project_positions" value="1">
</form>
</div>
</div>