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.

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

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