To jest formularz w tym całym magicznym modalboxie
<div id
="n_'.$mfa[0][0].'"><form id
="form"><table border
="1" width
="100%"><tr
><th
>Temat
</th
><td
><input type
="text" id
="temat_'.$mfa[0][0].'" value
="'.$mfa[0]['temat'].'"></td
></tr
><tr
><th
>Treść
</th
><td
><ul style
="display: inline;"><li style
="display: inline;"><a href
="java script:wstawKod(\'tresc_'.$mfa[0][0].'\', \'\')">B
</a
></li
><li style
="display: inline;"><a href
="java script:wstawKod(\'tresc_'.$mfa[0][0].'\', \'\')">U
</a
></li
><li style
="display: inline;"><a href
="java script:wstawKod(\'tresc_'.$mfa[0][0].'\', \'\')">I
</a
></li
><li style
="display: inline;"><a href
="java script:wstawKod(\'tresc_'.$mfa[0][0].'\', \'[img][/img]\');">IMG
</a
></li
><li style
="display: inline;"><a href
="java script:wstawKod(\'tresc_'.$mfa[0][0].'\', \'\')">URL
</a
> </li
><li style
="display: inline;"><a href
="java script:wstawKod(\'tresc_'.$mfa[0][0].'\', \'[youtube][/youtube]\')">YouTube
</a
> </li
></ul
></br
><textarea cols
="60" rows
="7" id
="tresc_'.$mfa[0][0].'">'.$mfa[0]['tresc
'].'</textarea
></td
></tr
><tr
><th
>Miniaturka
</th
><td
><img src
="'.config::URL.'thumbes/'.$mfa[0]['miniaturka'].'" width
="50"></td
></tr
><tr
><th
>Kategoria
</th
><td
><select id
="kategoria_'.$mfa[0][0].'">'.$kategorie.'</select
></td
></tr
><tr
><th
>Dostęp
</th
><td
><select id
="dostep_'.$mfa[0][0].'">'.$poziomStr.'</select
></td
></tr
><tr
><th
>Kolejność
</th
><td
><input type
="text" id
="kolejnosc_'.$mfa[0][0].'" value
="'.$mfa[0]['kolejnosc'].'"></td
></tr
><tr
><td colspan
="2"><div id
="buttons"><ul
><li
><input type
="button" id
="cancelbut" name
="action" value
="Anuluj" onclick
="editArt(\''.$ex2[0].'\', \'0\''.$next.')"></li
><li
><input type
="button" id
="acceptbut" name
="action" value
="Zapisz" onclick
="editArt(\''.$ex2[0].'\', \'1\''.$next.');"></li
></ul
></div
></td
></tr
></table
></form
></div
>
function editArt(id, s, next){
if(s == 0){
var str = '
<div id="actiontrue">Anulowano edytowanie #'+id+'
</div>';
$('#modal').html(str);
}
if(s == 1){
var form = $("#form").serialize();
alert(form);
$.post("cms/class/load.php", { func:"editArt", id:id, form:form }, function(data){
$('#modal').html(data);
});
}
if(next != undefined){
$.post("cms/class/load.php", { func:"editArts", results:next }, function(data){
str = str + data;
$('#modal').html('
<img src="cms/images/loading.gif" width="30" align="center">');
$('#modal').html(str);
});
}
else{
str += '
<div id="close"><a href="java script:display(\'modal\', 0)"><img src="cms/images/del.png" width="25"></a></div>';
$('#modal').html(str);
}
}
No i wzasadzie tyle powinno starczyć. Powiem jeszcze, że w głównym oknie znajduje się tabela ze wszystkimi newsami i są checkboxy i w/w skrypt zczytuje które checkboxy są zaznaczone