-   
-   
- <?php  
-     if (isset($_SESSION['usuari']))  
-     {  
-         if($_SESSION['nivell']==0)  
-         {  
- ?>  
-             <table border='0' align='right'>  
-                 <tr>  
-                     <td align='left'>  
-                         <a href='menu_clients.html'><input type='image' src='img/enrere.png' onMouseOver='this.src="img/enrereazul.png"' onMouseOut='this.src="img/enrere.png"'></a>  
-                     <td>  
-                 </tr>  
-                 <tr>  
-                     <td align='left'>  
-                         <br>  
-                     <td>  
-                 </tr>      
-             </table>  
-             <html>  
-                 <HEAD>  
-                     <LINK REL='stylesheet' TYPE='text/css' HREF='css/estilos.css'>  
-                 </HEAD>  
-                 <BODY BGCOLOR="024615" TOPMARGIN="0">  
-                     <?php  
-                         $sql="SELECT * FROM clients";  
-                     ?>  
-                         <table width='100%' height='85%' align='center'>  
-                             <tr>  
-                                 <td align='center' valign='middle'>  
-                                     <table border='0' align='center'>  
-                                         <tr class='texto_tabla_titulo' bgcolor='000000'>  
-                                             <td align='center'>  
-                                                  Número Client  
-                                             </td>  
-                                             <td align='center'>  
-                                                  Primer Cognom   
-                                             </td>  
-                                             <td align='center'>  
-                                                  Segon Cognom   
-                                             </td>  
-                                             <td align='center'>  
-                                                  Nom   
-                                             </td>  
-                                             <td align='center'>  
-                                                  Codi Postal   
-                                             </td>  
-                                             <td align='center'>  
-                                                  Població   
-                                             </td>  
-                                             <td align='center'>  
-                                                  Veure   
-                                             </td>  
-                                             <td align='center'>  
-                                                  Modificar   
-                                             </td>  
-                                             <td align='center'>  
-                                                  Esborrar  
-                                             </td>  
-                                         </tr>  
-                     <?php  
-                                         $lin=1;  
-                                         {  
-                                             if (($lin%2)==0)  
-                                             {  
-                                                 echo "<tr class='texto_tabla' bgcolor='cdffb3'>";  
-                                             }  
-                                             else  
-                                             {  
-                                                 echo "<tr class='texto_tabla' bgcolor='FFFFFF'>";  
-                                             }  
-                                             $lin=$lin+1;  
-                                                 echo "<td align='center'>";  
-                                                     echo $array["numero_cli"];  
-                                                 echo "</td>";  
-                                                 echo "<td align='center'>";  
-                                                     echo $array["cognom_1_cli"];  
-                                                 echo "</td>";  
-                                                 echo "<td align='center'>";  
-                                                     echo $array["cognom_2_cli"];  
-                                                 echo "</td>";  
-                                                 echo "<td align='center'>";  
-                                                     echo $array["nom_cli"];  
-                                                 echo "</td>";  
-                                                 echo "<td align='center'>";  
-                                                     echo $array["cp_cli"];  
-                                                 echo "</td>";  
-                                                 echo "<td align='center'>";  
-                                                     echo $array["poblacio_cli"];  
-                                                 echo "</td>";  
-                                                 echo "<td align='center'>";  
-                                                     echo "<a href='veure_tot_client.php?modi=".$array["numero_cli"]."'><img src='img/veure.png' border='0'></a>";  
-                                                 echo "</td>";  
-                                                 echo "<td align='center'>";  
-                                                     echo "<a href='modificar_client.php?modi=" .$array['numero_cli']."'><img src='img/modificar.png' border='0'></a>";  
-                                                 echo "</td>";  
-                                                 echo "<td align='center'>";  
-                                                     echo "<a href='esborrar_client.php?eli=" .$array['numero_cli']."'><img src='img/eliminar.png' border='0'></a>";  
-                                                 echo "</td>";  
-                                             echo "</tr>";  
-                                         }  
-                                     echo "</table>";  
-                                 echo "</td>";  
-                             echo "</tr>";  
-                         echo "</table>";  
-                     ?>  
-                 </body>  
-             </html>  
- <?php  
-         }  
-         else  
-         {  
- ?>  
-             <table border='0' align='right'>  
-                 <tr>  
-                     <td align='left'>  
-                         <a href='menu_clients.html'><input type='image' src='img/enrere.png' onMouseOver='this.src="img/enrereazul.png"' onMouseOut='this.src="img/enrere.png"'></a>  
-                     <td>  
-                 </tr>      
-             </table>  
-             <html>  
-                 <HEAD>  
-                     <LINK REL='stylesheet' TYPE='text/css' HREF='css/estilos.css'>  
-                 </HEAD>  
-                 <BODY BGCOLOR="024615" TOPMARGIN="0">  
-                     <?php  
-                         $sql="SELECT * FROM clients";  
-                         echo "<table width='100%' height='85%' align='center'>";  
-                             echo "<tr>";  
-                                 echo "<td align='center' valign='middle'>";  
-                                     echo "<table border='0' align='center'>";  
-                                         echo "<tr class='texto_tabla_titulo' bgcolor='000000'>";  
-                                             echo "<td align='center'>";  
-                                                 echo " Número Client";  
-                                             echo "</td>";  
-                                             echo "<td align='center'>";  
-                                                 echo " Primer Cognom ";  
-                                             echo "</td>";  
-                                             echo "<td align='center'>";  
-                                                 echo " Segon Cognom ";  
-                                             echo "</td>";  
-                                             echo "<td align='center'>";  
-                                                 echo " Nom ";  
-                                             echo "</td>";  
-                                             echo "<td align='center'>";  
-                                                 echo " Codi Postal ";  
-                                             echo "</td>";  
-                                             echo "<td align='center'>";  
-                                                 echo " Població ";  
-                                             echo "</td>";  
-                                             echo "<td align='center'>";  
-                                                 echo " Veure ";  
-                                             echo "</td>";  
-                                         echo "</tr>";  
-                                         $lin=1;  
-                                         {  
-                                             if (($lin%2)==0)  
-                                             {  
-                                                 echo "<tr class='texto_tabla' bgcolor='cdffb3'>";  
-                                             }  
-                                             else  
-                                             {  
-                                                 echo "<tr class='texto_tabla' bgcolor='FFFFFF'>";  
-                                             }  
-                                             $lin=$lin+1;  
-                                                 echo "<td align='center'>";  
-                                                     echo $array["numero_cli"];  
-                                                 echo "</td>";  
-                                                 echo "<td align='center'>";  
-                                                     echo $array["cognom_1_cli"];  
-                                                 echo "</td>";  
-                                                 echo "<td align='center'>";  
-                                                     echo $array["cognom_2_cli"];  
-                                                 echo "</td>";  
-                                                 echo "<td align='center'>";  
-                                                     echo $array["nom_cli"];  
-                                                 echo "</td>";  
-                                                 echo "<td align='center'>";  
-                                                     echo $array["cp_cli"];  
-                                                 echo "</td>";  
-                                                 echo "<td align='center'>";  
-                                                     echo $array["poblacio_cli"];  
-                                                 echo "</td>";  
-                                                 echo "<td align='center'>";  
-                                                     echo "<a href='veure_tot_client.php?modi=".$array["numero_cli"]."'><img src='img/veure.png' border='0'></a>";  
-                                                 echo "</td>";  
-                                             echo "</tr>";  
-                                         }  
-                                     echo "</table>";  
-                                 echo "</td>";  
-                             echo "</tr>";  
-                         echo "</table>";  
-                     ?>  
-                 </body>  
-             </html>  
- <?php  
-         }  
-     }  
- ?> 
-   
-   
-