/[debian]/quickappoint/trunk/person.php
ViewVC logotype

Annotation of /quickappoint/trunk/person.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 142 - (hide annotations)
Sat Feb 25 17:48:35 2006 UTC (15 years, 5 months ago) by gregoa
File size: 2213 byte(s)
[svn-inject] Forking quickappoint source to Trunk
1 gregoa 140 <?php
2     require_once(dirname(__FILE__) . '/lib/prepend.php');
3     require_once(dirname(__FILE__) . '/lib/dblogic.php');
4     require_once(dirname(__FILE__) . '/lib/html.php');
5    
6     $personid = $_SESSION['person']['id'];
7     $personright = getPersonRights($personid);
8    
9     ?>
10     <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
11    
12     <html>
13     <head>
14     <title>QuickAppoint</title>
15     <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
16     <meta name="Author" content="Toastfreeware">
17     <link rel="stylesheet" type="text/css" href="css/default.css">
18     <!-- <link rel="icon" href="icons/icon.png" type="image/png"> -->
19     </head>
20     <body>
21    
22     <?php
23     if (isset($_SESSION['editdbmsg'])) echo html_element('p', array('class'=>'hint'), $_SESSION['editdbmsg']);
24     unset($_SESSION['editdbmsg']);
25     ?>
26    
27    
28     <?php
29     if ($personright['manageperson']) { ?>
30     <h1><?php echo htmlspecialchars(_('Manage persons')); ?></h1>
31     <?php } else { ?>
32     <h1><?php echo htmlspecialchars(_('Manage personal data')); ?></h1>
33     <?php } ?>
34    
35     <?php
36     if ($personright['manageperson']) $persons = getAllPersons();
37     else $persons = getPerson($_SESSION['person']['id']);
38     $columns = array(
39     new DiHidden('id:'),
40     new DiTextEdit('username', _('username'), 16, 10),
41     new DiPasswordEdit('pwd@password', _('password'), 32, 16),
42     new DiTextEdit('fullname', _('full name'), 64, 20),
43     new DiTextEdit('email', _('email'), 64, 20),
44     new DiTextEdit('locale', _('locale'), 32, 16)
45     );
46     if ($personright['manageperson']) {
47     $columns[] = new DiBoolEdit('manageperson', _('manage person'));
48     $columns[] = new DiBoolEdit('addappointment', _('add appointment'));
49     }
50    
51     echo html_createEditForm(
52     'cgi-bin/editdb.php',
53     basename($_SERVER['REQUEST_URI']),
54     'person',
55     $columns,
56     $persons, // Array of rows, that are again arrays of columns
57     $personright['manageperson'], TRUE, $personright['manageperson']);
58     ?>
59    
60     <p><?php echo htmlspecialchars(_('Valid locales for this system are:')); ?></p>
61     <ul>
62     <li><?php
63     $locales = array();
64     exec('locale -a', &$locales);
65     $locales = array_map('htmlspecialchars', $locales);
66     echo implode ("</li>\n\t\t<li>", $locales); ?></li>
67     </ul>
68    
69    
70     <p><a href="overview.php"><?php echo htmlspecialchars(_('Back')); ?></a></p>
71    
72     </body>
73     </html>

  ViewVC Help
Powered by ViewVC 1.1.26