|
@@ -63,7 +63,7 @@ if (empty($reshook)) {
|
|
|
$edituser->clicktodial_poste = GETPOST("poste");
|
|
|
|
|
|
$result = $edituser->update_clicktodial();
|
|
|
- if ($result < 0)
|
|
|
+ if ($result < 0)
|
|
|
{
|
|
|
setEventMessages($edituser->error, $edituser->errors, 'errors');
|
|
|
}
|
|
@@ -92,11 +92,11 @@ if ($id > 0)
|
|
|
|
|
|
$title = $langs->trans("User");
|
|
|
|
|
|
-
|
|
|
+
|
|
|
print '<form action="'.$_SERVER['PHP_SELF'].'?id='.$object->id.'" method="post">';
|
|
|
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
|
|
print '<input type="hidden" name="action" value="update">';
|
|
|
-
|
|
|
+
|
|
|
dol_fiche_head($head, 'clicktodial', $title, -1, 'user');
|
|
|
|
|
|
$linkback = '';
|
|
@@ -104,17 +104,17 @@ if ($id > 0)
|
|
|
if ($user->rights->user->user->lire || $user->admin) {
|
|
|
$linkback = '<a href="'.DOL_URL_ROOT.'/user/list.php">'.$langs->trans("BackToList").'</a>';
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
dol_banner_tab($object,'id',$linkback,$user->rights->user->user->lire || $user->admin);
|
|
|
-
|
|
|
+
|
|
|
print '<div class="fichecenter">';
|
|
|
print '<div class="underbanner clearboth"></div>';
|
|
|
-
|
|
|
+
|
|
|
// Edit mode
|
|
|
if ($action == 'edit')
|
|
|
{
|
|
|
print '<table class="border" width="100%">';
|
|
|
-
|
|
|
+
|
|
|
if ($user->admin)
|
|
|
{
|
|
|
print '<tr><td width="25%" valign="top">ClickToDial URL</td>';
|
|
@@ -177,15 +177,15 @@ if ($id > 0)
|
|
|
print '<tr><td class="titlefield fieldrequired">ClickToDial '.$langs->trans("IdPhoneCaller").'</td>';
|
|
|
print '<td class="valeur">'.(! empty($object->clicktodial_poste)?$object->clicktodial_poste:'').'</td>';
|
|
|
print "</tr>";
|
|
|
-
|
|
|
+
|
|
|
print '<tr><td>ClickToDial '.$langs->trans("Login").'</td>';
|
|
|
print '<td class="valeur">'.(! empty($object->clicktodial_login)?$object->clicktodial_login:'').'</td>';
|
|
|
print '</tr>';
|
|
|
-
|
|
|
+
|
|
|
print '<tr><td>ClickToDial '.$langs->trans("Password").'</td>';
|
|
|
print '<td class="valeur">'.preg_replace('/./','*',(! empty($object->clicktodial_password)?$object->clicktodial_password:'')).'</a></td>';
|
|
|
print "</tr>\n";
|
|
|
-
|
|
|
+
|
|
|
print "</table>\n";
|
|
|
}
|
|
|
|
|
@@ -197,11 +197,11 @@ if ($id > 0)
|
|
|
print '   ';
|
|
|
print '<input class="button" type="submit" name="cancel" value="'.$langs->trans("Cancel").'">';
|
|
|
print '</div>';
|
|
|
- }
|
|
|
-
|
|
|
+ }
|
|
|
+
|
|
|
print '</div>';
|
|
|
print '</form>';
|
|
|
-
|
|
|
+
|
|
|
/*
|
|
|
* Barre d'actions
|
|
|
*/
|