701 |
} |
} |
702 |
$db->free(); |
$db->free(); |
703 |
} |
} |
704 |
|
|
705 |
|
print " - ".$ligne->techno; |
706 |
|
|
707 |
} |
} |
708 |
else |
else |
709 |
{ |
{ |
1177 |
$db->free(); |
$db->free(); |
1178 |
} |
} |
1179 |
|
|
1180 |
if (sizeof($ff) > 0) |
if (sizeof($ff) > 0 && $ligne->techno == 'presel') |
1181 |
{ |
{ |
1182 |
/** |
/** |
1183 |
* Transférer chez un autre fournisseur |
* Transférer chez un autre fournisseur |
1201 |
|
|
1202 |
|
|
1203 |
|
|
1204 |
if ( $user->rights->telephonie->ligne_activer && $ligne->statut == 2) |
if ( $user->rights->telephonie->ligne_activer && $ligne->statut == 2 && $ligne->techno == 'presel') |
1205 |
{ |
{ |
1206 |
$form = new Form($db); |
$form = new Form($db); |
1207 |
|
|
1232 |
print '</form></td></tr></table>'; |
print '</form></td></tr></table>'; |
1233 |
} |
} |
1234 |
|
|
1235 |
if ( $user->rights->telephonie->ligne_activer && ( $ligne->statut == 5 || $ligne->statut == 3)) |
if ( $user->rights->telephonie->ligne_activer && ( $ligne->statut == 5 || $ligne->statut == 3) && $ligne->techno == 'presel') |
1236 |
{ |
{ |
1237 |
/** |
/** |
1238 |
* Résiliation demandée |
* Résiliation demandée |
1257 |
} |
} |
1258 |
|
|
1259 |
|
|
1260 |
if ( $user->rights->telephonie->ligne->creer && $ligne->statut == 6) |
if ( $user->rights->telephonie->ligne->creer && $ligne->statut == 6 && $ligne->techno == 'presel') |
1261 |
{ |
{ |
1262 |
/** |
/** |
1263 |
* A commander |
* A commander |
1292 |
if ($_GET["action"] == '' && $result == 1 && $client_comm->perm_read) |
if ($_GET["action"] == '' && $result == 1 && $client_comm->perm_read) |
1293 |
{ |
{ |
1294 |
|
|
1295 |
if ( $user->rights->telephonie->ligne->resilier && $ligne->statut == 3) |
if ( $user->rights->telephonie->ligne->resilier && $ligne->statut == 3 && $ligne->techno == 'presel') |
1296 |
{ |
{ |
1297 |
print "<a class=\"tabAction\" href=\"fiche.php?action=resilier&id=$ligne->id\">".$langs->trans("Demander la résiliation")."</a>"; |
print "<a class=\"tabAction\" href=\"fiche.php?action=resilier&id=$ligne->id\">".$langs->trans("Demander la résiliation")."</a>"; |
1298 |
} |
} |
1299 |
|
|
1300 |
if ( $user->rights->telephonie->ligne->resilier && $ligne->statut == 4) |
if ( $user->rights->telephonie->ligne->resilier && $ligne->statut == 4 && $ligne->techno == 'presel') |
1301 |
{ |
{ |
1302 |
print "<a class=\"tabAction\" href=\"fiche.php?action=annuleresilier&id=$ligne->id\">".$langs->trans("Annuler la demande de résiliation")."</a>"; |
print "<a class=\"tabAction\" href=\"fiche.php?action=annuleresilier&id=$ligne->id\">".$langs->trans("Annuler la demande de résiliation")."</a>"; |
1303 |
} |
} |
1331 |
|
|
1332 |
print "</div>"; |
print "</div>"; |
1333 |
|
|
|
|
|
|
|
|
1334 |
$db->close(); |
$db->close(); |
1335 |
|
|
1336 |
llxFooter("<em>Dernière modification $Date$ révision $Revision$</em>"); |
llxFooter("<em>Dernière modification $Date$ révision $Revision$</em>"); |