pull/1/head
root 18 years ago
parent a903c47403
commit 3a13ceb2da

@ -201,8 +201,10 @@ function hideall() {
$extra = "?name=".urlencode($name); $extra = "?name=".urlencode($name);
$extra .= "&dob=".urlencode($_SESSION['profile']['dob']); $extra .= "&dob=".urlencode($_SESSION['profile']['dob']);
$extra .= "&email=".urlencode($_SESSION['profile']['email']); $extra .= "&email=".urlencode($_SESSION['profile']['email']);
$extra2 = "?assurer=".urlencode($name)."&date=now&maxpoints=".maxpoints();
?> ?>
<ul class="menu" id="WoT"><li><a href="wot.php?id=0"><?=_("About")?></a></li><li><a href="wot.php?id=12"><?=_("Find an Assurer")?></a></li><li><a href="wot.php?id=3"><?=_("Rules")?></a></li><li><? if($_SESSION['profile']['points'] < 100) { ?><a href="wot.php?id=2"><?=_("Becoming an Assurer")?></a><? } else { ?><a href="wot.php?id=5"><?=_("Assure Someone")?></a><? } ?></li><li><a href="wot.php?id=4"><?=_("Trusted Third Parties")?></a></li><li><a href="/cap.php<?=$extra?>">A4 - <?=_("WoT Form")?></a></li><li><a href="/cap.php<?=$extra?>&format=letter">US - <?=_("WoT Form")?></a></li><li><a href="/ttp.php<?=$extra?>">A4 - <?=_("TTP Form")?></li><li><a href="/ttp.php<?=$extra?>&format=letter">US - <?=_("TTP Form")?></a></nobr></li><? if($_SESSION['profile']['points'] > 50) { ?><li><a href="wot.php?id=11"><nobr><?=_("Organisation Assurance")?></nobr></a></li><? } ?></ul> <ul class="menu" id="WoT"><li><a href="wot.php?id=0"><?=_("About")?></a></li><li><a href="wot.php?id=12"><?=_("Find an Assurer")?></a></li><li><a href="wot.php?id=3"><?=_("Rules")?></a></li><li><? if($_SESSION['profile']['points'] < 100) { ?><a href="wot.php?id=2"><?=_("Becoming an Assurer")?></a><? } else { ?><a href="wot.php?id=5"><?=_("Assure Someone")?></a><? } ?></li><li><a href="wot.php?id=4"><?=_("Trusted Third Parties")?></a></li><li><a href="/cap.php<?=$extra?>">A4 - <?=_("WoT Form")?></a></li><li><a href="/cap.php<?=$extra?>&format=letter">US - <?=_("WoT Form")?></a></li><li><nobr><a href="/ttp.php<?=$extra?>">A4 - <?=_("TTP Form")?></nobr></li><li><nobr><a href="/ttp.php<?=$extra?>&format=letter">US - <?=_("TTP Form")?></a></nobr></li><? if($_SESSION['profile']['points'] > 100) { ?><li><nobr><a href="/ttp.php<?=$extra2?>">A4 - <?=_("Blank TTP Form")?></nobr></li><li><nobr><a href="/ttp.php<?=$extra2?>&format=letter">US - <?=_("Blank TTP Form")?></a></nobr></li><? } ?><? if($_SESSION['profile']['points'] > 50) { ?><li><a href="wot.php?id=11"><nobr><?=_("Organisation Assurance")?></nobr></a></li><? } ?></ul>
</div> </div>
<? if($_SESSION['profile']['points'] >= 50) { ?> <? if($_SESSION['profile']['points'] >= 50) { ?>
<div class="relatedLinks"> <div class="relatedLinks">

@ -33,7 +33,7 @@
<input type="submit" name="reminder" value="<?=_("Send reminder notice")?>"> <input type="submit" name="reminder" value="<?=_("Send reminder notice")?>">
</form> </form>
<? unset($_SESSION['_config']['noemailfound']); } ?> <? unset($_SESSION['_config']['noemailfound']); } ?>
<form method="post" action="wot.php"> <form method="post" action="wot.php" name="form1">
<table align="center" valign="middle" border="0" cellspacing="0" cellpadding="0" class="wrapper"> <table align="center" valign="middle" border="0" cellspacing="0" cellpadding="0" class="wrapper">
<tr> <tr>
<td colspan="2" class="title"><?=_("Assure Someone")?></td> <td colspan="2" class="title"><?=_("Assure Someone")?></td>
@ -52,3 +52,11 @@
</table> </table>
<input type="hidden" name="oldid" value="<?=$id?>"> <input type="hidden" name="oldid" value="<?=$id?>">
</form> </form>
<SCRIPT LANGUAGE="JavaScript">
function focus()
{
document.form1.email.focus();
}
focus();
</script>

@ -269,7 +269,7 @@
{ {
$query = "insert into `notary` set `from`='".$_SESSION['profile']['id']."', $query = "insert into `notary` set `from`='".$_SESSION['profile']['id']."',
`to`='".$_SESSION['_config']['notarise']['id']."', `to`='".$_SESSION['_config']['notarise']['id']."',
`points`='$newpoints', `awardeded`='$awarded', `points`='$newpoints', `awarded`='$awarded',
`location`='".mysql_escape_string(stripslashes($_POST['location']))."', `location`='".mysql_escape_string(stripslashes($_POST['location']))."',
`date`='".mysql_escape_string(stripslashes($_POST['date']))."', `date`='".mysql_escape_string(stripslashes($_POST['date']))."',
`when`=NOW()"; `when`=NOW()";

Loading…
Cancel
Save