var categorypriv={set:function(a){ct.ajax("\u8bbe\u7f6e\u680f\u76ee\u6743\u9650","?app=system&controller=category_priv&action=index&catid="+a,350,300,function(b){b.find("form").ajaxForm("categorypriv.add_submit")})},del:function(a,b){$.getJSON("?app=system&controller=category_priv&action=delete&catid="+a+"&userid="+b,function(c){c.state?$("#row_"+b).remove():ct.error(c.error)})},add_submit:function(a){if(a.state){$('input[name="username"]').val("");categorypriv.add(a.catid,a.userid,a.username,a.rolename)}else ct.error(a.error)},
add:function(a,b,c,d){a='<tr id="row_'+b+'">\t\t\t\t\t    <td><a href="javascript: url.member('+b+');">'+c+"</a></td>\t\t\t\t\t    <td>"+d+'</td>\t\t\t\t\t    <td class="t_c"><img src="images/delete.gif" alt="\u5220\u9664" width="16" height="16" class="hand" onclick="categorypriv.del('+a+", "+b+')"/></td>\t\t\t\t\t</tr>';$("#list_body").append(a)}};
