芝麻web文件管理V1.00
编辑当前文件:/home/disqkgca/public_html/cargo/updatefinalrecord.php
ID; $recordid = $_GET['rid']; $row = $wpdb->get_row( "SELECT * FROM kn_cargo where id = '".$recordid."' ",ARRAY_A ); if(isset($_POST['save'])) { $finalbox = $_POST['finalbox']; $finalrecieptcomment = $_POST['finalrecieptcomment']; $recordid = $_POST['recordid']; $finalrecieptfile = ''; $todate = date("Y-m-d H:i:s"); $departureid =$_POST['departureid']; if($_FILES['finalrecieptfile']['name']!='') { if ( ! function_exists( 'wp_handle_upload' ) ) require_once( ABSPATH . 'wp-admin/includes/file.php' ); $uploadedfile = $_FILES['finalrecieptfile']; $upload_overrides = array( 'test_form' => false ); $movefile = wp_handle_upload( $uploadedfile, $upload_overrides ); $uploadfileurl = $movefile['url']; $finalrecieptfile = $uploadfileurl; } $success = $wpdb->update( 'kn_cargo', array( 'finalrecieptid' => $userid, 'finalbox' => $finalbox, 'finalrecieptdate' => $todate, 'finalrecieptcomment' => $finalrecieptcomment, 'finalrecieptfile' => $finalrecieptfile, 'processclose' => $finalbox ), array( 'id' => $recordid ), array( '%s', // value1 '%s', '%s', '%s', '%s' // value2 ), array( '%d' ) ); if($success) { //echo "upload"; header("location:https://disqinc.co.uk/cargo/final-delivery-list/?d=$departureid&q=$recordid"); } else { ?>
Box has not been upadated. Please try again later.
Delivery Box:
*
selected="selected" >Yes
selected="selected" >No
Comments(if any)
</textarea>
Upload Image:
View Image
Back
Update