Location: PHPKode > projects > phpMyPrepaid > phpmyprepaid/wlogin/site-lib/login_form.inc
<?php

echo '<body id="page" class="login">
<div id="page_header">';

echo '<h1><span>'.$welcome_at.'</span><em> '.HOTSPOT_NAME.'</em></h1>';

echo '</div>

<div id="page_body">
<div id="left_area">
<div id="left_area_top">
<div class="tool_user_info">
<a class="administration" href=""><img class="administration" src="'.BASE_URL.'images/lien_ext.gif">&nbsp;'.HOTSPOT_NAME.' '.$network.'</a><br>

<a class="administration" href="https://'.UAMIP.':9990"><img class="administration" src="'.BASE_URL.'images/lien_ext.gif">&nbsp;Administrator login</a>

<br><br>

</div>';

//LANGUAGE
echo '
<div class="language">
<form class="language" name="lang2" method="post" action="'.$url.'">
  <div>'.$language.'
  <select name="lang" onchange="javascript: document.lang2.submit();">';
  if ($_POST['lang']=="fr")
  echo '<option label="Fran&ccedil;ais" value="fr" selected="selected">Fran&ccedil;ais</option>';
  else
  echo '<option label="Fran&ccedil;ais" value="fr">Fran&ccedil;ais</option>';
  
  if ($_POST['lang']=="gb")
	  echo '<option label="English" selected value="gb">English</option>';
  else
	  echo '<option label="English" value="gb">English</option>';
  
  if ($_POST['lang']=="de")
	  echo '<option label="German" selected value="de">German</option>';
  else
	  echo '<option label="German" value="gb">German</option>';

  if ($_POST['lang']=="jp")
	  echo '<option label="Japanase" selected value="jp">Japanese</option>';
  else
	  echo '<option label="Japanase" value="jp">Japanese</option>';

 echo ' </select>';

echo '</div>';
echo '</form>';
echo '</div>';

echo '<div style="text-align: center;">';


//FLAG PART 
echo "<table  style=\"text-align: right;  margin-left: auto; margin-right: auto;\">";
echo "<tbody>\n";
  echo "<tr>";
  echo "<td>";
  echo '<form class="language" name="lang" method="post" action="'.$url.'">';
  echo "<input name=\"lang_in\" alt=\"English\" title=\"English\" src=\"". BASE_URL ."images/gb.png\" type=\"image\" style=\"padding:0;\" >";
  echo "<input type=\"hidden\" name=\"lang\" value=\"gb\">";
echo "</form></td><td>";  
  echo '<form class="language" name="lang" method="post" action="'.$url.'">';
  echo "<input name=\"lang_in\" alt=\"French\" title=\"French\" src=\"". BASE_URL ."images/fr.png\"  type=\"image\" style=\"padding:0;\">";
  echo "<input type=\"hidden\" name=\"lang\" value=\"fr\">";
echo "</form></td><td>";  
  echo '<form class="language" name="lang" method="post" action="'.$url.'">';
  echo "<input name=\"lang_in\" alt=\"German\" title=\"German\" src=\"". BASE_URL ."images/de.png\"  type=\"image\" style=\"padding:0;\">";
  echo "<input type=\"hidden\" name=\"lang\" value=\"de\">";
echo "</form></td><td>";  
  echo '<form class="language" name="lang" method="post" action="'.$url.'">';
  echo "<input name=\"lang_in\" alt=\"Japanese\" title=\"Japanese\" src=\"". BASE_URL ."images/jp.png\"  type=\"image\" style=\"padding:0;\">";
  echo "<input type=\"hidden\" name=\"lang\" value=\"jp\">";
  echo "</form></td></tr></tbody></table>\n";
  
echo '</div>';
 


//TOOL CONTENT
echo '<div class="tool_content"> </div>	</div>';
if ($free_url_list!='') {
echo '
<div id="left_area_top">
<span style="font-weight: bold;">
<h3><center>'.$free_url.'</center></h3></span>

<ul>';

$tab=split(',',$free_url_list);
foreach ($tab as $val) {
	$tab2=split(';',$val);
 echo "<li><a href=\"$tab2[1]\">$tab2[0]</a></li>";
}
echo '</ul>

</div>';
}

/*
echo '<div id="left_area_top">
<ul>

  <li><span style="text-decoration: underline;">'.$legal_information.'</span></li>

  <li><span style="text-decoration: underline;">I
forgot my username<br>

    </span></li>

</ul>


</div>
*/

echo '</div>';


//MAIN AREA 
echo '<div id="main_area">
<div id="main_area_top">
<div id="login_form">';

if (OTHER_ACCOUNT=="True")
echo '<h1>Connectez-vous ou cr&eacute;ez un compte ici:</h1>';
else
echo '<h1>'.$connect_ap.':</h1>';


echo '<form name="login_form" action="'. LOGINPATH .'" method="get" >
  <div style="text-align: left;"> <input name="form_request" value="login" type="hidden">'.$network.' : '.HOTSPOT_NAME.'<input name="auth_source" value="default-network" type="hidden"> </div>

  <div style="text-align: left;"><br>'.$login_field.'<br>

  <input name="uid" id="form_username" tabindex="1" value="'.$username.'" size="20" type="text"><br>
'.$password_field.'<br>

  <input name="pwd" id="form_password" tabindex="2" size="20" value="'.$password.'" type="password"><br>

  </div><br>';


//COOKIE
if ( ENABLE_LOGIN_COOKIE ) {
	echo "<div style=\"text-align: left;\">\n";
	echo "<input type=\"checkbox\" ";
	echo "name=\"save_login\">";
	echo '<span >';
	echo $remember_login;
	echo '</span>';
	echo "\n";
	echo "</div><br>\n";
}
echo  '<input class="submit" tabindex="3" name="loginf" value="'.$login_msg.'" type="submit">&nbsp;';
if (OTHER_ACCOUNT=="True")
echo '<input class="submit" tabindex="4" name="form_signup" value="'.$login_msg.'" onclick="location.href="'.BASE_URL.'signup.php" type="button">';

echo "<input type=\"hidden\" name=\"chal\" value=\"" . $_GET["challenge"] . "\">\n";
echo "<input type=\"hidden\" name=\"uamip\" value=" . $_GET["uamip"] . ">\n";
echo "<input type=\"hidden\" name=\"uamport\" value=" . $_GET["uamport"] . ">\n";

echo "<input type=\"hidden\" name=\"redirurl\" value=" . $_GET["redirurl"] . ">\n";
echo "<input type=\"hidden\" name=\"login\" value=Login>\n";
echo "<input type=\"hidden\" name=\"userurl\" value=" . $_GET["userurl"] . ">\n";

echo '
</form>

</div>';

echo  '<div id="login_help">
	            <h1>'.$hotspot_msg.'</h1>';
		
//DETECT THE POPUP BLOCKER

echo '<table class="error_table" cellpadding="2" cellspacing="2">
	<tbody>';

echo "<script type=\"text/JavaScript\" language=\"JavaScript\">
if(popUpsBlocked) {
document.write('<tr><td>');
document.write('<img class=\"img_info\" style=\"width: 32px; height: 32px;\" alt=\"Warning\" src=\"". BASE_URL . "images/error.png\"></td>');
document.write('<td class=\"login_warn\">');
document.write('$popup_block');	
document.write('</td></tr>');
					    
}
</script>";
   
if ($error_msg!='') {
	echo '<tr><td>';
	    echo "<img class=\"img_info\" style=\"width: 32px; height: 32px;\" alt=\"Warning\" src=\"". BASE_URL . "images/error.png\"></td>";
	echo '<td class="login_warn">';
	echo $error_msg;
	echo '</td></tr>';
	    }

if ($info_msg!='') {
	echo '<tr><td>';
	        echo "<img style=\"width: 30px; height: 30px;\" alt=\"Information\" src=\"". BASE_URL . "images/info.gif\"></td>";
	echo '<td class="login_warn">';
	echo $info_msg;
	echo '<br></td></tr>';
	}

	echo '</tbody></table></div>';
echo '</div>

	</div>';
?>
Return current item: phpMyPrepaid