46 lines
1.5 KiB
PHP
46 lines
1.5 KiB
PHP
<?php
|
|
$form = '<form action="'.htmlspecialchars($_SERVER["PHP_SELF"]).'" method="post">
|
|
<input type = hidden name="ac" value = "loan_save">';
|
|
if(isset($this->r_loan_ID)){
|
|
$form .='<input type = hidden name="loan_ID" value = "'.$this->r_loan_ID.'">';
|
|
}
|
|
$form .=
|
|
$this->oLang->texts['USER_ID'].': <input type="text" name="user_ID" value="';
|
|
if(isset($this->aLoan['user_ID'])){
|
|
$form .= $this->aLoan['user_ID'];
|
|
}
|
|
$form .= '"> <br>'.
|
|
$this->oLang->texts['TYPE'].': <input type="radio" id="book" name="type" value="book"';
|
|
if ($this->aLoan['type']== "book"){
|
|
$form .= 'checked';
|
|
}
|
|
$form .= '>
|
|
<label for="book">'.$this->oLang->texts['BOOK'].'</label>
|
|
<input type="radio" id="material" name="type" value="material"';
|
|
if ($this->aLoan['type']=="material"){
|
|
$form .= 'checked';
|
|
}
|
|
$form .= '>
|
|
<label for id ="material">'.$this->oLang->texts['MATERIAL'].'</label><br>'.
|
|
$this->oLang->texts['ID'].': <input type="text" name="ID" value="';
|
|
if(isset($this->aLoan['ID'])){
|
|
$form .= $this->aLoan['ID'];
|
|
}
|
|
$form .= '"> <br>'.
|
|
$this->oLang->texts['LENT_ON'].': <input type="text" name="pickup_date" value="';
|
|
if(isset($this->aLoan['pickup_date'])){
|
|
$form .= $this->aLoan['pickup_date'];
|
|
}
|
|
$form .= '"> <br>'.
|
|
$this->oLang->texts['RETURNED_ON'].': <input type="text" name="return_date" value="';
|
|
if(isset($this->aLoan['return_date'])){
|
|
$form .= $this->aLoan['return_date'];
|
|
}
|
|
$form .= '"> <br>
|
|
<input type="submit" value="'.$this->oLang->texts['BUTTON_SEND'].'">
|
|
<input type="reset" value="'.$this->oLang->texts['BUTTON_RESET'].'">
|
|
</form>';
|
|
echo $form;
|
|
|
|
|