{* Smarty *}

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Заявка!</title>
</head>
<body>

  <div id="OpDemandsDetailView" class="ui-widget-content ui-corner-all">
    <h3 class="ui-widget-header ui-corner-all">Заявка №{$ArrDemands.demands_id}</h3>
    <table border="1" style="padding: 10px;">
      <tr><td><label>Дата:</label></td><td>{$ArrDemands.demands_date|date_format:"%d.%m.%Y %H:%M:%S"}</td></tr>
      <tr><td><label>{$ArrDemands.svttype_name}:</label></td><td>{$ArrDemands.svt_buxname} {if $ArrDemands.svt_name}({$ArrDemands.svt_name}){/if}</td></tr>
      <tr><td><label>Подразделение:</label></td><td>{$ArrDemands.structureorganization_title}</td></tr>
      <tr><td><label>Инв. номер:</label></td><td>{$ArrDemands.svt_invnum}</td></tr>
      <tr><td><label>Пользователь:</label></td><td>{$ArrDemands.users_fio}</td></tr>
      <tr><td><label>Телефон:</label></td><td>{$ArrDemands.users_tel}</td></tr>
      <tr><td><label>Статус:</label></td><td>{$ArrDemands.sprstatus_name}</td></tr>
      {if isset($ArrDemands.master_fio)}<tr><td><label>Исполнитель:</label></td><td>{$ArrDemands.master_fio}</td></tr>{/if}
      {if isset($ArrDemands.demandsclassif_name)}<tr><td><label>Классификация:</label></td><td>{$ArrDemands.demandsclassif_name}</td></tr>{/if}
    </table>
  </div>
  {if isset($ArrDemandsComments) && is_array($ArrDemandsComments) && 1 <= count($ArrDemandsComments)}
  <h3 class="ui-widget-header ui-corner-all">Комментарии</h3>
  <div style="padding-top: 8px;">
    <div>
      {$ArrDemandsComments.demandscomments_date|date_format:"%d.%m.%Y %H:%M:%S"} {if isset($ArrDemandsComments.users_fio)}{$ArrDemandsComments.users_fio}{/if}
    </div>
    <div>{$ArrDemandsComments.demandscomments_comment}</div>
  </div>
  {/if}
</body>
</html>