-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathform.php
26 lines (23 loc) · 916 Bytes
/
form.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
<form class="" action="" method="post" data-toggle="validator">
<table class="table table-bordered table-striped form-table">
<input type="hidden" name="id" value="<<?=$mark?>=$row['id']?>">
<tbody>
<?php foreach ($cols as $col):?><tr>
<th><?=$col['colCn']?></th>
<td>
<input type="text" class="form-control" name="<?=$col['col']?>" value="<<?=$mark?>=$row['<?=$col['col']?>']?>" <?php if(strpos($col['form'],'R')!==false): ?>required<?php endif; ?> />
</td>
</tr>
<?php endforeach;?>
<tr>
<td></td>
<td colspan="3">
<button type="submit" class="btn btn-primary">确认提交</button>
</td>
</tr>
</tbody>
</table>
</form>
<script type="text/javascript">
$(function() {})
</script>