/[dolibarr]/dolibarr/htdocs/telephonie/ligne/fiche.php
ViewVC logotype

Diff of /dolibarr/htdocs/telephonie/ligne/fiche.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.23 by rodolphe, Tue Sep 20 09:34:41 2005 UTC revision 1.24 by rodolphe, Mon Nov 7 09:12:02 2005 UTC
# Line 701  else Line 701  else
701                          }                          }
702                        $db->free();                                    $db->free();            
703                      }                      }
704    
705                      print " - ".$ligne->techno;
706    
707                  }                  }
708                else                else
709                  {                  {
# Line 1174  if ( $user->rights->telephonie->ligne_co Line 1177  if ( $user->rights->telephonie->ligne_co
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
# Line 1198  if ( $user->rights->telephonie->ligne_co Line 1201  if ( $user->rights->telephonie->ligne_co
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    
# Line 1229  if ( $user->rights->telephonie->ligne_ac Line 1232  if ( $user->rights->telephonie->ligne_ac
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
# Line 1254  if ( $user->rights->telephonie->ligne_ac Line 1257  if ( $user->rights->telephonie->ligne_ac
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
# Line 1289  print "\n<br>\n<div class=\"tabsAction\" Line 1292  print "\n<br>\n<div class=\"tabsAction\"
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&amp;id=$ligne->id\">".$langs->trans("Demander la résiliation")."</a>";        print "<a class=\"tabAction\" href=\"fiche.php?action=resilier&amp;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&amp;id=$ligne->id\">".$langs->trans("Annuler la demande de résiliation")."</a>";        print "<a class=\"tabAction\" href=\"fiche.php?action=annuleresilier&amp;id=$ligne->id\">".$langs->trans("Annuler la demande de résiliation")."</a>";
1303      }      }
# Line 1328  if ($_GET["action"] == '' && $result == Line 1331  if ($_GET["action"] == '' && $result ==
1331    
1332  print "</div>";  print "</div>";
1333    
   
   
1334  $db->close();  $db->close();
1335    
1336  llxFooter("<em>Derni&egrave;re modification $Date$ r&eacute;vision $Revision$</em>");  llxFooter("<em>Derni&egrave;re modification $Date$ r&eacute;vision $Revision$</em>");

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26