si funziona , comunque cosa potrei fare per sistemare sto problema ?adesso mi stampa dei numeri e le iniziali e smartyCodice PHP:function GetDepartments() {
global $dbcore;
global $settings;
$sql = mysql_query("select * from depart order by displayorder asc")or die(mysql_error());
$departments = mysql_fetch_row($sql);
while (list ($key, $val) = each ($departments))
return $departments;
}
codice:<{foreach name=nome item=row from=$departments}> <tr > <td class="rcwcol2" style="width: 1%;height:24px;"> <{if $row.enabled }> [img]<{$path_helpdesk}>/template/admin_default/images/icone_mini/ico_deoarton.gif[/img] <{else}> [img]<{$path_helpdesk}>/template/admin_default/images/icone_mini/ico_deoartoff.gif[/img] <{/if}> </td> <td class="rcwcol2" style="width: 69%;height:24px;"><{$row.departname}> </td> <td class="rcwcol2" style="width: 10%;height:24px;text-align: center;"><{$row.enabled}> </td> <td class="rcwcol2" style="width: 15%;height: 24px;text-align:center;"> </td> </tr> <{/foreach}>

Rispondi quotando