nouveaux noms d'elements dans les fichiers XML des sources
[mw_sourceml] / app / out / default / views / content / sources / xml_form.php
index 3b01a82..faa21c2 100644 (file)
   <?php endif; ?>
 
   <div>
+    <?php
+
+      if(
+            (isset($source["xml"]) && $source["xml"])
+        &&  (isset($source["image"]) && $source["image"])
+        &&  ($img_size = $data->img_size($source["image"], 150, 150)) !== false
+      ) :
+
+    ?>
+    <p class="logo_source">
+      <a href="<?php echo $source["from"] ?>">
+        <img src="<?php echo $source["image"]; ?>"
+             width="<?php echo $img_size["width"] ?>"
+             height="<?php echo $img_size["height"] ?>"
+             alt="" />
+      </a>
+    </p>
+    <?php endif; ?>
     <ul class="admin_source_head">
     <?php if(isset($source["xml"]) && $source["xml"]) : ?>
       <li class="admin_form_title"><?php echo $xml_label ?><a href="<?php echo $source["from"] ?>"><strong><?php echo $source["titre"] ?></strong></a></li>
+      <?php foreach($source["groupes"] as $groupe) : ?>
+      <li class="admin_form_title"><?php echo $groupe["nom"] ?></li>
+      <?php endforeach; ?>
     <?php endif; ?>
     <?php if($xml_maj_url && $this->config("cache_actif")) : ?>
       <li><a href="<?php echo $xml_maj_url ?>">Recharger</a></li>
@@ -30,6 +51,7 @@
       <li><a href="#" onclick="del_sml_xf('<?php echo $xml_name ?>_infos<?php echo $xml_id_suffix ?>'); return false;">Enlever</a></li>
     <?php endif; ?>
     </ul>
+    <div class="clear"><!-- --></div>
     <div class="admin_source_url">URL du fichier XML
     : <input type="text" id="<?php echo $xml_name ?><?php echo $xml_id_suffix ?>" name="<?php echo $xml_name ?><?php echo $xml_id_suffix ?>" size="40" value="<?php echo isset($source["xml"]["url"]) ? $source["xml"]["url"] : "" ?>" />
     </div>