2015-02-15 09:46:20 +01:00
|
|
|
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
2012-06-04 16:58:40 +02:00
|
|
|
<tr>
|
2013-07-16 00:32:43 +02:00
|
|
|
<td align='left'><b><?php echo $text['header-xmpp']?></b><br>
|
|
|
|
|
<?php echo $text['description-xmpp-list']?>
|
2012-06-04 16:58:40 +02:00
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
<br />
|
|
|
|
|
|
2014-06-21 09:04:04 +02:00
|
|
|
<table class="tr_hover" width='100%' border='0' cellpadding='0' cellspacing='0'>
|
2012-06-04 16:58:40 +02:00
|
|
|
<tr>
|
2013-07-16 00:32:43 +02:00
|
|
|
<th><?php echo $text['label-profile_name']?></th>
|
|
|
|
|
<th><?php echo $text['label-context']?></th>
|
|
|
|
|
<th><?php echo $text['label-status']?></th>
|
|
|
|
|
<th><?php echo $text['label-enabled']?></th>
|
|
|
|
|
<th><?php echo $text['label-description']?></th>
|
2014-02-26 03:47:09 +01:00
|
|
|
<td class='list_control_icons'>
|
2012-06-04 16:58:40 +02:00
|
|
|
<?php if (permission_exists('xmpp_add')) { ?>
|
2013-07-16 00:32:43 +02:00
|
|
|
<a href='xmpp_profile_edit.php' alt='<?php echo $text['button-add']?>'><?php echo $v_link_label_add; ?></a>
|
2012-06-04 16:58:40 +02:00
|
|
|
<?php } ?>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
$c = 0;
|
|
|
|
|
$row_style["0"] = "row_style0";
|
|
|
|
|
$row_style["1"] = "row_style1";
|
|
|
|
|
|
|
|
|
|
foreach($profiles_array as $profile){
|
2014-06-21 10:52:47 +02:00
|
|
|
$tr_link = (permission_exists('xmpp_edit')) ? "href='xmpp_profile_edit.php?id=".$profile['xmpp_profile_uuid']."'" : null;
|
2014-06-21 09:04:04 +02:00
|
|
|
?>
|
|
|
|
|
<tr <?php echo $tr_link; ?>>
|
|
|
|
|
<td class='<?php echo $row_style[$c]; ?>'>
|
|
|
|
|
<?php
|
|
|
|
|
if (permission_exists('xmpp_edit')) {
|
|
|
|
|
?><a href='xmpp_profile_edit.php?id=<?php echo $profile['xmpp_profile_uuid']; ?>'><?php echo $profile['profile_name']; ?></a><?php
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
echo $profile['profile_name'];
|
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
</td>
|
2012-06-04 16:58:40 +02:00
|
|
|
<td class='<?php echo $row_style[$c]; ?>'><?php echo $profile['context']; ?> </td>
|
|
|
|
|
<td class='<?php echo $row_style[$c]; ?>'><?php echo $profile['status']; ?> </td>
|
2014-06-21 09:04:04 +02:00
|
|
|
<td class='<?php echo $row_style[$c]; ?>'><?php echo ucwords($profile['enabled']); ?> </td>
|
2014-06-22 08:35:33 +02:00
|
|
|
<td class='row_stylebg'><?php echo $profile['description']; ?> </td>
|
2014-02-26 03:47:09 +01:00
|
|
|
<td class='list_control_icons'>
|
|
|
|
|
<?php
|
|
|
|
|
if (permission_exists('xmpp_edit')) {
|
|
|
|
|
?><a href='xmpp_profile_edit.php?id=<?php echo $profile['xmpp_profile_uuid']; ?>' alt='<?php echo $text['button-edit']?>'><?php echo $v_link_label_edit; ?></a><?php
|
|
|
|
|
}
|
|
|
|
|
if (permission_exists('xmpp_delete')) {
|
|
|
|
|
?><a href='profile_delete.php?id=<?php echo $profile['xmpp_profile_uuid']; ?>' onclick="return confirm('<?php echo $text['confirm-delete']?>')" alt='<?php echo $text['button-delete']?>'><?php echo $v_link_label_delete; ?></a><?php
|
|
|
|
|
}
|
|
|
|
|
?>
|
2012-06-04 16:58:40 +02:00
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<?php
|
|
|
|
|
if ($c==0) { $c=1; } else { $c=0; }
|
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
<tr>
|
2014-02-26 03:47:09 +01:00
|
|
|
<td colspan='6' class='list_control_icons'>
|
2012-06-04 16:58:40 +02:00
|
|
|
<?php if (permission_exists('xmpp_add')) { ?>
|
2013-07-16 00:32:43 +02:00
|
|
|
<a href='xmpp_profile_edit.php' alt='<?php echo $text['button-add']?>'><?php echo $v_link_label_add; ?></a>
|
2012-06-04 16:58:40 +02:00
|
|
|
<?php } ?>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
2015-02-15 11:05:08 +01:00
|
|
|
</table>
|
|
|
|
|
<br><br>
|