952462089a9aca5b1e6bba8b821f698f7354c0c9
[cacert-devel.git] / pages / account / 27.php
1 <? /*
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 <?
19 $row = mysql_fetch_assoc(mysql_query("select * from `orginfo` where `id`='".intval($_REQUEST['orgid'])."'"));
20 ?>
21 <form method="post" action="account.php">
22 <table align="center" valign="middle" border="0" cellspacing="0" cellpadding="0" class="wrapper">
23 <tr>
24 <td colspan="2" class="title"><?=_("Edit Organisation")?></td>
25 </tr>
26 <tr>
27 <td class="DataTD"><?=_("Organisation Name")?>:</td>
28 <td class="DataTD"><input type="text" name="O" value="<?=$row['O']?>" size="90"></td>
29 </tr>
30 <tr>
31 <td class="DataTD"><?=_("Contact Email")?>:</td>
32 <td class="DataTD"><input type="text" name="contact" value="<?=($row['contact'])?>" size="90"></td>
33 </tr>
34 <tr>
35 <td class="DataTD"><?=_("Town/Suburb")?>:</td>
36 <td class="DataTD"><input type="text" name="L" value="<?=($row['L'])?>" size="90"></td>
37 </tr>
38 <tr>
39 <td class="DataTD"><?=_("State/Province")?>:</td>
40 <td class="DataTD"><input type="text" name="ST" value="<?=($row['ST'])?>" size="90"></td>
41 </tr>
42 <tr>
43 <td class="DataTD"><?=_("Country")?>:</td>
44 <td class="DataTD"><input type="text" name="C" value="<?=($row['C'])?>" size="5"> (2 letter <a href="http://www.iso.org/iso/english_country_names_and_code_elements">ISO code</a>)</td>
45 </tr>
46 <tr>
47 <td class="DataTD"><?=_("Comments")?>:</td>
48 <td class="DataTD"><textarea name="comments" cols=60 rows=10><?=($row['comments'])?></textarea></td>
49 </tr>
50 <tr>
51 <td class="DataTD" colspan="2"><input type="submit" name="process" value="<?=_("Update")?>"></td>
52 </tr>
53 </table>
54 <input type="hidden" name="oldid" value="<?=intval($id)?>">
55 <input type="hidden" name="orgid" value="<?=intval($_REQUEST['orgid'])?>">
56 <input type="hidden" name="csrf" value="<?=make_csrf('orgdetchange')?>" />
57 </form>