0byt3m1n1-V2
Path:
/
home
/
office2017v2.1
/
admin
/
[
Home
]
File: inside_all.php
<br> <?php $user_send=$_SESSION['ses_u_id']; ?> <form name="file" action="crud_paper.php" method="post" enctype="multipart/form-data" > <div class="form-group form-inline"> <label for="title">ชื่อเอกสาร:</label> <input class="form-control" type="text" name="title" size="60" placeholder="ใส่ชื่อเอกสาร" value="<?php print $title; ?>" required=""> </div> <div class="form-group form-inline"> <label for="to">ส่งถึง:</label> <input type="radio" value="1" name="toAll" onclick="setEnabledTo(this); document.getElementById('ckToA').style.display = 'none';" checked="">ทุกหน่วย <input type="radio" value="2" name="toSome" onclick="setEnabledTo(this); document.getElementById('ckToA').style.display = 'block';"> บางหน่วย <input type="text" name="toSomeUser" class="mytextboxLonger" style="width:373px;" readonly disabled> <img src="../images/visit.gif" width="26" height="26" onclick="document.getElementById('ckToA').style.display = 'block';" title="คลิกเลือกผู้รับ"> <div id="ckToA" style="display:none;"> <div class="alert-success" ><span class="badge">เลือกผู้รับ</span></div> <table border="0" cellspacing="0" cellpadding="0" width="50%" class="select_multiple_table" bgcolor="#FCFCFC"> <?php $sqlIN="SELECT sec_id,sec_name,dep_id FROM section WHERE dep_id=$dep_id "; //echo $sqlIN; $resultIN= mysqli_query($conn, $sqlIN); $numrowIN= mysqli_num_rows($resultIN); if(empty($numrowIN)){ ?> <tr> <td></td> <td><font color="#666666">ไม่มีข้อมูลหน่วยงานย่อย.</font></td> </tr> <?php }else{ $i=0; while ($rowIN=mysqli_fetch_assoc($resultIN)){ $i++; $a=$i%2; if($a==0){ ?> <tr class="even"> <?php }else{?> <tr class="odd"> <?php } ?> <td class="select_multiple_checkbox" width="24"><input type="checkbox" onclick="listOne(this,'<?php echo $rowIN['sec_id']?>')"></td> <td class="select_multiple_name"><?php print$rowIN['sec_name']?></td> </tr> <?php }} ?> </table> </div> </div> <div class="form-group form-inline"> <label for="fileupload">แนบไฟล์</label> <input type="file" name="fileupload" required> </div> <label>ไฟล์เอกสารที่ส่งได้:</label> <i class="fa fa-file-pdf-o"></i> <i class="fa fa-file-excel-o"></i> <i class="fa fa-file-word-o"></i> <i class="fa fa-file-zip-o"></i> <i class="fa fa-file-image-o"></i> <i class="fa fa-file-powerpoint-o"></i> <div class="form-group form-inline"> <label for="detail">รายละเอียด</label> <textarea name="detail" rows="3" cols="60">-</textarea> </div> <center> <div class="form-group"> <input type="hidden" name="file" value="<?php print $fileupload; ?>"/> <input type="hidden" name="dep_id" value="<?php print $dep_id; ?>"/> <input type="hidden" name="sec_id" value="<?php print $sec_id; ?>"/> <input type="hidden" name="user_id" id="user_id" value="<?php print $user_send; ?>"/> <input type="submit" name="send" class="btn btn-primary btn-lg" value="ส่งเอกสาร"/> </div> </center> </form>
©
2018.