You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

45 lines
1.5 KiB

<?php
exit;
include "header.php";
$id = isset($_GET['id']) ? $_GET['id'] : die('ERROR: Record ID not found.');
$db_query = "select * from form_list where id = '$id'";
$data = mysqli_query($link, $db_query);
foreach($data as $data) :
?>
<script>
$(function(){
//$('#seq').keyup(function(){ $(this).val($(this).val().replace(/\D/g, "").replace(/\B(?=(\d{3})+(?!\d))/g, ",")); })
});
</script>
<div class="container">
<form class="form-inline" method="post" action="forms-record-update.php" enctype="multipart/form-data">
<div>
<label for="title">表單名稱</label>
<input type="text" name="title" id="title" size="30" maxlength="25" value="<?php echo $data['title']; ?>" required>
</div>
<!--<div>
<label for="seq">順序</label>
<input type="text" name="seq" id="seq" size="1" maxlength="1" value="<?php echo $data['seq']; ?>" required>
</div>-->
<div>
<label for="attatch1">檔案上傳</label>
<a href="<?php echo $data['path']; ?>" target="_blank"><?php echo str_replace("/wms/public-forms/","",$data['path']); ?></a>
<div>
<input type="file" name="attatch1" id="attatch1">
</div>
</div>
<div>
<br>
<button type="submit" name="update" id="update">確定</button>
</div>
<input type="hidden" name="id" value="<?php echo $id; ?>">
</form>
</div>
<?php
endforeach;
include "footer.php";
?>