<{*
$Rev$
$URL$
*}>
<{if $xoops_isuser == true && $openids}>
<div style="text-align:right;">
<a href="<{$xoops_url}>/userinfo.php?uid=<{$xoops_userid}>"><{$smarty.const._MD_OPENID_VACNT}></a>
</div>
<form method="post" action="">
<input type="hidden" name="op" value="update" />
<table class="outer" cellpadding="4" cellspacing="1">
 <tr>
  <th colspan="2" style="text-align:center;">
   <{$xoops_uname}>'s OpenID
  </th>
 </tr>
<{foreach item=oid from=$openids}>
 <tr class="<{cycle values='odd,even'}>">
  <td>
<{if $oid.mode > 0}>
   <{$oid.displayid}>
<{else}>
   <del><{$oid.displayid}></del>
<{/if}>
  </td>
  <td>
   <select size="1" name="mode[<{$oid.id}>]">
<{foreach from=$options key=k item=v}>
    <option value="<{$k}>"<{if $oid.mode == $k}> selected="selected"<{/if}>><{$v}></option>
<{/foreach}>
   </select>
  </td>
 </tr>
<{/foreach}>
 <tr>
  <td colspan="2" class="foot">
  <input type="submit" value="<{$smarty.const._SUBMIT}>" />
  </td>
 </tr>
</table>
</form>
<p><{$smarty.const._MD_OPENID_LINK_MORE}></p>
<{else}>
<h1><{$smarty.const._GR_TITLE}></h1>
<{/if}>

<style>
#openid_identifier {
 background: #fff url(<{$xoops_url}>/modules/openid/images/login-bg.gif) no-repeat left;
 color: #000;
 padding-left: 18px;
 width: 250px;
}
img.openid_button {
 border-style: none;
 cursor: pointer;
}
</style>
<script type="text/javascript">
function changeServer(s, start, size) {
    var o = document.getElementById('openid_identifier');
    o.value = s;
    o.parentNode.style.display = 'block';
    o.focus();

    if (o.createTextRange) {
        try {
            var tr = o.createTextRange();    
            tr.collapse(true);
            tr.moveStart('character', start);
            tr.moveEnd('character', size);
            tr.select();
        } catch (e) {
        }
    } else {
        o.setSelectionRange(start, start + size);
    }
}
</script>
<form method="post" action="<{$xoops_url}>/modules/openid/try_auth.php">
<{if $frompage != ''}>
 <input type="hidden" name="frompage" value="<{$frompage}>" />
<{/if}>
 <input type="text" name="openid_identifier" id="openid_identifier" />
 <input type="submit" value="<{$smarty.const._LOGIN}>" />
</form>
<p>
<{foreach item=button from=$buttons}>
 <{if $button->get('type') == 0}>
 <a href="<{$xoops_url}>/modules/openid/try_auth.php?openid_identifier=<{$button->get4show('identifier')|escape:'url'}><{if $frompage != ''}>&amp;frompage=<{$frompage}><{/if}>">
 <img src="<{$xoops_url}>/modules/openid/images/<{$button->get4show('image')}>" alt="<{$button->get4show('description')}>" title="<{$button->get4show('description')}>" class="openid_button" />
 </a>
 <{else}>
 <img src="<{$xoops_url}>/modules/openid/images/<{$button->get4show('image')}>" alt="<{$button->get4show('description')}>" title="<{$button->get4show('description')}>" class="openid_button" onClick="javascript:changeServer('<{$button->get4show('identifier')}>',<{$button->get4show('range')}>);">
 <{/if}>
<{/foreach}>
</p>