weird things with SVN
bernd

bernd commited on 2008-09-18 15:33:49
Zeige 2 geänderte Dateien mit 45 Einfügungen und 0 Löschungen.


git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1149 87cf0b9e-d624-0410-a070-f6ee81989793
... ...
@@ -0,0 +1,35 @@
1
+<?php
2
+
3
+require_once('inc/base.php');
4
+require_once('inc/debug.php');
5
+
6
+require_once('session/start.php');
7
+require_once('crm.php');
8
+
9
+require_role(ROLE_SYSADMIN);
10
+
11
+
12
+html_header('<script type="text/javascript" src="'.$prefix.'js/ajax.js" ></script>
13
+<script type="text/javascript">
14
+<!--
15
+
16
+function got_response() {
17
+  if (xmlHttp.readyState == 4) {
18
+    document.getElementById(\'response\').innerHTML = xmlHttp.responseText;
19
+  }
20
+}
21
+
22
+// -->
23
+</script>
24
+');
25
+
26
+output(html_form('crm_test', '', '', '<input type="text" id="query" onkeyup="ajax_request(\'crm_ajax\', \'q=\'+document.getElementById(\'query\').value, got_response)" />
27
+'));
28
+output('<div id="response"></div>');
29
+
30
+
31
+$customers = array_unique(find_customer('gmx.de'));
32
+sort($customers);
33
+DEBUG($customers);
34
+
35
+
... ...
@@ -0,0 +1,10 @@
1
+<?php
2
+
3
+$role = $_SESSION['role'];
4
+
5
+if ($role & ROLE_SYSADMIN)
6
+{
7
+  $menu["crm_main"] = array("label" => "CRM", "file" => "main", "weight" => -9);
8
+}
9
+
10
+?>
0 11