예제 #1
0
//-----------------------------------------------
// LISTE
//-----------------------------------------------
?>
        <table  style="width: 875px; margin-left: 1px;" border="1" cellpadding="0" cellspacing="0">
          <tr align="center">
            <th align="left">Nom</th>
            <th>Emplacement</th>
            <th>Date d'ajout </th>
            <th>Modif</th>
            <th title="suppr"> Suppr </th>
          </tr>
          <?php
		  $i = 0; 
		  foreach (CUserFile::sort($arr_urlrep) as $urlrep) {	
			$info_file = CUserFile::get_info_file($urlrep);
			$file_name = $info_file['name'];	
			$file_mtime= $info_file['mtime'];
			$file_type = $info_file['type'];
			$file_url  = $info_file['url'];
			$file_base = $info_file['base'];
			$actif_btn = CTableUser::is_admin($_SESSION['idmbr'])?1:0;
	      ?>
          <tr>
            <td><a href="fichier.php?a=66&amp;url_base_fils=<?php echo $file_url ?>&amp;url_base=<?php echo $file_base ?>"><?php echo $file_name ?></a></td>
            <td align="center"><?php echo $file_url ?></td>
            <td align="center"><?php echo CDate::date_switch(CDate::formate_date($file_mtime)) ?></td>
            <td align="center"><?php echo CHtml::get_editbutton($urlrep, $actif_btn) ?></td>
            <td align="center"><?php echo CHtml::get_delbutton($a, $urlrep, $id, $actif_btn) ?></td>
          </tr>
          <?php } ?>
예제 #2
0
// LISTE
//-----------------------------------------------
?>
        <table style="width: 875px; margin-left: 1px;" border="1" cellpadding="0" cellspacing="0">
          <tr align="center">
            <th align="left">Nom</th>
            <th>Emplacement</th>
            <th>Modif</th>
            <th title="suppr"> Suppr </th>
            <th>Date d'ajout </th>
          </tr>
          <?php
		  $i = 0;
		  foreach (CUserFile::sort($arr_urlfile) as $urlfile) {	
		  	$urlfile = CUserFile::formate_url_file($urlfile);
			$info_file 	= CUserFile::get_info_file($urlfile);
			$file_name 	= $info_file['name'];	
			$file_mtime	= $info_file['mtime'];
			$file_url 	= CUserFile::formate_url_file($info_file['url']);
			$file_type 	= $info_file['type'];
			$actif_btn = CTableUser::is_admin($_SESSION['idmbr'])?1:0;
	      ?>
          
          <tr>
            <td><?php echo $file_name ?></td>
            <td align="center"><?php echo CUserFile::get_emplacement($file_url) ?></td>
            <td align="center"><?php echo CHtml::get_editbutton($urlfile, $actif_btn) ?></td>
            <td align="center"><?php echo CHtml::get_delbutton($a, $urlfile, $id, $actif_btn) ?></td>
            <td align="center"><?php echo CDate::formate_date($file_mtime) ?></td>
          </tr>
          <?php } ?>