Kod:
// This is just the basic "login" form.
function template_login()
{
global $context, $settings, $options, $scripturl, $modSettings, $txt;
echo '
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script>
<form action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" name="frmLogin" id="frmLogin" style="margin-top: 4ex;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
<table border="0" width="400" cellspacing="0" cellpadding="4" class="tborder" align="center">
<tr class="titlebg">
<td colspan="2">
<img src="', $settings['images_url'], '/icons/login_sm.gif" alt="" align="top" /> ', $txt[34], '
</td>';
// Did they make a mistake last time?
if (isset($context['login_error']))
echo '
</tr><tr class="windowbg">
<td align="center" colspan="2" style="padding: 1ex;">
<b style="color: red;">', $context['login_error'], '</b>
</td>';
// Or perhaps there's some special description for this time?
if (isset($context['description']))
echo '
</tr><tr class="windowbg">
<td align="center" colspan="2">
<b>', $context['description'], '</b><br />
<br />
</td>';
// Now just get the basic information - username, password, etc.
echo '
</tr><tr class="windowbg">
<td width="50%" align="right"><b>', $txt[35], ':</b></td>
<td><input type="text" name="user" size="20" value="', $context['default_username'], '" /></td>
</tr><tr class="windowbg">
<td align="right"><b>', $txt[36], ':</b></td>
<td><input type="password" name="passwrd" value="', $context['default_password'], '" size="20" /></td>
</tr><tr class="windowbg">
<td align="right"><b>', $txt[497], ':</b></td>
<td><input type="text" name="cookielength" size="4" maxlength="4" value="', $modSettings['cookieTime'], '"', $context['never_expire'] ? ' disabled="disabled"' : '', ' /></td>
</tr><tr class="windowbg">
<td align="right"><b>', $txt[508], ':</b></td>
<td><input type="checkbox" name="cookieneverexp"', $context['never_expire'] ? ' checked="checked"' : '', ' class="check" onclick="this.form.cookielength.disabled = this.checked;" /></td>
</tr><tr class="windowbg">';
// If they have deleted their account, give them a chance to change their mind.
if (isset($context['login_show_undelete']))
echo '
<td align="right"><b style="color: red;">', $txt['undelete_account'], ':</b></td>
<td><input type="checkbox" name="undelete" class="check" /></td>
</tr><tr class="windowbg">';
echo '
<td align="center" colspan="2"><input type="submit" value="', $txt[34], '" style="margin-top: 2ex;" /></td>
</tr><tr class="windowbg">
<td align="center" colspan="2" class="smalltext"><a href="', $scripturl, '?action=reminder">', $txt[315], '</a><br /><br /></td>
</tr>
</table>
<input type="hidden" name="hash_passwrd" value="" />
</form>';
// Focus on the correct input - username or password.
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
********.forms.frmLogin.', isset($context['default_username']) && $context['default_username'] != '' ? 'passwrd' : 'user', '.focus();
// ]]></script>';
}
Kod:
// This is just the basic "login" form.
function template_login()
{
global $context, $settings, $options, $scripturl, $modSettings, $txt;
echo '
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script>
<table width="100%">
<tr>
<td valign="top">
<img src="', $settings['images_url'], '/fuser.png" style="float:left;" hspace="6" vspace="2" /><b><a href="', $scripturl, '?action=reminder" style="text-decoration:none;"><font size="4" color="#2874D0">Sifremi Unuttum</font></a></b><br />
Eger üye isminizi veya sifrenizi unuttuysaniz buraya tiklayin.<br /><br /><br />
<img src="', $settings['images_url'], '/register.png" style="float:left;" hspace="6" vspace="2" /><b><a href="', $scripturl, '?action=register" style="text-decoration:none;"><font size="4" color="#2874D0">Üye Olun</font></a></b><br />
Hala bir üyeliginiz yokmu? Burasi tam sizin icin!<br /><br /><br />
<img src="', $settings['images_url'], '/login.png" style="float:left;" hspace="6" vspace="2" /><b><font size="4" color="#2874D0">Giriş yaparken dikkat etmeniz gerekenler</font></b><br />
<ul>
<li>Kullanıcı isminizi değiştirmek isterseniz foruma giriş yapın ve ilgili konuya başvurun.</li>
<li>Kullanıcı isimlerinde küçük , büyük harf ayrımı vardır.</li>
<li>Kullanıcı isminizde Türkçemize özgü ç,ı,ş,ü,ğ,ö harfleri varsa aynen giriniz.Aksi halde kullanıcı bulunamadı uyarısı alırsınız ve foruma giriş yapamazsınız.</li>
</ul><br /><br /><br />
</td>
<td width="30%" valign="top">
<form action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" name="frmLogin" id="frmLogin" style="margin-top: 4ex;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
<table width="100%" cellpadding="3" cellspacing="5" class="cbor" align="right" style="background-color: #e8eefa">
<tr>
<td colspan="2" align="center">
Giris Yapin
</td>
</tr>
<tr>
<td colspan="2" align="center">
<img src="', $settings['images_url'], '/login.png" />
</td>
</tr>
<tr>
<td width="25%" align="left">
<b>', $txt[35], '</b>
</td>
<td align="left">
<input type="text" name="user" size="20" value="', $context['default_username'], '" />
</td>
</tr>
<tr>
<td align="left">
<b>', $txt[36], '</b>
</td>
<td align="left">
<input type="password" name="passwrd" value="', $context['default_password'], '" size="20" />
</td>
</tr>
<tr>
<td align="right">
<input type="checkbox" name="undelete" class="check" />
</td>
<td align="left">
', $txt['undelete_account'], '
</td>
</tr>
<tr>
<td align="center" colspan="2">
<input type="submit" value="', $txt[34], '" />
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>';
// Focus on the correct input - username or password.
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
********.forms.frmLogin.', isset($context['default_username']) && $context['default_username'] != '' ? 'passwrd' : 'user', '.focus();
// ]]></script>';
}
Kod:
cbor{ border: 1px solid #1A5E86;background-color: #FFFFFF; }