Subversion-Projekte lars-tiefland.ci

Revision

Revision 1570 | Revision 2048 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 1570 Revision 2045
Zeile 34... Zeile 34...
34
					primary: "ui-icon-check"
34
					primary: "ui-icon-check"
35
				},
35
				},
36
				showText: false,
36
				showText: false,
37
				click:function()
37
				click:function()
38
				{
38
				{
39
					$('#userResult').load("/backend/user/del",$('#user_form').serializeArray(),function(){
39
					$('#userResult').load("/user/del",$('#user_form').serializeArray(),function(){
40
						$('#userResult').dialog("open");
40
						$('#userResult').dialog("open");
41
					})
41
					})
42
					$('#userQuestion').dialog("close");
42
					$('#userQuestion').dialog("close");
43
				}
43
				}
44
			},
44
			},
Zeile 88... Zeile 88...
88
            modal:true,
88
            modal:true,
89
            width:800,
89
            width:800,
90
            resizable:false,
90
            resizable:false,
91
            buttons:{
91
            buttons:{
92
                "Ordner anlegen":function(){
92
                "Ordner anlegen":function(){
93
                    $.post("/backend/toolbox/mkdir/",$('#create_folder').serializeArray(),function(html){
93
                    $.post("/toolbox/mkdir/",$('#create_folder').serializeArray(),function(html){
94
                        //alert(html);
94
                        //alert(html);
95
                    });
95
                    });
96
                    $('#folder_dialog').dialog("close");
96
                    $('#folder_dialog').dialog("close");
97
                },
97
                },
98
                "Abbruch": function(){
98
                "Abbruch": function(){
Zeile 146... Zeile 146...
146
                text:"speichern",
146
                text:"speichern",
147
                icon: "ui-icon-check",
147
                icon: "ui-icon-check",
148
                showLabel: false,
148
                showLabel: false,
149
                click:function()
149
                click:function()
150
                {
150
                {
151
                    $('#taskResult').load("/backend/scheduler/save/",$('#scheduler_form').serializeArray(),function(){
151
                    $('#taskResult').load("/scheduler/save/",$('#scheduler_form').serializeArray(),function(){
152
                        $('#taskResult').dialog("open");
152
                        $('#taskResult').dialog("open");
153
                    })
153
                    })
154
                    $('#taskForm').dialog("close");
154
                    $('#taskForm').dialog("close");
155
                }
155
                }
156
            },
156
            },
Zeile 212... Zeile 212...
212
                	icon:"ui-icon-check"
212
                	icon:"ui-icon-check"
213
				},
213
				},
214
                showLabel: false,
214
                showLabel: false,
215
                click:function()
215
                click:function()
216
                {
216
                {
217
                    $.post("/backend/user/save/",$('#user_form').serializeArray(),function(erg){
217
                    $.post("/user/save/",$('#user_form').serializeArray(),function(erg){
218
                    	ret=erg.split('|');
218
                    	ret=erg.split('|');
219
                    	if(ret[0]==0)
219
                    	if(ret[0]==0)
220
                    	{
220
                    	{
221
		                    $('#userForm').dialog("close");
221
		                    $('#userForm').dialog("close");
222
    	                    $('#userResult').dialog("open");
222
    	                    $('#userResult').dialog("open");
Zeile 251... Zeile 251...
251
                	icon:"ui-icon-check"
251
                	icon:"ui-icon-check"
252
				},
252
				},
253
                showLabel: false,
253
                showLabel: false,
254
                click:function()
254
                click:function()
255
                {
255
                {
256
                    $.post("/backend/user_rechte/save/",$('#user_rechte_form').serializeArray(),function(erg){
256
                    $.post("/user_rechte/save/",$('#user_rechte_form').serializeArray(),function(erg){
257
                    	ret=erg.split('|');
257
                    	ret=erg.split('|');
258
                        $('#userResult').html('Benutzerrechte gespeichert').dialog("open");
258
                        $('#userResult').html('Benutzerrechte gespeichert').dialog("open");
259
	                    $('#userRechteForm').dialog("close");
259
	                    $('#userRechteForm').dialog("close");
260
                    })
260
                    })
261
                }
261
                }
Zeile 291... Zeile 291...
291
    
291
    
292
	function del_user()
292
	function del_user()
293
	{
293
	{
294
		tIdArr=$(this).attr("id").split("_");
294
		tIdArr=$(this).attr("id").split("_");
295
		tId=tIdArr[1];
295
		tId=tIdArr[1];
296
		$('#userQuestion').load("/backend/user/del/"+tId,function(){
296
		$('#userQuestion').load("/user/del/"+tId,function(){
297
			$('#userQuestion').dialog("open");
297
			$('#userQuestion').dialog("open");
298
		})
298
		})
299
	}
299
	}
300
    function newTask(e)
300
    function newTask(e)
301
    {
301
    {
302
        e.preventDefault();
302
        e.preventDefault();
303
        url="/backend/scheduler/edit/";
303
        url="/scheduler/edit/";
304
        $.get(url,function(html)
304
        $.get(url,function(html)
305
        {
305
        {
306
            $('#taskForm').html(html).dialog("open");
306
            $('#taskForm').html(html).dialog("open");
307
        });
307
        });
308
    }
308
    }
309
    function edit_task(e)
309
    function edit_task(e)
310
    {
310
    {
311
        e.preventDefault();
311
        e.preventDefault();
312
        tIdArr=$(this).attr("id").split("_");
312
        tIdArr=$(this).attr("id").split("_");
313
        tId=tIdArr[1];
313
        tId=tIdArr[1];
314
        url="/backend/scheduler/edit/"+tId;
314
        url="/scheduler/edit/"+tId;
315
        $.get(url,function(html)
315
        $.get(url,function(html)
316
        {
316
        {
317
            $('#taskForm').html(html).dialog("open");
317
            $('#taskForm').html(html).dialog("open");
318
        });
318
        });
Zeile 319... Zeile 319...
319
    }
319
    }
320
 
320
 
321
    function newUser(e)
321
    function newUser(e)
322
    {
322
    {
323
        e.preventDefault();
323
        e.preventDefault();
324
        url="/backend/user/edit/";
324
        url="/user/edit/";
325
        $.get(url,function(html)
325
        $.get(url,function(html)
326
        {
326
        {
327
            $('#userForm').html(html).dialog("open");
327
            $('#userForm').html(html).dialog("open");
328
        });
328
        });
329
    }
329
    }
330
    function edit_user(e)
330
    function edit_user(e)
331
    {
331
    {
332
        e.preventDefault();
332
        e.preventDefault();
333
        tIdArr=$(this).attr("id").split("_");
333
        tIdArr=$(this).attr("id").split("_");
334
        tId=tIdArr[1];
334
        tId=tIdArr[1];
335
        url="/backend/user/edit/"+tId;
335
        url="/user/edit/"+tId;
336
        $.get(url,function(html)
336
        $.get(url,function(html)
337
        {
337
        {
338
            $('#userForm').html(html).dialog("open");
338
            $('#userForm').html(html).dialog("open");
339
        });
339
        });
340
    }
340
    }
341
    function user_rights(e)
341
    function user_rights(e)
342
    {
342
    {
343
        e.preventDefault();
343
        e.preventDefault();
344
        tIdArr=$(this).attr("id").split("_");
344
        tIdArr=$(this).attr("id").split("_");
345
        tId=tIdArr[1];
345
        tId=tIdArr[1];
346
        url="/backend/user_rechte/edit/"+tId;
346
        url="/user_rechte/edit/"+tId;
347
        $.get(url,function(html)
347
        $.get(url,function(html)
348
        {
348
        {
349
            $('#userRechteForm').html(html).dialog("open");
349
            $('#userRechteForm').html(html).dialog("open");