summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorINOPIAE <inopiae@cacert.org>2013-09-14 07:21:48 +0200
committerINOPIAE <inopiae@cacert.org>2013-09-14 07:21:48 +0200
commit909271b68c6e72f124dc03e864db55bbd0985a15 (patch)
tree26dd28407a9775c68b6fdd7f2e711ca8605912d8
parent8e8c6bdaddeadfbc80baed0d2b4701d776d588a1 (diff)
downloadcacert-devel-909271b68c6e72f124dc03e864db55bbd0985a15.tar.gz
cacert-devel-909271b68c6e72f124dc03e864db55bbd0985a15.tar.xz
cacert-devel-909271b68c6e72f124dc03e864db55bbd0985a15.zip
bug 988: added dropdown for countries in wot/16.php did some typos
-rw-r--r--pages/wot/16.php12
-rw-r--r--pages/wot/4.php10
-rw-r--r--pages/wot/6.php2
3 files changed, 17 insertions, 7 deletions
diff --git a/pages/wot/16.php b/pages/wot/16.php
index c85cdba..db799d7 100644
--- a/pages/wot/16.php
+++ b/pages/wot/16.php
@@ -18,7 +18,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
//******************* TTP Console ************
-if ($_SESSION['profile']['ttpadmin'] !== 1) {
+if ($_SESSION['profile']['ttpadmin'] < 1) {
echo _("You are not allowed to view this page.");
exit;
}
@@ -111,7 +111,15 @@ $ttp_assurances_count=$num_rows = mysql_num_rows($res);
<td><?=_('Line').' 5'?></td>
<td><input type="text" name="adress4" /></td>
</tr>
- <tr>
+ <tr>
+ <td><?=_('Country where the TTP will be visted')?></td>
+ <td>
+ <select size="1" name="country">
+ <?echo ttp_select(TRUE)?>
+ </select>
+ </td>
+ </tr>
+ <tr>
<td colspan="2" class="title">
<?
if ($points>=100 || $ttp_assurances_count>=2) {
diff --git a/pages/wot/4.php b/pages/wot/4.php
index 20521a9..9c30b71 100644
--- a/pages/wot/4.php
+++ b/pages/wot/4.php
@@ -43,11 +43,13 @@ if ($_SESSION['profile']['points']<100){
<form method="post" action="wot.php">
<table align="center" valign="middle" border="0" cellspacing="0" cellpadding="0" class="wrapper">
<tr>
- <td class="DataTD"><?=_("Country where you want to visit the TTP")?></td>
- <td class="DataTD"><select size="1" name="country">
+ <td class="DataTD"><?=_('Country where you want to visit the TTP')?></td>
+ <td class="DataTD">
+ <select size="1" name="country">
<option><?=_('Choose country')?></option>
- <?echo ttp_select(TRUE)?>
- </select></td>
+ <?echo ttp_select()?>
+ </select>
+ </td>
</tr>
<tr>
<td class="DataTD"><?=_("I want to take part in the TTP Topup programme")?></td>
diff --git a/pages/wot/6.php b/pages/wot/6.php
index 93a20cf..4458ad0 100644
--- a/pages/wot/6.php
+++ b/pages/wot/6.php
@@ -57,7 +57,7 @@ if(!array_key_exists('notarise',$_SESSION['_config']))
AssureInboxLine("points",_("Points"),"","<br />(Max. ".maxpoints().")");
AssureFoot($id,_("I confirm this Assurance"));
- if($_SESSION['profile']['ttpadmin'] == 1) {
+ if($_SESSION['profile']['ttpadmin'] >= 1) {
?><a href="wot.php?id=16><?=_("Show TTP details")?></a><?;
}