0byt3m1n1-V2
Path:
/
home
/
office2017v2.1
/
admin
/
[
Home
]
File: show_resive_detail.php
<?php date_default_timezone_set('Asia/Bangkok'); // $u_id=$_SESSION['ses_u_id']; include "function.php"; require_once 'crud_flowresive.php'; ?> <?php $u_id=$_POST['u_id']; $cid=$_POST['cid']; // $edit=$_GET['edit']; // echo "u_id:".$u_id."<br>"; // echo "cid:".$cid."<br>"; // echo "edit:".$edit; $sqlDetail=" SELECT f.cid,f.prefex,f.rec_no,f.title,s.sec_name,o.obj_name,sp.speed_name,f.refer,f.attachment,f.practice, f.dateout,f.dateline,f.sendfrom,f.sendto,u.firstname,sec.sec_name,d.dep_name,sy.yname,f.status,f.file_upload FROM flowrecive f INNER JOIN user u ON u.u_id=$u_id INNER JOIN section sec ON u.sec_id=sec.sec_id INNER JOIN depart d ON sec.dep_id=d.dep_id INNER JOIN sys_year sy ON f.yid=sy.yid INNER JOIN secret s ON f.sec_id=s.sec_id INNER JOIN object o ON f.obj_id=o.obj_id INNER JOIN speed sp on f.speed_id=sp.speed_id WHERE f.cid=$cid ORDER BY f.rec_no DESC "; //echo $sqlDetail; $resDetail= mysqli_query($conn, $sqlDetail); $rowDetail= mysqli_fetch_array($resDetail); $status=$rowDetail['status']; $strDate= $rowDetail['dateout']; $dateThai= DateThai($strDate); $paper=$rowDetail['file_upload']; ?> <!-- <div class="well"> --> <center> <form name="edit" action="crud_flowresive.php" method="post" enctype="multipart/form-data"> <table width="auto" border="0"> <tr> <td width="150"><kbd>เลขที่เอกสาร</kbd></td> <td><label name="prefex" id="under"><?php print $rowDetail['prefex'];print $rowDetail['rec_no'] ?></label></td> </tr> <tr> <td><kbd>เอกสารลงวันที่</kbd></td> <td><input disabled="" type="text" class="form-group-sm" id="under" value="<?php print $rowDetail['dateline']; ?>" ></td> <td><kbd>วัน-เวลาที่บันทึก:</kbd><input disabled="" type="text" class="form-group-sm" id="under" value="<?php print $dateThai; ?>"></td> </tr> <tr> <td><kbd>ผู้ส่ง</kbd></td> <td colspan="3"><input disabled="" type="text" class="form-group-sm" id="under" size="80" value="<?php print $rowDetail['sendfrom']; ?>"></td> </tr> <tr> <td><kbd>ผู้รับ</kbd></td> <td colspan="3"><input disabled="" type="text" class="form-group-sm" id="under" size="80" value="<?php print $rowDetail['sendto']; ?>"></td> </tr> <tr> <td><kbd>เรื่อง</kbd></td> <td colspan="3"><textarea disabled="" id="under" cols="100" rows="3"><?php print $rowDetail['title'];?></textarea></td> </tr> <tr> <td><kbd>ชั้นความลับ</kbd></td> <td><input disabled="" type="text" id="under" value="<?php print $rowDetail[4];?>"></label></td> <td><kbd>ชั้นความเร็ว</kbd><input disabled="" type="text" id="under" value="<?php print $rowDetail['speed_name'];?>"></td> </tr> <tr> <td><kbd>วัตถุประสงค์</kbd></td> <td><input disabled="" type="text" id="under" value="<?php print $rowDetail['obj_name'];?>"></td> <td><kbd>สถานะ</kbd><input disabled="" type="text" id="under" value="<?php print $staTex;?>"></td> <td></td> </tr> <tr> <td><kbd>อ้างถึง</kbd></td> <td colspan="3"><textarea disabled="" id="under" cols="100"> <?php print $rowDetail['refer'];?></textarea></td> </tr> <tr> <td><kbd>สิ่งที่ส่งมาด้วย</kbd></td> <td colspan="3"><textarea disabled="" id="under" cols="100"><?php print $rowDetail['attachment'];?></textarea></td> </tr> <tr> <td><kbd>ผู้ปฏิบัติ</kbd></td> <td><label id="under"><?php print $rowDetail['practice'];?></label></td> <td colspan="2"><label id="under"><?php print $rowDetail['dep_name'];?></label></td> </tr> <tr> <td><kbd>ผู้บันทึก</kbd></td> <td><label id="under"><?php print $rowDetail['firstname'];?></label></td> <td colspan="2"><label id="under"><?php print $rowDetail['sec_name'];?></label></td> </tr> <tr> <td><kbd>แนบเอกสาร</kbd></td> <td> <input type="file" name="fileupload"> <input type="hidden" name="cid" value="<?php echo $cid;?>"> </td> <?php if($paper==null){ echo "<td colspan='2'><label>ไฟล์แนบ [ไม่มี]</label> </td>"; }else{?> <td colspan="2"> <kbd>ไฟล์แนบ</kbd> <a class="btn btn-success" href="<?php print $rowDetail['file_upload']; ?>" target="_blank" ><i class="fa fa-download"></i>คลิกเพื่อดาวน์โหลด</a></td> <?php } ?> </tr> </table> <center><input type="submit" class="btn btn-primary" value="บันทึกข้อมูล" name="update"> </form> <!-- </form> --> </center> <!-- </div> --> <!-- form send -->
©
2018.