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

Dotnet Discussion :

identifier le language


Sujet :

Dotnet

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre confirmé
    Inscrit en
    Novembre 2005
    Messages
    188
    Détails du profil
    Informations forums :
    Inscription : Novembre 2005
    Messages : 188
    Par défaut identifier le language
    salut,

    j'ai une page loginMainForm.inc. J'ai besoin de la modifier et d'ajouter une requete vers un server mysql dedans. J'aurais donc besoin de savoir dans un premier dans quel language la page a été écrite et enfin, cerise sur le gateau, si vous aviez un pt exemple d'un select tout bete dans le language adapté ca serait top.

    voici la page en question :
    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
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    <%
    // loginMainForm.inc
    %>
    <tr>
      <td>
        <table border='0' cellspacing='3' cellpadding='0'>
          <tr>
            <td>
              <table border="0" cellspacing='0' cellpadding='3'>
    <%
    if (viewControl.getShowLoginTypeOptions()) {
    %>
                <tr>
                  <td>
                    <table border="0" cellspacing="0" cellpadding="2">
                      <tr align='left' valign='top'>
                        <td nowrap>
                          <label id='lblLoginType' class='xsNorm' for='<%=ID_LOGIN_TYPE%>'
                              title="<%=getString("TipLoginType", currentLocale)%>"
                          <%=viewControl.getAllUIDisabledStr()%>>
                          <%=getString("LoginType", currentLocale)%>
                          </label>
                        </td>
                     </tr>
                     <tr>
                       <td colspan='2' valign='top'>
                         <select name='<%=ID_LOGIN_TYPE%>' id='<%=ID_LOGIN_TYPE%>' <%=viewControl.getAllUIDisabledStr()%>
                              class='loginEntries' size='1' onchange='onChangeLoginType(this.form)'>
    <%
        if( viewControl.allowedLogonModes().contains( AuthMethod.ANONYMOUS ) ) {
    %>
                           <option value='<%=AuthMethod.ANONYMOUS%>' <%=viewControl.getAnonymousSelectedStr()%>>
                             <%=getString("AnonymousUser", currentLocale)%>
                           </option>
    <%
        }
    %>
    <%
        if( viewControl.allowedLogonModes().contains( AuthMethod.CERTIFICATE_SINGLE_SIGN_ON ) ) {
    %>
                           <option value='<%=AuthMethod.CERTIFICATE_SINGLE_SIGN_ON%>'  <%=viewControl.getCertificateSSONSelectedStr()%>>
                             <%=getString("CertificateSSONUser", currentLocale)%>
                           </option>
    <%
        }
    %>
    <%
        if( viewControl.allowedLogonModes().contains( AuthMethod.CERTIFICATE ) ) {
    %>
                           <option value='<%=AuthMethod.CERTIFICATE%>' <%=viewControl.getCertificateSelectedStr()%>>
                             <%=getString("CertificateUser", currentLocale)%>
                           </option>
    <%
        }
    %>
    <%
        if( viewControl.allowedLogonModes().contains( AuthMethod.SINGLE_SIGN_ON ) ) {
    %>
                           <option value='<%=AuthMethod.SINGLE_SIGN_ON%>' <%=viewControl.getSSONSelectedStr()%>>
                             <%=getString("SingleSignOnUser", currentLocale)%>
                           </option>
    <%
        }
    %>
    <%
        if( viewControl.allowedLogonModes().contains( AuthMethod.EXPLICIT ) ) {
    %>
                           <option value='<%=AuthMethod.EXPLICIT%>' <%=viewControl.getExplicitSelectedStr()%>>
                             <%=getString("ExplicitUser", currentLocale)%>
                           </option>
    <%
        }
    %>
                          </select>
                        </td>
                      </tr>
                    </table>
                  </td>
                </tr>
    <%
    } else {
    %>
                <input type='hidden' name='<%=ID_LOGIN_TYPE%>' value='<%=AuthMethod.EXPLICIT%>'>
    <%
    }
    %>
                <tr>
                  <td colspan='3'>
    <%
    if (viewControl.getShowLoginTypeOptions()) {
    %>
                    <fieldset>
                    <legend>
                    <label id='lblCredentials' class='xsNorm' <%=viewControl.getExplicitDisabledStr()%>>
                    <%=getString("EnterLoginCredentials", currentLocale)%>
                    </label>
                    </legend>
    <%
    }
    %>
                    <table border='0' cellspacing='0' cellpadding='1'>
                      <tr>
                        <td>
                          <table border="0" cellspacing="0" cellpadding="2">
                            <tr>
                              <td align='left' valign='top' nowrap>
                                <label id='lblUserName' class='xsNorm' for='<%=ID_USER%>'
                                    title="<%=getString("TipUserName", currentLocale)%>" 
                                <%=viewControl.getExplicitDisabledStr()%>>
                                <%=getString("UserName", currentLocale)%>
                                </label>
                              </td>
                            </tr>
                            <tr>
                              <td valign='top'>
    <%
    JE DOIS AJOUTER MA REQUETE ICI
    %>
     
                                <input type='text' name='<%=ID_USER%>' id='<%=ID_USER%>'
                                    class='loginEntries'							
                                    maxlength='<%=LOGIN_ENTRY_MAX_LENGTH%>' <%=viewControl.getExplicitDisabledStr()%>
    <%
    if (viewControl.getUserName() != null) {
    %>
                                    value='<%=Utilities.htmlEncode(viewControl.getUserName())%>'
    <%
    }
    %>
                                    onkeyup='onUsernameTextEntry(this.form)'
                                    onChange='onUsernameTextEntry(this.form)'
                                >
                              </td>
                            </tr>
                          </table>
                        </td>
                      </tr>
                      <tr>
                        <td>
                          <table border="0" cellspacing="0" cellpadding="2">
    <%
    if (viewControl.getShowPassword()) {
    %>
                            <tr>
                              <td align='left' valign='top' nowrap>
                                <label id='lblPasswd' class='xsNorm' for='<%=ID_PASSWORD%>'
                                    title="<%=getString("TipPassword", currentLocale)%>"
                                <%=viewControl.getExplicitDisabledStr()%>>
                                <%=getString("Password", currentLocale)%>
                                </label>
                              </td>
                            </tr>
                            <tr>
                              <td valign='top'>
                                <input type='password' name='<%=ID_PASSWORD%>' id='<%=ID_PASSWORD%>'
                                    class='loginEntries'
                                    maxlength='<%=LOGIN_ENTRY_MAX_LENGTH%>' <%=viewControl.getExplicitDisabledStr()%>>
                              </td>
                            </tr>
    <%
    } else if (viewControl.getShowPasscode()) { //if passcode is visible, but password is not, then replace the password field with the passcode field
    %>
                            <tr>
                              <td align='left' valign='top' nowrap>
                                <label id='lblPasscode' for='<%=ID_PASSCODE%>' class='xsNorm'
                                    title="<%=getString("TipPasscode", currentLocale)%>"
                                <%=viewControl.getExplicitDisabledStr()%>>
                                <%=getString("Passcode", currentLocale)%>
                                </label>
                              </td>
                            </tr>
                            <tr>
                              <td valign='top'>
                                <input type='password' name='<%=ID_PASSCODE%>' id='<%=ID_PASSCODE%>'
                                    class='loginEntries' maxlength='<%=LOGIN_ENTRY_MAX_LENGTH%>' <%=viewControl.getExplicitDisabledStr()%>>
                              </td>
                           </tr>
    <%
    }
    %>
                          </table>
                        </td>
                      </tr>
    <%
    if (viewControl.getShowDomain()) {
    %>
                      <tr>
                        <td>
                          <table border="0" cellspacing="0" cellpadding="2">
                            <tr>
                              <td align='left' valign='top' nowrap>
                                <label id='lblDomain' class='xsNorm' for='<%=ID_DOMAIN%>'
                                    title="<%=getString("TipDomain", currentLocale)%>"
                                <%=viewControl.getDomainDisabledStr()%>>
                                <%=getString("Domain", currentLocale)%>
                                </label>
                              </td>
                            </tr>
                            <tr>
                              <td valign='top'>
    <%
        if (viewControl.getRestrictDomains() || viewControl.getNumLoginDomains() > 0) {
    %>
                                <select class='loginEntries' size='1'
                                      name='<%=ID_DOMAIN%>' id='<%=ID_DOMAIN%>'
                                  <%=viewControl.getDomainDisabledStr()%>>
    <%
            for (int i=0; i < viewControl.getNumLoginDomains(); i++) {
    %>
                                  <option value='<%=Utilities.htmlEncode(viewControl.getLoginDomains()[i])%>'>
                                    <%=Utilities.htmlEncode(viewControl.getLoginDomains()[i])%>
                                  </option>
    <%
            }
    %>
                                </select>
    <%
        } else {
    %>
                                <input type='text' class='loginEntries'
                                    name='<%=ID_DOMAIN%>' id='<%=ID_DOMAIN%>'
                                    MAXLENGTH='<%=LOGIN_ENTRY_MAX_LENGTH%>'
                                <%=viewControl.getDomainDisabledStr()%>>
    <%
        }
    %>
                              </td>
                            </tr>
                          </table>
                        </td>
                      </tr>
    <%
    }
     
    if (viewControl.getNDSEnabled()) {
        if (viewControl.getNumNDSContexts() > 0 || viewControl.getShowFindContext()) {
    %>
                      <tr>
                        <td>
                          <table border="0" cellspacing="0" cellpadding="2">
                            <tr>
                              <td align='left' valign='top' nowrap>
                                <label id='lblContext' class='xsNorm'
                                    for='<%=ID_CONTEXT%>'
                                    title="<%=getString("TipContext", currentLocale)%>">
                                <%=getString("Context", currentLocale)%>
                                </label>
                              </td>
                            </tr>
                            <tr>
                              <td valign='top'>
                                <select name='<%=ID_CONTEXT%>' id='<%=ID_CONTEXT%>'
                                      size='1' class='loginEntries'>
    <%
            // Find context is always at the top of the list if it is present
            // Only selected if there are no found contexts being shown
            if (viewControl.getShowFindContext()) {
    %>
                                  <option <%=(viewControl.getNumNDSContexts() > 0) ? "" : "selected"%>>
                                    <%=getString("lookupContextString", currentLocale)%>
                                  </option>
    <%
            }
            if (viewControl.getNumNDSContexts() > 0) {
                for (int j=0; j < viewControl.getNumNDSContexts(); j++) {
    %>
                                  <option <%=(j == 0) ? "selected" : ""%>
                                        value='<%=Utilities.htmlEncode(viewControl.getNDSContexts()[j])%>'>
                                    <%=Utilities.htmlEncode(viewControl.getNDSContexts()[j])%>
                                  </option>
    <%
                }
            }
    %>
                                </select>
                              </td>
                            </tr>
                          </table>
                        </td>
                      </tr>
    <%
        }
    %>
                      <tr>
                        <td>
                          <table border="0" cellspacing="0" cellpadding="2">
                            <tr>
                              <td align='left' valign='top' nowrap>
                                <label id='lblTree' class='xsNorm' for='<%=ID_TREE%>'
                                    title="<%=getString("TipTree", currentLocale)%>">
                                <%=getString("Tree", currentLocale)%>
                                </label>
                              </td>
                            </tr>
                            <tr>
                              <td valign='top'>
                                <input type='text' readonly name='<%=ID_TREE%>' id='<%=ID_TREE%>'
                                    class='loginTreeEntry' value='<%=Utilities.htmlEncode(viewControl.getNDSTree())%>'>
                              </td>
                            </tr>
                          </table>
                        </td>
                      </tr>
    <%
    }
     
    if (viewControl.getShowPasscode() && viewControl.getShowPassword() ) { //only display the passcode field here if the password field is displayed above
    %>
                      <tr>
                        <td>
                          <table border="0" cellspacing="0" cellpadding="3">
                            <tr>
                              <td align='left' valign='top' nowrap>
                                <label id='lblPasscode' for='<%=ID_PASSCODE%>' class='xsNorm'
                                    title="<%=getString("TipPasscode", currentLocale)%>"
                                <%=viewControl.getExplicitDisabledStr()%>>
                                <%=getString("Passcode", currentLocale)%>
                                </label>
                              </td>
                            </tr>
                            <tr>
                              <td valign='top'>
                                <input type='password' name='<%=ID_PASSCODE%>' id='<%=ID_PASSCODE%>'
                                    class='loginEntries' maxlength='<%=LOGIN_ENTRY_MAX_LENGTH%>' <%=viewControl.getExplicitDisabledStr()%>>
                              </td>
                           </tr>
                          </table>
                        </td>
                      </tr>
    <%
    }
    %>
                    </table>
    <%
    if (viewControl.getShowLoginTypeOptions()) {
    %>
                    </fieldset>
    <%
    }
    %>
                  </td>
                </tr>
                <tr name="<%=ID_OPENLINK_ADV_OPTIONS%>" id="<%=ID_OPENLINK_ADV_OPTIONS%>" <%=viewControl.getAdvancedOptionsOpenLinkDisplayStr()%>>
                  <td align="right"><a href="#<%=ID_ADV_OPTIONS_ANCHOR%>" class="appLinksSmall" onClick="openAdvOptions(this.form)"><%=getString("AdvancedOptionsOpen", currentLocale)%></a></td>
                </tr>
    <%
    if (! viewControl.getShowAdvancedOptionsPermanently()) {
    %>
                <tr name="<%=ID_CLOSELINK_ADV_OPTIONS%>" id="<%=ID_CLOSELINK_ADV_OPTIONS%>" <%=viewControl.getAdvancedOptionsCloseLinkDisplayStr()%>>
                  <td align="right"><a href="#" class="appLinksSmall" onClick="closeAdvOptions(this.form)"><%=getString("AdvancedOptionsClose", currentLocale)%></a></td>
                </tr>
    <%
    }
    %>
              </table>
            </td>
          </tr>
        </table>
      </td>
    </tr>
    merci

  2. #2
    Rédacteur
    Avatar de Thomas Lebrun
    Profil pro
    Inscrit en
    Octobre 2002
    Messages
    9 161
    Détails du profil
    Informations personnelles :
    Âge : 43
    Localisation : France

    Informations forums :
    Inscription : Octobre 2002
    Messages : 9 161
    Par défaut
    On dirait de l'ASP avec du VBScript mais rien n'est sur....

  3. #3
    Membre confirmé
    Inscrit en
    Novembre 2005
    Messages
    188
    Détails du profil
    Informations forums :
    Inscription : Novembre 2005
    Messages : 188
    Par défaut
    j'ai essayé d'ajouter : et la j'ai un message d'erreur qui me dit "The type or namespace name 'Dim' could not be found". Or en ASP on peut ecrire ca pour declarer une nouvelle variable,non?

  4. #4
    Rédacteur
    Avatar de Thomas Lebrun
    Profil pro
    Inscrit en
    Octobre 2002
    Messages
    9 161
    Détails du profil
    Informations personnelles :
    Âge : 43
    Localisation : France

    Informations forums :
    Inscription : Octobre 2002
    Messages : 9 161
    Par défaut
    Oui donc dans ce cas, je ne vois pas, désolé...

  5. #5
    Membre confirmé
    Inscrit en
    Novembre 2005
    Messages
    188
    Détails du profil
    Informations forums :
    Inscription : Novembre 2005
    Messages : 188
    Par défaut
    ca ne pourrait pas etre du C# par hasard?

  6. #6
    Rédacteur
    Avatar de Thomas Lebrun
    Profil pro
    Inscrit en
    Octobre 2002
    Messages
    9 161
    Détails du profil
    Informations personnelles :
    Âge : 43
    Localisation : France

    Informations forums :
    Inscription : Octobre 2002
    Messages : 9 161
    Par défaut
    J'en doute fortement....

Discussions similaires

  1. quel est le Meilleur language pour piloter le port serie ?
    Par flyfab dans le forum Langages de programmation
    Réponses: 7
    Dernier message: 21/07/2003, 10h03
  2. [postgresql] Probleme de language SQL
    Par sbucci dans le forum Requêtes
    Réponses: 3
    Dernier message: 31/05/2003, 13h19
  3. Language
    Par bidson dans le forum XMLRAD
    Réponses: 4
    Dernier message: 10/05/2003, 19h28
  4. [Appli][Autre language]dll-contenant form
    Par flash dans le forum Langage
    Réponses: 6
    Dernier message: 20/09/2002, 14h18
  5. je veux apprendre la programmation quel language choisir??
    Par existance dans le forum Débuter
    Réponses: 26
    Dernier message: 06/08/2002, 05h32

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