Advertisement
Guest User

PHP Native Template Example

a guest
May 18th, 2018
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.28 KB | None | 0 0
  1.         <br><br>
  2.         <form name="frmLogin" action="<?= SITE_ROOT ?>/login/" method="post">
  3.           <table border="0" width="400" cellspacing="1" cellpadding="0" bgcolor="<?= $this->conf->color['bordercolor'] ?>" class="bordercolor" align="center">
  4.             <tr>
  5.               <td class="windowbg" bgcolor="<?= $this->conf->color['windowbg'] ?>" width="100%">
  6.                 <table width="100%" cellspacing="0" cellpadding="3">
  7.                   <tr>
  8.                     <td class="titlebg" bgcolor="<?= $this->conf->color['titlebg'] ?>'">
  9.                       <img src="<?= $this->conf->imagesdir ?>/login_sm.gif" alt="">
  10.                       <font size="2" class="text1" color="<?= $this->conf->color['titletext'] ?>">
  11.                         <b><?= $this->locale->txt[34] ?></b></font>
  12.                     </td>
  13.                     <td align="right" class="titlebg">
  14.                       <?php if(!$this->request->isSecure()): ?>
  15.                         <a href="https://<?= $this->host ?><?= SITE_ROOT ?>/login/" title="<?= $this->locale->txt['ssl-link-info'] ?>" class="ssl-login"><img src="<?= STATIC_ROOT ?>/img/YaBBImages/lock_closed.png">SSL</a>
  16.                       <?php endif; ?>
  17.                     </td>
  18.                   </tr>
  19.                   <tr>
  20.                     <td align="right" class="windowbg" bgcolor="<?= $this->conf->color['windowbg'] ?>">
  21.                       <font size="2"><b><?= $this->locale->txt[35] ?>:</b></font>
  22.                     </td>
  23.                     <td class="windowbg" bgcolor="<?= $this->conf->color['windowbg'] ?>">
  24.                       <font size="2">
  25.                         <input type="text" name="user" size="20" value="<?= $this->get('inputuser') ?>">
  26.                       </font>
  27.                     </td>
  28.                   </tr>
  29.                   <tr>
  30.                     <td align="right" class="windowbg" bgcolor="<?= $this->conf->color['windowbg'] ?>">
  31.                       <font size="2"><b><?= $this->locale->txt[36] ?>:</b></font>
  32.                     </td>
  33.                     <td class="windowbg" bgcolor="<?= $this->conf->color['windowbg'] ?>">
  34.                       <font size="2">
  35.                         <input type="password" name="password" size="20">
  36.                       </font>
  37.                     </td>
  38.                   </tr>
  39.                   <tr>
  40.                     <td align="right" class="windowbg" bgcolor="<?= $this->conf->color['windowbg'] ?>">
  41.                       <font size="2"><b><?= $this->locale->txt[497] ?>:</b></font>
  42.                     </td>
  43.                     <td class="windowbg" bgcolor="<?= $this->conf->color['windowbg'] ?>">
  44.                       <font size="2">
  45.                         <input type="text" name="cookielength" size="4" maxlength="4" value="<?= $this->conf->Cookie_Length ?>">
  46.                       </font>
  47.                     </td>
  48.                   </tr>
  49.                   <tr>
  50.                     <td align="right" class="windowbg" bgcolor="<?= $this->conf->color['windowbg'] ?>">
  51.                       <font size="2"><b><?= $this->locale->txt[508] ?>:</b></font>
  52.                     </td>
  53.                     <td class="windowbg" bgcolor="<?= $this->conf->color['windowbg'] ?>">
  54.                       <font size="2">
  55.                         <input type="checkbox" name="cookieneverexp" value="ON" checked>
  56.                       </font>
  57.                     </td>
  58.                   </tr>
  59.                   <tr>
  60.                     <td align="center" colspan="2" class="windowbg" bgcolor="<?= $this->conf->color['windowbg'] ?>">
  61.                       <br/>
  62.                       <input type="submit" value="<?= $this->locale->txt[34] ?>">
  63.                     </td>
  64.                   </tr>
  65.                   <tr>
  66.                     <td align="center" colspan="2" class="windowbg" bgcolor="<?= $this->conf->color['windowbg'] ?>">
  67.                       <a href="<?= SITE_ROOT ?>/passwordreset/?what=input_user"><small><?= $this->locale->txt[315] ?></small></a>
  68.                       <br><br>
  69.                     </td>
  70.                   </tr>
  71.                 </table>
  72.               </td>
  73.             </tr>
  74.           </table>
  75.         </form>
  76.         <script language="JavaScript" type="text/javascript"><!--
  77.           document.frmLogin.user.focus();
  78.         //--></script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement