/[openfoncier]/trunk/app/jquerytest.php
ViewVC logotype

Annotation of /trunk/app/jquerytest.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 926 - (hide annotations)
Fri Nov 30 00:09:18 2012 UTC (12 years, 2 months ago) by fmichon
File size: 1074 byte(s)
Ajout de la constante DB_PREFIXE manquante

1 fraynaud 88 <?php
2     /**
3     * en test direct -> enelever le nohtml
4     */
5     require_once "../obj/utils.class.php";
6     // appel tableau de bord
7 fraynaud 126 $f = new utils("nohtml", NULL, _("test de jquery"));
8 fraynaud 88 // test direct
9     //$f = new utils(NULL, NULL, _("test de jquery"));
10 fmichon 926 $sql= "select count(dossier) from ".DB_PREFIXE."dossier";
11 fraynaud 88 $nb_dossier = $f->db->getOne($sql);
12 fmichon 926 $sql= "select count(dossier) from ".DB_PREFIXE."dossier where etat = 'notifier'";
13 fraynaud 88 $nb_dossier_notifier = $f->db->getOne($sql);
14     $progress = round($nb_dossier_notifier/$nb_dossier*100,0);
15     //$progress =50;
16     ?>
17     <script>
18     $(function() {
19     $( "#progressbar" ).progressbar({
20     value: <?php echo $progress;?>
21     });
22     $( "#progressbarWrapper" ).resizable();
23     });
24    
25     </script>
26     <?php
27     echo "<div id=\"progressbarWrapper\" style=\"height:50px;width:80%\" class=\"ui-widget-default\">";
28     echo "Pourcentage de dossiers notifiés : ".$progress."%<div id=\"progressbar\" style=\"height:30%;\"></div>";
29     echo "</div>";
30    
31     ?>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26