mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
More Define canned date if not set. Prevents undefined errors Same as a48e302
This commit is contained in:
@@ -36,6 +36,12 @@
|
|||||||
$disp = "ASC";
|
$disp = "ASC";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(empty($_GET['canned_date'])){
|
||||||
|
//Prevents lots of undefined variable errors.
|
||||||
|
// $dtf and $dtt will be set by the below else to 0000-00-00 / 9999-00-00
|
||||||
|
$_GET['canned_date'] = 'custom';
|
||||||
|
}
|
||||||
|
|
||||||
//Date Filter
|
//Date Filter
|
||||||
if($_GET['canned_date'] == "custom" AND !empty($_GET['dtf'])){
|
if($_GET['canned_date'] == "custom" AND !empty($_GET['dtf'])){
|
||||||
$dtf = mysqli_real_escape_string($mysqli,$_GET['dtf']);
|
$dtf = mysqli_real_escape_string($mysqli,$_GET['dtf']);
|
||||||
|
|||||||
@@ -69,6 +69,12 @@ if($_GET['canned_date'] == "custom" AND !empty($_GET['dtf'])){
|
|||||||
$dtt = "9999-00-00";
|
$dtt = "9999-00-00";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(empty($_GET['canned_date'])){
|
||||||
|
//Prevents lots of undefined variable errors.
|
||||||
|
// $dtf and $dtt will be set by the below else to 0000-00-00 / 9999-00-00
|
||||||
|
$_GET['canned_date'] = 'custom';
|
||||||
|
}
|
||||||
|
|
||||||
//Rebuild URL
|
//Rebuild URL
|
||||||
$url_query_strings_sb = http_build_query(array_merge($_GET,array('sb' => $sb, 'o' => $o)));
|
$url_query_strings_sb = http_build_query(array_merge($_GET,array('sb' => $sb, 'o' => $o)));
|
||||||
|
|
||||||
|
|||||||
@@ -87,6 +87,12 @@
|
|||||||
$disp = "ASC";
|
$disp = "ASC";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(empty($_GET['canned_date'])){
|
||||||
|
//Prevents lots of undefined variable errors.
|
||||||
|
// $dtf and $dtt will be set by the below else to 0000-00-00 / 9999-00-00
|
||||||
|
$_GET['canned_date'] = 'custom';
|
||||||
|
}
|
||||||
|
|
||||||
//Invoice status from GET
|
//Invoice status from GET
|
||||||
if(isset($_GET['status']) && ($_GET['status']) == 'Draft'){
|
if(isset($_GET['status']) && ($_GET['status']) == 'Draft'){
|
||||||
$status = 'Draft';
|
$status = 'Draft';
|
||||||
@@ -100,7 +106,6 @@
|
|||||||
$status = '%';
|
$status = '%';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//Date Filter
|
//Date Filter
|
||||||
if($_GET['canned_date'] == "custom" AND !empty($_GET['dtf'])){
|
if($_GET['canned_date'] == "custom" AND !empty($_GET['dtf'])){
|
||||||
$dtf = mysqli_real_escape_string($mysqli,$_GET['dtf']);
|
$dtf = mysqli_real_escape_string($mysqli,$_GET['dtf']);
|
||||||
|
|||||||
6
logs.php
6
logs.php
@@ -36,6 +36,12 @@ if(isset($_GET['o'])){
|
|||||||
$disp = "ASC";
|
$disp = "ASC";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(empty($_GET['canned_date'])){
|
||||||
|
//Prevents lots of undefined variable errors.
|
||||||
|
// $dtf and $dtt will be set by the below else to 0000-00-00 / 9999-00-00
|
||||||
|
$_GET['canned_date'] = 'custom';
|
||||||
|
}
|
||||||
|
|
||||||
//Date Filter
|
//Date Filter
|
||||||
if($_GET['canned_date'] == "custom" AND !empty($_GET['dtf'])){
|
if($_GET['canned_date'] == "custom" AND !empty($_GET['dtf'])){
|
||||||
$dtf = mysqli_real_escape_string($mysqli,$_GET['dtf']);
|
$dtf = mysqli_real_escape_string($mysqli,$_GET['dtf']);
|
||||||
|
|||||||
@@ -36,11 +36,12 @@ if(isset($_GET['o'])){
|
|||||||
$disp = "ASC";
|
$disp = "ASC";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (empty($_GET['canned_date'])) {
|
if(empty($_GET['canned_date'])){
|
||||||
//Prevents lots of undefined variable errors.
|
//Prevents lots of undefined variable errors.
|
||||||
// $dtf and $dtt will be set by the below else to 0000-00-00 / 9999-00-00
|
// $dtf and $dtt will be set by the below else to 0000-00-00 / 9999-00-00
|
||||||
$_GET['canned_date'] = 'custom';
|
$_GET['canned_date'] = 'custom';
|
||||||
}
|
}
|
||||||
|
|
||||||
//Date Filter
|
//Date Filter
|
||||||
if($_GET['canned_date'] == "custom" AND !empty($_GET['dtf'])){
|
if($_GET['canned_date'] == "custom" AND !empty($_GET['dtf'])){
|
||||||
$dtf = mysqli_real_escape_string($mysqli,$_GET['dtf']);
|
$dtf = mysqli_real_escape_string($mysqli,$_GET['dtf']);
|
||||||
|
|||||||
@@ -38,6 +38,12 @@ if(isset($_GET['o'])){
|
|||||||
$disp = "ASC";
|
$disp = "ASC";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(empty($_GET['canned_date'])){
|
||||||
|
//Prevents lots of undefined variable errors.
|
||||||
|
// $dtf and $dtt will be set by the below else to 0000-00-00 / 9999-00-00
|
||||||
|
$_GET['canned_date'] = 'custom';
|
||||||
|
}
|
||||||
|
|
||||||
//Date Filter
|
//Date Filter
|
||||||
if($_GET['canned_date'] == "custom" AND !empty($_GET['dtf'])){
|
if($_GET['canned_date'] == "custom" AND !empty($_GET['dtf'])){
|
||||||
$dtf = mysqli_real_escape_string($mysqli,$_GET['dtf']);
|
$dtf = mysqli_real_escape_string($mysqli,$_GET['dtf']);
|
||||||
@@ -174,7 +180,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
|||||||
$quote_currency_code = $row['quote_currency_code'];
|
$quote_currency_code = $row['quote_currency_code'];
|
||||||
$quote_created_at = $row['quote_created_at'];
|
$quote_created_at = $row['quote_created_at'];
|
||||||
$client_id = $row['client_id'];
|
$client_id = $row['client_id'];
|
||||||
$client_name = $row['client_name'];
|
$client_name = htmlentities($row['client_name']);
|
||||||
$client_email = $row['client_email'];
|
$client_email = $row['client_email'];
|
||||||
$client_currency_code = $row['client_currency_code'];
|
$client_currency_code = $row['client_currency_code'];
|
||||||
$category_id = $row['category_id'];
|
$category_id = $row['category_id'];
|
||||||
|
|||||||
@@ -69,6 +69,12 @@ if($_GET['canned_date'] == "custom" AND !empty($_GET['dtf'])){
|
|||||||
$dtt = "9999-00-00";
|
$dtt = "9999-00-00";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(empty($_GET['canned_date'])){
|
||||||
|
//Prevents lots of undefined variable errors.
|
||||||
|
// $dtf and $dtt will be set by the below else to 0000-00-00 / 9999-00-00
|
||||||
|
$_GET['canned_date'] = 'custom';
|
||||||
|
}
|
||||||
|
|
||||||
//Rebuild URL
|
//Rebuild URL
|
||||||
$url_query_strings_sb = http_build_query(array_merge($_GET,array('sb' => $sb, 'o' => $o)));
|
$url_query_strings_sb = http_build_query(array_merge($_GET,array('sb' => $sb, 'o' => $o)));
|
||||||
|
|
||||||
|
|||||||
@@ -36,6 +36,12 @@ if(isset($_GET['o'])){
|
|||||||
$disp = "ASC";
|
$disp = "ASC";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(empty($_GET['canned_date'])){
|
||||||
|
//Prevents lots of undefined variable errors.
|
||||||
|
// $dtf and $dtt will be set by the below else to 0000-00-00 / 9999-00-00
|
||||||
|
$_GET['canned_date'] = 'custom';
|
||||||
|
}
|
||||||
|
|
||||||
//Date Filter
|
//Date Filter
|
||||||
if($_GET['canned_date'] == "custom" AND !empty($_GET['dtf'])){
|
if($_GET['canned_date'] == "custom" AND !empty($_GET['dtf'])){
|
||||||
$dtf = mysqli_real_escape_string($mysqli,$_GET['dtf']);
|
$dtf = mysqli_real_escape_string($mysqli,$_GET['dtf']);
|
||||||
|
|||||||
@@ -53,7 +53,7 @@
|
|||||||
|
|
||||||
//Date Filter
|
//Date Filter
|
||||||
|
|
||||||
if (empty($_GET['canned_date'])) {
|
if(empty($_GET['canned_date'])){
|
||||||
//Prevents lots of undefined variable errors.
|
//Prevents lots of undefined variable errors.
|
||||||
// $dtf and $dtt will be set by the below else to 0000-00-00 / 9999-00-00
|
// $dtf and $dtt will be set by the below else to 0000-00-00 / 9999-00-00
|
||||||
$_GET['canned_date'] = 'custom';
|
$_GET['canned_date'] = 'custom';
|
||||||
|
|||||||
@@ -39,6 +39,12 @@ if(isset($_GET['o'])){
|
|||||||
$disp = "ASC";
|
$disp = "ASC";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(empty($_GET['canned_date'])){
|
||||||
|
//Prevents lots of undefined variable errors.
|
||||||
|
// $dtf and $dtt will be set by the below else to 0000-00-00 / 9999-00-00
|
||||||
|
$_GET['canned_date'] = 'custom';
|
||||||
|
}
|
||||||
|
|
||||||
//Date Filter
|
//Date Filter
|
||||||
if($_GET['canned_date'] == "custom" AND !empty($_GET['dtf'])){
|
if($_GET['canned_date'] == "custom" AND !empty($_GET['dtf'])){
|
||||||
$dtf = mysqli_real_escape_string($mysqli,$_GET['dtf']);
|
$dtf = mysqli_real_escape_string($mysqli,$_GET['dtf']);
|
||||||
|
|||||||
@@ -69,6 +69,12 @@
|
|||||||
$dtt = "9999-00-00";
|
$dtt = "9999-00-00";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(empty($_GET['canned_date'])){
|
||||||
|
//Prevents lots of undefined variable errors.
|
||||||
|
// $dtf and $dtt will be set by the below else to 0000-00-00 / 9999-00-00
|
||||||
|
$_GET['canned_date'] = 'custom';
|
||||||
|
}
|
||||||
|
|
||||||
//Rebuild URL
|
//Rebuild URL
|
||||||
$url_query_strings_sb = http_build_query(array_merge($_GET,array('sb' => $sb, 'o' => $o)));
|
$url_query_strings_sb = http_build_query(array_merge($_GET,array('sb' => $sb, 'o' => $o)));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user