<form method="post" name="save" action="" enctype="multipart/form-data">
  <div class="form-group">
    <input type="text" class="form-control" value="<?=isset($_SESSION['news_title_2']) ? $_SESSION['news_title_2'] : $news['title']?>" placeholder="Заголовок" name="title">
    <small class="form-text text-muted">max 128 симв.</small>
  </div>
  
   <div class="form-group">
    <input type="text" class="form-control" value="<?=isset($_SESSION['news_link_2']) ? $_SESSION['news_link_2'] : $news['link']?>" placeholder="Персональная ссылка" name="link">
    <small class="form-text text-muted">max 128 симв. рус/анг</small>
  </div> 
	<div class="form-group">
	<select class="form-control" name="razd">
	<?
		foreach ($razd AS $p) {
			?> <option value="<?=$p['id']?>" <?=($p['id'] == $news['razd'] ? 'selected="selected"':'')?>><?=output($p['name'], 'html')?></option><?
		}
	?>
	</select>
	<small class="form-text text-muted">Важно указать правильный раздел</small>
	</div>

    <div class="form-group">
    <textarea placeholder="Описание новости" style="height: 220px;" class="form-control" name="text"><?=isset($_SESSION['news_text_2']) ? $_SESSION['news_text_2'] : $news['text']?></textarea>
    <small class="form-text text-muted">max 30k симв.</small>
  </div> 
  
   <div class="form-group">
    <textarea placeholder="Keywords" class="form-control" name="keywords"><?=isset($_SESSION['news_keywords_2']) ? $_SESSION['news_keywords_2'] : $news['keywords']?></textarea>
    <small class="form-text text-muted">max 256 симв.</small>
  </div>  
  
   <div class="form-group">
    <textarea placeholder="Description" class="form-control" name="description"><?=isset($_SESSION['news_description_2']) ? $_SESSION['news_description_2'] : $news['description']?></textarea>
    <small class="form-text text-muted">max 256 симв.</small>
  </div>  
 
 <div class="form-group">
    <label for="exampleFormControlFile1">Обложка (если требуется заменить)</label>
    <input name="file" type="file" class="form-control-file" id="exampleFormControlFile1">
  </div>
  
  <button type="submit" name="save" class="btn btn-primary">Сохранить</button>
</form>
<?