First commit of tag changes. bug-1444
[cacert-devel.git] / pages / account / 27.php
1 <?php /*
2 LibreSSL - CAcert web application
3 Copyright (C) 2004-2008 CAcert Inc.
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; version 2 of the License.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 */ ?>
18 <?php $row = mysql_fetch_assoc(mysql_query("select * from `orginfo` where `id`='".intval($_REQUEST['orgid'])."'"));
19 ?>
20 <form method="post" action="account.php">
21 <table align="center" valign="middle" border="0" cellspacing="0" cellpadding="0" class="wrapper">
22 <tr>
23 <td colspan="2" class="title"><?php echo _("Edit Organisation")?></td>
24 </tr>
25 <tr>
26 <td class="DataTD"><?php echo _("Organisation Name")?>:</td>
27 <td class="DataTD"><input type="text" name="O" value="<?php echo $row['O']?>" size="90"></td>
28 </tr>
29 <tr>
30 <td class="DataTD"><?php echo _("Contact Email")?>:</td>
31 <td class="DataTD"><input type="text" name="contact" value="<?php echo ($row['contact'])?>" size="90"></td>
32 </tr>
33 <tr>
34 <td class="DataTD"><?php echo _("Town/Suburb")?>:</td>
35 <td class="DataTD"><input type="text" name="L" value="<?php echo ($row['L'])?>" size="90"></td>
36 </tr>
37 <tr>
38 <td class="DataTD"><?php echo _("State/Province")?>:</td>
39 <td class="DataTD"><input type="text" name="ST" value="<?php echo ($row['ST'])?>" size="90"></td>
40 </tr>
41 <tr>
42 <td class="DataTD"><?php echo _("Country")?>:</td>
43 <td class="DataTD"><input type="text" name="C" value="<?php echo ($row['C'])?>" size="5">
44 <?php printf(_('(2 letter %s ISO code %s )'),
45 '<a href="http://www.iso.org/iso/home/standards/country_codes/iso-3166-1_decoding_table.htm">',
46 '</a>')?>
47 </td>
48 </tr>
49 <tr>
50 <td class="DataTD"><?php echo _("Comments")?>:</td>
51 <td class="DataTD"><textarea name="comments" cols=60 rows=10><?php echo ($row['comments'])?></textarea></td>
52 </tr>
53 <tr>
54 <td class="DataTD" colspan="2"><input type="submit" name="process" value="<?php echo _("Update")?>"></td>
55 </tr>
56 </table>
57 <input type="hidden" name="oldid" value="<?php echo intval($id)?>">
58 <input type="hidden" name="orgid" value="<?php echo intval($_REQUEST['orgid'])?>">
59 <input type="hidden" name="csrf" value="<?php echo make_csrf('orgdetchange')?>" />
60 </form>