cf54502a10b16c985ea28db17885d377226b6145
bernd weird things with SVN

bernd authored 16 years ago

1) <?php
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 12 years ago

2) /*
3) This file belongs to the Webinterface of schokokeks.org Hosting
4) 
Bernd Wurst Copyright year update

Bernd Wurst authored 6 years ago

5) Written 2008-2018 by schokokeks.org Hosting, namely
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 12 years ago

6)   Bernd Wurst <bernd@schokokeks.org>
7)   Hanno Böck <hanno@schokokeks.org>
8) 
9) To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.
10) 
11) You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see 
12) http://creativecommons.org/publicdomain/zero/1.0/
13) 
14) Nevertheless, in case you use a significant part of this code, we ask (but not require, see the license) that you keep the authors' names in place and return your changes to the public. We would be especially happy if you tell us what you're going to do with this code.
15) */
bernd weird things with SVN

bernd authored 16 years ago

16) 
17) require_once('inc/base.php');
18) require_once('inc/debug.php');
19) 
bernd CRM still incomplete and un...

bernd authored 16 years ago

20) require_once('class/customer.php');
21) 
bernd weird things with SVN

bernd authored 16 years ago

22) require_once('session/start.php');
23) require_once('crm.php');
24) 
25) require_role(ROLE_SYSADMIN);
26) 
27) 
bernd CRM still incomplete and un...

bernd authored 16 years ago

28) $debug = '';
29) if ($debugmode)
30)   $debug = 'debug&amp;';
31) 
bernd weird things with SVN

bernd authored 16 years ago

32) html_header('<script type="text/javascript" src="'.$prefix.'js/ajax.js" ></script>
33) <script type="text/javascript">
34) <!--
35) 
bernd CRM still incomplete and un...

bernd authored 16 years ago

36) function doRequest() {
37)   ajax_request(\'crm_ajax\', \''.$debug.'q=\'+document.getElementById(\'query\').value, got_response)
38) }
39) 
40) function keyPressed() {
41)   if(window.mytimeout) window.clearTimeout(window.mytimeout);
42)   window.mytimeout = window.setTimeout(doRequest, 500);
43)   return true;
44) }
45) 
bernd weird things with SVN

bernd authored 16 years ago

46) function got_response() {
47)   if (xmlHttp.readyState == 4) {
48)     document.getElementById(\'response\').innerHTML = xmlHttp.responseText;
49)   }
50) }
51) 
52) // -->
53) </script>
54) ');
55) 
bernd CRM still incomplete and un...

bernd authored 16 years ago

56) 
bernd Benutze überall title() sta...

bernd authored 14 years ago

57) title('Customer Relationship Management');
bernd CRM still incomplete and un...

bernd authored 16 years ago

58) 
59) 
60) 
61) output(html_form('crm_main', '', '', 'Kunde nach Stichwort suchen: <input type="text" id="query" onkeyup="keyPressed()" />
bernd weird things with SVN

bernd authored 16 years ago

62) '));
63) output('<div id="response"></div>');
64) 
bernd CRM still incomplete and un...

bernd authored 16 years ago

65) if (isset($_SESSION['crm_customer'])) {
66)   $cid = $_SESSION['crm_customer'];
67)   $cust = new Customer($cid);
68) 
69)   $hostingcont = hosting_contracts($cust->id);
70)   $hosting = '<ul>';
71)   foreach ($hostingcont AS $h) {
72)     $hosting .= '<li>Hosting: ';
73)   }
74)   $hosting .= '</ul>';
75) 
76)   output('<h3>Aktueller Kunde</h3>
77) <div><strong>'.$cust->fullname.'</strong><br />
78) Firma: '.$cust->firma.'<br />
79) Name: '.$cust->vorname.' '.$cust->nachname.'<br />
80) Adresse: '.$cust->adresse.' - '.$cust->plz.' '.$cust->ort.'</div>
81) 
82) 
83) <h3>Kundendaten</h3>
84) 
85) 
86) <h4>Letzte Rechnungen</h4>
87) 
88) 
89) <h4>Kommende Rechnungsposten</h4>
90) 
91) ');
92)    
93)   output ( print_r($cust, true) );
94) }
95)