'.$astring.'';
}
return $astring;
}
// print a star on the screen and printout
// this is used to denote field values which will be taken up in the CAcert database
function Star() {
return '★ ';
}
// insert tooltip html ccs code
function Popup( $akey = "nul", $dir = NULL ) {
static $done = false;
if( ! $done ) {
InitHelp(); $done = true;
}
$msg = "";
global $tooltip;
if( ! array_key_exists( $akey, $tooltip) ) { return "Bug: this \"$akey\" does not exists as tooltip yet."; }
$rts[0] = ' ? ';
$rts[] = '';
if( array_key_exists('title', $tooltip[$akey]) )
$rts[] = '
';
if ( $akey == 'help' || $akey == 'star' ) $rts[] = $tooltip[$akey]['content'][0] ;
$rts[] = ''."\n";
return implode( $rts, "\n");
}
// insert url parameter info
function PrintValue( $anarray = NULL, $anindex = NULL, $str = TRUE ) {
if( $anarray == NULL
|| ! array_key_exists( $anindex, $anarray )
|| $anarray[$anindex] == "" )
return "";
if( $str ) return " value=\"".$anarray[$anindex].'"';
else return $anarray[$anindex];
}
// generate html code for document header in standard layout style
function DocumentHdr ($title1, $title2, $aurl ) {
echo ' ';
for( $i = 0; $i < count($tooltip[$akey]['content']); $i++)
$rts[] = ''.$tooltip[$akey]['title'].' ';
$rts[] = ''. $tooltip[$akey]['content'][$i] . '
', Popup('help'), " |
', Popup('star'), " |
\n"; echo '
', "\n"; echo '', PolicyRef(_("CAcert Root Certificate"), ROOTKEYS), " | \n"; $cnt = 0; while( list($key, $value) = each($SHA_sum) ) { echo '', str_replace(" ", ' ', $key), ': '; echo '>', str_replace(" ", ' ', $key), ': '; //echo str_replace(" ", ' ', $value), ' | '; echo '', $value, ''; $cnt++; } echo "
\n"; return true; } ?>