コード例 #1
0
ファイル: template.php プロジェクト: rakotobe/Rakotobe
	  <div id="over"><!-- InstanceBeginEditable name="over" --><?php echo CHtml::get_msginfo($msginfo) ?><!-- InstanceEndEditable --></div>
	  <div id="main"><!-- InstanceBeginEditable name="main" -->
        <?php if(($a != 4) && ($a != 5) ) { ?>
        <?php
?>
        <table  style="width: 875px; margin-left: 1px;" border="1" cellpadding="0" cellspacing="0">
          <tr align="center">
            <th align="left">Nom</th>
            <th>Date d'ajout </th>
            <th>Publi&eacute;</th>
            <th>Modif</th>
          </tr>
          <?php
		  $i = 0; 
		  foreach (CTemplate::sort($arr_urlrep) as $urlrep) {	
			$info_file 		= CTemplate::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 		= CTemplate::is_editable($file_name) ? 1 : 0;
			$etat 	   		= CTemplate::is_current_template($file_name);
			$url_vignette  	= CTemplate::get_url_vignette($file_name);
			
	      ?>
          <tr>
            <td height><a href="fichier.php?a=66&amp;url_base_fils=<?php echo $file_url ?>&amp;url_base=<?php echo $file_base ?>"></a><a href="fichier.php?a=66&amp;url_base_fils=<?php echo $file_url ?>&amp;url_base=<?php echo $file_base ?>">
              <?php if(is_file($url_vignette)) { ?>
              <img src="<?php echo $url_vignette ?>"/><br />
              <?php } ?>