Add form
This commit is contained in:
31
static/views/presence_form.php
Normal file
31
static/views/presence_form.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
$form = '<form action="'.htmlspecialchars($_SERVER["PHP_SELF"]).'" method="post">
|
||||
<input type = hidden name="ac" value = "presence_save">
|
||||
<input type = hidden name="presence_ID" value = "';
|
||||
if(isset($this->r_presence_ID))
|
||||
{
|
||||
$form .= $this->r_presence_ID;
|
||||
}
|
||||
$form .= '">'.
|
||||
|
||||
$this->oLang->texts['UID'].': <input type="text" name="UID" value="';
|
||||
if(isset($this->aRow['UID'])){
|
||||
$form .= $this->aRow['UID'];
|
||||
}
|
||||
$form .='"><br>'.
|
||||
$this->oLang->texts['CHECKIN_AT'].': <input type="text" name="checkin_time" value="';
|
||||
if(isset($this->aRow['checkin_time'])){
|
||||
$form .= $this->aRow['checkin_time'];
|
||||
}
|
||||
$form .= '"> <br>'.
|
||||
$this->oLang->texts['CHECKOUT_AT'].': <input type="text" name="checkout_time" value="';
|
||||
if(isset($this->aRow['checkout_time'])){
|
||||
$form .= $this->aRow['checkout_time'];
|
||||
}
|
||||
$form .= '"> <br>';
|
||||
$form .= '
|
||||
<input type="submit" value="'.$this->oLang->texts['BUTTON_SEND'].'">
|
||||
<input type="reset" value="'.$this->oLang->texts['BUTTON_RESET'].'">
|
||||
</form>';
|
||||
echo $form;
|
||||
?>
|
Reference in New Issue
Block a user