Add form
This commit is contained in:
34
static/views/book_form.php
Normal file
34
static/views/book_form.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
$form = '<form action="'.$_SERVER["PHP_SELF"].'" method="post">
|
||||
<input type = hidden name="ac" value = "book_save">'.
|
||||
$this->oLang->texts['BOOK_ID'].': <input type="text" name="book_ID" value="';
|
||||
if(isset($this->aRow['book_ID']))
|
||||
{
|
||||
$form .= $this->aRow['book_ID'];
|
||||
}
|
||||
$form .= '"> <br>';
|
||||
if(!isset($this->aRow['book_ID'])){
|
||||
$form .=
|
||||
$this->oLang->texts['NUMBER'].': <input type="text" name="number"> <br>';
|
||||
}
|
||||
$form .= $this->oLang->texts['TITLE'].': <input type="text" name="title" value="';
|
||||
if(isset($this->aRow['title'])){
|
||||
$form .= $this->aRow['title'];
|
||||
}
|
||||
$form .= '"><br>'.
|
||||
$this->oLang->texts['AUTHOR'].': <input type="text" name="author" value="';
|
||||
if(isset($this->aRow['author'])){
|
||||
$form .= $this->aRow['author'];
|
||||
}
|
||||
$form .= '"> <br>';
|
||||
$form .= $this->oLang->texts['LOCATION'].': <input type="text" name="location" value="';
|
||||
if(isset($this->aRow['location'])){
|
||||
$form .= $this->aRow['location'];
|
||||
}
|
||||
|
||||
$form .= '"> <br>
|
||||
<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