diff --git a/test_calendar_domains.php b/test_calendar_domains.php deleted file mode 100644 index c1ab47a5..00000000 --- a/test_calendar_domains.php +++ /dev/null @@ -1,62 +0,0 @@ - - -
- - - - \ No newline at end of file diff --git a/test_client_payments_by_invoice.php b/test_client_payments_by_invoice.php deleted file mode 100644 index 35ed9400..00000000 --- a/test_client_payments_by_invoice.php +++ /dev/null @@ -1,141 +0,0 @@ - $sb, 'o' => $o))); -// -////Paging -//if(isset($_GET['p'])){ -// $p = intval($_GET['p']); -// $record_from = (($p)-1)*$_SESSION['records_per_page']; -// $record_to = $_SESSION['records_per_page']; -//}else{ -// $record_from = 0; -// $record_to = $_SESSION['records_per_page']; -// $p = 1; -//} -// -//if(isset($_GET['q'])){ -// $q = mysqli_real_escape_string($mysqli,$_GET['q']); -//}else{ -// $q = ""; -//} -// -//if(!empty($_GET['sb'])){ -// $sb = mysqli_real_escape_string($mysqli,$_GET['sb']); -//}else{ -// $sb = "invoice_date"; -//} -// -//if(isset($_GET['o'])){ -// if($_GET['o'] == 'ASC'){ -// $o = "ASC"; -// $disp = "DESC"; -// }else{ -// $o = "DESC"; -// $disp = "ASC"; -// } -//}else{ -// $o = "DESC"; -// $disp = "ASC"; -//} -// -// -//$sql = mysqli_query($mysqli,"SELECT SQL_CALC_FOUND_ROWS * FROM invoices -// WHERE client_id = $client_id -// AND (invoice_number LIKE '%$q%') -// ORDER BY $sb $o LIMIT $record_from, $record_to"); -// -//$num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()")); -//$total_found_rows = $num_rows[0]; -//$total_pages = ceil($total_found_rows / 10); -// -//?> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/test_client_print_side_nav.php b/test_client_print_side_nav.php deleted file mode 100644 index f08cc415..00000000 --- a/test_client_print_side_nav.php +++ /dev/null @@ -1,250 +0,0 @@ - - \ No newline at end of file diff --git a/test_contacts.php b/test_contacts.php deleted file mode 100644 index dd93d03f..00000000 --- a/test_contacts.php +++ /dev/null @@ -1,183 +0,0 @@ - $sb, 'o' => $o))); - -//Paging -if(isset($_GET['p'])){ - $p = intval($_GET['p']); - $record_from = (($p)-1)*$_SESSION['records_per_page']; - $record_to = $_SESSION['records_per_page']; -}else{ - $record_from = 0; - $record_to = $_SESSION['records_per_page']; - $p = 1; -} - -if(isset($_GET['q'])){ - $q = mysqli_real_escape_string($mysqli,$_GET['q']); -}else{ - $q = ""; -} - -if(!empty($_GET['sb'])){ - $sb = mysqli_real_escape_string($mysqli,$_GET['sb']); -}else{ - $sb = "contact_name"; -} - -if(isset($_GET['o'])){ - if($_GET['o'] == 'ASC'){ - $o = "ASC"; - $disp = "DESC"; - }else{ - $o = "DESC"; - $disp = "ASC"; - } -}else{ - $o = "ASC"; - $disp = "DESC"; -} - -$sql = mysqli_query($mysqli,"SELECT SQL_CALC_FOUND_ROWS * FROM contacts, clients WHERE contacts.client_id = clients.client_id AND contacts.company_id = $session_company_id AND (contact_name LIKE '%$q%') ORDER BY $sb $o LIMIT $record_from, $record_to"); - -$num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()")); -$total_found_rows = $num_rows[0]; -$total_pages = ceil($total_found_rows / 10); - -?> - -| Name | -Client | -Title | -Phone | -Action | -|
|---|---|---|---|---|---|
|
-
-
-
- - - - - - |
- - | - | - |
-
-
- - - - - - - |
-
-
-
-
-
-
-
-
- |
-
| - | Jan-Mar | -Apr-Jun | -Jul-Sep | -Oct-Dec | -Total | -
|---|---|---|---|---|---|
Income |
- - | ||||
| - - - - | $ | - - - -$ | - - - -$ | - - - -$ | - -$ | -
| Gross Profit | - 0 AND YEAR(revenue_date) = $year AND MONTH(revenue_date) = $month AND revenues.company_id = $session_company_id"); - $row = mysqli_fetch_array($sql_revenues); - $revenue_total_amount_for_month = $row['revenue_total_amount_for_month']; - - $payment_total_amount_for_month = $payment_total_amount_for_month + $revenue_total_amount_for_month; - - $payment_total_amount_for_quarter_one = $payment_total_amount_for_quarter_one + $payment_total_amount_for_month; - } - - ?> - -$ | - - 0 AND YEAR(revenue_date) = $year AND MONTH(revenue_date) = $month AND revenues.company_id = $session_company_id"); - $row = mysqli_fetch_array($sql_revenues); - $revenue_total_amount_for_month = $row['revenue_total_amount_for_month']; - - $payment_total_amount_for_month = $payment_total_amount_for_month + $revenue_total_amount_for_month; - - $payment_total_amount_for_quarter_two = $payment_total_amount_for_quarter_two + $payment_total_amount_for_month; - } - - ?> - -$ | - - 0 AND YEAR(revenue_date) = $year AND MONTH(revenue_date) = $month AND revenues.company_id = $session_company_id"); - $row = mysqli_fetch_array($sql_revenues); - $revenue_total_amount_for_month = $row['revenue_total_amount_for_month']; - - $payment_total_amount_for_month = $payment_total_amount_for_month + $revenue_total_amount_for_month; - - $payment_total_amount_for_quarter_three = $payment_total_amount_for_quarter_three + $payment_total_amount_for_month; - } - - ?> - -$ | - - 0 AND YEAR(revenue_date) = $year AND MONTH(revenue_date) = $month AND revenues.company_id = $session_company_id"); - $row = mysqli_fetch_array($sql_revenues); - $revenue_total_amount_for_month = $row['revenue_total_amount_for_month']; - - $payment_total_amount_for_month = $payment_total_amount_for_month + $revenue_total_amount_for_month; - - $payment_total_amount_for_quarter_four = $payment_total_amount_for_quarter_four + $payment_total_amount_for_month; - } - - $total_payments_for_all_four_quarters = $payment_total_amount_for_quarter_one + $payment_total_amount_for_quarter_two + $payment_total_amount_for_quarter_three + $payment_total_amount_for_quarter_four; - - ?> - -$ | - -$ | -
Expenses |
- - | ||||
| - - - - | $ | - - - -$ | - - - -$ | - - - -$ | - -$ | -
| Total Expenses |
- 0 AND YEAR(expense_date) = $year AND MONTH(expense_date) = $month AND vendor_id > 0 AND company_id = $session_company_id");
- $row = mysqli_fetch_array($sql_expenses);
- $expense_total_amount_for_quarter_one = $expense_total_amount_for_quarter_one + $row['expense_total_amount_for_month'];
- }
-
- ?>
-
- $ | - - 0 AND YEAR(expense_date) = $year AND MONTH(expense_date) = $month AND vendor_id > 0 AND company_id = $session_company_id"); - $row = mysqli_fetch_array($sql_expenses); - $expense_total_amount_for_quarter_two = $expense_total_amount_for_quarter_two + $row['expense_total_amount_for_month']; - } - - ?> - -$ | - - 0 AND YEAR(expense_date) = $year AND MONTH(expense_date) = $month AND vendor_id > 0 AND company_id = $session_company_id"); - $row = mysqli_fetch_array($sql_expenses); - $expense_total_amount_for_quarter_three = $expense_total_amount_for_quarter_three + $row['expense_total_amount_for_month']; - } - - ?> - -$ | - - 0 AND YEAR(expense_date) = $year AND MONTH(expense_date) = $month AND vendor_id > 0 AND company_id = $session_company_id"); - $row = mysqli_fetch_array($sql_expenses); - $expense_total_amount_for_quarter_four = $expense_total_amount_for_quarter_four + $row['expense_total_amount_for_month']; - } - - $total_expenses_for_all_four_quarters = $expense_total_amount_for_quarter_one + $expense_total_amount_for_quarter_two + $expense_total_amount_for_quarter_three + $expense_total_amount_for_quarter_four; - - ?> - -$ | - -$ | -
| Net Profit | -$ | -$ | -$ | -$ | -$ | -
| Category | -January | -February | -March | -April | -May | -June | -July | -August | -September | -October | -November | -December | -Total | -
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| - - - | $ | - - - -$ | -|||||||||||
| Total | - 0 AND YEAR(revenue_date) = $year AND MONTH(revenue_date) = $month AND revenues.company_id = $session_company_id"); - $row = mysqli_fetch_array($sql_revenues); - $revenues_total_amount_for_month = $row['revenue_amount_for_month']; - - $payment_total_amount_for_month = $payment_total_amount_for_month + $revenues_total_amount_for_month; - - - $total_payment_for_all_months = $payment_total_amount_for_month + $total_payment_for_all_months; - - ?> - -$ | - - -$ | -
| Date | -Description | -Payment Method | -Debit | -Credit | -Balance | -
|---|---|---|---|---|---|
| - | INV- | -- | $ | - -- | - |