コード例 #1
0
ファイル: visu_cc_elv.php プロジェクト: rhertzog/lcs
        }
        ?>
 </th>
        <th><?php 
        if ($tableauNotes['note_sur']) {
            echo $tableauNotes['note_sur'];
        }
        ?>
 </th>
    </tr>
    <tr>
        <th>Moyenne</th>
        <th>-</th>
        <th><?php 
        if ($tableauNotes['note_sur']) {
            echo precision_arrondi($tableauNotes['total'] / $tableauNotes['note_sur'] * 20, $tableauNotes['arrondir']);
        }
        ?>
 </th>
        <th><?php 
        if ($tableauNotes['note_sur']) {
            echo '20';
        }
        ?>
 </th>
    </tr>
    
</table>
</div>
<?php 
        if (2 == $i % 3) {
コード例 #2
0
ファイル: transfert_cc_vers_cn.php プロジェクト: rhertzog/lcs
     if (strstr(substr($chaine_commentaire_part1, 1), '+') != '') {
         $chaine_commentaire = "(" . substr($chaine_commentaire_part1, 1) . ")/";
     } else {
         $chaine_commentaire = substr($chaine_commentaire_part1, 1) . "/";
     }
 }
 if ($chaine_commentaire_part2 != '') {
     if (preg_match("/\\+/", substr($chaine_commentaire_part2, 1))) {
         $chaine_commentaire .= "(" . substr($chaine_commentaire_part2, 1) . ")";
     } else {
         $chaine_commentaire .= substr($chaine_commentaire_part2, 1);
     }
 }
 //$csv.=strtr($total,'.',',').";".strtr($total_sur,'.',',').";";
 if ($total_sur > 0) {
     $moy = precision_arrondi(20 * $total / $total_sur, $precision_cc_dev);
     /*
     echo "\$total=$total<br />";
     echo "\$total_sur=$total_sur<br />";
     echo "$precision_cc_dev<br />";
     $tmp_moy=20*$total/$total_sur;
     echo "20*$total/$total_sur=".$tmp_moy." arrondi à $moy<br />";
     */
     $sql .= ", note='{$moy}', comment='{$chaine_commentaire}', statut='';";
 } else {
     $moy = '-';
     $sql .= ", note='', comment='{$chaine_commentaire}', statut='{$moy}';";
 }
 //$csv.="$moy;\r\n";
 //echo "$sql<br />";
 //echo "<br />";
コード例 #3
0
ファイル: visu_cc.php プロジェクト: alhousseyni/gepi
    echo "<tr class='table_no_split'>\n";
    echo "<th>Total</th>\n";
    echo "<th>-</th>\n";
    if ($nb_note > 0) {
        $total_aff = strtr($total, '.', ',');
    } else {
        $total_aff = "-";
    }
    echo "<th>{$total_aff}</th>\n";
    echo "<th>{$total_sur}</th>\n";
    echo "</tr>\n";
    echo "<tr class='table_no_split'>\n";
    echo "<th>Moyenne</th>\n";
    echo "<th>-</th>\n";
    if ($total_sur != 0) {
        $moy = strtr(precision_arrondi(20 * strtr($total, ",", ".") / strtr($total_sur, ",", "."), $precision), '.', ',');
        //$info_tmp="20*$total/$total_sur";
        //$tmp_moy=20*$total/$total_sur;
    } else {
        $moy = '-';
    }
    echo "<th>{$moy}";
    //echo "<br />$info_tmp<br />$tmp_moy";
    echo "</th>\n";
    echo "<th>20</th>\n";
    echo "</tr>\n";
    echo "</table>\n";
    //echo "<br />\n";
    echo "</div>\n";
    $i++;
}