3 $out = $this->get_out();
5 $xml_name = isset($out["form_params"]["name"]) ? $out["form_params"]["name"] : "sml_xn";
6 $xml_label = isset($out["form_params"]["label"]) ? $out["form_params"]["label"] : "";
7 $xml_maj_url = isset($out["form_params"]["maj_url"]) ? $out["form_params"]["maj_url"] : "";
8 $xml_id = isset($out["form_params"]["id"]) ? $out["form_params"]["id"] : "";
9 $xml_id_suffix = isset($out["form_params"]["id"]) ? "_".$out["form_params"]["id"] : "";
10 $xml_can_delete = isset($out["form_params"]["can_delete"]) ? $out["form_params"]["can_delete"] : false;
11 $source = $this->out("xml_form_source");
12 if(!$source) $source = $data->empty_source();
15 <div class="admin_source_infos" id="<?php echo $xml_name ?>_infos<?php echo $xml_id_suffix ?>">
17 <?php if($xml_id) : ?>
18 <input type="hidden" name="<?php echo $xml_name ?>_id<?php echo $xml_id_suffix ?>" value="on" />
25 (isset($source["xml"]) && $source["xml"])
26 && (isset($source["image"]) && $source["image"])
27 && ($img_size = $data->img_size($source["image"], 150, 150)) !== false
31 <p class="logo_source">
32 <a href="<?php echo $source["from"] ?>">
33 <img src="<?php echo $source["image"]; ?>"
34 width="<?php echo $img_size["width"] ?>"
35 height="<?php echo $img_size["height"] ?>"
40 <ul class="admin_source_head">
41 <?php if(isset($source["xml"]) && $source["xml"]) : ?>
42 <li class="admin_form_title"><?php echo $xml_label ?><a href="<?php echo $source["from"] ?>"><strong><?php echo $source["titre"] ?></strong></a></li>
43 <?php foreach($source["groupes"] as $groupe) : ?>
44 <li class="admin_form_title"><?php echo $groupe["nom"] ?></li>
47 <?php if($xml_maj_url && $this->config("cache_actif")) : ?>
48 <li><a href="<?php echo $xml_maj_url ?>">Recharger</a></li>
50 <?php if($xml_can_delete) : ?>
51 <li><a href="#" onclick="del_sml_xf('<?php echo $xml_name ?>_infos<?php echo $xml_id_suffix ?>'); return false;">Enlever</a></li>
54 <div class="clear"><!-- --></div>
55 <div class="admin_source_url">URL du fichier XML
56 : <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"] : "" ?>" />
60 <?php if($source["titre"] && $source["xml"]) : ?>
61 <ul class="xml_infos">
64 <a href="<?php echo $source["from"] ?>">
65 <?php echo $source["titre"] ?>
70 <a href="<?php echo $source["xml"]["url"] ?>"><?php echo $source["xml"]["url"] ?></a>
72 <?php if($source["licence"]) : ?>
73 <li>licence : <a href="<?php echo $source["licence"]["url"] ?>"><?php echo $source["licence"]["nom"] ?></a></li>
75 <?php if($source["documents"]) : ?>
79 <?php foreach($source["documents"] as $id_document => $document) : ?>
80 <li><a href="<?php echo $document["url"] ?>"><?php echo $document["nom"] ?></a></li>
89 <span id="<?php echo $xml_name ?>_edit<?php echo $xml_id_suffix ?>" class="xml_edit_content">
90 Editer le contenu du fichier XML
91 <input type="checkbox" class="use_edit_<?php echo $xml_name ?>_content" id="use_edit_<?php echo $xml_name ?>_content<?php echo $xml_id_suffix ?>" name="use_edit_<?php echo $xml_name ?>_content<?php echo $xml_id_suffix ?>"<?php echo $source["xml"]["use_edit_content"] ? " checked=\"checked\"" : "" ?> />
92 <span<?php echo $source["xml"]["use_edit_content"] ? "" : " style=\"display:none\"" ?>>
93 <textarea name="edit_<?php echo $xml_name ?>_content<?php echo $xml_id_suffix ?>" id="edit_<?php echo $xml_name ?>_content<?php echo $xml_id_suffix ?>" cols="64" rows="15" wrap="off"><?php echo htmlentities($source["xml"]["content"]) ?></textarea>