hyteck-blog/static/views/material_form.php

29 lines
949 B
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 = "material_save">
'.$this->oLang->texts['MATERIAL_ID'].': <input type="text" name="material_ID" value="';
if(isset($this->aRow['material_ID'])){
$form .= $this->aRow['material_ID'];
}
$form .= '"> <br>';
if(!isset($this->aRow['material_ID'])){
$form .= $this->oLang->texts['NUMBER'].': <input type=\"text\" name="number"> <br>';
}
$form .= $this->oLang->texts['NAME'].' : <input type="text" name="name" value=';
if(isset($this->aRow['name'])){
$form .= $this->aRow['name'];
}
$form .= '><br>'.
$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;
?>