示例#1
0
                <td class='spacer'>&nbsp;</td>
                <td width="120">Attention</td><td><input type="text" name="attention" id="attention" size="55" value=""  /></td>
                 <td class='spacer'>&nbsp;</td>
        </tr>
        <tr>
                <td class='spacer'>&nbsp;</td>
                <td width="120">Kansai Contact</td><td>
                
                <!--<input type="text" name="contact" id="contact" size="55" value=""  />-->
                <select name="contact" id="contact">
                	<option value=''>-- Select sales personnel --</option> 
                    <?php 
$process = new DataProcess();
$process->settings();
$process->salespersonnel();
$process->disconnectDb();
?>
                </select>
                
                </td>
                 <td class='spacer'>&nbsp;</td>
        </tr> 
       <tr>
                <td class='spacer'>&nbsp;</td>
                <td width="120">Business Type</td><td>&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="sg" id="sg1" value="Supply" class='sc'/>&nbsp;Supply&nbsp;<input type="radio" name="sg"  id="sg2" value="Supply & Apply" class='sc'/>Supply & Apply&nbsp;</td>
                 <td class='spacer'>&nbsp;</td>
        </tr>
         <tr>
                <td class='spacer'>&nbsp;</td>
                <td width="120">Inquiry Ref</td><td><input type="text" name="reference_inquiry" id="reference_inquiry" size="55" value=""  /></td>
                 <td class='spacer'>&nbsp;</td>
    header("Content-Disposition: attachment; filename=\"" . $zipname . "\"");
    header("Content-Transfer-Encoding: binary");
    set_time_limit(0);
    ob_end_flush();
    @readfile($zipname);
    /*
    $download_rate = 20.5;
    header('Cache-control: private');
        header('Content-Type: application/octet-stream');
        header('Content-Length: '.filesize($zipname));
        header('Content-Disposition: filename='.$zipname);
    
    
        flush();
        $file = fopen($zipname, "r");
        while(!feof($file))
        {
            // send the current file part to the browser
            print fread($file, round($download_rate * 1024));
            // flush the content to the browser
            flush();
            // sleep one second
            sleep(1);
        }
        fclose($file);
    */
    $dataprocess->Log($_SESSION['fullname'], $_SESSION['user_log'], $file);
    $dataprocess->disconnectDb();
} else {
    exit("Could not find Zip file to download");
}