2 rcs_id('$Id: signin.tmpl,v 1.2 2004-03-24 14:05:33 rurban Exp $');
9 <?php if (empty($NOFORM)) { ?>
10 <form method="post" action="<?=$request->getURLtoSelf()?>" accept-charset="<?=CHARSET?>" name="<?=$FORMNAME?>">
11 <?= HiddenInputs($request->getArgs(), false, array('auth')) ?>
14 if ($user->isAuthenticated()) {
15 $Sep = $Theme->getButtonSeparator();
16 $SignOutB = $Theme->makeButton(_("Sign Out"), "javascript:SignOut();", 'wikiaction');
18 <?= fmt("You are authenticated as %s", WikiLink($user->getId(), 'auto')) ?>
20 <script language="JavaScript" type="text/javascript"><!--
21 document.write('<input type="hidden" name="auth[logout]" value="0" />');
23 document.forms["<?=$FORMNAME?>"].elements["auth[logout]"].value = 1;
24 document.forms["<?=$FORMNAME?>"].submit();
26 document.write('<?=$SignOutB?>'); // -->
29 <?= Button("submit:auth[logout]", _("Sign Out"), 'wikiaction') ?>
33 $SignInInput = HTML::input(array('type' => 'text',
34 'name' => "auth[userid]",
35 'id' => 'auth.userid',
38 'onchange' => "SignIn(this.form,false);"));
39 $SignInInput->addTooltip(_("Enter your UserId to sign in"));
40 $userid = $user->getId();
41 if ($user->isSignedIn())
42 echo sprintf(_("You are signed but not authenticated as %s. "),
45 'title' => sprintf(_("Click to authenticate as %s"),$userid),
46 'onclick'=>'SignIn(document.signin,"'.$userid.'");'),
50 <script type="text/javascript"> <!--
51 function SignIn(form,userid) {
52 <?php if (defined('EDITING_POLICY') and EDITING_POLICY) { ?>
54 window.open('<?= WikiUrl(EDITING_POLICY) ?>',<!-- url -->
55 'PleaseReadThisFirst',<!-- window name -->
56 'width=600,height=430,scrollbars=yes,resizable=yes,toolbar=yes');
59 if (userid) document.getElementById("auth.userid").value=userid;
64 <?= Button("submit:auth[login]", _("Sign in as:"), 'wikiaction')?>
67 <?= Button("submit:auth[login]", _("Sign in as:"), 'wikiaction')?>
72 <?php if (empty($NOFORM)) { ?>