예제 #1
0
 function formChar($champ, $valeur, $disabled, $classe)
 {
     $label = formatLabel($champ);
     switch ($champ) {
         case "frn_materiel":
             //cas particulier fournisseur
             $listefourni = listeFourni();
             echo "<td>" . $label . " </td><td><select style='width:250' " . $disabled . " " . $classe . " name=" . $champ . " id=" . $champ . ">\r\n                                                    <option value=''>S&eacute;lection...</option>";
             foreach ($listefourni as $opt) {
                 if (trim($opt["id"]) == trim($valeur)) {
                     $selected = "selected";
                 } else {
                     $selected = '';
                 }
                 echo "                          <option value='" . $opt["id"] . "' " . $selected . ">" . $opt["id"] . " - " . utf8_encode($opt["nom"]) . "</option>";
             }
             echo "                          </select></td>";
             break;
             /*case "marq_materiel"://cas particulier marque
               $listemarq = listeMarq();
               echo "<td>".$label." </td><td><select style='width:250' ".$classe." name=".$champ." id=".$champ.">
                                                   <option value=''>S&eacute;lection...</option>";
               foreach($listemarq as $opt){  
                   if(trim($opt["id"]) == trim($valeur)){
                       $selected = "selected";}
                   else{
                       $selected = '';}
                   echo "                          <option value='".$opt["id"]."' ".$selected.">".$opt["id"]." - ".utf8_encode($opt["nom"])."</option>";
               }
               echo "                          </select></td>";
               break; */
         /*case "marq_materiel"://cas particulier marque
           $listemarq = listeMarq();
           echo "<td>".$label." </td><td><select style='width:250' ".$classe." name=".$champ." id=".$champ.">
                                               <option value=''>S&eacute;lection...</option>";
           foreach($listemarq as $opt){  
               if(trim($opt["id"]) == trim($valeur)){
                   $selected = "selected";}
               else{
                   $selected = '';}
               echo "                          <option value='".$opt["id"]."' ".$selected.">".$opt["id"]." - ".utf8_encode($opt["nom"])."</option>";
           }
           echo "                          </select></td>";
           break; */
         case "poste":
             //cas particulier poste
             $listeposte = listeOdbc('informix.bas_postrav');
             echo "<td>" . $label . " </td><td><select style='width:250' " . $classe . " name=" . $champ . " id=" . $champ . ">\r\n                                                    <option value=''>S&eacute;lection...</option>";
             foreach ($listeposte as $opt) {
                 if (trim($opt["id"]) == trim($valeur)) {
                     $selected = "selected";
                 } else {
                     $selected = '';
                 }
                 echo "                          <option value='" . $opt["id"] . "' " . $selected . ">" . $opt["id"] . " - " . utf8_encode($opt["nom"]) . "</option>";
             }
             echo "                          </select></td>";
             break;
         default:
             if ($champ == 'tel') {
                 echo "<td>" . $label . " </td><td><input type=text " . $disabled . " " . $classe . " name=" . $champ . "  value = \"" . utf8_encode($valeur) . "\" onKeyPress='return chiffres(event);'></td>";
             } else {
                 echo "<td>" . $label . " </td><td><input type=text " . $disabled . " " . $classe . " name=" . $champ . "  value = \"" . trim(utf8_encode($valeur)) . "\"></td>";
             }
             break;
     }
 }
예제 #2
0
    ?>
</td>
                  <td><?php 
    echo $schedule_item['startDate'];
    ?>
</td>
                  <td><?php 
    echo $schedule_item['mst'];
    ?>
</td>
                  <td><?php 
    echo $schedule_item['mnt'];
    ?>
</td>
                  <td><?php 
    echo formatLabel($schedule_item['startDate'], $schedule_item['mst'], $schedule_item['mnt']);
    ?>
</td>
                  <td><?php 
    echo $schedule_item['duration'];
    ?>
</td>
                  <td><?php 
    echo $schedule_item['videoStartTime'];
    ?>
</td>
                  <td><button type="button" class="btn btn-default btn-sm btn_upd" id="btn_upd">更新時間</button></td>
                </tr>
              <?php 
}
?>
예제 #3
0
        }
    }
    ?>
            <col span="<?php 
    echo $longueur;
    ?>
" width="150" style="background-color: #CCCCCC" />
        </colgroup>
        <thead>
            <TR>
                <?php 
    //titres colonnes
    foreach ($liste[0] as $key => $val) {
        if (substr($key, 0, 3) != 'id_') {
            //champs non affichés
            echo "<th width=80><div class='h'>" . formatLabel($key) . "</div></th>";
        }
    }
    //titre entités liées pour contrat et inter
    if ($titre == 'Contrats' or $titre == 'Interventions') {
        echo "<th><div class='h'>&nbsp;&nbsp;&nbsp;&nbsp;Entit&eacute;(s)</div></th>";
    }
    ?>
                    
            </TR>
        </thead>
                <tbody>
                <?php 
    //contenu tableau
    foreach ($liste as $ligne) {
        echo "<TR>";