Beispiel #1
0
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php 
echo $strFields . ' ' . $strEnclosedBy;
?>
&nbsp;
                    <input type="text" name="enclosed" size="1" value="&quot;" />&nbsp;&nbsp;<br />
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php 
echo $strFields . ' ' . $strEscapedBy;
?>
&nbsp;
                    <input type="text" name="escaped" size="2" value="\" />&nbsp;&nbsp;<br />
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php 
echo $strLines . ' ' . $strTerminatedBy;
?>
&nbsp;
                    <input type="text" name="add_character" size="2" value="<?php 
echo which_crlf() == "\n" ? '\\n' : '\\r\\n';
?>
" />&nbsp;&nbsp;
                </td>
                <td valign="middle">
                    <input type="checkbox" name="drop" value="1" />
                    <?php 
echo $strStrucDrop;
?>
<br />
                    <input type="checkbox" name="showcolumns" value="yes" />
                    <?php 
echo $strCompleteInserts;
?>
<br />
                    <input type="checkbox" name="extended_ins" value="yes" />
    $the_crlf = "\n";
    // The 'USR_OS' constant is defined in "./libraries/defines.lib.php"
    // Win case
    if (USR_OS == 'Win') {
        $the_crlf = "\r\n";
    } else {
        if (USR_OS == 'Mac') {
            $the_crlf = "\r";
        } else {
            $the_crlf = "\n";
        }
    }
    return $the_crlf;
}
@set_time_limit(600);
$crlf = which_crlf();
/**
 * Send headers depending on whether the user choosen to download a dump file
 * or not
 */
$reportHeader = "\"Tracking hours\"" . $crlf;
if ($dateRange) {
    if ($query != "") {
        $query .= "AND (tim.date >= '{$s_sdate2}'  AND tim.date <= '{$s_edate2}')";
    } else {
        $query .= "WHERE (tim.date >= '{$s_sdate2}'  AND tim.date <= '{$s_edate2}')";
    }
    $reportHeader = "\"Tracking hours from {$s_sdate2} to {$s_edate2}\"" . $crlf;
}
// a member selection was made
if ($S_mem != 'ALL' && $S_mem != "") {