<tr class='table$n' > <td class=\"act\" > <form name=\"a_exch\" action=\"partners_files.php\" method=\"post\"> <input name=\"func\" type=\"hidden\" value=\"active_exch\"> <input name=\"tm\" type=\"hidden\" value=\"$tm\"> <input name=\"dir\" type=\"hidden\" value=\"$dir\"> <input name=\"id\" type=\"hidden\" value=\"" . $mas[$a]['id'] . "\"> <input name=\"active\" type=\"hidden\" value=\"" . $mas[$a]['active'] . "\"> <input type=\"image\" src=\"images/"; if ($mas[$a]['active'] == 1) { echo 'green'; } else { echo 'red'; } echo ".jpg\" width=\"10\" height=\"10\" border=1 alt=\"Перемикнути\" title=\"Перемикнути\"> </form> </td> <td class=\"act\"> <form name=\"fup\" action=\"partners_files.php\" method=\"post\"> <input name=\"func\" type=\"hidden\" value=\"pos_exch\"> <input name=\"tm\" type=\"hidden\" value=\"$tm\"> <input name=\"dir\" type=\"hidden\" value=\"$dir\"> <input name=\"id1\" type=\"hidden\" value=\"" . $mas[$a - 1]['id'] . "\"> <input name=\"id2\" type=\"hidden\" value=\"" . $mas[$a]['id'] . "\"> <input type=\"image\" src=\"images/up.gif\" width=\"17\" height=\"17\" alt=\"Підняти\" border=0 title=\"Підняти\"> </form> </td> <td class=\"act\"> <form name=\"fdown\" action=\"partners_files.php\" method=\"post\"> <input name=\"func\" type=\"hidden\" value=\"pos_exch\"> <input name=\"tm\" type=\"hidden\" value=\"$tm\"> <input name=\"dir\" type=\"hidden\" value=\"$dir\"> <input name=\"id1\" type=\"hidden\" value=\"" . $mas[$a]['id'] . "\"> <input name=\"id2\" type=\"hidden\" value=\"" . $mas[$a + 1]['id'] . "\"> <input type=\"image\" src=\"images/down.gif\" width=\"17\" height=\"17\" alt=\"Опустити\" border=0 title=\"Опустити\"> </form> </td> <td class=\"act\"> <form name=\"fedit\" action=\"partners_files.php\" method=\"post\"> <input name=\"act\" type=\"hidden\" value=\"edit\"> <input name=\"tm\" type=\"hidden\" value=\"$tm\"> <input name=\"dir\" type=\"hidden\" value=\"$dir\"> <input name=\"id\" type=\"hidden\" value=\"" . $mas[$a]['id'] . "\"> <input type=\"image\" src=\"images/edit.png\" width=\"17\" height=\"17\" alt=\"Редагувати\" border=0 title=\"Редагувати\"> </form> </td> <td class=\"act\"> <form name=\"fdel\" action=\"partners_files.php\" method=\"post\"> <input name=\"func\" type=\"hidden\" value=\"del\"> <input name=\"tm\" type=\"hidden\" value=\"$tm\"> <input name=\"dir\" type=\"hidden\" value=\"$dir\"> <input name=\"id\" type=\"hidden\" value=\"" . $mas[$a]['id'] . "\"> <input type=\"image\" src=\"images/fileclose.png\" width=\"17\" height=\"17\" alt=\"Видалити\" border=0 title=\"Видалити\"> </form> </td>
Standard input is empty
<tr class='table$n' > <td class=\"act\" > <form name=\"a_exch\" action=\"partners_files.php\" method=\"post\"> <input name=\"func\" type=\"hidden\" value=\"active_exch\"> <input name=\"tm\" type=\"hidden\" value=\"$tm\"> <input name=\"dir\" type=\"hidden\" value=\"$dir\"> <input name=\"id\" type=\"hidden\" value=\"" . $mas[$a]['id'] . "\"> <input name=\"active\" type=\"hidden\" value=\"" . $mas[$a]['active'] . "\"> <input type=\"image\" src=\"images/"; if ($mas[$a]['active'] == 1) { echo 'green'; } else { echo 'red'; } echo ".jpg\" width=\"10\" height=\"10\" border=1 alt=\"Перемикнути\" title=\"Перемикнути\"> </form> </td> <td class=\"act\"> <form name=\"fup\" action=\"partners_files.php\" method=\"post\"> <input name=\"func\" type=\"hidden\" value=\"pos_exch\"> <input name=\"tm\" type=\"hidden\" value=\"$tm\"> <input name=\"dir\" type=\"hidden\" value=\"$dir\"> <input name=\"id1\" type=\"hidden\" value=\"" . $mas[$a - 1]['id'] . "\"> <input name=\"id2\" type=\"hidden\" value=\"" . $mas[$a]['id'] . "\"> <input type=\"image\" src=\"images/up.gif\" width=\"17\" height=\"17\" alt=\"Підняти\" border=0 title=\"Підняти\"> </form> </td> <td class=\"act\"> <form name=\"fdown\" action=\"partners_files.php\" method=\"post\"> <input name=\"func\" type=\"hidden\" value=\"pos_exch\"> <input name=\"tm\" type=\"hidden\" value=\"$tm\"> <input name=\"dir\" type=\"hidden\" value=\"$dir\"> <input name=\"id1\" type=\"hidden\" value=\"" . $mas[$a]['id'] . "\"> <input name=\"id2\" type=\"hidden\" value=\"" . $mas[$a + 1]['id'] . "\"> <input type=\"image\" src=\"images/down.gif\" width=\"17\" height=\"17\" alt=\"Опустити\" border=0 title=\"Опустити\"> </form> </td> <td class=\"act\"> <form name=\"fedit\" action=\"partners_files.php\" method=\"post\"> <input name=\"act\" type=\"hidden\" value=\"edit\"> <input name=\"tm\" type=\"hidden\" value=\"$tm\"> <input name=\"dir\" type=\"hidden\" value=\"$dir\"> <input name=\"id\" type=\"hidden\" value=\"" . $mas[$a]['id'] . "\"> <input type=\"image\" src=\"images/edit.png\" width=\"17\" height=\"17\" alt=\"Редагувати\" border=0 title=\"Редагувати\"> </form> </td> <td class=\"act\"> <form name=\"fdel\" action=\"partners_files.php\" method=\"post\"> <input name=\"func\" type=\"hidden\" value=\"del\"> <input name=\"tm\" type=\"hidden\" value=\"$tm\"> <input name=\"dir\" type=\"hidden\" value=\"$dir\"> <input name=\"id\" type=\"hidden\" value=\"" . $mas[$a]['id'] . "\"> <input type=\"image\" src=\"images/fileclose.png\" width=\"17\" height=\"17\" alt=\"Видалити\" border=0 title=\"Видалити\"> </form> </td>