@@ -32,10 +32,7 @@ <h2>1. Loading the LDAP attributes<br>
3232object class and the < span style ="font-style: italic; "> 'macAddress'</ span >
3333attribute. Therefore we will save these two values.< br >
3434< br >
35- < table style ="width: 100%; text-align: left; " class ="mod-code " border ="0 " cellpadding ="2 " cellspacing ="2 ">
36- < tbody >
37- < tr >
38- < td style ="vertical-align: top; "> /**< br >
35+ < div class ="mod-code ">
3936 * This function loads all needed attributes into the
4037object.< br >
4138 *< br >
@@ -65,10 +62,7 @@ <h2>1. Loading the LDAP attributes<br>
6562 }< br >
6663 return 0;< br >
6764 }< br >
68- </ td >
69- </ tr >
70- </ tbody >
71- </ table >
65+ </ div >
7266< br >
7367< br >
7468< h2 > 2. Page display</ h2 >
@@ -93,10 +87,7 @@ <h2>2. Page display</h2>
9387The variable < span style ="font-style: italic; "> $this->attributes</ span >
9488contains the LDAP attributes which are useful for this module.< br >
9589< br >
96- < table style ="width: 100%; text-align: left; " class ="mod-code " border ="0 " cellpadding ="2 " cellspacing ="2 ">
97- < tbody >
98- < tr >
99- < td style ="vertical-align: top; "> /**< br >
90+ < div class ="mod-code ">
10091 * This function will create the meta HTML code to
10192show a page with all attributes.< br >
10293 *< br >
@@ -137,10 +128,7 @@ <h2>2. Page display</h2>
137128 $return->addElement(new htmlHiddenInput('mac_number', $macCount));< br >
138129 return $return;< br >
139130 }< br >
140- </ td >
141- </ tr >
142- </ tbody >
143- </ table >
131+ </ div >
144132< br >
145133< br >
146134< h2 > 3. Processing input data< br >
@@ -164,10 +152,7 @@ <h2>3. Processing input data<br>
164152The function checks the input fields and fills the LDAP attributes. If
165153all is ok it will enable the user to move to another module page.< br >
166154< br >
167- < table style ="width: 100%; text-align: left; " class ="mod-code " border ="0 " cellpadding ="2 " cellspacing ="2 ">
168- < tbody >
169- < tr >
170- < td style ="vertical-align: top; "> /**< br >
155+ < div class ="mod-code ">
171156 * Write variables into object and do some regex
172157checks< br >
173158 *< br >
@@ -235,10 +220,7 @@ <h2>3. Processing input data<br>
235220array_unique($this->attributes['macAddress']);< br >
236221 return $errors;< br >
237222 }< br >
238- </ td >
239- </ tr >
240- </ tbody >
241- </ table >
223+ </ div >
242224< br >
243225< br >
244226< h2 > 4. Defining that your module is ready for user input and LDAP
@@ -271,10 +253,7 @@ <h2>4. Defining that your module is ready for user input and LDAP
271253accept input and the account needs a < span style ="font-style: italic; "> sambaSID</ span >
272254before it can be saved.< br >
273255< br >
274- < table style ="width: 100%; text-align: left; " class ="mod-code " border ="0 " cellpadding ="2 " cellspacing ="2 ">
275- < tbody >
276- < tr >
277- < td style ="vertical-align: top; "> /**< br >
256+ < div class ="mod-code ">
278257 * This function is used to check if this module page
279258can be displayed.< br >
280259 * It returns false if a module depends on data from
@@ -308,10 +287,7 @@ <h2>4. Defining that your module is ready for user input and LDAP
308287 return true;< br >
309288 }< br >
310289 < br >
311- </ td >
312- </ tr >
313- </ tbody >
314- </ table >
290+ </ div >
315291< br >
316292< br >
317293< h2 > 5. Saving the LDAP attributes< br >
@@ -331,10 +307,7 @@ <h2>5. Saving the LDAP attributes<br>
331307this function to make sure that its object class is saved. Other
332308modules (e.g. quota) use it build the lamdaemon commands.< br >
333309< br >
334- < table style ="width: 100%; text-align: left; " class ="mod-code " border ="0 " cellpadding ="2 " cellspacing ="2 ">
335- < tbody >
336- < tr >
337- < td style ="vertical-align: top; "> /**< br >
310+ < div class ="mod-code ">
338311 * Returns a list of modifications which have to be
339312made to the LDAP account.< br >
340313 *< br >
@@ -363,10 +336,7 @@ <h2>5. Saving the LDAP attributes<br>
363336 }< br >
364337 return parent::save_attributes();< br >
365338 }< br >
366- </ td >
367- </ tr >
368- </ tbody >
369- </ table >
339+ </ div >
370340< br >
371341< br >
372342< span style ="font-weight: bold; "> </ span >
0 commit comments