Location: PHPKode > projects > Free Ads Manager Script > templates/templogin.html
<?
$data = '
        <form action="?do=login" method="post" onsubmit="return submit_frm()">
          <table id="login" style="border: 2px solid #000000;z-index: 6001; position: absolute;top: 250px;display: none;background-color: #FFFFFF;" width="250">
              <tr>
                  <td colspan="2" style="background-color: #FF8615;color: #FFFFFF;" align="center"><b>'.$_Phrase['userlogin'].'</b>
                  </td>
              </tr>
              <tr>
                  <td>'.$_Phrase['username'].':</td>
                  <td><input class="butn" type="text" id="unam" name="unam" /></td>
              </tr>
              <tr>
                  <td>'.$_Phrase['password'].':</td>
                  <td><input class="butn" type="password" id="pword" name="pword" /></td>
              </tr>
              <tr>
                  <td colspan="2">
                      <input class="butn" type="submit" value=" '.$_Phrase['login'].' " />
                      <input class="butn" type="button" onclick="close_box(\'login\');$(\'#do_sbm\').html(\'\');" value=" '.$_Phrase['cancel'].' " />
                      &nbsp;<span id="do_sbm">&nbsp;</span>
                  </td>
              </tr>
          </table>
        </form>
    <script>
            function do_box(me)
            {
                msg_mask(me);
                $("#" + me).show();
            }
            function close_box(me)
            {
                close_this();
                $("#" + me).hide();
                $("#" + me + " input:text, input:password").each(function()
                {
                    this.value = "";
                });
            }
            function submit_frm()
            {
                $("#do_sbm").html(\'<img src="images/progress.gif" width="16" height="16" alt="" /> '.$_Phrase['loginin'].' ....\');
                var me = "login";
                if(!$("#pword").val() || !$("#unam").val())
                {
                    $("#do_sbm").html("'.$_Phrase['chk_b_f'].' !!");
                    return false;
                }
                else
                {
                    return true;
                }
            }

        </script>
        ';
?>
Return current item: Free Ads Manager Script