summaryrefslogtreecommitdiff
path: root/includes/wot.inc.php
diff options
context:
space:
mode:
authorroot <root@cacert1.it-sls.de>2012-03-11 10:17:40 +0100
committerroot <root@cacert1.it-sls.de>2012-03-11 10:17:40 +0100
commit95f3a187a398a83f5bca130ed6385c8db080521e (patch)
treee098fb0d821fd2701564e0b15cad17e1cd920397 /includes/wot.inc.php
parent01c885f8fc88cd42c750890b9accf67adfbeee40 (diff)
downloadcacert-devel-95f3a187a398a83f5bca130ed6385c8db080521e.tar.gz
cacert-devel-95f3a187a398a83f5bca130ed6385c8db080521e.tar.xz
cacert-devel-95f3a187a398a83f5bca130ed6385c8db080521e.zip
bug-1023 changed 6.php to new coding (preparation for thawte-points/PoJAM/...) ... makecap not yet implemented
Diffstat (limited to 'includes/wot.inc.php')
-rw-r--r--includes/wot.inc.php85
1 files changed, 84 insertions, 1 deletions
diff --git a/includes/wot.inc.php b/includes/wot.inc.php
index 884b97f..2264498 100644
--- a/includes/wot.inc.php
+++ b/includes/wot.inc.php
@@ -242,7 +242,7 @@
{
if ($awarded == "0")
{
- if ($when < "2006-09-01")
+ if ($when < "2009-09-01")
{
$tdstyle="style='background-color: #ffff80'";
$emopen="<em>";
@@ -536,4 +536,87 @@
<p>[ <a href='javascript:history.go(-1)'><?=_("Go Back")?></a> ]</p>
<?
}
+
+// functions for 6.php (assure somebody)
+
+function AssureHead($confirmation,$checkname)
+{
+?>
+<form method="post" action="wot.php">
+ <table align="center" valign="middle" border="0" cellspacing="0" cellpadding="0" class="wrapper" width="600">
+ <tr>
+ <td colspan="2" class="title"><?=$confirmation?></td>
+ </tr>
+ <tr>
+ <td class="DataTD" colspan="2" align="left"><?=$checkname?></td>
+ </tr>
+<?
+ }
+
+function AssureTextLine($field1,$field2)
+{
?>
+ <tr>
+ <td class="DataTD"><?=$field1?>:</td>
+ <td class="DataTD"><?=$field2?></td>
+ </tr>
+<?
+}
+
+function AssureCCABoxLine($type,$text)
+{
+ return;
+ AssureBoxLIne($type,$text);
+}
+
+function AssureBoxLine($type,$text)
+{
+?>
+ <tr>
+ <td class="DataTD"><input type="checkbox" name="<?=$type?>" value="1"></td>
+ <td class="DataTD"><?=$text?></td>
+ </tr>
+<?
+}
+
+function AssureMethodLine($text,$methods,$remark)
+{
+?>
+ <tr>
+ <td class="DataTD"><?=$text?></td>
+ <td class="DataTD">
+ <select name="method">
+<?
+ foreach($methods as $val) { ?>
+ <option value="<?=$val?>"<? if(array_key_exists('method',$_POST) && $val == $_POST['method']) echo " selected"; ?>><?=$val?></option>
+
+<? } ?>
+ </select>
+ </br><?=$remark?>
+ </td>
+ </tr>
+<?
+}
+
+function AssureInboxLine($type,$field,$value,$description)
+{
+?>
+ <tr>
+ <td class="DataTD"><?=$field?>:</td>
+ <td class="DataTD"><input type="text" name="<?=$type?>" value="<?=$value?>"><?=$description?></td>
+ </tr>
+<?
+}
+
+function AssureFoot($oldid,$confirm)
+{?>
+ <tr>
+ <td class="DataTD" colspan="2"><input type="submit" name="process" value="<?=$confirm?>"> <input type="submit" name="cancel" value="<?=_("Cancel")?>"></td>
+ </tr>
+ </table>
+ <input type="hidden" name="pagehash" value="<?=$_SESSION['_config']['wothash']?>">
+ <input type="hidden" name="oldid" value="<?=$oldid?>">
+</form>
+<?
+}
+