Changeset 287

Show
Ignore:
Timestamp:
04/19/08 19:30:28 (9 months ago)
Author:
shupp
Message:

Added account limits editing

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Framework/Module/Accounts.php

    r253 r287  
    8080            $eus  =  "./?module=Accounts&class=Modify&domain={$this->domain}"; 
    8181            $eus .= "&account=$key&event=modifyAccount"; 
     82            $lus  =  "./?module=Accounts&class=Limits&domain={$this->domain}"; 
     83            $lus .= "&account=$key"; 
    8284            $dus  = "./?module=Accounts&domain={$this->domain}"; 
    8385            $dus .= "&account=$key&event=delete"; 
     
    8789            $a[$c]['quota']      = $this->user->getQuota($val['quota']); 
    8890            $a[$c]['edit_url']   = htmlspecialchars($eus); 
     91            $a[$c]['limits_url'] = htmlspecialchars($lus); 
    8992            $a[$c]['delete_url'] = htmlspecialchars($dus); 
    9093            $c++; 
     94        } 
     95        if ($this->user->isSysAdmin()) { 
     96            $this->setData('isSysAdmin', 1); 
    9197        } 
    9298        $aus = "./?module=Accounts&event=addAccount&domain={$this->domain}"; 
  • trunk/Framework/Module/Accounts/Templates/Default/listAccounts.tpl

    r253 r287  
    2121    <td class="domaincell">{t}Quota{/t}</td> 
    2222    <td class="domaincell">{t}Edit{/t}</td> 
     23{if $isSysAdmin} 
     24    <td class="domaincell">{t}Limits{/t}</td> 
     25{/if} 
    2326    <td class="domaincell">{t}Delete{/t}</td> 
    2427</tr> 
     
    3033    <td>{$account.quota}</td> 
    3134    <td><a href="{$account.edit_url}">{t}edit{/t}</a></td> 
     35{if $isSysAdmin} 
     36    <td><a href="{$account.limits_url}">{t}limits{/t}</a></td> 
     37{/if} 
    3238    <td><a href="{$account.delete_url}">{t}delete{/t}</a></td> 
    3339</tr>