/[openfoncier]/trunk/obj/om_formulaire.class.php
ViewVC logotype

Diff of /trunk/obj/om_formulaire.class.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 635 by vpihour, Tue Oct 16 15:18:58 2012 UTC revision 636 by nhaye, Thu Nov 8 17:45:21 2012 UTC
# Line 17  require_once PATH_OPENMAIRIE."om_formula Line 17  require_once PATH_OPENMAIRIE."om_formula
17   */   */
18  class om_formulaire extends formulaire {  class om_formulaire extends formulaire {
19        
20        /**
21         * Pour upload dans /tmp
22         *
23         * @param string $champ Nom du champ
24         * @param integer $validation
25         * @param boolean $DEBUG Parametre inutilise
26         */
27        function tmpUpload($champ, $validation, $DEBUG = false) {
28    
29            //
30            echo "<input";
31            echo " type=\"text\"";
32            echo " name=\"".$champ."\"";
33            echo " id=\"".$champ."\" ";
34            echo " value=\"".$this->val[$champ]."\"";
35            echo " size=\"".$this->taille[$champ]."\"";
36            echo " maxlength=\"".$this->max[$champ]."\"";
37            echo " class=\"champFormulaire upload\"";
38            if (!$this->correct) {
39                if (isset($this->onchange) and $this->onchange[$champ] != "") {
40                    echo " onchange=\"".$this->onchange[$champ]."\"";
41                }
42                if (isset($this->onkeyup) and $this->onkeyup[$champ] != "") {
43                    echo " onkeyup=\"".$this->onkeyup[$champ]."\"";
44                }
45                if (isset($this->onclick) and $this->onclick[$champ] != "") {
46                    echo " onclick=\"".$this->onclick[$champ]."\"";
47                }
48            } else {
49                echo " disabled=\"disabled\"";
50            }
51            echo " />\n";
52    
53            //
54            if (!$this->correct) {
55                //
56                echo "<a class=\"upload ui-state-default ui-corner-all\" href=\"javascript:tmpUpload('".$champ."');\">";
57                echo "<span class=\"ui-icon ui-icon-arrowthickstop-1-s\" ";
58                echo "title=\""._("Cliquer ici pour telecharger un fichier depuis votre poste de travail")."\">";
59                echo _("Telecharger");
60                echo "</span>";
61                echo "</a>\n";
62                //
63                echo "<a class=\"voir ui-state-default ui-corner-all\" href=\"javascript:voir2('".$champ."');\">\n";
64                echo "<span class=\"ui-icon ui-icon-newwin\" ";
65                echo "title=\""._("Cliquer ici pour voir le fichier")."\">";
66                echo _("Voir");
67                echo "</span>";
68                echo "</a>\n";
69            }
70        }
71    
72  }  }
73    
74  ?>  ?>

Legend:
Removed from v.635  
changed lines
  Added in v.636

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26