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" />
22 <ul class="admin_source_head">
23 <?php if(isset($source["xml"]) && $source["xml"]) : ?>
24 <li class="admin_form_title"><?php echo $xml_label ?><a href="<?php echo $source["from"] ?>"><strong><?php echo $source["titre"] ?></strong></a></li>
26 <?php if($xml_maj_url && $this->config("cache_actif")) : ?>
27 <li><a href="<?php echo $xml_maj_url ?>">Recharger</a></li>
29 <?php if($xml_can_delete) : ?>
30 <li><a href="#" onclick="del_sml_xf('<?php echo $xml_name ?>_infos<?php echo $xml_id_suffix ?>'); return false;">Enlever</a></li>
33 <div class="admin_source_url">URL du fichier XML
34 : <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"] : "" ?>" />
38 <?php if($source["titre"] && $source["xml"]) : ?>
39 <ul class="xml_infos">
42 <a href="<?php echo $source["from"] ?>">
43 <?php echo $source["titre"] ?>
44 (<?php echo $source["auteur"] ?>)
49 <a href="<?php echo $source["xml"]["url"] ?>"><?php echo $source["xml"]["url"] ?></a>
51 <?php if($source["licence"]) : ?>
52 <li>licence : <a href="<?php echo $source["licence"]["url"] ?>"><?php echo $source["licence"]["nom"] ?></a></li>
54 <?php if($source["documents"]) : ?>
58 <?php foreach($source["documents"] as $id_document => $document) : ?>
59 <li><a href="<?php echo $document["url"] ?>"><?php echo $document["nom"] ?></a></li>
68 <span id="<?php echo $xml_name ?>_edit<?php echo $xml_id_suffix ?>" class="xml_edit_content">
69 Editer le contenu du fichier XML
70 <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\"" : "" ?> />
71 <span<?php echo $source["xml"]["use_edit_content"] ? "" : " style=\"display:none\"" ?>>
72 <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 $source["xml"]["content"] ?></textarea>