2012-06-13 Hirofumi Kosaka <kosaka@rworks.jp>

* operation/agentes/estado_ultimopaquete.php: Merged from 4.0.x:
	Fixed string truncation problem for multi-byte characters.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6523 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
hkosaka 2012-06-13 04:35:51 +00:00
parent 66499928c0
commit 3c8f9c65b2
2 changed files with 7 additions and 8 deletions

View File

@ -1,3 +1,8 @@
2012-06-13 Hirofumi Kosaka <kosaka@rworks.jp>
* operation/agentes/estado_ultimopaquete.php: Merged from 4.0.x:
Fixed string truncation problem for multi-byte characters.
2012-06-12 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* include/functions_graph.php: Added options for progress_bar graph.

View File

@ -418,10 +418,7 @@ foreach ($modules as $module) {
AND ($module["id_tipo_modulo"] != 17)
AND ($module["id_tipo_modulo"] != 23)) {
echo "</td><td class='".$tdcolor."f9' title='".io_safe_output($module["descripcion"])."'>";
echo io_safe_output(substr($module["descripcion"],0,32));
if (strlen($module["descripcion"]) > 32){
echo "...";
}
echo mb_strimwidth(io_safe_output($module["descripcion"]), 0, 35, "...", "UTF-8");
echo "</td>";
}
else{
@ -459,10 +456,7 @@ foreach ($modules as $module) {
else $colspan= 1;
echo "<td class='".$tdcolor."f9' colspan='" . $colspan . "' title='".io_safe_output($module["datos"])."'>";
echo substr(io_safe_output($module["datos"]),0,42);
if (strlen(io_safe_output($module["datos"])) > 42){
echo "...";
}
echo mb_strimwidth(io_safe_output($module["datos"]), 0, 45, "...", "UTF-8");
}
echo "</td>";