|
|
@@ -86,11 +86,30 @@ switch($_REQUEST['action']) {
|
|
|
break;
|
|
|
case 'manageMailboxFolder':
|
|
|
header("Status: 200 OK");
|
|
|
- $boxHtml = 'Account: ';
|
|
|
+
|
|
|
+
|
|
|
+ /*$boxHtml = 'Account: ';
|
|
|
$boxHtml .= getEditableLink('mailaccount', 'select', $_GET['mfId'], 'Click to change', getMailboxNameFromMailaccountId($_GET['mbId']));
|
|
|
$boxHtml .= '<br>Folder: ';
|
|
|
$boxHtml .= getEditableLink('mailfolder', 'text', $_GET['mfId'], 'Click to change', getMailboxFolderNameFromId($_GET['mfId'])); // TODO: make this select-box
|
|
|
- echo $boxHtml;
|
|
|
+ echo $boxHtml;*/
|
|
|
+
|
|
|
+ $editBox = array(
|
|
|
+ "options" => array(
|
|
|
+ array(
|
|
|
+ "type" => "select",
|
|
|
+ "name" => "account"
|
|
|
+ ),
|
|
|
+ array(
|
|
|
+ "type" => "text",
|
|
|
+ "name" => "Folder"
|
|
|
+ )
|
|
|
+ ),
|
|
|
+ "title" => "Mailkonto bearbeiten"
|
|
|
+ );
|
|
|
+
|
|
|
+ echo json_encode($editBox);
|
|
|
+
|
|
|
break;
|
|
|
case 'getMailAccountsByUid':
|
|
|
header("Status: 200 OK");
|