public function modifier(Request $request)
 {
     $names = $request->request->get("nom");
     foreach ($names as $id => $name) {
         DeviseAdmin::getInstance($id)->modifier($name, $request->request->get("taux[" . $id . "]", null, true), $request->request->get("symbole[" . $id . "]", null, true), $request->request->get("code[" . $id . "]", null, true), $request->request->get("defaut") == $id ? 1 : 0);
     }
     redirige("devise.php");
 }
Esempio n. 2
0
?>
</th>
                            <th><?php 
echo trad('Taux_actuels', 'admin');
?>
</th>
                            <th><?php 
echo trad('Défaut', 'admin');
?>
</th>
                            <th></th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php 
foreach (DeviseAdmin::getInstance()->getList() as $devise) {
    ?>
                        <tr>
                            <td><?php 
    echo $devise->id;
    ?>
</td>
                            <td><input type="text" class="input-small" name="nom[<?php 
    echo $devise->id;
    ?>
]" value="<?php 
    echo $devise->nom;
    ?>
"></td>
                            <td><input type="text" class="input-small" name="code[<?php 
    echo $devise->id;