/**
  * 	Enter description here ...
  *
  * 	@param	string	$action		Action type
  */
 function getLoginPageOptions($parameters, &$object, &$action = '', $hook)
 {
     global $conf, $user, $langs;
     $langs->load("pos@pos");
     if (strstr($_SERVER["REQUEST_URI"], 'pos/frontend/index')) {
         $this->getInstanceDao();
         dol_include_once('/pos/class/mobile_detect.php');
         dol_include_once('/pos/class/pos.class.php');
         $terminals = POS::select_Terminals();
         if (sizeof($terminals)) {
             $result = '<select class="flat" id="terminal" name="terminal">' . "\n";
             $detect = new Mobile_Detect();
             $i = 0;
             foreach ($terminals as $terminal) {
                 if ($detect->isMobile()) {
                     if ($terminal["tactil"] == 2) {
                         $result .= "<option value='" . $terminal["rowid"] . "'>" . $terminal["name"] . "</option>\n";
                     }
                 } else {
                     $result .= "<option value='" . $terminal["rowid"] . "'>" . $terminal["name"] . "</option>\n";
                 }
                 $i++;
             }
             $result .= '</select>' . "\n";
         } else {
             $result .= '<label>' . $langs->trans("NotHasTerminal") . '</label>';
         }
         $divformat = '<div class="terminalBox"><strong><label for="Terminal">' . $langs->trans('Terminal') . '</label></strong>';
         $divformat .= $result;
         $divformat .= '</div>';
         $this->results['options']['div'] = $divformat;
         $tableformat = '<tr><td class="loginfield nowrap" valign="middle"><strong><label for="Terminal">' . $langs->trans('Terminal') . '</label></strong></td>';
         $tableformat .= '<td valign="top" nowrap="nowrap">';
         $tableformat .= $result;
         $tableformat .= '</td></tr>';
         $this->results['options']['table'] = $tableformat;
         return 1;
     }
 }
    ?>
	
        <div class="errorLogin"><?php 
    print GETPOST("err", "string") . "<br>";
    ?>
</div> <?php 
}
?>
		<fieldset class="cadre_facturation"><!--<legend class="titre1"><?php 
/*?><?php echo $langs->trans("Identification"); ?><?php */
?>
</legend>-->

		
		 <?php 
$terminals = POS::select_Terminals();
if (sizeof($terminals)) {
    ?>
		  <div class="six columns">	
			<form id="frmLogin" method="POST" action="verify.php" class="nice">
				<input type="hidden" name="token" value="<?php 
    echo $_SESSION['newtoken'];
    ?>
" />

					<br>
					<label><?php 
    echo $langs->trans("Login");
    ?>
</label>
					<input name="username" class="texte_login" type="text" value="<?php