Changeset 10068 in spip-zone
- Timestamp:
- Mar 2, 2007, 4:20:57 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/_dev_/edit_table/inc/tableau.php
r10031 r10068 27 27 echo '<div>'; 28 28 while ($description_table = mysql_fetch_array($res_desc_table)){ 29 switch ($description_table['Type']){ 30 31 case 'longblob' : 29 /*switch ($description_table['Type']){ 30 case 'autre chause' : 31 break; 32 33 default : 32 34 echo $description_table['Field'].'<br />'; 33 35 echo'<textarea style="width: 480px;" class="forml" rows="5" cols="40" name='.$description_table['Field'].'>'.$tableau[$description_table['Field']].'</textarea><br />'; 34 36 break; 35 36 default : 37 echo '<div><b>'.$description_table['Field'].'</b><br /><input type="text" class="formo" value="'.$tableau[$description_table['Field']].'" name="'.$description_table['Field'].'" /></div><br />'; 37 38 }*/ 39 if (($description_table['Type'] == 'longblob') OR (strlen($tableau[$description_table['Field']]) > 100) ){ 40 echo $description_table['Field'].'<br />'; 41 echo'<textarea style="width: 480px;" class="forml" rows="5" cols="40" name='.$description_table['Field'].'>'.$tableau[$description_table['Field']].'</textarea><br />'; 42 }else{ 43 echo $description_table['Field'].'<br />'; 44 echo'<input type="text" class="forml" rows="5" cols="40" name='.$description_table['Field'].' value="'.$tableau[$description_table['Field']].'"><br />'; 45 } 38 46 39 }40 47 } 41 48 echo '</div>';
Note: See TracChangeset
for help on using the changeset viewer.