IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Langage PHP Discussion :

Case à cocher et répartition des tâches


Sujet :

Langage PHP

  1. #61
    Membre régulier
    Femme Profil pro
    Consultante LIMS
    Inscrit en
    Avril 2009
    Messages
    145
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Âge : 39
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Consultante LIMS
    Secteur : Industrie Pharmaceutique

    Informations forums :
    Inscription : Avril 2009
    Messages : 145
    Points : 74
    Points
    74
    Par défaut
    j'ai pensé à quelque chose, mais je ne sais pas si c'est faisable.

    Nous avons fait le script de traitement qui parse normalement correctement chaque fichier pour chaque requete.

    Serait-il possible de faire une fonction d'affichage, c'est à dire que :
    -elle contient en faite le bloc html que je veux remplir :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    <tr>
            <td align="center"  bgcolor="#999999" >
              <table border="0" cellspacing="0" cellpadding="0">
                <tr> 
                  <td align="center" valign="top">
                    <span class="h3_like"><BIG>&nbsp;'. $_SESSION['requete'][$req].'&nbsp;</BIG></span>
                  </td>
                </tr>
              </table>
            </td>
          </tr>
     
          <tr>
            <td align="left">
              <TABLE BORDER=0 ALIGN=Left  cellspacing="3" cellpadding="0">
                <tr>
                  <td bgcolor="#CCCCCC">
                    <p>
                      <b>Description</b>
                    </p>
                  </td>
                  <td>
                    <p>
                         '.nl2br($_SESSION['requete'][$req]['KW']).'
                    </p>
                  </td>
                </tr>
                <tr>
                  <td bgcolor="#CCCCCC">
                    <p>
                      <b>Number of protéique sequences</b>
                    </p>
                  </td>
                  <td>
                    <p>
                         '.nl2br($_SESSION['requete'][$req]['ND']).'
                    </p>
                  </td>
                </tr>
                <tr>
                  <td bgcolor="#CCCCCC">
                    <p>
                      <b>Alignement lenght</b>
                    </p>
                  </td>
                  <td>
                    <p>
                         '.nl2br($_SESSION['requete'][$req]['LA']).'
                    </p>
                  </td>
                </tr>
                <tr>
                  <td bgcolor="#CCCCCC">
                    <p>
                      <b>Horizontal transfert</b>
                    </p>
                  </td>
                  <td>
                    <p>
                         '.nl2br($_SESSION['requete'][$req]['HT']).'
                    </p>
                  </td>
                </tr>
     
                <tr>
                  <td bgcolor="#CCCCCC">
                    <p>
                      <b>Innovation</b>
                    </p>
                  </td>
                  <td>
                    <p>
                         '.nl2br($_SESSION['requete'][$req]['INN']).' 
                    </p>
                  </td>
                </tr>
                <tr>
                  <td bgcolor="#CCCCCC">
                    <p>
                      <b>Innovation type</b>
                    </p>
                  </td>
                  <td>
                    <p>
                         '.nl2br($_SESSION['requete'][$req]['INNTYPE']).'
                    </p>
                  </td>
                </tr>
                </table>
            </td>
          </tr>'
    -que je peux appeler cette fonction en fonction de mes "n" requettes

    -que ce bloc enfin sera incrusté dans ma page_description

    1 - As tu compris ce que j'essaye d'expliquer de façon peu clair (sorry) ?
    2 - Si oui, est ce réalisable ??

  2. #62
    Membre expérimenté
    Profil pro
    Inscrit en
    Avril 2006
    Messages
    1 349
    Détails du profil
    Informations personnelles :
    Âge : 37
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations forums :
    Inscription : Avril 2006
    Messages : 1 349
    Points : 1 460
    Points
    1 460
    Par défaut
    oui j'ai compris mais cela ne change pas la donne tu peux meme aussi faire tout l'affichage ds la page de traitementmais apr contre tu ne peux pas faire une partie d'affichage sur une page et l'autre ailleur ;-)

    mais montre moi ta page 'page_description' entière
    Stay in Bed .. Save Energy

  3. #63
    Membre régulier
    Femme Profil pro
    Consultante LIMS
    Inscrit en
    Avril 2009
    Messages
    145
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Âge : 39
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Consultante LIMS
    Secteur : Industrie Pharmaceutique

    Informations forums :
    Inscription : Avril 2009
    Messages : 145
    Points : 74
    Points
    74
    Par défaut
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
     
    <?php
     
    session_start();
    print('
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd" 
    >
    <HTML>
      <HEAD>
        <TITLE>phildom 2009.1 entry echo '. $_SESSION['requete'].'</TITLE>
        <link rel="StyleSheet" type="text/css" href="../style(2).css" >
      </HEAD>
    
      <BODY>
        <table border="0" cellpadding="0" cellspacing="0" width="590" >
          <TD valign="bottom">
            <a href="../acceuil.php" target="_top">
      <img src="../images/menu/home.jpg" border="0"  alt="Release Home page" id="image1" name="image1">
      </a>
          </td>
         
    
      <TD valign="bottom"><a href="../html/site_map.php" target="_top"
          <TR>
            <TD>
               &nbsp; 
            </TD>
          </TR>
          <!-- Grey band -->
          <tr>
            <td align="center"  bgcolor="#CCCCCC" >
              <table border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width=50 align=left>
                    <a href=". " target="_top">
    
          <img src="../images/menu/help.png" border="0" alt="Help"
    ALT="Help" TITLE="Help" onMouseOver="window.status=\'Help\'" onMouseOut="window.status=\'\'"> </a>
                  </td>
                  <td valign="top">
                    <span class="h3_like"><BIG>Domaine</BIG>
                    <BIG>Family</BIG></span>
                  </td>
                  <td align="center" valign="top">
                    <span class="h3_like"><BIG>&nbsp;'. $_SESSION['requete'].'&nbsp;</BIG></SPAN>
                  </td>
                  <td valign="top">
                    <IMG BORDER=1 SRC=>
                  </td>
                  <td width=50 align=right>
                    <a href="javascript:window.print()"><img src="../images/menu/print.png" border="0" ALT="Print the upper frame" TITLE="Print the upper frame" onMouseOver="window.status=\'Print the upper frame\'" onMouseOut="window.status=\'\'"></a>
                  </td>
                </tr>
              </table>
              </span>
            </td>
          </tr>
          <tr>
            <td>      <!-- Icons band -->
              <table border="0" width="100%">
                <tr>
                  <td align="center">
                    <table border="0" cellspacing="5" cellpadding="5">
                      <tr>
                        <td>
    
                          <!--graphic_representation--> 
                          <a target="_blank" href="http://hal9000./Webdom/index.php?jobID='. $_SESSION['requete'].'" target="_top" >
    	      <img src="../images/menu/graphic_representation.jpg"
    	      border="0"ALT="Graphic representation" TITLE="Graphic representation of all proteins containing this domain" onMouseOver="window.status=\'Graphic representation of all proteins containing this domain\'" onMouseOut="window.status=\'\'"></a>
                        </td>
                    </table>
                  </td>
                </tr>
              </table>
            </td>
          </tr>
          </td>
          </tr>
    <!-- General information about the family -->
          </td>
          </tr>
          <tr>
            <td>
               &nbsp; 
            </td>
          </tr>
          <tr>
            <td align="center"  bgcolor="#999999" >
              <table border="0" cellspacing="0" cellpadding="0">
                <tr> 
                  <td align="center" valign="top">
                    <span class="h3_like"><BIG>&nbsp;'. $_SESSION['requete'][$req].'&nbsp;</BIG></span>
                  </td>
                </tr>
              </table>
            </td>
          </tr>
          <tr>
            <td align="left">
              <TABLE BORDER=0 ALIGN=Left  cellspacing="3" cellpadding="0">
                <tr>
                  <td bgcolor="#CCCCCC">
                    <p>
                      <b>Description</b>
                    </p>
                  </td>
                  <td>
                    <p>
                         '.nl2br($_SESSION['requete'][$req]['KW']).'
                  </p>
                  </td>
                </tr>
                <tr>
                  <td bgcolor="#CCCCCC">
                    <p>
                      <b>Number of protéique sequences</b>
                    </p>
                  </td>
                  <td>
                    <p>
                         '.nl2br($_SESSION['requete'][$req]['ND']).'
                    </p>
                  </td>
                </tr>
                <tr>
                  <td bgcolor="#CCCCCC">
                    <p>
                      <b>Alignement lenght</b>
                    </p>
                  </td>
                  <td>
                    <p>
                         '.nl2br($_SESSION['requete'][$req]['LA']).'
                    </p>
                  </td>
                </tr>
                <tr>
                  <td bgcolor="#CCCCCC">
                    <p>
                      <b>Horizontal transfert</b>
                    </p>
                  </td>
                  <td>
                    <p>
                         '.nl2br($_SESSION['requete'][$req]['HT']).'
                    </p>
                  </td>
                </tr>
    
                <tr>
                  <td bgcolor="#CCCCCC">
                    <p>
                      <b>Innovation</b>
                    </p>
                  </td>
                  <td>
                    <p>
                         '.nl2br($_SESSION['requete'][$req]['INN']).' 
                    </p>
                  </td>
                </tr>
                <tr>
                  <td bgcolor="#CCCCCC">
                    <p>
                      <b>Innovation type</b>
                    </p>
                  </td>
                  <td>
                    <p>
                         '.nl2br($_SESSION['requete'][$req]['INNTYPE']).'
                    </p>
                  </td>
                </tr>            
    		
                <tr>
                  <td bgcolor="#CCCCCC">
                    <p>
                      <b>Other Informations</b>
                    </p>
                  </td>
                  <td>
                    <p>
    		<strong><ul>Interprotein links</ul></strong>
                         '.nl2br($_SESSION['requete'][$req]['INTERPRO']).'
                    </p>
                    <p>
    		<strong><ul>Protein domain links</ul></strong>
                         '.nl2br($_SESSION['requete'][$req]['PDB']).'
                    </p>
                    <p>
                     <strong><ul>ID of the family protein (PFAM Database)</ul></strong>
                         
                         <a href="http://www.sanger.ac.uk/cgi-bin/Pfam/getacc?'.$_SESSION['requete'][$req]['PFAMA'].'" class="normal" target=\'_top\'> '.nl2br($_SESSION['requete'][$req]['PFAMA']).' </a>
                    </p>
                    <p>
                      <strong><ul>Species where this protein exists </ul></strong>
                         '.nl2br($_SESSION['requete'][$req]['SPAC']).'
                    </p>
                    <p>
     		<strong><ul>Prosite links</ul></strong>
                         '.nl2br($_SESSION['requete'][$req]['PROSITE']).'
                    </p>
                    <p>
    		 <strong><ul>GO links</ul></strong>
                         '.nl2br($_SESSION['requete'][$req]['GO']).'
                    </p>
                  </td>
                </tr>
    
    
                </table>
            </td>
          </tr>
    <!--  bottom of the page -->
          <tr>
            <td>
               &nbsp; 
            </td>
          </tr>
          <tr>
            <td align="center">
              <table border="0" width="100%">
                <tr>
                  <th align="left" bgcolor="#999999" >
                   
                  </td>
                </tr>
              </table>
            </td>
          </tr>
          <tr>
                    <td align="center">
                     <p>
    			&copy; The PD database is copyrighted by 
    		<br />
    			&copy; UPKB copyright (c) 2002-2009 UConsortium 
    		<br />
    			ProDom - Server maintained by <a href="" class="normal"> A </a>, on behalf of <a href="." class="normal" target=\'_top\'> the PD team </a>
    		<br />
    			Graphics design I 
    		<br />
                            <I>Last updated on May 6th, 2009.</I>
                    </p>
                     </td>
           </tr>
    	</BODY>
    </HTML>
    
    '); 
    ?>

  4. #64
    Membre expérimenté
    Profil pro
    Inscrit en
    Avril 2006
    Messages
    1 349
    Détails du profil
    Informations personnelles :
    Âge : 37
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations forums :
    Inscription : Avril 2006
    Messages : 1 349
    Points : 1 460
    Points
    1 460
    Par défaut
    voila pour la partie que l'on essaye de traiter:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    <?php
     
     
    session_start();
    echo('
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd" 
    >
    <HTML>
      <HEAD>
        <TITLE>phildom 2009.1 entry echo '. $_SESSION['requete'].'</TITLE>
        <link rel="StyleSheet" type="text/css" href="../style(2).css" >
      </HEAD>
     
    .....................
          </tr>
    <!-- General information about the family -->
          </td>
          </tr>
          <tr>
            <td>
               &nbsp; 
            </td>
          </tr>');
    foreach(array_keys($_SESSION['requete']) as $req){
    echo'<tr>
            <td align="center"  bgcolor="#999999" >
              <table border="0" cellspacing="0" cellpadding="0">
                <tr> 
                  <td align="center" valign="top">
                    <span class="h3_like"><BIG>&nbsp;'. $_SESSION['requete'][$req].'&nbsp;</BIG></span>
                  </td>
                </tr>
              </table>
            </td>
          </tr>
          
          <tr>
            <td align="left">
              <TABLE BORDER=0 ALIGN=Left  cellspacing="3" cellpadding="0">
                <tr>
                  <td bgcolor="#CCCCCC">
                    <p>
                      <b>Description</b>
                    </p>
                  </td>
                  <td>
                    <p>
                         '.nl2br($_SESSION['requete'][$req]['KW']).'
                    </p>
                  </td>
                </tr>
                <tr>
                  <td bgcolor="#CCCCCC">
                    <p>
                      <b>Number of protéique sequences</b>
                    </p>
                  </td>
                  <td>
                    <p>
                         '.nl2br($_SESSION['requete'][$req]['ND']).'
                    </p>
                  </td>
                </tr>
                <tr>
                  <td bgcolor="#CCCCCC">
                    <p>
                      <b>Alignement lenght</b>
                    </p>
                  </td>
                  <td>
                    <p>
                         '.nl2br($_SESSION['requete'][$req]['LA']).'
                    </p>
                  </td>
                </tr>
                <tr>
                  <td bgcolor="#CCCCCC">
                    <p>
                      <b>Horizontal transfert</b>
                    </p>
                  </td>
                  <td>
                    <p>
                         '.nl2br($_SESSION['requete'][$req]['HT']).'
                    </p>
                  </td>
                </tr>
                
                <tr>
                  <td bgcolor="#CCCCCC">
                    <p>
                      <b>Innovation</b>
                    </p>
                  </td>
                  <td>
                    <p>
                         '.nl2br($_SESSION['requete'][$req]['INN']).' 
                    </p>
                  </td>
                </tr>
                <tr>
                  <td bgcolor="#CCCCCC">
                    <p>
                      <b>Innovation type</b>
                    </p>
                  </td>
                  <td>
                    <p>
                         '.nl2br($_SESSION['requete'][$req]['INNTYPE']).'
                    </p>
                  </td>
                </tr>
                </table>
            </td>
          </tr>';	
     }
    echo ' .........';
    Stay in Bed .. Save Energy

  5. #65
    Membre régulier
    Femme Profil pro
    Consultante LIMS
    Inscrit en
    Avril 2009
    Messages
    145
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Âge : 39
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Consultante LIMS
    Secteur : Industrie Pharmaceutique

    Informations forums :
    Inscription : Avril 2009
    Messages : 145
    Points : 74
    Points
    74
    Par défaut
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    Notice: Undefined offset: 8 in /script_requete.php on line 43
    .....
    Notice: Undefined offset: 1 in /script_requete.php on line 43.
     
    Warning: Cannot modify header information - headers already sent by (output started at /home/idris/My_php/script_requete.php:43) in /home/idris/My_php/script_requete.php on line 45
    soient toutes les variables (line 43)

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    list($_SESSION['requete'][$req]['ID'], $_SESSION['requete'][$req]['KW'], $_SESSION['requete'][$req]['LA'], $_SESSION['requete'][$req]['ND'], $_SESSION['requete'][$req]['INN'], $_SESSION['requete'][$req]['INNTYPE'], $_SESSION['requete'][$req]['HT'], $_SESSION['requete'][$req]['SPND'], $_SESSION['requete'][$req]['DR']) = explode(' % ',recup_req($req));

  6. #66
    Membre expérimenté
    Profil pro
    Inscrit en
    Avril 2006
    Messages
    1 349
    Détails du profil
    Informations personnelles :
    Âge : 37
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations forums :
    Inscription : Avril 2006
    Messages : 1 349
    Points : 1 460
    Points
    1 460
    Par défaut
    oula ms la c'est plus la partie affichage je croyais que le traitement ne faisais plus d'erreur
    Stay in Bed .. Save Energy

  7. #67
    Membre régulier
    Femme Profil pro
    Consultante LIMS
    Inscrit en
    Avril 2009
    Messages
    145
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Âge : 39
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Consultante LIMS
    Secteur : Industrie Pharmaceutique

    Informations forums :
    Inscription : Avril 2009
    Messages : 145
    Points : 74
    Points
    74
    Par défaut
    ben je c pa si ça viens des variables dans l'affichage ou dans le traitement puisqu'il se renvoi la balle a chaque fois


    print($_SESSION['requete'][$req]['ID']);, ne donne rien, ça ressort les
    Notice: Undefined offset: 8 in /My_php/script_requete.php on line 43
    mais je ne vois pas pourquoi

+ Répondre à la discussion
Cette discussion est résolue.
Page 4 sur 4 PremièrePremière 1234

Discussions similaires

  1. [WD-2007] Case à cocher et somme des "true or false"
    Par slowfiction dans le forum Word
    Réponses: 4
    Dernier message: 30/05/2013, 15h21
  2. Réponses: 4
    Dernier message: 22/04/2011, 15h17
  3. Réponses: 5
    Dernier message: 24/03/2010, 14h55
  4. Répartition des tâches dans MS Project server
    Par azer dans le forum Windows Serveur
    Réponses: 0
    Dernier message: 16/06/2008, 15h17
  5. Case à cocher et suppression des enregistrements
    Par zizou86 dans le forum Langage
    Réponses: 3
    Dernier message: 22/02/2008, 17h55

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo