diff options
| author | 2012-10-22 23:41:56 +0200 | |
|---|---|---|
| committer | 2012-10-22 23:41:56 +0200 | |
| commit | 9a95cb844e80512205c519da69ec373e046b7f52 (patch) | |
| tree | f153ffbf6952c925227581501ed25fcb94230801 /app/views/configure/importExport.phtml | |
| parent | a928ebf1d010433d81d3afe5a6981f7ca391b9c7 (diff) | |
Début gestion import (non fonctionnel) / export (presque fonctionnel)
Diffstat (limited to 'app/views/configure/importExport.phtml')
| -rw-r--r-- | app/views/configure/importExport.phtml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/app/views/configure/importExport.phtml b/app/views/configure/importExport.phtml new file mode 100644 index 000000000..634800157 --- /dev/null +++ b/app/views/configure/importExport.phtml @@ -0,0 +1,24 @@ +<?php if ($this->req == 'export') { ?> +<?xml version="1.0" encoding="UTF-8" ?> +<!-- Generated by <?php echo Configuration::title (); ?> --> +<opml version="2.0"> + <head> + <title><?php echo Configuration::title (); ?> OPML Feed</title> + <dateCreated><?php echo date('D, d M Y H:i:s'); ?></dateCreated> + </head> + <body> +<?php echo opml_export ($this->feeds); ?> + </body> +</opml> +<?php } else { ?> + +<form method="post" action="" enctype="multipart/form-data"> + <h1>Exporter au format OPML</h1> + <a class="button" href="<?php echo Url::display (array ('c' => 'configure', 'a' => 'importExport', 'params' => array ('q' => 'export'))); ?>">Exporter</a> + + <h1>Importer au format OPML</h1> + <label for="file">Fichier</label> + <input type="file" name="file" id="file" /> + <input type="submit" value="Charger" /> +</form> +<?php } ?> |
