Jquery ile XML Öğeleri yeniden düzenleyerek, daha sonra php ile XML dosyasını kaydetmek

0 Cevap php

Nasıl jQuery & gibi bir şey kullanabilirsiniz Bir xml dosyası içindeki öğeleri yeniden düzenlemek için PHP?

Aşağıdaki jQuery eklentileri html tablo satırları veya liste öğeleri hakkında takas izin, ama geri bir düğmeye tıklama ile bir XML dosyasına bu değişiklikleri kaydetmek için nasıl hiçbir fikrim yok.

www.isocra.com/2008/02/table-drag-and-drop-jquery-plugin/

www.jqueryui.com/demos/sortable/

Here it describes a function to Rearrange/Reorder Elements: http://quest4knowledge.wordpress.com/2010/09/04/php-xml-create-add-edit-modify-using-dom-simplexml-xpath/

But that only shows how to swap the position of two elements, not multiple ones. Can they be combined to reorder a longer list of elements?

Ben mySQL, sadece php / jquery / xml kullanarak önlemek için çalışıyorum ...

<?xml version="1.0" encoding="utf-8"?>
<gallery>
  <picture id="0001">
    <title>Title One</title>
    <description>Some text here</description>
  </picture>
  <picture id="0002">
    <title>Title Two</title>
    <description>Some more text here</description>
  </picture>
  <picture id="0003">
    <title>Title Three</title>
    <description>Some other text here</description>
  </picture>
</gallery>

Teşekkürler Andy.

0 Cevap