Changeset 320
- Timestamp:
- Feb 14, 2010, 11:15:29 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/comparison.php
r286 r320 8 8 function CompareString($String1, $String2) 9 9 { 10 $Result = ''; 10 11 //TODO: barevné porovnání 11 12 //strcasecmp($String1, $String2) == 0 je totožné … … 20 21 if($ArrStr1[$i] == $ArrStr2[$i]) 21 22 { 22 echo($ArrStr1[$i].' ');23 $Result .= $ArrStr1[$i].' '; 23 24 } else 24 25 { … … 28 29 if(($ArrStr1[$i] == $ArrStr2[$j]) and ($find == false)) 29 30 { 30 echo($ArrStr1[$i].' ');31 $Result .= $ArrStr1[$i].' '; 31 32 $find = true; 32 33 } 33 34 } 34 35 if($find == false) 35 echo('<span class="edit">'.$ArrStr1[$i].' </span>');36 $Result .= '<span class="edit">'.$ArrStr1[$i].' </span>'; 36 37 } 37 } else echo('<span class="edit">'.$ArrStr1[$i].' </span>');38 } else $Result .= '<span class="edit">'.$ArrStr1[$i].' </span>'; 38 39 } 39 40 // echo $ArrStr1[0]; 41 return($Result); 40 42 } 41 43 … … 113 115 { 114 116 echo('<td>'); 115 CompareString($Line[$i][$TextItem['Column']],$Line[$i - 1][$TextItem['Column']]);117 echo(str_replace("\n", '<br/>', CompareString($Line[$i][$TextItem['Column']],$Line[$i - 1][$TextItem['Column']]))); 116 118 echo('</td>'); 117 119 } else echo('<td>'.$Line[$i][$TextItem['Column']].'</td>'); -
trunk/form.php
r286 r320 117 117 else 118 118 echo('<tr><th>'.$TextItem['Name'].'</th>'); 119 echo ('<td>'. htmlspecialchars($LineAJ[$TextItem['Column']]).'</td>119 echo ('<td>'.str_replace("\n", '<br/>', htmlspecialchars($LineAJ[$TextItem['Column']])).'</td> 120 120 <td><textarea rows="8" cols="40" onkeydown="ResizeTextArea(this)" class="textedit" id="'.$TextItem['Column'].'" name="'.$TextItem['Column'].'">'.htmlspecialchars($Line[$TextItem['Column']]).'</textarea></td></tr>'); 121 121 }
Note:
See TracChangeset
for help on using the changeset viewer.