Changeset 14 for trunk/template/default/htmlfunctions.inc.php
- Timestamp:
- May 18, 2003, 11:42:32 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/template/default/htmlfunctions.inc.php
r2 r14 39 39 return $output; 40 40 } 41 /*42 function affiche_icone_recent( $date_comparaison )43 {44 global $user, $conf;45 $difference = time() - $date_comparaison;46 $jours = 24*60*60;47 $output = '';48 if ( $difference < $conf['periode_longue'] * $jours )49 {50 $icon_url = './theme/'.$user['theme'].'/';51 if ( $difference < $conf['periode_courte'] * $jours )52 {53 $icon_url.= 'new_long.gif';54 }55 else56 {57 $icon_url.= 'new_short.gif';58 }59 $size = getimagesize( $icon_url );60 $output = '<img src="'.$icon_url.'" style="border:0;height:'.$size[1].'px;width:'.$size[0].'px" alt="" />';61 }62 return $output;63 }64 */65 41 66 42 function create_navigation_bar( $url, $nb_element, $start, … … 122 98 return '<table style="width:'; 123 99 } 124 /* 100 125 101 function get_frame_begin() 126 102 { 127 103 return ';"> 128 104 <tr> 129 <td style="border: 2px solid lightgreen;width:100%;padding:5px;background-color:black;">';105 <td style="border:1px dashed gray;width:100%;padding:5px;background-color:white;">'; 130 106 } 131 107 … … 137 113 </table>'; 138 114 } 139 */ 115 /* 140 116 function get_frame_begin() 141 117 { … … 172 148 </table>'; 173 149 } 174 150 */ 175 151 function initialize_template() 176 152 { 177 153 global $vtp, $handle, $user; 178 154 155 $vtp->setGlobalVar( $handle, 'style', $user['style'] ); 179 156 $vtp->setGlobalVar( $handle, 'frame_start', get_frame_start() ); 180 157 $vtp->setGlobalVar( $handle, 'frame_begin', get_frame_begin() );
Note: See TracChangeset
for help on using the changeset viewer.