Remplir une liste à partir d'une autre

mehdovic Messages postés 30 Date d'inscription vendredi 5 octobre 2007 Statut Membre Dernière intervention 7 juin 2008 - 11 oct. 2007 à 12:50
cs_bultez Messages postés 13615 Date d'inscription jeudi 13 février 2003 Statut Membre Dernière intervention 15 octobre 2013 - 11 oct. 2007 à 13:35
les amis j'ai un page html avec l'extension .tpl

code :
            Active Prospects

   ,
            User logged in:
{USER_NAME}
   

<!-- HOME -->
----

            Home |
        Campaigns |       
        Mailresponders |
        Newsletters |
        Prospects |
        Account |
        Help |
        Logout
   ,

----

           
Active Prospects | Mailing List | Removals | Undeliverables | Tracking | Variables | HTML form | add category| add sub-category
         
       ,

<form name= \"form_add_prospect\" action=\"do_add_prospect.php\" method=\"post\">
----

            Add a new prospect:

        you must have their permission!
   ,
            <table width="100%" border="0" cellPadding="0" cellSpacing="0">
        ----

           , Name: </td>
            ,
       
        ----
,
        ----

            E-mail:,
            ,
       
        ----
,
        ----

            Category:,
            <select name ="categ_id" width= "300" onchange="remplir('form_add_prospect','categ_id','sous_categ_id','http://www.publicite-pub.com/login/add_in_liste.php')">
                   
                    {CATEG_LIST}
                </select>,
       
        ----
,

        ----

            sub-category:,
            <select name="sous_categ_id" width="300">
                   
                    {SOUS_CATEG_LIST}
                </select>,
       
        ----

            ,
                           
           ,
       
       
</form>
    </td>
</tr>
<tr>
  <td align="left" valign="top" rowspan="1" bgColor="#FFFFFF">Add a new prospect from file:
        </td>
  <td align="left" valign="top" bgColor="white">
    <form action="addfromfile.php" method="post" enctype="multipart/form-data">
              ----

          File:,
                      ,
       
        ----

        ----

          ,
       
        ----

          Type:,
          <select name="type" id="type">
            <option value="1">E-mail</option>
            <option value="2">E-mail|Name</option>
          </select>,
       
        ----

          Separator:,
         
                        nt - enter ,
           
       
        ----

            Category:,
            <select name="categ_id" width="300">
                   
                    {CATEG_LIST}
                </select>,
       
        ,
                         
           ,
       
     

  </form></td>
</tr>
</form>

<tr>
    <td align="left" valign="top" width="25%" rowspan="1" bgColor="#FFFFFF">Export
      prospects to file:

      </td>
    <td align="left" valign="top" bgColor="white">
    <form action="tofile.php" method="post" enctype="multipart/form-data">
                    Type: ,
         
              E-mail

             
              E-mail | Name,
         
          ----

            &nbsp;,
            ,
         
          ----

          ----

            ,
         
          ,
          &nbsp;,
         
       
   
   
   
    </form>   
    </td>
</tr>

<tr>
    <td align="left" valign="top" width="25%" rowspan="1" bgColor="#FFFFFF">
    </td>
    <td align="left" valign="top" bgColor="white">
        Number of active prospects:
        {SUBSCRIBERS_NUMBER}
    </td>
</tr>
<tr>
    <td align ="left" valign="top" width="25%" rowspan="1" bgColor="#FFFFFF">
        Active Prospects List:
    </td>
    <td align="left" valign="top" bgColor="white">
                ----

            Name,
            E-mail,
            Date,
       
        {SUBSCRIBER_LIST}
       

    </td>
</tr>
<tr>
    <td align="left" valign="top" bgColor="#FFFFFF" colSpan="2">&nbsp;
       
    </td>
</tr>

</table>
je veux remplir la deuxième liste sub-category a partie de la liste category
j'ai essayer avec java script mais je n'arrive pas

de l'aide SVP

1 réponse

cs_bultez Messages postés 13615 Date d'inscription jeudi 13 février 2003 Statut Membre Dernière intervention 15 octobre 2013 30
11 oct. 2007 à 13:35
Bonjour,
    tu ne nous montres rien de ton javascript ?
        comment te dire ce qui ne va pas ?
    des exemples existent sur CodesSources, en voici un
    j'eusse préféré un extrait du html résultant, pas l'ensemble,
       mais on ne va pas se plaindre ? d'habitude on n'a rien.       ;o)
<hr />                Cordialement            Bul         [mon Site]     [M'écrire]
<hr />
0
Rejoignez-nous