Changeset 5954

Show
Ignore:
Timestamp:
07/08/08 00:33:41 (5 years ago)
Author:
p_lindheimer
Message:

added icons to Edit and Delete links

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.5/findmefollow/functions.inc.php

    r5864 r5954  
    368368    $grpURL = $_SERVER['PHP_SELF'].'?'.'display=findmefollow&extdisplay=GRP-'.$viewing_itemid; 
    369369    if (is_array($set_findmefollow)) { 
    370       $grpTEXT = (in_array($viewing_itemid,$set_findmefollow) ? "Edit" : "Add")." Follow Me Settings"; 
     370      if (in_array($viewing_itemid,$set_findmefollow)) { 
     371        $grpTEXT = _("Edit Follow Me Settings"); 
     372        $icon = "images/user_go.png"; 
     373      } else { 
     374        $grpTEXT = _("Add Follow Me Settings"); 
     375        $icon = "images/user_add.png"; 
     376      } 
    371377    } else { 
    372       $grpTEXT = "Add Follow Me Settings"; 
    373     } 
    374     $currentcomponent->addguielem('_top', new gui_link('findmefollowlink', $grpTEXT, $grpURL)); 
     378      $grpTEXT = _("Add Follow Me Settings"); 
     379      $icon = "images/user_add.png"; 
     380    } 
     381    $label = '<span><img width="16" height="16" border="0" title="Delete Extension" alt="" src="'.$icon.'"/>&nbsp;'.$grpTEXT.'</span>'; 
     382    $currentcomponent->addguielem('_top', new gui_link('findmefollowlink', $label, $grpURL)); 
    375383  }  
    376384} 
  • modules/branches/2.5/findmefollow/page.findmefollow.php

    r5919 r5954  
    158158    if (isset($amp_conf["AMPEXTENSIONS"]) && ($amp_conf["AMPEXTENSIONS"] == "deviceanduser")) { 
    159159      $editURL = $_SERVER['PHP_SELF'].'?display=users&extdisplay='.ltrim($extdisplay,'GRP-'); 
    160       $EXTorUSER = "User"
     160      $EXTorUSER = _("User")
    161161    } 
    162162    else { 
    163163      $editURL = $_SERVER['PHP_SELF'].'?display=extensions&extdisplay='.ltrim($extdisplay,'GRP-'); 
    164       $EXTorUSER = "Extension"; 
    165     } 
    166  
    167     echo "<p><a href=".$editURL."> Edit ".$EXTorUSER." ".ltrim($extdisplay,'GRP-')."</a></p>"; 
     164      $EXTorUSER = _("Extension"); 
     165    } 
     166 
     167    $label = '<span><img width="16" height="16" border="0" title="'.sprintf(_("Edit %s"),$EXTorUSER).'" alt="" src="images/user_edit.png"/>&nbsp;'.sprintf(_("Edit %s %s"),$EXTorUSER, ltrim($extdisplay,'GRP-')).'</span>'; 
     168    echo "<p><a href=".$editURL.">".$label."</a></p>"; 
    168169    echo "<p>".$delButton."</p>"; 
    169170  }