コード例 #1
0
ファイル: ajax_admin.php プロジェクト: Kloadut/noalyss_ynh
     $root->appendChild($xml_content);
     $root->appendChild($xml_status);
     $dom->appendChild($root);
     echo $dom->saveXML();
     exit;
 }
 // Modify the description or the name of folder
 if ($op == 'folder_modify') {
     $dos = new Dossier($dossier);
     ob_start();
     $dos->load();
     echo HtmlInput::title_box(_('Modification'), 'folder_admin_div');
     $wText = new IText();
     echo '<form action="admin_repo.php" method="post">';
     echo HtmlInput::hidden('action', 'dossier_mgt');
     echo HtmlInput::hidden('d', $dos->get_parameter("id"));
     echo _('Nom') . ' : ';
     echo $wText->input('name', $dos->get_parameter('name'));
     echo '<br>';
     $wDesc = new ITextArea();
     $wDesc->heigh = 5;
     echo _('Description') . ' : <br>';
     echo $wDesc->input('desc', $dos->get_parameter('desc'));
     echo '<br>';
     echo HtmlInput::submit('upd', _('Modifie'));
     echo '</form>';
     $content = ob_get_clean();
     $status = 'OK';
 } else {
     if ($op == 'folder_drop') {
         // ask to confirm the removal a folder