You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. //�����֯��Ա���ύ����
  2. // 组织:新增成员
  3. function submit_add_org_members(){
  4. $("#org_member_add_form").submit();
  5. }
  6. function observeSearchfield(fieldId, targetId, url) {
  7. $('#'+fieldId).each(function() {
  8. var $this = $(this);
  9. $this.addClass('autocomplete');
  10. $this.attr('data-value-was', $this.val());
  11. var check = function() {
  12. var val = $this.val();
  13. if ($this.attr('data-value-was') != val){
  14. $this.attr('data-value-was', val);
  15. $.ajax({
  16. url: url,
  17. type: 'get',
  18. data: {q: $this.val()},
  19. success: function(data){ if(targetId) $('#'+targetId).html(data); },
  20. beforeSend: function(){ $this.addClass('ajax-loading'); },
  21. complete: function(){ $this.removeClass('ajax-loading'); }
  22. });
  23. }
  24. };
  25. var reset = function() {
  26. if (timer) {
  27. clearInterval(timer);
  28. timer = setInterval(check, 300);
  29. }
  30. };
  31. var timer = setInterval(check, 300);
  32. $this.bind('keyup click mousemove', reset);
  33. });
  34. }
  35. //显示更多子栏目
  36. function show_more_org_submain(url){
  37. $.get(
  38. url,
  39. { page: $("#org_submains_page_num").val() },
  40. function (data) {
  41. }
  42. );
  43. }
  44. //显示更多的项目
  45. function show_more_org_project(url){
  46. $.get(
  47. url,
  48. { page: $("#org_project_page_num").val() },
  49. function (data) {
  50. }
  51. );
  52. }
  53. function show_more_org_course(url){
  54. $.get(
  55. url,
  56. {page: $("#org_course_page_num").val()},
  57. function (data){}
  58. );
  59. }
  60. function search_tag_attachment(url,tag_name,q,course_id,sort)
  61. {
  62. //alert("111");
  63. //clearTimeout(clickFunction);
  64. clickFunction = setTimeout(function() {
  65. search_func()
  66. }, 500);
  67. function search_func(){
  68. if(isdb!= false ) return;
  69. $.get(
  70. url,
  71. {
  72. tag_name: tag_name,
  73. q: q,
  74. org_subfield_id:course_id
  75. },
  76. function (data) {
  77. }
  78. );
  79. }
  80. }
  81. // 教师选项
  82. var sendType = '1';
  83. var lastSendType ;//初始为发送到我的课程
  84. function chooseTeacherType(org_id){
  85. sendType = $("#teacher_type_select").val();
  86. if (sendType === lastSendType) {
  87. alert("666");
  88. return;
  89. } else if(lastSendType != null) { //不是第一次点击的时候
  90. if (sendType == '1') {
  91. alert("te");
  92. $.ajax({
  93. type: 'get',
  94. url: '/organizations/' + org_id + '/teachers',
  95. data:{type:"teachers"}
  96. });
  97. } else if(sendType == '2') {
  98. alert(org_id);
  99. $.ajax({
  100. type: 'get',
  101. url: '/organizations/' + org_id + '/teachers',
  102. data:{type:"students"}
  103. });
  104. }else if(sendType == '3'){
  105. $.ajax({
  106. type: 'get',
  107. url: '/organizations/' + org_id + '/teachers',
  108. data:{type:"resources"}
  109. });
  110. }
  111. }
  112. lastSendType = sendType;
  113. }
  114. //修改状态
  115. function admin_hide_org(content, id){
  116. if (content.text() == '设为热门'){
  117. $.ajax({
  118. url: "/organizations/update_field_by_admin?container=" + id + "&type=project",
  119. type: "post"
  120. });
  121. }
  122. else if (content.text() == '设为精品'){
  123. $.ajax({
  124. url: "/organizations/update_field_by_admin?container=" + id + "&type=course",
  125. type: "post"
  126. });
  127. }
  128. else if (content.text() == '取消热门'){
  129. $.ajax({
  130. url: "/organizations/update_field_by_admin?container=" + id + "&type=project" + "&status=reset",
  131. type: "post"
  132. });
  133. }
  134. else if (content.text() == '取消精品'){
  135. $.ajax({
  136. url: "/organizations/update_field_by_admin?container=" + id + "&type=course" + "&status=reset",
  137. type: "post"
  138. });
  139. }
  140. }

软件技术创新是当今国家整体创新能力的重要基础和发展引擎。近年来,大众参与的软件创新与创业活动已经成为网络时代软件开发和应用的新形态,正在快速改变着全球软件创新模式和软件产业格局。 ...