From c50a323c25a0787ba2051b19721983776a229615 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Thu, 5 Feb 2015 00:40:47 +0100 Subject: Initial commit --- include/404.php | 45 +++++++ include/about.php | 107 +++++++++++++++ include/assignments-edit.php | 59 +++++++++ include/assignments-new.php | 45 +++++++ include/assignments-overview.php | 170 ++++++++++++++++++++++++ include/assignments-view.php | 0 include/assignments.php | 98 ++++++++++++++ include/clients-edit.php | 42 ++++++ include/clients-new.php | 38 ++++++ include/clients-overview.php | 118 +++++++++++++++++ include/clients-view.php | 62 +++++++++ include/clients.php | 98 ++++++++++++++ include/contacts-edit.php | 65 ++++++++++ include/contacts-new.php | 47 +++++++ include/contacts-overview.php | 168 ++++++++++++++++++++++++ include/contacts.php | 98 ++++++++++++++ include/home.php | 274 +++++++++++++++++++++++++++++++++++++++ include/offers-edit.php | 59 +++++++++ include/offers-new.php | 39 ++++++ include/offers-overview.php | 169 ++++++++++++++++++++++++ include/offers-view.php | 130 +++++++++++++++++++ include/offers.php | 157 ++++++++++++++++++++++ 22 files changed, 2088 insertions(+) create mode 100644 include/404.php create mode 100644 include/about.php create mode 100644 include/assignments-edit.php create mode 100644 include/assignments-new.php create mode 100644 include/assignments-overview.php create mode 100644 include/assignments-view.php create mode 100644 include/assignments.php create mode 100644 include/clients-edit.php create mode 100644 include/clients-new.php create mode 100644 include/clients-overview.php create mode 100644 include/clients-view.php create mode 100644 include/clients.php create mode 100644 include/contacts-edit.php create mode 100644 include/contacts-new.php create mode 100644 include/contacts-overview.php create mode 100644 include/contacts.php create mode 100644 include/home.php create mode 100644 include/offers-edit.php create mode 100644 include/offers-new.php create mode 100644 include/offers-overview.php create mode 100644 include/offers-view.php create mode 100644 include/offers.php (limited to 'include') diff --git a/include/404.php b/include/404.php new file mode 100644 index 0000000..335ebf7 --- /dev/null +++ b/include/404.php @@ -0,0 +1,45 @@ +. + */ + +require_once('./index.php'); +require('./header.php'); +?> + +
The page you requested could not be found.
+This control panel was made using BusinessAdmin. It is open source software under the GPL 3.0 license.
+A full version of the license is available here. An excerpt is shown below:
+BusinessAdmin: administrative software for small companies +Copyright (C) 2015 Camil Staps (ViviSoft) + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see http://www.gnu.org/licenses/. + +You can contact me, Camil Staps, here: + +Camil Staps +www.camilstaps.nl +info@camilstaps.nl+
For things related to BusinessAdmin, please use GitHub: camilstaps/BusinessAdmin
+The BusinessAdmin system was developed by Camil Staps. See my website for contact details.
+BusinessAdmin was created using:
+Many thanks go to the creators and developers of these software packages.
+# | +Offer | +Briefing | +Time | +Price | +Tools | +{$assignment->getId()} | +#{$assignment->getOffer()->getId()} to {$assignment->getOffer()->getContact()->getName()} ({$assignment->getOffer()->getContact()->getClient()->getName()}) | +
+ {$assignment->getTitle()} + {$assignment->getDescription()} + |
+ {$assignment->getHours()}h | +
+ ".constants::invoice_valuta."{$assignment->getPricePerHour()} / hr + {$assignment->getVAT()}% VAT + |
+ + + + | + "; + } + if (count($assignments) == 0) { + echo "
---|---|---|---|---|---|
There are no assignments in the database. Why not start with creating one, below? |
# | +Name | +Tools | +{$client->getId()} | ++ + {$client->getName()} + + | ++ + + | + "; + } + if (count($clients) == 0) { + echo "
---|---|---|
There are no clients in the database. Why not start with creating one, on the right? |
# | +Name | +Address | +Tools | +
---|---|---|---|
{$contact->getId()} | +{$contact->getName()} | +
+ {$contact->getAddress()} + {$contact->getPostalCode()} + {$contact->getCity()} + {$contact->getCountry()} + |
+ + + + | +
There are no contacts in the database. Why not create one? |
# | +Name | +Address | +Tools | +{$contact->getId()} | +
+ {$contact->getName()} + ({$contact->getClient()->getName()}) + |
+
+ {$contact->getEmail()} + + {$contact->getAddress()} + " . ($contact->getAddress_2() != '' ? "{$contact->getAddress_2()} " : "") . " + {$contact->getPostalCode()} + {$contact->getCity()} + {$contact->getCountry()} + |
+ + + + | + "; + } + if (count($contacts) == 0) { + echo "
---|---|---|---|---|
There are no contacts in the database. Why not start with creating one, on the right? |
#{$item['id']} to {$item['contactClientName']} ({$item['start']} - {$item['end']}){$item['percentage']}% complete
+# | +Contact | +Invoice sent | +
---|---|---|
There are no currently open invoices. | ||
{$offer->getId()} | "; + echo "{$offer->getContact()->getClient()->getName()} | "; + echo "".BusinessAdmin::formatDate($offer->getInvoiceDate(), false)." | "; + echo "
{$assignment->getDescription()}
"; + $temp['assignments_header'] .= "{$assignment->getTitle()}".BusinessAdmin::formatDate($item['time'],false,true,true)."
# | +Contact | +Assignments | +Dates | +Invoice | +Tools | +||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{$offer->getId()} | +{$offer->getContact()->getName()} | +";
+ foreach ($offer->getAssignments() as $assignment) {
+ echo "{$assignment->getTitle()} (".constants::invoice_valuta."{$assignment->calculate(assignment::SUBTOTAL)} excl. VAT, ".constants::invoice_valuta."{$assignment->calculate(assignment::TOTAL)} incl. VAT) {$assignment->getDescription()} "; + } + echo " |
+
+
|
+ "
+ . (($invoiceFile instanceof file)
+ ? "
+
+ "
+ : "")
+ . " +
|
+ + + | +||||||||||||||
There are no offers in the database. Why not start with creating one, below? |
{$assignment->getDescription()}
"; + $temp['assignments_header'] .= "{$assignment->getTitle()}".BusinessAdmin::formatDate($item['time'],false,true,true)."
# | +Briefing | +Time | +Price | +Tools | +{$assignment->getId()} | +
+ {$assignment->getTitle()} + {$assignment->getDescription()} + |
+ {$assignment->getHours()}h | +
+ ".constants::invoice_valuta."{$assignment->getPricePerHour()} / hr + {$assignment->getVAT()}% VAT + |
+ + + + | + "; + } + if (count($assignments) == 0) { + echo "
---|---|---|---|---|---|
There are no assignments in the database. Why not start with creating one, below? |