X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FHTMLForm.php;h=e1bb1234b3e66b74bd872107f2075e427451db05;hb=60610e24efff81cdd510b27b5e97c04b993ea323;hp=e7f0bd00f025233a68ceb49445bac6b232fca89b;hpb=aa487fcf9742f6990ddd58ce35cec2b76c2ef4a2;p=lhc%2Fweb%2Fwiklou.git
diff --git a/includes/HTMLForm.php b/includes/HTMLForm.php
index e7f0bd00f0..e1bb1234b3 100644
--- a/includes/HTMLForm.php
+++ b/includes/HTMLForm.php
@@ -1,45 +1,154 @@
\n" .
+ /** name of our form. Used as prefix for labels */
+ var $mName;
+
+ /**
+ * @access private
+ * @param string $name Name of the fieldset.
+ * @param string $content HTML content to put in.
+ * @return string HTML fieldset
+ */
+ function fieldset( $name, $content ) {
+ return "
".wfMsg( $this->mName.'-'.$varname ).
+ "\n";
+ }
+} // end class
+
+
+// functions used by SpecialUserlevels & SpecialGrouplevels
+
+/** Build a select with all existent groups
+ * @param string $selectname Name of this element. Name of form is automaticly prefixed.
+ * @param array $selected Array of element selected when posted. Multiples will only show them.
+ * @param boolean $multiple A multiple elements select.
+ * @param integer $size Number of element to be shown ignored for non multiple (default 6).
+ * @param boolean $reverse If true, multiple select will hide selected elements (default false).
+*/
+function HTMLSelectGroups($selectname, $selected=array(), $multiple=false, $size=6, $reverse=false) {
+ $dbr =& wfGetDB( DB_SLAVE );
+ $group = $dbr->tableName( 'group' );
+ $sql = "SELECT group_id, group_name FROM $group";
+ $res = $dbr->query($sql,'wfSpecialAdmin');
+
+ $out = wfMsg($selectname);
+ $out .= '\n";
+ return $out;
+}
+
+/** Build a select with all existent rights
+ * @param array $selected Names(?) of user rights that should be selected.
+ * @return string HTML select.
+ */
+function HTMLSelectRights($selected='') {
+ global $wgAvailableRights;
+ $out = '\n";
+ return $out;
}
?>