Project

General

Profile

« Previous | Next » 

Revision 060ed238

Added by Stephen Beaver over 9 years ago

Fixed #5566

View differences:

src/usr/local/www/services_dyndns.php
92 92
		exit;
93 93
	}
94 94
}
95
$pgtitle = array(gettext("Services"), gettext("Dynamic DNS"), gettext("Dynamic DNS Clients"));
95
$pgtitle = array(gettext("Services"), gettext("Dynamic DNS"), gettext("Clients"));
96 96
include("head.inc");
97 97

  
98 98
if ($input_errors) {
......
105 105
display_top_tabs($tab_array);
106 106
?>
107 107
<form action="services_dyndns.php" method="post" name="iform" id="iform">
108
	<div class="table-responsive">
109
		<table class="table table-striped table-hover table-condensed">
110
			<thead>
111
				<tr>
112
					<th><?=gettext("Interface")?></th>
113
					<th><?=gettext("Service")?></th>
114
					<th><?=gettext("Hostname")?></th>
115
					<th><?=gettext("Cached IP")?></th>
116
					<th><?=gettext("Description")?></th>
117
					<th><?=gettext("Actions")?></th>
118
				</tr>
119
			</thead>
120
			<tbody>
108
	<div class="panel panel-default">
109
		<div class="panel-heading"><h2 class="panel-title"><?=gettext('Dynamic DNS clients')?></h2></div>
110
		<div class="panel-body">
111
			<div class="table-responsive">
112
				<table class="table table-striped table-hover table-condensed">
113
					<thead>
114
						<tr>
115
							<th><?=gettext("Interface")?></th>
116
							<th><?=gettext("Service")?></th>
117
							<th><?=gettext("Hostname")?></th>
118
							<th><?=gettext("Cached IP")?></th>
119
							<th><?=gettext("Description")?></th>
120
							<th><?=gettext("Actions")?></th>
121
						</tr>
122
					</thead>
123
					<tbody>
121 124
<?php
122 125
$i = 0;
123 126
foreach ($a_dyndns as $dyndns):
124 127
?>
125
				<tr<?=!isset($dyndns['enable'])?' class="disabled"':''?>>
126
					<td>
128
						<tr<?=!isset($dyndns['enable'])?' class="disabled"':''?>>
129
							<td>
127 130
<?php
128 131
	$iflist = get_configured_interface_with_descr();
129 132
	foreach ($iflist as $if => $ifdesc) {
......
142 145
		}
143 146
	}
144 147
?>
145
					</td>
146
					<td>
148
							</td>
149
							<td>
147 150
<?php
148 151
	$types = explode(",", DYNDNS_PROVIDER_DESCRIPTIONS);
149 152
	$vals = explode(" ", DYNDNS_PROVIDER_VALUES);
......
156 159
		}
157 160
	}
158 161
?>
159
					</td>
160
					<td>
162
							</td>
163
							<td>
161 164
<?php
162 165
	print(htmlspecialchars($dyndns['host']));
163 166
?>
164
					</td>
165
					<td>
167
							</td>
168
							<td>
166 169
<?php
167 170
	$filename = "{$g['conf_path']}/dyndns_{$dyndns['interface']}{$dyndns['type']}" . escapeshellarg($dyndns['host']) . "{$dyndns['id']}.cache";
168 171
	$filename_v6 = "{$g['conf_path']}/dyndns_{$dyndns['interface']}{$dyndns['type']}" . escapeshellarg($dyndns['host']) . "{$dyndns['id']}_v6.cache";
......
196 199
		print('N/A');
197 200
	}
198 201
?>
199
					</td>
200
					<td>
202
							</td>
203
							<td>
201 204
<?php
202 205
	print(htmlspecialchars($dyndns['descr']));
203 206
?>
204
					</td>
205
					<td>
206
						<a class="fa fa-pencil" title="<?=gettext('Edit service')?>" href="services_dyndns_edit.php?id=<?=$i?>"></a>
207
							</td>
208
							<td>
209
								<a class="fa fa-pencil" title="<?=gettext('Edit service')?>" href="services_dyndns_edit.php?id=<?=$i?>"></a>
207 210
<?php if (isset($dyndns['enable'])) {
208 211
?>
209
						<a class="fa fa-ban" title="<?=gettext('Disable service')?>" href="?act=toggle&amp;id=<?=$i?>"></a>
212
								<a class="fa fa-ban" title="<?=gettext('Disable service')?>" href="?act=toggle&amp;id=<?=$i?>"></a>
210 213
<?php } else {
211 214
?>
212
						<a class="fa fa-check-square-o" title="<?=gettext('Enable service')?>" href="?act=toggle&amp;id=<?=$i?>"></a>
215
								<a class="fa fa-check-square-o" title="<?=gettext('Enable service')?>" href="?act=toggle&amp;id=<?=$i?>"></a>
213 216
<?php }
214 217
?>
215
						<a class="fa fa-trash" title="<?=gettext('Delete service')?>"	href="services_dyndns.php?act=del&amp;id=<?=$i?>"></a>
216
					</td>
217
				</tr>
218
								<a class="fa fa-trash" title="<?=gettext('Delete service')?>"	href="services_dyndns.php?act=del&amp;id=<?=$i?>"></a>
219
							</td>
220
						</tr>
218 221
<?php
219 222
	$i++;
220 223
	endforeach;
221 224
?>
222
			</tbody>
223
	  </table>
225
					</tbody>
226
			  </table>
227
			</div>
228
		</div>
224 229
	</div>
225 230
</form>
226 231

  

Also available in: Unified diff