File tree Expand file tree Collapse file tree 1 file changed +20
-7
lines changed
Expand file tree Collapse file tree 1 file changed +20
-7
lines changed Original file line number Diff line number Diff line change 5656$ out ['table ' ] = $ record ['dbtable ' ];
5757list ($ key , $ value ) = explode (': ' , $ record ['dbidx ' ]);
5858if (!empty ($ value )) {
59- if ($ record ['action ' ] == 'd ' ) {
60- // No link for deleted content.
61- $ out ['table_id ' ] = $ record ['dbidx ' ];
62- } else {
63- // TODO link per content type
64- $ out ['table_id ' ] = '<a href="#" data-load-content="mail/mail_user_edit.php?id= ' . $ value .'" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="link"> ' .$ record ['dbidx ' ].'</a> ' ;
65- }
59+ if ($ record ['action ' ] == 'd ' ) {
60+ // No link for deleted content.
61+ $ out ['table_id ' ] = $ record ['dbidx ' ];
62+ } else {
63+ switch ($ out ['table ' ]) {
64+ case 'mail_forwarding ' :
65+ $ file = 'mail/mail_forward_edit.php ' ;
66+ break ;
67+ case 'mail_user ' :
68+ $ file = 'mail/mail_user_edit.php ' ;
69+ break ;
70+ case 'mail_domain ' :
71+ $ file = 'mail/mail_domain_edit.php ' ;
72+ break ;
73+ default :
74+ $ file = '' ;
75+ }
76+ // TODO link per content type
77+ $ out ['table_id ' ] = '<a href="#" data-load-content=" ' . $ file . '?id= ' . $ value .'" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="link"> ' .$ record ['dbidx ' ] . $ file .'</a> ' ;
78+ }
6679}
6780
6881$ out ['action_char ' ] = $ record ['action ' ];
You can’t perform that action at this time.
0 commit comments