49
echo '<table class="forminput" border=0>';
49
echo '<table class="forminput" border="0">';
51
51
if (count($request['parent']) == 1)
52
printf('<tr><td colspan=4><b>%s</b></td></tr>',_('Are you sure you want to permanently delete this object?'));
52
printf('<tr><td colspan="4"><b>%s</b></td></tr>',_('Are you sure you want to permanently delete this object?'));
54
printf('<tr><td colspan=4><b>%s</b></td></tr>',_('Are you sure you want to permanently delete these objects?'));
54
printf('<tr><td colspan="4"><b>%s</b></td></tr>',_('Are you sure you want to permanently delete these objects?'));
56
echo '<tr><td colspan=4> </td></tr>';
57
printf('<tr><td width=10%%>%s:</td><td colspan=3 width=75%%><b>%s</b></td></tr>',_('Server'),$app['server']->getName());
56
echo '<tr><td colspan="4"> </td></tr>';
57
printf('<tr><td style="width: 10%%;">%s:</td><td colspan="3" style="width: 75%%;"><b>%s</b></td></tr>',_('Server'),$app['server']->getName());
59
59
foreach ($request['parent'] as $dn)
60
printf('<tr><td width=10%%><acronym title="%s">%s</acronym></td><td colspan=3 width=75%%><b>%s</b></td></tr>',
60
printf('<tr><td style="width: 10%%;"><acronym title="%s">%s</acronym></td><td colspan="3" style="width: 75%%;"><b>%s</b></td></tr>',
61
61
_('Distinguished Name'),_('DN'),$dn);
63
echo '<tr><td colspan=4> </td></tr>';
63
echo '<tr><td colspan="4"> </td></tr>';
65
65
$request['delete'] = $request['parent'];
67
67
if (count($request['children'])) {
68
printf('<tr><td colspan=4><b>%s</b></td></tr>',_('Permanently delete all children also?'));
69
echo '<tr><td colspan=4> </td></tr>';
68
printf('<tr><td colspan="4"><b>%s</b></td></tr>',_('Permanently delete all children also?'));
69
echo '<tr><td colspan="4"> </td></tr>';
71
71
# We need to see if the children have children
85
85
array_push($request['delete'],$value['dn']);
88
echo '<td colspan=4>';
88
echo '<td colspan="4">';
89
89
printf(_('This request also includes %s children entries.'),count($request['children']));
92
printf('<tr><td colspan=4>%s</td></tr>',
92
printf('<tr><td colspan="4">%s</td></tr>',
93
93
sprintf(_('phpLDAPadmin can also recursively delete all %s of the child entries. See below for a list of all the entries that this action will delete. Do you want to do this?'),count($request['children'])));
95
echo '<tr><td colspan=4> </td></tr>';
95
echo '<tr><td colspan="4"> </td></tr>';
97
printf('<tr><td colspan=4><small>%s</small></td></tr>',
97
printf('<tr><td colspan="4"><small>%s</small></td></tr>',
98
98
_('Note: this is potentially very dangerous and you do this at your own risk. This operation cannot be undone. Take into consideration aliases, referrals, and other things that may cause problems.'));
101
echo '<tr><td colspan=4> </td></tr>';
101
echo '<tr><td colspan="4"> </td></tr>';
105
printf('<tr><td colspan=4><center><b>%s</b></center></td></tr>',_('List of entries to be deleted:'));
106
echo '<tr><td colspan=4> </td></tr>';
105
printf('<tr><td colspan="4"><center><b>%s</b></center></td></tr>',_('List of entries to be deleted:'));
106
echo '<tr><td colspan="4"> </td></tr>';
109
echo '<tr><td colspan=4><center>';
109
echo '<tr><td colspan="4"><center>';
110
110
printf('<select size="%s" multiple disabled style="background:white; color:black;width:500px" >',min(10,count($request['delete'])));
111
111
foreach ($request['delete'] as $key => $value)
112
112
printf('<option>%s. %s</option>',++$i,htmlspecialchars(dn_unescape($value)));
114
114
echo '</center></td></tr>';
117
echo '<tr><td colspan=4> </td></tr>';
117
echo '<tr><td colspan="4"> </td></tr>';
121
echo '<td width=50% colspan=2><center>';
121
echo '<td colspan="2" style="width: 50%; text-align: center;">';
122
122
echo '<form action="cmd.php" method="post">';
123
123
echo '<input type="hidden" name="cmd" value="rdelete" />';
124
124
printf('<input type="hidden" name="server_id" value="%s" />',$app['server']->getIndex());
129
129
echo '</center></td>';
131
echo '<td colspan=2 width=50%><center>';
131
echo '<td colspan="2" style="width: 50%; text-align: center;">';
133
133
echo '<form action="cmd.php" method="get">';
134
134
echo '<input type="hidden" name="cmd" value="template_engine" />';