2010-08-13 Sergio Martin <sergio.martin@artica.es>

* extensions/agents_modules.php: Aligned vertically the modules
	paginatiomn arrows in the agents/modules matrix



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3139 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
zarzuelo 2010-08-13 08:38:50 +00:00
parent 62a5720d0e
commit 303ad9e1f9
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2010-08-13 Sergio Martin <sergio.martin@artica.es>
* extensions/agents_modules.php: Aligned vertically the modules
paginatiomn arrows in the agents/modules matrix
2010-08-13 Sergio Martin <sergio.martin@artica.es>
* include/functions.php: Fixed a bug to generate the image

View File

@ -87,7 +87,7 @@ function mainAgentsModules() {
if($hor_offset > 0) {
$new_hor_offset = $hor_offset-$block;
echo "<th width='20px' rowspan='".($nagents+1)."'><a href='index.php?sec=extensions&sec2=extensions/agents_modules&refr=0&hor_offset=".$new_hor_offset."&offset=".$offset."'>".print_image("images/darrowleft.png",true, array('title' => __('Previous modules')))."</a> </th>";
echo "<th width='20px' style='vertical-align:top; padding-top: 35px;' rowspan='".($nagents+1)."'><a href='index.php?sec=extensions&sec2=extensions/agents_modules&refr=0&hor_offset=".$new_hor_offset."&offset=".$offset."'>".print_image("images/darrowleft.png",true, array('title' => __('Previous modules')))."</a> </th>";
}
$nmodules = 0;
foreach($modules_by_name as $module) {
@ -102,7 +102,7 @@ function mainAgentsModules() {
if(($hor_offset + $block) < $nmodules) {
$new_hor_offset = $hor_offset+$block;
echo "<th width='20px' rowspan='".($nagents+1)."'><a href='index.php?sec=extensions&sec2=extensions/agents_modules&refr=0&hor_offset=".$new_hor_offset."&offset=".$offset."'>".print_image("images/darrowright.png",true, array('title' => __('More modules')))."</a> </th>";
echo "<th width='20px' style='vertical-align:top; padding-top: 35px;' rowspan='".($nagents+1)."'><a href='index.php?sec=extensions&sec2=extensions/agents_modules&refr=0&hor_offset=".$new_hor_offset."&offset=".$offset."'>".print_image("images/darrowright.png",true, array('title' => __('More modules')))."</a> </th>";
}
// Prepare pagination
@ -140,7 +140,7 @@ function mainAgentsModules() {
echo "<tr style='height: 35px;'>";
$file_name = string2image(printTruncateText($agent['nombre'],20, false, true, false, '...'), 140, 15, 3, 0, $rowcolor, $textcolor, 4, 0);
$file_name = string2image(printTruncateText($agent['nombre'],17, false, true, false, '...'), 140, 15, 3, 0, $rowcolor, $textcolor, 4, 0);
echo "<td style='background-color: ".$rowcolor.";'>".print_image($file_name, true, array('title' => $agent['nombre']))."</td>";
$agent_modules = get_agent_modules($agent['id_agente']);