hyteck-blog/static/views/book_form.php

35 lines
1.1 KiB
PHP
Raw Normal View History

2019-11-12 11:17:21 +00:00
<?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;
?>