group_manage_fsedit.php 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?php defined('InShopNC') or exit('Access Invalid!');?>
  2. <div class="eject_con">
  3. <div id="warning"></div>
  4. <form id="fsedit_form" action="<?php echo CIRCLE_SITE_URL;?>/index.php?act=manage&op=friendship_edit&c_id=<?php echo $output['c_id'];?>&fs_id=<?php echo $output['fs_id'];?>" method="post" class="base-form-style">
  5. <input type="hidden" value="ok" name="form_submit">
  6. <dl>
  7. <dt><?php echo $lang['circle_name'].$lang['nc_colon'];?></dt>
  8. <dd> <?php echo $output['friendship_info']['friendship_name'];?> </dd>
  9. </dl>
  10. <dl>
  11. <dt><?php echo $lang['fcircle_sort'].$lang['nc_colon'];?></dt>
  12. <dd>
  13. <input type="text" name="sort" class="w50 text" value="<?php echo $output['friendship_info']['friendship_sort'];?>" />
  14. </dd>
  15. </dl>
  16. <dl>
  17. <dt><?php echo $lang['circle_tclass_status'].$lang['nc_colon'];?></dt>
  18. <dd>
  19. <input type="radio" name="status" value="1" <?php if($output['friendship_info']['friendship_status'] == 1){?>checked="checked"<?php }?> />
  20. <?php echo $lang['nc_show'];?>&nbsp;
  21. <input type="radio" name="status" value="0" <?php if($output['friendship_info']['friendship_status'] == 0){?>checked="checked"<?php }?> />
  22. <?php echo $lang['nc_hide'];?> </dd>
  23. </dl>
  24. <dl class="bottom">
  25. <dt>&nbsp;</dt>
  26. <dd><a class="submit-btn" nctype="submit-btn" href="Javascript: void(0)"><?php echo $lang['nc_submit'];?></a></dd>
  27. </dl>
  28. </form>
  29. </div>
  30. <script type="text/javascript">
  31. var c_id = <?php echo $output['c_id'];?>;
  32. var fs_id = <?php echo $output['fs_id'];?>;
  33. $(function(){
  34. $('a[nctype="submit-btn"]').click(function(){
  35. $('#fsedit_form').submit();
  36. });
  37. $('#fsedit_form').validate({
  38. errorLabelContainer: $('#warning'),
  39. invalidHandler: function(form, validator) {
  40. $('#warning').show();
  41. },
  42. submitHandler:function(form){
  43. ajaxpost('fsedit_form', '<?php echo CIRCLE_SITE_URL;?>/index.php?act=manage&op=friendship_edit&c_id='+c_id+'$fs_id='+fs_id, '', 'onerror');
  44. },
  45. rules : {
  46. sort : {
  47. required : true,
  48. digits : true,
  49. max : 255
  50. }
  51. },
  52. messages : {
  53. sort : {
  54. required : '<?php echo $lang['fcircle_sort_not_null'];?>',
  55. digits : '<?php echo $lang['circle_tclass_sort_is_digits'];?>',
  56. max : '<?php echo $lang['circle_tclass_sort_max'];?>'
  57. }
  58. }
  59. });
  60. });
  61. </script>