- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
$sql = "SELECT aps.* FROM apps_applicationinterfaceincoming aps
WHERE aps.applicationid = '$id' ORDER BY aps.name ASC";
$Result = $Database->query( $sql );
foreach( $Result as $aResult )
{
$editIcon = Common_Image_Icon_Overlay::fetchIcon(
Common_Image_Icon_Overlay::EDIT, _('Edit interface' ),
'/apps/serveroverlay.php?table=apps_applicationinterfaceincoming&edit=1&mode='.AppsEnvironment::iVIEWMODE_EDIT.'&id='.$aResult['id']
);
$deleteIcon = Common_Image_Icon_Ajax::fetch(
Common_Image_Icon_Ajax::DELETE, array( 'aLinkAttributes' => array(
'onclick' => "new Browser.Http.Ajax.Updater( '#interfacein',
'/apps/interfacein_ajax.php?action=remove&id={$aResult['id']}' );" ) )
);
$html .= <<<EOF
<tr>
<td>{$aResult['name']}</td>
<td>{$aResult['frequency_data_transfers']}</td>
<td>{$aResult['type_of_interface']}</td>
<td>{$aResult['internal_external']}</td>
<td>{$aResult['description']}</td>
<td class="actions">{$editIcon} {$deleteIcon}</td>
</tr>
EOF;
}
$html .= <<<EOF
</tbody>
</table>
</fieldset>
EOF;