list = new ArrayList<>();
+ try{
+ getConnection(); //取得连接信息
+ String sql="select * from userinfo";
+ pStmt = conn.prepareStatement(sql);
+ rs = pStmt.executeQuery();
+ if(rs.next()){
+ Userinfo item = new Userinfo();
+ item.setId(rs.getInt("id"));
+ item.setUname(rs.getString("uname"));
+ item.setUpass(rs.getString("upass"));
+ item.setCreateDt(rs.getString("createDt"));
+
+ list.add(item);
+ }
+
+ }catch (Exception ex){
+ ex.printStackTrace();
+ }finally {
+ closeAll();
+ }
+ return list;
+ }
+
+ /**
+ * 按用户名和密码查询用户信息 R
+ * @param uname 用户名
+ * @param upass 密码
+ * @return Userinfo实例
+ */
+ public Userinfo getUserByUnameAndUpass(String uname,String upass){
+ Userinfo item = null;
+ try{
+ getConnection(); //取得连接信息
+ String sql="select * from userinfo where uname = ? and upass = ?";
+ pStmt = conn.prepareStatement(sql);
+ pStmt.setString(1,uname);
+ pStmt.setString(2,upass);
+ rs = pStmt.executeQuery();
+ if(rs.next()){
+ item = new Userinfo();
+ item.setId(rs.getInt("id"));
+ item.setUname(uname);
+ item.setCreateDt(rs.getString("createDt"));
+ }
+
+ }catch (Exception ex){
+ ex.printStackTrace();
+ }finally {
+ closeAll();
+ }
+ return item;
+ }
+
+ /**
+ * 添加用户信息 C
+ * @param item 要添加的用户
+ * @return int 影响的行数
+ */
+ public int addUser(Userinfo item){
+ int iRow = 0;
+ try{
+ getConnection(); //取得连接信息
+ String sql="insert into userinfo(uname,upass,createDt) values(?,?,?)";
+ pStmt = conn.prepareStatement(sql);
+ pStmt.setString(1,item.getUname());
+ pStmt.setString(2,item.getUpass());
+ pStmt.setString(3,item.getCreateDt());
+ iRow = pStmt.executeUpdate();
+ }catch (Exception ex){
+ ex.printStackTrace();
+ }finally {
+ closeAll();
+ }
+ return iRow;
+ }
+ /**
+ * 修改用户信息 U
+ * @param item 要修改的用户
+ * @return int 影响的行数
+ */
+ public int editUser(Userinfo item){
+ int iRow = 0;
+ try{
+ getConnection(); //取得连接信息
+ String sql="updata userinfo set uname = ?,upass = ? where id =?";
+ pStmt = conn.prepareStatement(sql);
+ pStmt.setString(1,item.getUname());
+ pStmt.setString(2,item.getUpass());
+ pStmt.setInt(3,item.getId());
+ iRow = pStmt.executeUpdate();
+
+ }catch (Exception ex){
+ ex.printStackTrace();
+ }finally {
+ closeAll();
+ }
+ return iRow;
+ }
+
+ /**
+ * 根据id 删除用户信息 D
+ * @param id 要删除的用户id
+ * @return int 影响的行数
+ */
+ public int delUser(int id){
+ int iRow = 0;
+ try{
+ getConnection(); //取得连接信息
+ String sql="delete from userinfo where id = ?";
+ pStmt = conn.prepareStatement(sql);
+ pStmt.setInt(1,id);
+ iRow = pStmt.executeUpdate();
+
+ }catch (Exception ex){
+ ex.printStackTrace();
+ }finally {
+ closeAll();
+ }
+ return iRow;
+ }
+}
diff --git a/MusicSharing/app/src/main/java/com/example/netcloudsharing/tool/Userinfo.java b/MusicSharing/app/src/main/java/com/example/netcloudsharing/tool/Userinfo.java
new file mode 100644
index 0000000..aadb3c9
--- /dev/null
+++ b/MusicSharing/app/src/main/java/com/example/netcloudsharing/tool/Userinfo.java
@@ -0,0 +1,54 @@
+package com.example.netcloudsharing.tool;
+/*
+ 用户信息实体类
+ */
+import java.io.Serializable;
+public class Userinfo implements Serializable{
+ private int id;
+ private String uname;
+ private String upass;
+ private String createDt;
+
+ public Userinfo() {
+ }
+
+ public Userinfo(int id, String uname, String upass, String createDt) {
+ this.id = id;
+ this.uname = uname;
+ this.upass = upass;
+ this.createDt = createDt;
+ }
+
+ public int getId() {
+ return id;
+ }
+
+ public void setId(int id) {
+ this.id = id;
+ }
+
+ public String getUname() {
+ return uname;
+ }
+
+ public void setUname(String uname) {
+ this.uname = uname;
+ }
+
+ public String getUpass() {
+ return upass;
+ }
+
+ public void setUpass(String upass) {
+ this.upass = upass;
+ }
+
+ public String getCreateDt() {
+ return createDt;
+ }
+
+ public void setCreateDt(String createDt) {
+ this.createDt = createDt;
+ }
+}
+
diff --git a/MusicSharing/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/MusicSharing/app/src/main/res/drawable-v24/ic_launcher_foreground.xml
new file mode 100644
index 0000000..2b068d1
--- /dev/null
+++ b/MusicSharing/app/src/main/res/drawable-v24/ic_launcher_foreground.xml
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/MusicSharing/app/src/main/res/drawable/backtohome.png b/MusicSharing/app/src/main/res/drawable/backtohome.png
new file mode 100644
index 0000000..e428d98
Binary files /dev/null and b/MusicSharing/app/src/main/res/drawable/backtohome.png differ
diff --git a/MusicSharing/app/src/main/res/drawable/backtomusichome.png b/MusicSharing/app/src/main/res/drawable/backtomusichome.png
new file mode 100644
index 0000000..c95a20c
Binary files /dev/null and b/MusicSharing/app/src/main/res/drawable/backtomusichome.png differ
diff --git a/MusicSharing/app/src/main/res/drawable/bg1.jpg b/MusicSharing/app/src/main/res/drawable/bg1.jpg
new file mode 100644
index 0000000..c6b0e09
Binary files /dev/null and b/MusicSharing/app/src/main/res/drawable/bg1.jpg differ
diff --git a/MusicSharing/app/src/main/res/drawable/bg3.jpg b/MusicSharing/app/src/main/res/drawable/bg3.jpg
new file mode 100644
index 0000000..d9442a0
Binary files /dev/null and b/MusicSharing/app/src/main/res/drawable/bg3.jpg differ
diff --git a/MusicSharing/app/src/main/res/drawable/bg4.jpg b/MusicSharing/app/src/main/res/drawable/bg4.jpg
new file mode 100644
index 0000000..2850417
Binary files /dev/null and b/MusicSharing/app/src/main/res/drawable/bg4.jpg differ
diff --git a/MusicSharing/app/src/main/res/drawable/chen.jpg b/MusicSharing/app/src/main/res/drawable/chen.jpg
new file mode 100644
index 0000000..e0b014f
Binary files /dev/null and b/MusicSharing/app/src/main/res/drawable/chen.jpg differ
diff --git a/MusicSharing/app/src/main/res/drawable/chengwei.jpg b/MusicSharing/app/src/main/res/drawable/chengwei.jpg
new file mode 100644
index 0000000..5292bfa
Binary files /dev/null and b/MusicSharing/app/src/main/res/drawable/chengwei.jpg differ
diff --git a/MusicSharing/app/src/main/res/drawable/chenweiting.jpg b/MusicSharing/app/src/main/res/drawable/chenweiting.jpg
new file mode 100644
index 0000000..ee2eaa3
Binary files /dev/null and b/MusicSharing/app/src/main/res/drawable/chenweiting.jpg differ
diff --git a/MusicSharing/app/src/main/res/drawable/daymusic.png b/MusicSharing/app/src/main/res/drawable/daymusic.png
new file mode 100644
index 0000000..8100f26
Binary files /dev/null and b/MusicSharing/app/src/main/res/drawable/daymusic.png differ
diff --git a/MusicSharing/app/src/main/res/drawable/diar.png b/MusicSharing/app/src/main/res/drawable/diar.png
new file mode 100644
index 0000000..8947874
Binary files /dev/null and b/MusicSharing/app/src/main/res/drawable/diar.png differ
diff --git a/MusicSharing/app/src/main/res/drawable/download.png b/MusicSharing/app/src/main/res/drawable/download.png
new file mode 100644
index 0000000..fb5bf90
Binary files /dev/null and b/MusicSharing/app/src/main/res/drawable/download.png differ
diff --git a/MusicSharing/app/src/main/res/drawable/ic_launcher_background.xml b/MusicSharing/app/src/main/res/drawable/ic_launcher_background.xml
new file mode 100644
index 0000000..07d5da9
--- /dev/null
+++ b/MusicSharing/app/src/main/res/drawable/ic_launcher_background.xml
@@ -0,0 +1,170 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/MusicSharing/app/src/main/res/drawable/label.png b/MusicSharing/app/src/main/res/drawable/label.png
new file mode 100644
index 0000000..ef20eed
Binary files /dev/null and b/MusicSharing/app/src/main/res/drawable/label.png differ
diff --git a/MusicSharing/app/src/main/res/drawable/localmusic.png b/MusicSharing/app/src/main/res/drawable/localmusic.png
new file mode 100644
index 0000000..134176e
Binary files /dev/null and b/MusicSharing/app/src/main/res/drawable/localmusic.png differ
diff --git a/MusicSharing/app/src/main/res/drawable/localsong.png b/MusicSharing/app/src/main/res/drawable/localsong.png
new file mode 100644
index 0000000..f0e22d4
Binary files /dev/null and b/MusicSharing/app/src/main/res/drawable/localsong.png differ
diff --git a/MusicSharing/app/src/main/res/drawable/login_icon.jpg b/MusicSharing/app/src/main/res/drawable/login_icon.jpg
new file mode 100644
index 0000000..8dbee5a
Binary files /dev/null and b/MusicSharing/app/src/main/res/drawable/login_icon.jpg differ
diff --git a/MusicSharing/app/src/main/res/drawable/menu.png b/MusicSharing/app/src/main/res/drawable/menu.png
new file mode 100644
index 0000000..de6f352
Binary files /dev/null and b/MusicSharing/app/src/main/res/drawable/menu.png differ
diff --git a/MusicSharing/app/src/main/res/drawable/music_icon.png b/MusicSharing/app/src/main/res/drawable/music_icon.png
new file mode 100644
index 0000000..2913963
Binary files /dev/null and b/MusicSharing/app/src/main/res/drawable/music_icon.png differ
diff --git a/MusicSharing/app/src/main/res/drawable/musicbackground.jpg b/MusicSharing/app/src/main/res/drawable/musicbackground.jpg
new file mode 100644
index 0000000..d3781d7
Binary files /dev/null and b/MusicSharing/app/src/main/res/drawable/musicbackground.jpg differ
diff --git a/MusicSharing/app/src/main/res/drawable/musicsearch.png b/MusicSharing/app/src/main/res/drawable/musicsearch.png
new file mode 100644
index 0000000..7887b4f
Binary files /dev/null and b/MusicSharing/app/src/main/res/drawable/musicsearch.png differ
diff --git a/MusicSharing/app/src/main/res/drawable/my_black.png b/MusicSharing/app/src/main/res/drawable/my_black.png
new file mode 100644
index 0000000..5c7bafa
Binary files /dev/null and b/MusicSharing/app/src/main/res/drawable/my_black.png differ
diff --git a/MusicSharing/app/src/main/res/drawable/mysinger.png b/MusicSharing/app/src/main/res/drawable/mysinger.png
new file mode 100644
index 0000000..7f17289
Binary files /dev/null and b/MusicSharing/app/src/main/res/drawable/mysinger.png differ
diff --git a/MusicSharing/app/src/main/res/drawable/netmusicbackground.png b/MusicSharing/app/src/main/res/drawable/netmusicbackground.png
new file mode 100644
index 0000000..1464b9f
Binary files /dev/null and b/MusicSharing/app/src/main/res/drawable/netmusicbackground.png differ
diff --git a/MusicSharing/app/src/main/res/drawable/pay.png b/MusicSharing/app/src/main/res/drawable/pay.png
new file mode 100644
index 0000000..3a069a8
Binary files /dev/null and b/MusicSharing/app/src/main/res/drawable/pay.png differ
diff --git a/MusicSharing/app/src/main/res/drawable/personalfm.png b/MusicSharing/app/src/main/res/drawable/personalfm.png
new file mode 100644
index 0000000..dad275a
Binary files /dev/null and b/MusicSharing/app/src/main/res/drawable/personalfm.png differ
diff --git a/MusicSharing/app/src/main/res/drawable/rangkinglist.png b/MusicSharing/app/src/main/res/drawable/rangkinglist.png
new file mode 100644
index 0000000..d0ec61f
Binary files /dev/null and b/MusicSharing/app/src/main/res/drawable/rangkinglist.png differ
diff --git a/MusicSharing/app/src/main/res/drawable/recentlyplayed.png b/MusicSharing/app/src/main/res/drawable/recentlyplayed.png
new file mode 100644
index 0000000..74aca6e
Binary files /dev/null and b/MusicSharing/app/src/main/res/drawable/recentlyplayed.png differ
diff --git a/MusicSharing/app/src/main/res/drawable/record.png b/MusicSharing/app/src/main/res/drawable/record.png
new file mode 100644
index 0000000..8cc6e43
Binary files /dev/null and b/MusicSharing/app/src/main/res/drawable/record.png differ
diff --git a/MusicSharing/app/src/main/res/drawable/schedule.png b/MusicSharing/app/src/main/res/drawable/schedule.png
new file mode 100644
index 0000000..0a691e3
Binary files /dev/null and b/MusicSharing/app/src/main/res/drawable/schedule.png differ
diff --git a/MusicSharing/app/src/main/res/drawable/search.png b/MusicSharing/app/src/main/res/drawable/search.png
new file mode 100644
index 0000000..650e324
Binary files /dev/null and b/MusicSharing/app/src/main/res/drawable/search.png differ
diff --git a/MusicSharing/app/src/main/res/drawable/search_shape.xml b/MusicSharing/app/src/main/res/drawable/search_shape.xml
new file mode 100644
index 0000000..5774a31
--- /dev/null
+++ b/MusicSharing/app/src/main/res/drawable/search_shape.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/MusicSharing/app/src/main/res/drawable/select_community.png b/MusicSharing/app/src/main/res/drawable/select_community.png
new file mode 100644
index 0000000..bc5efc1
Binary files /dev/null and b/MusicSharing/app/src/main/res/drawable/select_community.png differ
diff --git a/MusicSharing/app/src/main/res/drawable/select_home.png b/MusicSharing/app/src/main/res/drawable/select_home.png
new file mode 100644
index 0000000..758da77
Binary files /dev/null and b/MusicSharing/app/src/main/res/drawable/select_home.png differ
diff --git a/MusicSharing/app/src/main/res/drawable/select_message.png b/MusicSharing/app/src/main/res/drawable/select_message.png
new file mode 100644
index 0000000..bacf83c
Binary files /dev/null and b/MusicSharing/app/src/main/res/drawable/select_message.png differ
diff --git a/MusicSharing/app/src/main/res/drawable/select_my.png b/MusicSharing/app/src/main/res/drawable/select_my.png
new file mode 100644
index 0000000..89564de
Binary files /dev/null and b/MusicSharing/app/src/main/res/drawable/select_my.png differ
diff --git a/MusicSharing/app/src/main/res/drawable/setting.png b/MusicSharing/app/src/main/res/drawable/setting.png
new file mode 100644
index 0000000..41af7fa
Binary files /dev/null and b/MusicSharing/app/src/main/res/drawable/setting.png differ
diff --git a/MusicSharing/app/src/main/res/drawable/shape_login_btn.xml b/MusicSharing/app/src/main/res/drawable/shape_login_btn.xml
new file mode 100644
index 0000000..8378151
--- /dev/null
+++ b/MusicSharing/app/src/main/res/drawable/shape_login_btn.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/MusicSharing/app/src/main/res/drawable/shape_login_form.xml b/MusicSharing/app/src/main/res/drawable/shape_login_form.xml
new file mode 100644
index 0000000..a42d75e
--- /dev/null
+++ b/MusicSharing/app/src/main/res/drawable/shape_login_form.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
diff --git a/MusicSharing/app/src/main/res/drawable/shape_login_tourist_btn.xml b/MusicSharing/app/src/main/res/drawable/shape_login_tourist_btn.xml
new file mode 100644
index 0000000..a4a9bb1
--- /dev/null
+++ b/MusicSharing/app/src/main/res/drawable/shape_login_tourist_btn.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/MusicSharing/app/src/main/res/drawable/shape_register_btn.xml b/MusicSharing/app/src/main/res/drawable/shape_register_btn.xml
new file mode 100644
index 0000000..84b0ad2
--- /dev/null
+++ b/MusicSharing/app/src/main/res/drawable/shape_register_btn.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/MusicSharing/app/src/main/res/drawable/sharp_button.xml b/MusicSharing/app/src/main/res/drawable/sharp_button.xml
new file mode 100644
index 0000000..38acd17
--- /dev/null
+++ b/MusicSharing/app/src/main/res/drawable/sharp_button.xml
@@ -0,0 +1,5 @@
+
+
+
+
\ No newline at end of file
diff --git a/MusicSharing/app/src/main/res/drawable/unselect_community.png b/MusicSharing/app/src/main/res/drawable/unselect_community.png
new file mode 100644
index 0000000..ab36fba
Binary files /dev/null and b/MusicSharing/app/src/main/res/drawable/unselect_community.png differ
diff --git a/MusicSharing/app/src/main/res/drawable/unselect_home.png b/MusicSharing/app/src/main/res/drawable/unselect_home.png
new file mode 100644
index 0000000..c2c0942
Binary files /dev/null and b/MusicSharing/app/src/main/res/drawable/unselect_home.png differ
diff --git a/MusicSharing/app/src/main/res/drawable/unselect_message.png b/MusicSharing/app/src/main/res/drawable/unselect_message.png
new file mode 100644
index 0000000..9408dbd
Binary files /dev/null and b/MusicSharing/app/src/main/res/drawable/unselect_message.png differ
diff --git a/MusicSharing/app/src/main/res/drawable/unselect_my.png b/MusicSharing/app/src/main/res/drawable/unselect_my.png
new file mode 100644
index 0000000..9ff1170
Binary files /dev/null and b/MusicSharing/app/src/main/res/drawable/unselect_my.png differ
diff --git a/MusicSharing/app/src/main/res/layout/activity_login.xml b/MusicSharing/app/src/main/res/layout/activity_login.xml
new file mode 100644
index 0000000..5259e92
--- /dev/null
+++ b/MusicSharing/app/src/main/res/layout/activity_login.xml
@@ -0,0 +1,127 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/MusicSharing/app/src/main/res/layout/activity_main.xml b/MusicSharing/app/src/main/res/layout/activity_main.xml
new file mode 100644
index 0000000..df7e8d9
--- /dev/null
+++ b/MusicSharing/app/src/main/res/layout/activity_main.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
diff --git a/MusicSharing/app/src/main/res/layout/activity_music_download.xml b/MusicSharing/app/src/main/res/layout/activity_music_download.xml
new file mode 100644
index 0000000..9112f10
--- /dev/null
+++ b/MusicSharing/app/src/main/res/layout/activity_music_download.xml
@@ -0,0 +1,14 @@
+
+
+
+
\ No newline at end of file
diff --git a/MusicSharing/app/src/main/res/layout/activity_music_download2.xml b/MusicSharing/app/src/main/res/layout/activity_music_download2.xml
new file mode 100644
index 0000000..562c543
--- /dev/null
+++ b/MusicSharing/app/src/main/res/layout/activity_music_download2.xml
@@ -0,0 +1,9 @@
+
+
+
+
\ No newline at end of file
diff --git a/MusicSharing/app/src/main/res/layout/activity_music_home.xml b/MusicSharing/app/src/main/res/layout/activity_music_home.xml
new file mode 100644
index 0000000..2ff30a3
--- /dev/null
+++ b/MusicSharing/app/src/main/res/layout/activity_music_home.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
diff --git a/MusicSharing/app/src/main/res/layout/activity_music_player.xml b/MusicSharing/app/src/main/res/layout/activity_music_player.xml
new file mode 100644
index 0000000..73c5ea8
--- /dev/null
+++ b/MusicSharing/app/src/main/res/layout/activity_music_player.xml
@@ -0,0 +1,44 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/MusicSharing/app/src/main/res/layout/activity_net_start.xml b/MusicSharing/app/src/main/res/layout/activity_net_start.xml
new file mode 100644
index 0000000..9c10e86
--- /dev/null
+++ b/MusicSharing/app/src/main/res/layout/activity_net_start.xml
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/MusicSharing/app/src/main/res/layout/activity_register.xml b/MusicSharing/app/src/main/res/layout/activity_register.xml
new file mode 100644
index 0000000..3c757f8
--- /dev/null
+++ b/MusicSharing/app/src/main/res/layout/activity_register.xml
@@ -0,0 +1,100 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/MusicSharing/app/src/main/res/layout/bottom.xml b/MusicSharing/app/src/main/res/layout/bottom.xml
new file mode 100644
index 0000000..2b11142
--- /dev/null
+++ b/MusicSharing/app/src/main/res/layout/bottom.xml
@@ -0,0 +1,90 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/MusicSharing/app/src/main/res/layout/diary_add_content.xml b/MusicSharing/app/src/main/res/layout/diary_add_content.xml
new file mode 100644
index 0000000..5eae9fb
--- /dev/null
+++ b/MusicSharing/app/src/main/res/layout/diary_add_content.xml
@@ -0,0 +1,62 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/MusicSharing/app/src/main/res/layout/diary_button_delete.xml b/MusicSharing/app/src/main/res/layout/diary_button_delete.xml
new file mode 100644
index 0000000..7663f98
--- /dev/null
+++ b/MusicSharing/app/src/main/res/layout/diary_button_delete.xml
@@ -0,0 +1,10 @@
+
+
+
+
diff --git a/MusicSharing/app/src/main/res/layout/diary_button_list.xml b/MusicSharing/app/src/main/res/layout/diary_button_list.xml
new file mode 100644
index 0000000..dc5c2da
--- /dev/null
+++ b/MusicSharing/app/src/main/res/layout/diary_button_list.xml
@@ -0,0 +1,9 @@
+
+
+
+
diff --git a/MusicSharing/app/src/main/res/layout/diary_list_item.xml b/MusicSharing/app/src/main/res/layout/diary_list_item.xml
new file mode 100644
index 0000000..3fe0e44
--- /dev/null
+++ b/MusicSharing/app/src/main/res/layout/diary_list_item.xml
@@ -0,0 +1,52 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/MusicSharing/app/src/main/res/layout/diary_main.xml b/MusicSharing/app/src/main/res/layout/diary_main.xml
new file mode 100644
index 0000000..5d68448
--- /dev/null
+++ b/MusicSharing/app/src/main/res/layout/diary_main.xml
@@ -0,0 +1,51 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/MusicSharing/app/src/main/res/layout/fragment_community.xml b/MusicSharing/app/src/main/res/layout/fragment_community.xml
new file mode 100644
index 0000000..8131c7e
--- /dev/null
+++ b/MusicSharing/app/src/main/res/layout/fragment_community.xml
@@ -0,0 +1,13 @@
+
+
+
+
diff --git a/MusicSharing/app/src/main/res/layout/fragment_message.xml b/MusicSharing/app/src/main/res/layout/fragment_message.xml
new file mode 100644
index 0000000..24252fe
--- /dev/null
+++ b/MusicSharing/app/src/main/res/layout/fragment_message.xml
@@ -0,0 +1,13 @@
+
+
+
+
diff --git a/MusicSharing/app/src/main/res/layout/fragment_music.xml b/MusicSharing/app/src/main/res/layout/fragment_music.xml
new file mode 100644
index 0000000..9c562a7
--- /dev/null
+++ b/MusicSharing/app/src/main/res/layout/fragment_music.xml
@@ -0,0 +1,107 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/MusicSharing/app/src/main/res/layout/fragment_music_newsong.xml b/MusicSharing/app/src/main/res/layout/fragment_music_newsong.xml
new file mode 100644
index 0000000..09e304a
--- /dev/null
+++ b/MusicSharing/app/src/main/res/layout/fragment_music_newsong.xml
@@ -0,0 +1,143 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/MusicSharing/app/src/main/res/layout/fragment_music_rankinglist.xml b/MusicSharing/app/src/main/res/layout/fragment_music_rankinglist.xml
new file mode 100644
index 0000000..860dc5f
--- /dev/null
+++ b/MusicSharing/app/src/main/res/layout/fragment_music_rankinglist.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/MusicSharing/app/src/main/res/layout/fragment_music_songlist.xml b/MusicSharing/app/src/main/res/layout/fragment_music_songlist.xml
new file mode 100644
index 0000000..1660e44
--- /dev/null
+++ b/MusicSharing/app/src/main/res/layout/fragment_music_songlist.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/MusicSharing/app/src/main/res/layout/fragment_my.xml b/MusicSharing/app/src/main/res/layout/fragment_my.xml
new file mode 100644
index 0000000..4db823b
--- /dev/null
+++ b/MusicSharing/app/src/main/res/layout/fragment_my.xml
@@ -0,0 +1,339 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/MusicSharing/app/src/main/res/layout/game.xml b/MusicSharing/app/src/main/res/layout/game.xml
new file mode 100644
index 0000000..e5d4cdd
--- /dev/null
+++ b/MusicSharing/app/src/main/res/layout/game.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/MusicSharing/app/src/main/res/layout/item_local_music.xml b/MusicSharing/app/src/main/res/layout/item_local_music.xml
new file mode 100644
index 0000000..4324307
--- /dev/null
+++ b/MusicSharing/app/src/main/res/layout/item_local_music.xml
@@ -0,0 +1,76 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/MusicSharing/app/src/main/res/layout/music_bottom.xml b/MusicSharing/app/src/main/res/layout/music_bottom.xml
new file mode 100644
index 0000000..ff0e657
--- /dev/null
+++ b/MusicSharing/app/src/main/res/layout/music_bottom.xml
@@ -0,0 +1,84 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/MusicSharing/app/src/main/res/layout/music_buttom.xml b/MusicSharing/app/src/main/res/layout/music_buttom.xml
new file mode 100644
index 0000000..81d148e
--- /dev/null
+++ b/MusicSharing/app/src/main/res/layout/music_buttom.xml
@@ -0,0 +1,82 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/MusicSharing/app/src/main/res/layout/music_search.xml b/MusicSharing/app/src/main/res/layout/music_search.xml
new file mode 100644
index 0000000..4bafb3c
--- /dev/null
+++ b/MusicSharing/app/src/main/res/layout/music_search.xml
@@ -0,0 +1,52 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/MusicSharing/app/src/main/res/mipmap-anydpi-v26/chen.jpg b/MusicSharing/app/src/main/res/mipmap-anydpi-v26/chen.jpg
new file mode 100644
index 0000000..e0b014f
Binary files /dev/null and b/MusicSharing/app/src/main/res/mipmap-anydpi-v26/chen.jpg differ
diff --git a/MusicSharing/app/src/main/res/mipmap-anydpi-v26/chenweiting.jpg b/MusicSharing/app/src/main/res/mipmap-anydpi-v26/chenweiting.jpg
new file mode 100644
index 0000000..ee2eaa3
Binary files /dev/null and b/MusicSharing/app/src/main/res/mipmap-anydpi-v26/chenweiting.jpg differ
diff --git a/MusicSharing/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/MusicSharing/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
new file mode 100644
index 0000000..eca70cf
--- /dev/null
+++ b/MusicSharing/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/MusicSharing/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/MusicSharing/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
new file mode 100644
index 0000000..eca70cf
--- /dev/null
+++ b/MusicSharing/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/MusicSharing/app/src/main/res/mipmap-hdpi/a1.png b/MusicSharing/app/src/main/res/mipmap-hdpi/a1.png
new file mode 100644
index 0000000..6815a78
Binary files /dev/null and b/MusicSharing/app/src/main/res/mipmap-hdpi/a1.png differ
diff --git a/MusicSharing/app/src/main/res/mipmap-hdpi/bg2.png b/MusicSharing/app/src/main/res/mipmap-hdpi/bg2.png
new file mode 100644
index 0000000..9d88769
Binary files /dev/null and b/MusicSharing/app/src/main/res/mipmap-hdpi/bg2.png differ
diff --git a/MusicSharing/app/src/main/res/mipmap-hdpi/ic_launcher.jpg b/MusicSharing/app/src/main/res/mipmap-hdpi/ic_launcher.jpg
new file mode 100644
index 0000000..8dbee5a
Binary files /dev/null and b/MusicSharing/app/src/main/res/mipmap-hdpi/ic_launcher.jpg differ
diff --git a/MusicSharing/app/src/main/res/mipmap-hdpi/ic_launcher_round.jpg b/MusicSharing/app/src/main/res/mipmap-hdpi/ic_launcher_round.jpg
new file mode 100644
index 0000000..61da551
Binary files /dev/null and b/MusicSharing/app/src/main/res/mipmap-hdpi/ic_launcher_round.jpg differ
diff --git a/MusicSharing/app/src/main/res/mipmap-hdpi/icon_last.png b/MusicSharing/app/src/main/res/mipmap-hdpi/icon_last.png
new file mode 100644
index 0000000..ea406d1
Binary files /dev/null and b/MusicSharing/app/src/main/res/mipmap-hdpi/icon_last.png differ
diff --git a/MusicSharing/app/src/main/res/mipmap-hdpi/icon_next.png b/MusicSharing/app/src/main/res/mipmap-hdpi/icon_next.png
new file mode 100644
index 0000000..2ed3642
Binary files /dev/null and b/MusicSharing/app/src/main/res/mipmap-hdpi/icon_next.png differ
diff --git a/MusicSharing/app/src/main/res/mipmap-hdpi/icon_pause.png b/MusicSharing/app/src/main/res/mipmap-hdpi/icon_pause.png
new file mode 100644
index 0000000..c4e74e3
Binary files /dev/null and b/MusicSharing/app/src/main/res/mipmap-hdpi/icon_pause.png differ
diff --git a/MusicSharing/app/src/main/res/mipmap-hdpi/icon_play.png b/MusicSharing/app/src/main/res/mipmap-hdpi/icon_play.png
new file mode 100644
index 0000000..bab85a5
Binary files /dev/null and b/MusicSharing/app/src/main/res/mipmap-hdpi/icon_play.png differ
diff --git a/MusicSharing/app/src/main/res/mipmap-hdpi/icon_song.png b/MusicSharing/app/src/main/res/mipmap-hdpi/icon_song.png
new file mode 100644
index 0000000..deed636
Binary files /dev/null and b/MusicSharing/app/src/main/res/mipmap-hdpi/icon_song.png differ
diff --git a/MusicSharing/app/src/main/res/mipmap-mdpi/ic_launcher.png b/MusicSharing/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 0000000..c41dd28
Binary files /dev/null and b/MusicSharing/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/MusicSharing/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/MusicSharing/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
new file mode 100644
index 0000000..db5080a
Binary files /dev/null and b/MusicSharing/app/src/main/res/mipmap-mdpi/ic_launcher_round.png differ
diff --git a/MusicSharing/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/MusicSharing/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..6dba46d
Binary files /dev/null and b/MusicSharing/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/MusicSharing/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/MusicSharing/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..da31a87
Binary files /dev/null and b/MusicSharing/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ
diff --git a/MusicSharing/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/MusicSharing/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 0000000..15ac681
Binary files /dev/null and b/MusicSharing/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/MusicSharing/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/MusicSharing/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..b216f2d
Binary files /dev/null and b/MusicSharing/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ
diff --git a/MusicSharing/app/src/main/res/mipmap-xxxhdpi/account.png b/MusicSharing/app/src/main/res/mipmap-xxxhdpi/account.png
new file mode 100644
index 0000000..5e6bf4f
Binary files /dev/null and b/MusicSharing/app/src/main/res/mipmap-xxxhdpi/account.png differ
diff --git a/MusicSharing/app/src/main/res/mipmap-xxxhdpi/curry.jpg b/MusicSharing/app/src/main/res/mipmap-xxxhdpi/curry.jpg
new file mode 100644
index 0000000..bc1892a
Binary files /dev/null and b/MusicSharing/app/src/main/res/mipmap-xxxhdpi/curry.jpg differ
diff --git a/MusicSharing/app/src/main/res/mipmap-xxxhdpi/diary.png b/MusicSharing/app/src/main/res/mipmap-xxxhdpi/diary.png
new file mode 100644
index 0000000..3279389
Binary files /dev/null and b/MusicSharing/app/src/main/res/mipmap-xxxhdpi/diary.png differ
diff --git a/MusicSharing/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/MusicSharing/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 0000000..f25a419
Binary files /dev/null and b/MusicSharing/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/MusicSharing/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/MusicSharing/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..e96783c
Binary files /dev/null and b/MusicSharing/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ
diff --git a/MusicSharing/app/src/main/res/mipmap-xxxhdpi/login.png b/MusicSharing/app/src/main/res/mipmap-xxxhdpi/login.png
new file mode 100644
index 0000000..2c0f6a1
Binary files /dev/null and b/MusicSharing/app/src/main/res/mipmap-xxxhdpi/login.png differ
diff --git a/MusicSharing/app/src/main/res/mipmap-xxxhdpi/password.png b/MusicSharing/app/src/main/res/mipmap-xxxhdpi/password.png
new file mode 100644
index 0000000..014bafa
Binary files /dev/null and b/MusicSharing/app/src/main/res/mipmap-xxxhdpi/password.png differ
diff --git a/MusicSharing/app/src/main/res/mipmap-xxxhdpi/pay.png b/MusicSharing/app/src/main/res/mipmap-xxxhdpi/pay.png
new file mode 100644
index 0000000..a8eaa4e
Binary files /dev/null and b/MusicSharing/app/src/main/res/mipmap-xxxhdpi/pay.png differ
diff --git a/MusicSharing/app/src/main/res/mipmap-xxxhdpi/record.png b/MusicSharing/app/src/main/res/mipmap-xxxhdpi/record.png
new file mode 100644
index 0000000..df5c916
Binary files /dev/null and b/MusicSharing/app/src/main/res/mipmap-xxxhdpi/record.png differ
diff --git a/MusicSharing/app/src/main/res/mipmap-xxxhdpi/schedule.png b/MusicSharing/app/src/main/res/mipmap-xxxhdpi/schedule.png
new file mode 100644
index 0000000..b2caa71
Binary files /dev/null and b/MusicSharing/app/src/main/res/mipmap-xxxhdpi/schedule.png differ
diff --git a/MusicSharing/app/src/main/res/mipmap-xxxhdpi/setting.png b/MusicSharing/app/src/main/res/mipmap-xxxhdpi/setting.png
new file mode 100644
index 0000000..8b2da2d
Binary files /dev/null and b/MusicSharing/app/src/main/res/mipmap-xxxhdpi/setting.png differ
diff --git a/MusicSharing/app/src/main/res/mipmap-xxxhdpi/splash.jpg b/MusicSharing/app/src/main/res/mipmap-xxxhdpi/splash.jpg
new file mode 100644
index 0000000..ee1695c
Binary files /dev/null and b/MusicSharing/app/src/main/res/mipmap-xxxhdpi/splash.jpg differ
diff --git a/MusicSharing/app/src/main/res/values/colors.xml b/MusicSharing/app/src/main/res/values/colors.xml
new file mode 100644
index 0000000..a912163
--- /dev/null
+++ b/MusicSharing/app/src/main/res/values/colors.xml
@@ -0,0 +1,11 @@
+
+
+ #6200EE
+ #3700B3
+ #03DAC5
+ #FFFFFF
+ #000000
+ #e8e7e7
+ #33FFC0CB
+ #F44336
+
diff --git a/MusicSharing/app/src/main/res/values/dimens.xml b/MusicSharing/app/src/main/res/values/dimens.xml
new file mode 100644
index 0000000..223c2e0
--- /dev/null
+++ b/MusicSharing/app/src/main/res/values/dimens.xml
@@ -0,0 +1,8 @@
+
+
+ 90dp
+ 44dp
+ 20sp
+ 40dp
+ 100dp
+
diff --git a/MusicSharing/app/src/main/res/values/strings.xml b/MusicSharing/app/src/main/res/values/strings.xml
new file mode 100644
index 0000000..6d30745
--- /dev/null
+++ b/MusicSharing/app/src/main/res/values/strings.xml
@@ -0,0 +1,44 @@
+
+ 网愈云音乐
+ 首页
+ 社区
+ 消息
+ 我的
+ 账号:
+ 密码:
+ 请输入用户名
+ 请输入密码
+ 登录
+ 登录
+ 注册
+ 记住账号
+ 记住密码
+ 游客登录
+ 更多
+ 日記
+ 即使不能交换身体,也要把『我的名字』写进『你的日记』。
+ 保存
+ 取消
+ 返回
+ 删除
+ 裤子里没库里
+ ID:
+ 1040813130
+ 男
+ 19岁
+ |
+ 8月1日
+ 狮子座
+ 现居
+ 广东湛江
+ >
+ 来自广东
+ 1040813130@qq.com
+ smile again smile forever
+ 支付中心
+ 待办事项
+ 我的日记
+ 运动记录
+ 功能设置
+ 云村1.0版本
+
diff --git a/MusicSharing/app/src/main/res/values/styles.xml b/MusicSharing/app/src/main/res/values/styles.xml
new file mode 100644
index 0000000..0eb88fe
--- /dev/null
+++ b/MusicSharing/app/src/main/res/values/styles.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
diff --git a/MusicSharing/app/src/main/res/xml/provider_paths.xml b/MusicSharing/app/src/main/res/xml/provider_paths.xml
new file mode 100644
index 0000000..602a817
--- /dev/null
+++ b/MusicSharing/app/src/main/res/xml/provider_paths.xml
@@ -0,0 +1,6 @@
+
+
+
+
\ No newline at end of file
diff --git a/MusicSharing/app/src/test/java/com/example/netcloudsharing/ExampleUnitTest.java b/MusicSharing/app/src/test/java/com/example/netcloudsharing/ExampleUnitTest.java
new file mode 100644
index 0000000..599bf4d
--- /dev/null
+++ b/MusicSharing/app/src/test/java/com/example/netcloudsharing/ExampleUnitTest.java
@@ -0,0 +1,17 @@
+package com.example.netcloudsharing;
+
+import org.junit.Test;
+
+import static org.junit.Assert.*;
+
+/**
+ * Example local unit test, which will execute on the development machine (host).
+ *
+ * @see Testing documentation
+ */
+public class ExampleUnitTest {
+ @Test
+ public void addition_isCorrect() {
+ assertEquals(4, 2 + 2);
+ }
+}
\ No newline at end of file
diff --git a/MusicSharing/build.gradle b/MusicSharing/build.gradle
new file mode 100644
index 0000000..659b03c
--- /dev/null
+++ b/MusicSharing/build.gradle
@@ -0,0 +1,29 @@
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
+
+buildscript {
+
+ repositories {
+ google()
+ jcenter()
+
+ }
+ dependencies {
+ classpath 'com.android.tools.build:gradle:3.6.2'
+
+
+ // NOTE: Do not place your application dependencies here; they belong
+ // in the individual module build.gradle files
+ }
+}
+
+allprojects {
+ repositories {
+ google()
+ jcenter()
+
+ }
+}
+
+task clean(type: Delete) {
+ delete rootProject.buildDir
+}
diff --git a/MusicSharing/gradle.properties b/MusicSharing/gradle.properties
new file mode 100644
index 0000000..199d16e
--- /dev/null
+++ b/MusicSharing/gradle.properties
@@ -0,0 +1,20 @@
+# Project-wide Gradle settings.
+# IDE (e.g. Android Studio) users:
+# Gradle settings configured through the IDE *will override*
+# any settings specified in this file.
+# For more details on how to configure your build environment visit
+# http://www.gradle.org/docs/current/userguide/build_environment.html
+# Specifies the JVM arguments used for the daemon process.
+# The setting is particularly useful for tweaking memory settings.
+org.gradle.jvmargs=-Xmx1536m
+# When configured, Gradle will run in incubating parallel mode.
+# This option should only be used with decoupled projects. More details, visit
+# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
+# org.gradle.parallel=true
+# AndroidX package structure to make it clearer which packages are bundled with the
+# Android operating system, and which are packaged with your app's APK
+# https://developer.android.com/topic/libraries/support-library/androidx-rn
+android.useAndroidX=true
+# Automatically convert third-party libraries to use AndroidX
+android.enableJetifier=true
+
diff --git a/MusicSharing/gradle/wrapper/gradle-wrapper.jar b/MusicSharing/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 0000000..f6b961f
Binary files /dev/null and b/MusicSharing/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/MusicSharing/gradle/wrapper/gradle-wrapper.properties b/MusicSharing/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000..fd1ec30
--- /dev/null
+++ b/MusicSharing/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Tue Apr 06 15:12:39 CST 2021
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip
diff --git a/MusicSharing/gradlew b/MusicSharing/gradlew
new file mode 100644
index 0000000..cccdd3d
--- /dev/null
+++ b/MusicSharing/gradlew
@@ -0,0 +1,172 @@
+#!/usr/bin/env sh
+
+##############################################################################
+##
+## Gradle start up script for UN*X
+##
+##############################################################################
+
+# Attempt to set APP_HOME
+# Resolve links: $0 may be a link
+PRG="$0"
+# Need this for relative symlinks.
+while [ -h "$PRG" ] ; do
+ ls=`ls -ld "$PRG"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '/.*' > /dev/null; then
+ PRG="$link"
+ else
+ PRG=`dirname "$PRG"`"/$link"
+ fi
+done
+SAVED="`pwd`"
+cd "`dirname \"$PRG\"`/" >/dev/null
+APP_HOME="`pwd -P`"
+cd "$SAVED" >/dev/null
+
+APP_NAME="Gradle"
+APP_BASE_NAME=`basename "$0"`
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS=""
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD="maximum"
+
+warn () {
+ echo "$*"
+}
+
+die () {
+ echo
+ echo "$*"
+ echo
+ exit 1
+}
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+nonstop=false
+case "`uname`" in
+ CYGWIN* )
+ cygwin=true
+ ;;
+ Darwin* )
+ darwin=true
+ ;;
+ MINGW* )
+ msys=true
+ ;;
+ NONSTOP* )
+ nonstop=true
+ ;;
+esac
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ JAVACMD="java"
+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+
+# Increase the maximum file descriptors if we can.
+if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
+ MAX_FD_LIMIT=`ulimit -H -n`
+ if [ $? -eq 0 ] ; then
+ if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
+ MAX_FD="$MAX_FD_LIMIT"
+ fi
+ ulimit -n $MAX_FD
+ if [ $? -ne 0 ] ; then
+ warn "Could not set maximum file descriptor limit: $MAX_FD"
+ fi
+ else
+ warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
+ fi
+fi
+
+# For Darwin, add options to specify how the application appears in the dock
+if $darwin; then
+ GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
+fi
+
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin ; then
+ APP_HOME=`cygpath --path --mixed "$APP_HOME"`
+ CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
+ JAVACMD=`cygpath --unix "$JAVACMD"`
+
+ # We build the pattern for arguments to be converted via cygpath
+ ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
+ SEP=""
+ for dir in $ROOTDIRSRAW ; do
+ ROOTDIRS="$ROOTDIRS$SEP$dir"
+ SEP="|"
+ done
+ OURCYGPATTERN="(^($ROOTDIRS))"
+ # Add a user-defined pattern to the cygpath arguments
+ if [ "$GRADLE_CYGPATTERN" != "" ] ; then
+ OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
+ fi
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ i=0
+ for arg in "$@" ; do
+ CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
+ CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
+
+ if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
+ eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
+ else
+ eval `echo args$i`="\"$arg\""
+ fi
+ i=$((i+1))
+ done
+ case $i in
+ (0) set -- ;;
+ (1) set -- "$args0" ;;
+ (2) set -- "$args0" "$args1" ;;
+ (3) set -- "$args0" "$args1" "$args2" ;;
+ (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
+ (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
+ (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
+ (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
+ (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
+ (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
+ esac
+fi
+
+# Escape application args
+save () {
+ for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
+ echo " "
+}
+APP_ARGS=$(save "$@")
+
+# Collect all arguments for the java command, following the shell quoting and substitution rules
+eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
+
+# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
+if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
+ cd "$(dirname "$0")"
+fi
+
+exec "$JAVACMD" "$@"
diff --git a/MusicSharing/gradlew.bat b/MusicSharing/gradlew.bat
new file mode 100644
index 0000000..f955316
--- /dev/null
+++ b/MusicSharing/gradlew.bat
@@ -0,0 +1,84 @@
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS=
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto init
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto init
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:init
+@rem Get command-line arguments, handling Windows variants
+
+if not "%OS%" == "Windows_NT" goto win9xME_args
+
+:win9xME_args
+@rem Slurp the command line arguments.
+set CMD_LINE_ARGS=
+set _SKIP=2
+
+:win9xME_args_slurp
+if "x%~1" == "x" goto execute
+
+set CMD_LINE_ARGS=%*
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/MusicSharing/netcloudsharing.jks b/MusicSharing/netcloudsharing.jks
new file mode 100644
index 0000000..8db5dc6
Binary files /dev/null and b/MusicSharing/netcloudsharing.jks differ
diff --git a/MusicSharing/settings.gradle b/MusicSharing/settings.gradle
new file mode 100644
index 0000000..32970a6
--- /dev/null
+++ b/MusicSharing/settings.gradle
@@ -0,0 +1,2 @@
+rootProject.name='NetCloudSharing'
+include ':app'
diff --git a/xscj/courseAction.php b/xscj/courseAction.php
new file mode 100644
index 0000000..446a2f5
--- /dev/null
+++ b/xscj/courseAction.php
@@ -0,0 +1,294 @@
+
+
+
+
+
+ alert(\"请填写课程名,学时和学分\")";
+ exit();
+ }
+
+ $sql = "select kcm from kc where kcm = '$kcm'";
+ $result = mysqli_query($db,$sql);
+ if(mysqli_num_rows($result)>0)
+ {
+ echo "";
+ exit();
+ }
+
+ $sql = "insert into kc(kcm,xs,xf) values('$kcm','$xs','$xf')";
+ $result = mysqli_query($db,$sql);
+ if($result)
+ {
+ echo "";
+
+ $result = mysqli_query($db,"select * from kc where kcm = '$kcm'");
+ $row = mysqli_fetch_array($result);
+
+ echo "
+
+ 课程名 |
+ 学时 |
+ 学分 |
+
";
+ echo "".$row['kcm']," | ";
+ echo "".$row['xs']," | ";
+ echo "".$row['xf']," |
";
+ echo "
";
+ }
+ else{
+ echo "";
+ exit();
+ }
+
+ $sql = "select kcm,xs,xf from kc where kcm = '$kcm'";
+ $result = mysqli_query($db,$sql);
+ if($result)
+ {
+ $row = mysqli_fetch_array($result);
+ echo "
+ 课程名 |
+ 学时 |
+ 学分 |
+
";
+ echo "".$row['kcm']." | ";
+ echo "".$row['xs']." | ";
+ echo "".$row['xf']." |
";
+ echo "
";
+ }
+ }
+ else if(strlen($xs)&&!strlen($kcm)&&!strlen($xf))
+ {
+ $sql = "select kcm,xs,xf from kc where xs = '$xs'";
+ $result = mysqli_query($db,$sql);
+
+ if(!mysqli_num_rows($result))
+ {
+ echo "";
+ exit();
+ }
+ if($result)
+ {
+ echo "学时 | 课程名 | 学分 |
";
+ while($row = mysqli_fetch_array($result))
+ {
+ echo "".$row['xs']." | ".
+ "".$row['kcm']." | ".
+ "".$row['xf']." | ".
+ "
";
+ }
+ echo "
";
+ }
+ }
+ else if(strlen($xf) && !strlen($xs) && !strlen($kcm))
+ {
+ $sql = "select xf,kcm,xs from kc where xf = '$xf'";
+ $result = mysqli_query($db,$sql);
+ if(!mysqli_num_rows($result))
+ {
+ echo "";
+ exit();
+ }
+ if($result)
+ {
+ echo "
+ 学分 |
+ 课程名 |
+ 学时 |
";
+ while($row = mysqli_fetch_array($result))
+ {
+ echo "".$row['xf']." | ".
+ "".$row['kcm']." | ".
+ "".$row['xs']." | ".
+ "
";
+ }
+ echo "
";
+
+ }
+ }
+ else if(strlen($xs)&&!strlen($kcm)&&strlen($xf))
+ {
+ $sql = "select kcm,xs,xf from kc where xs = '$xs' and xf = '$xf'";
+ $result = mysqli_query($db,$sql);
+ if(!mysqli_num_rows($result))
+ {
+ echo "";
+ exit();
+ }
+ if($result)
+ {
+ echo "学时 | 课程名 | 学分 |
";
+ while($row = mysqli_fetch_array($result))
+ {
+ echo "".$row['xs']." | ".
+ "".$row['kcm']." | ".
+ "".$row['xf']." | ".
+ "
";
+ }
+ echo "
";
+ }
+ }
+ else{
+ $sql = "select kcm,xs,xf from kc ";
+ $result = mysqli_query($db,$sql);
+ if(!mysqli_num_rows($result))
+ {
+ echo "";
+ exit();
+ }
+ if($result)
+ {
+ echo "课程名 | 学分 | 学时 |
";
+ while($row = mysqli_fetch_array($result))
+ {
+ echo "".$row['kcm']." | ".
+ "".$row['xf']." | ".
+ "".$row['xs']." | ".
+ "
";
+ }
+ echo "
";
+ }
+ }
+ }
+
+ if(isset($_POST['删除']))
+ {
+ if(!strlen($kcm)&&!strlen($xs)&&!strlen($xf))
+ {
+ echo "";
+ exit();
+ }
+
+ $sql = "select kcm from kc where kcm = '$kcm'";
+ $result = mysqli_query($db,$sql);
+ if(!mysqli_num_rows($result))
+ {
+ echo "";
+ exit();
+ }
+ if(strlen($kcm))
+ {
+
+ $sql = "delete from kc where kcm = '$kcm'";
+ $result = mysqli_query($db,$sql);
+
+ if($result)
+ {
+ echo "";
+ exit();
+ }
+ else
+ {
+ echo "";
+ exit();
+ }
+
+ }
+ if(!strlen($kcm)&&strlen($xs)&&!strlen($xf))
+ {
+ $sql="delete from kc where xs = '$xs'";
+ $result = mysqli_query($db,$sql);
+
+ if($result)
+ {
+ echo "";
+ exit();
+ }
+ else
+ {
+ echo "";
+ exit();
+ }
+ }
+ if(!strlen($kcm)&&!strlen($xs)&&strlen($xf))
+ {
+ $sql="delete from kc where xf = '$xf'";
+ $result = mysqli_query($db,$sql);
+
+ if($result)
+ {
+ echo "";
+ exit();
+ }
+ else
+ {
+ echo "";
+ exit();
+ }
+ }
+ if(!strlen($kcm)&&strlen($xs)&&strlen($xf))
+ {
+ $sql="delete from kc where xs = '$xs' and xf = '$xf'";
+ $result = mysqli_query($db,$sql);
+
+ if($result)
+ {
+ echo "";
+ exit();
+ }
+ else
+ {
+ echo "";
+ exit();
+ }
+ }
+ }
+
+ if(isset($_POST['更新']))
+ {
+ if(!strlen($kcm)||!strlen($xs)||!strlen($xf))
+ {
+ echo "";
+ exit();
+ }
+
+ $sql = "update kc set xs= '$xs',xf = '$xf' where kcm = '$kcm'";
+ $result = mysqli_query($db,$sql);
+ if($result)
+ {
+ echo "";
+ $result = mysqli_query($db,"select kcm,xs,xf from kc where kcm = '$kcm'");
+ $row = mysqli_fetch_array($result);
+ echo "
+ 课程名 |
+ 学时 |
+ 学分 |
";
+ echo "".$row['kcm']," | ";
+ echo "".$row['xs']," | ";
+ echo "".$row['xf']," |
";
+ echo "
";
+ }
+ else{
+ echo "";
+ }
+ }
+ ?>
+
+
\ No newline at end of file
diff --git a/xscj/course_manage.php b/xscj/course_manage.php
new file mode 100644
index 0000000..fcc0654
--- /dev/null
+++ b/xscj/course_manage.php
@@ -0,0 +1,57 @@
+
+
+
+课程管理
+
+
+
+
+
+
+
+
+
+
diff --git a/xscj/fun.php b/xscj/fun.php
new file mode 100644
index 0000000..d14d0d6
--- /dev/null
+++ b/xscj/fun.php
@@ -0,0 +1,10 @@
+
\ No newline at end of file
diff --git a/xscj/images/20.jpg b/xscj/images/20.jpg
new file mode 100644
index 0000000..f1d2f3d
Binary files /dev/null and b/xscj/images/20.jpg differ
diff --git a/xscj/images/bottom.gif b/xscj/images/bottom.gif
new file mode 100644
index 0000000..23f3260
Binary files /dev/null and b/xscj/images/bottom.gif differ
diff --git a/xscj/images/bottom1.png b/xscj/images/bottom1.png
new file mode 100644
index 0000000..efc3345
Binary files /dev/null and b/xscj/images/bottom1.png differ
diff --git a/xscj/images/home.gif b/xscj/images/home.gif
new file mode 100644
index 0000000..5df7b8a
Binary files /dev/null and b/xscj/images/home.gif differ
diff --git a/xscj/images/top.png b/xscj/images/top.png
new file mode 100644
index 0000000..69ebe37
Binary files /dev/null and b/xscj/images/top.png differ
diff --git a/xscj/images/xscj.gif b/xscj/images/xscj.gif
new file mode 100644
index 0000000..c811a6b
Binary files /dev/null and b/xscj/images/xscj.gif differ
diff --git a/xscj/index.php b/xscj/index.php
new file mode 100644
index 0000000..ca59fe7
--- /dev/null
+++ b/xscj/index.php
@@ -0,0 +1,140 @@
+
+
+
+
+学生管理系统
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/xscj/login.css b/xscj/login.css
new file mode 100644
index 0000000..52d70e8
--- /dev/null
+++ b/xscj/login.css
@@ -0,0 +1,45 @@
+/* CSS Document */
+body{
+ background:url(images/20.jpg);
+ background-repeat:no-repeat;
+ background-size:100% auto;
+ }
+ #login-box{
+ width:30%;
+ height:auto;
+ margin:0 auto ;
+ margin-top:13%;
+ text-align:center;
+ background:#00000060;
+ padding:20px 50px;
+ }
+ #login-box h1{
+ color:#fff;
+ }
+ #login-box .form .item{
+ margin-top:15px;
+ }
+ #login-box .form .item i{
+ font-size:18px;
+ color:#fff;
+ }
+ #login-box .form .item input{
+ width:180px;
+ font-size:18px;
+ border:0;
+ border-bottom:2px solid #fff;
+ padding:5px 10px;
+ background:#ffffff00;
+ color:#fff;
+ }
+ #login-box button{
+ margin-top:20px;
+ width:190px;
+ height:30px;
+ font-size:20px;
+ font-weight:700;
+ color:#fff;
+ background-image: linear-gradient(to right, #74ebd5 0%, #9face6 100%);
+ border:0;
+ border-radius:15px;
+ }
\ No newline at end of file
diff --git a/xscj/login.php b/xscj/login.php
new file mode 100644
index 0000000..6af46a0
--- /dev/null
+++ b/xscj/login.php
@@ -0,0 +1,29 @@
+
+
+
+
+登录
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/xscj/login1.php b/xscj/login1.php
new file mode 100644
index 0000000..6aadbe5
--- /dev/null
+++ b/xscj/login1.php
@@ -0,0 +1,32 @@
+alert(\"该用户名不存在\");";
+ echo "";
+ exit();
+ }
+
+ //查询用户
+ $sql = "select userid from user where username = '$username' and password = '$password'";//SQL查询语句
+ $result = mysqli_query($db,$sql);
+ if(mysqli_num_rows($result) > 0){//查询到数据,跳转到系统主页index.php
+ $_SESSION['username'] = $_POST['username'];
+ echo "";
+ }
+ else{//没有查询到数据,弹出一个对话框
+ echo "";
+ echo "";
+ }
+
+?>
\ No newline at end of file
diff --git a/xscj/pxscj.sql b/xscj/pxscj.sql
new file mode 100644
index 0000000..00f30f1
--- /dev/null
+++ b/xscj/pxscj.sql
@@ -0,0 +1,145 @@
+/*
+ Navicat Premium Data Transfer
+
+ Source Server : root
+ Source Server Type : MySQL
+ Source Server Version : 50726
+ Source Host : localhost:3306
+ Source Schema : pxscj
+
+ Target Server Type : MySQL
+ Target Server Version : 50726
+ File Encoding : 65001
+
+ Date: 28/06/2020 00:21:12
+*/
+
+SET NAMES utf8mb4;
+SET FOREIGN_KEY_CHECKS = 0;
+
+-- ----------------------------
+-- Table structure for cj
+-- ----------------------------
+DROP TABLE IF EXISTS `cj`;
+CREATE TABLE `cj` (
+ `XM` char(8) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
+ `KCM` char(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
+ `CJ` int(255) NULL DEFAULT NULL,
+ PRIMARY KEY (`XM`, `KCM`) USING BTREE,
+ CONSTRAINT `FK_CJ_XS` FOREIGN KEY (`XM`) REFERENCES `xs` (`XM`) ON DELETE CASCADE ON UPDATE NO ACTION
+) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_unicode_ci ROW_FORMAT = Dynamic;
+
+-- ----------------------------
+-- Records of cj
+-- ----------------------------
+INSERT INTO `cj` VALUES ('张三', 'C语言', 79);
+INSERT INTO `cj` VALUES ('张三', '体育', 78);
+INSERT INTO `cj` VALUES ('张三', '数据库', 80);
+INSERT INTO `cj` VALUES ('张三', '高数', 80);
+INSERT INTO `cj` VALUES ('张宇', 'c++', 80);
+INSERT INTO `cj` VALUES ('李四', '高数', 80);
+INSERT INTO `cj` VALUES ('李弈', '体育', 72);
+INSERT INTO `cj` VALUES ('李星', 'C语言', 89);
+INSERT INTO `cj` VALUES ('章程', '高数', 80);
+INSERT INTO `cj` VALUES ('罗宜', '体育', 75);
+INSERT INTO `cj` VALUES ('罗宜', '数据库', 82);
+INSERT INTO `cj` VALUES ('罗宜', '高数', 85);
+
+-- ----------------------------
+-- Table structure for kc
+-- ----------------------------
+DROP TABLE IF EXISTS `kc`;
+CREATE TABLE `kc` (
+ `KCM` char(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
+ `XS` tinyint(255) NULL DEFAULT NULL,
+ `XF` tinyint(255) NULL DEFAULT NULL,
+ PRIMARY KEY (`KCM`) USING BTREE
+) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_unicode_ci ROW_FORMAT = Dynamic;
+
+-- ----------------------------
+-- Records of kc
+-- ----------------------------
+INSERT INTO `kc` VALUES ('', NULL, NULL);
+INSERT INTO `kc` VALUES ('C++', 36, 3);
+INSERT INTO `kc` VALUES ('C语言', 32, 2);
+INSERT INTO `kc` VALUES ('公共体育', 32, 2);
+INSERT INTO `kc` VALUES ('大学物理', 32, 2);
+INSERT INTO `kc` VALUES ('大学英语', 32, 2);
+INSERT INTO `kc` VALUES ('数据库', 36, 2);
+INSERT INTO `kc` VALUES ('数据结构', 36, 2);
+INSERT INTO `kc` VALUES ('高数', 36, 2);
+
+-- ----------------------------
+-- Table structure for user
+-- ----------------------------
+DROP TABLE IF EXISTS `user`;
+CREATE TABLE `user` (
+ `userid` int(8) NOT NULL,
+ `username` char(12) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL,
+ `password` char(12) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL
+) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_unicode_ci ROW_FORMAT = Dynamic;
+
+-- ----------------------------
+-- Records of user
+-- ----------------------------
+INSERT INTO `user` VALUES (1, 'root', '123456');
+INSERT INTO `user` VALUES (2, 'root', '123456');
+
+-- ----------------------------
+-- Table structure for xmcj_view
+-- ----------------------------
+DROP TABLE IF EXISTS `xmcj_view`;
+CREATE TABLE `xmcj_view` (
+ `KCM` char(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
+ `CJ` int(255) NULL DEFAULT NULL,
+ PRIMARY KEY (`KCM`) USING BTREE
+) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_unicode_ci ROW_FORMAT = Dynamic;
+
+-- ----------------------------
+-- Table structure for xs
+-- ----------------------------
+DROP TABLE IF EXISTS `xs`;
+CREATE TABLE `xs` (
+ `XM` char(8) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
+ `XB` tinyint(1) NULL DEFAULT NULL,
+ `CSSJ` date NULL DEFAULT NULL,
+ `KCS` int(255) NULL DEFAULT NULL,
+ `BZ` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL,
+ `ZP` blob NULL,
+ PRIMARY KEY (`XM`) USING BTREE
+) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_unicode_ci ROW_FORMAT = Dynamic;
+
+-- ----------------------------
+-- Records of xs
+-- ----------------------------
+INSERT INTO `xs` VALUES ('张一', 1, '2001-03-16', 1, NULL, NULL);
+INSERT INTO `xs` VALUES ('张三', 1, '2020-06-07', 4, NULL, NULL);
+INSERT INTO `xs` VALUES ('张宇', 1, '2020-06-12', 3, NULL, NULL);
+INSERT INTO `xs` VALUES ('李依', 0, '2020-05-12', 1, NULL, NULL);
+INSERT INTO `xs` VALUES ('李四', 0, '2000-12-13', 3, NULL, NULL);
+INSERT INTO `xs` VALUES ('李弈', 0, '2020-06-12', 3, NULL, NULL);
+INSERT INTO `xs` VALUES ('李星', 1, '2020-12-23', 4, NULL, NULL);
+INSERT INTO `xs` VALUES ('章程', 1, '2020-06-07', 4, NULL, NULL);
+INSERT INTO `xs` VALUES ('罗宜', 1, '2020-06-05', 5, NULL, NULL);
+INSERT INTO `xs` VALUES ('赵泽', 1, '2020-06-14', 2, NULL, NULL);
+INSERT INTO `xs` VALUES ('陈橙', 0, '2020-01-25', 2, NULL, NULL);
+
+-- ----------------------------
+-- Triggers structure for table cj
+-- ----------------------------
+DROP TRIGGER IF EXISTS `CJ_INSERT_KCS`;
+delimiter ;;
+CREATE TRIGGER `CJ_INSERT_KCS` AFTER INSERT ON `cj` FOR EACH ROW UPDATE XS SET KCS=KCS+1 where new.XM=XM
+;;
+delimiter ;
+
+-- ----------------------------
+-- Triggers structure for table cj
+-- ----------------------------
+DROP TRIGGER IF EXISTS `CJ_DELEFE_KCS`;
+delimiter ;;
+CREATE TRIGGER `CJ_DELEFE_KCS` AFTER DELETE ON `cj` FOR EACH ROW update xs set kcs=kcs-1 where xm=old.xm
+;;
+delimiter ;
+
+SET FOREIGN_KEY_CHECKS = 1;
diff --git a/xscj/scoreAction.php b/xscj/scoreAction.php
new file mode 100644
index 0000000..915e992
--- /dev/null
+++ b/xscj/scoreAction.php
@@ -0,0 +1,306 @@
+
+alert(\"请输入姓名,课程名和成绩\");";
+ exit();
+ }
+
+ $sql = "select cj from cj where xm = '$name' and kcm = '$kcm'";
+ $result = mysqli_query($db,$sql);
+ if(mysqli_num_rows($result)>0)
+ {
+ echo"";
+ exit();
+ }
+
+ $sql = "insert into cj(xm,kcm,cj) values('$name','$kcm','$score')";
+ $result = mysqli_query($db,$sql);
+ if($result)
+ {
+ echo"";
+ $result = mysqli_query($db,"select * from cj where xm = '$name' and kcm = '$kcm'");
+ $row = mysqli_fetch_array($result);
+ echo "姓名 | 课程名 | 成绩 | ";
+ echo "
---|
".$row['xm']." | ";
+ echo "".$row['kcm']." | ";
+ echo "".$row['cj']." |
";
+ echo "
>";
+ }
+ else
+ {
+ echo "";
+ exit();
+ }
+
+ $sql = "select xm from cj where xm = '$name'";
+ $result = mysqli_query($db,$sql);
+ if(!mysqli_num_rows($result))
+ {
+ echo "";
+ exit();
+ }
+
+ if(strlen($kcm)&&strlen($name))
+ {
+ $sql = "delete from cj where xm = '$name' and kcm = '$kcm'";
+ $result = mysqli_query($db,$sql);
+
+ if($result)
+ {
+ echo "";
+ exit();
+ }
+ else
+ {
+ echo "";
+ exit();
+ }
+ }
+ else if(strlen($name))
+ {
+ $sql = "delete from cj where xm = '$name'";
+ $result = mysqli_query($db,$sql);
+
+ if($result)
+ {
+ echo "";
+ exit();
+ }
+ else
+ {
+ echo "";
+ exit();
+ }
+ }
+ }
+
+ if(isset($_POST['更新']))
+ {
+ if(!strlen($name) || !strlen($kcm) || !strlen($score))
+ {
+ echo "";
+ exit();
+ }
+
+ $sql = "select xm from cj where xm = '$name'";
+ $result = mysqli_query($db,$sql);
+ if(!mysqli_num_rows($result))
+ {
+ echo "";
+ exit();
+ }
+
+ $sql = "update cj set cj = '$score' where xm = '$name' and kcm = '$kcm'";
+ $result = mysqli_query($db,$sql);
+ if($result)
+ {
+ echo "";
+ $result = mysqli_query($db,"select * from cj where xm = '$name' and kcm = '$kcm'");
+ $row = mysqli_fetch_array($result);
+ echo "
+
+ 姓名 |
+ 课程 |
+ 成绩 |
+
";
+ echo "".$row['xm']," | ";
+ echo "".$row['kcm']," | ";
+ echo "".$row['cj']," |
";
+ echo "
";
+ }
+ else
+ {
+ echo "";
+ exit();
+ }
+ }
+
+ if(isset($_POST['查询']))
+ {
+ if(strlen($name)&&!strlen($score)&&!strlen($kcm))
+ {
+
+ $sql = "select xm from cj where xm = '$name'";
+ $result = mysqli_query($db,$sql);
+ if(!mysqli_num_rows($result))
+ {
+ echo "";
+ exit();
+ }
+ $sql = "select xm,kcm,cj from cj where xm = '$name'";
+ $result = mysqli_query($db,$sql);
+ if($result)
+ {
+ echo "姓名 | 课程 | 成绩 |
";
+ while($row=mysqli_fetch_array($result,MYSQLI_ASSOC))
+ {
+ echo "".$row['xm']." | ".
+ "".$row['kcm']." | ".
+ "".$row['cj']." | ".
+ "
";
+ }
+ echo "
";
+ }
+ else
+ {
+ echo "";
+ exit();
+ }
+ }
+ else if(strlen($name)&&strlen($kcm))
+ {
+ $sql = "select xm,kcm,cj from cj where xm = '$name' and kcm = '$kcm'";
+ $result = mysqli_query($db,$sql);
+ if($row = mysqli_fetch_array($result))
+ {
+ echo "姓名 | 课程 | 成绩 |
";
+ echo "".$row['xm']." | ".
+ "".$row['kcm']." | ".
+ "".$row['cj']." | ".
+ "
";
+ echo "
";
+ }
+ else{
+ echo "";
+ exit();
+ }
+ }
+ else if(strlen($name)&&strlen($score))
+ {
+ $sql = "select xm,cj from cj where xm = '$name' and cj = '$score'";
+ $result = mysqli_query($db,$sql);
+ if(!mysqli_num_rows($result))
+ {
+ echo "";
+ exit();
+ }
+ $sql = "select xm,kcm,cj from cj where cj= '$score' and xm = '$name'";
+ $result = mysqli_query($db,$sql);
+ if($result)
+ {
+ echo "姓名 | 课程 | 成绩 |
";
+ while($row=mysqli_fetch_array($result,MYSQLI_ASSOC))
+ {
+ echo "".$row['xm']." | ".
+ "".$row['kcm']." | ".
+ "".$row['cj']." | ".
+ "
";
+ }
+ echo "
";
+ }
+ }
+ else if(strlen($kcm)&&strlen($score))
+ {
+ $sql = "select kcm,cj from cj where kcm = '$kcm' and cj = '$score'";
+ $result = mysqli_query($db,$sql);
+ if(!mysqli_num_rows($result))
+ {
+ echo "";
+ exit();
+ }
+ $sql = "select xm,kcm,cj from cj where cj= '$score' and kcm = '$kcm'";
+ $result = mysqli_query($db,$sql);
+ if($result)
+ {
+ echo "姓名 | 课程 | 成绩 |
";
+ while($row=mysqli_fetch_array($result,MYSQLI_ASSOC))
+ {
+ echo "".$row['xm']." | ".
+ "".$row['kcm']." | ".
+ "".$row['cj']." | ".
+ "
";
+ }
+ echo "
";
+ }
+ }
+ else if(strlen($score)&&!strlen($kcm)&&!strlen($name))
+ {
+ $sql = "select cj from cj where cj = '$score'";
+ $result = mysqli_query($db,$sql);
+ if(!mysqli_num_rows($result))
+ {
+ echo "";
+ exit();
+ }
+ $sql = "select xm,kcm,cj from cj where cj= '$score'";
+ $result = mysqli_query($db,$sql);
+ if($result)
+ {
+ echo "姓名 | 课程 | 成绩 |
";
+ while($row=mysqli_fetch_array($result,MYSQLI_ASSOC))
+ {
+ echo "".$row['xm']." | ".
+ "".$row['kcm']." | ".
+ "".$row['cj']." | ".
+ "
";
+ }
+ echo "
";
+ }
+ }
+ else if(!strlen($score)&&strlen($kcm)&&!strlen($name))
+ {
+ $sql = "select kcm from cj where kcm = '$kcm'";
+ $result = mysqli_query($db,$sql);
+ if(!mysqli_num_rows($result))
+ {
+ echo "";
+ exit();
+ }
+ $sql = "select xm,kcm,cj from cj where kcm = '$kcm'";
+ $result = mysqli_query($db,$sql);
+ if($result)
+ {
+ echo "姓名 | 课程 | 成绩 |
";
+ while($row=mysqli_fetch_array($result,MYSQLI_ASSOC))
+ {
+ echo "".$row['xm']." | ".
+ "".$row['kcm']." | ".
+ "".$row['cj']." | ".
+ "
";
+ }
+ echo "
";
+ }
+ }
+ else
+ {
+ $sql = "select xm,cj,kcm from cj";
+ $result = mysqli_query($db,$sql);
+ if($result)
+ {
+ echo "课程 | 姓名 | 成绩 |
";
+ while($row=mysqli_fetch_array($result,MYSQLI_ASSOC))
+ {
+ echo "".$row['kcm']." | ".
+ "".$row['xm']." | ".
+ "".$row['cj']." | ".
+ "
";
+ }
+ echo "
";
+ }
+ else
+ {
+ echo "";
+ exit();
+ }
+ }
+ }
+?>
\ No newline at end of file
diff --git a/xscj/score_manage.php b/xscj/score_manage.php
new file mode 100644
index 0000000..2bbb463
--- /dev/null
+++ b/xscj/score_manage.php
@@ -0,0 +1,57 @@
+
+
+
+成绩管理
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/xscj/studentAction.php b/xscj/studentAction.php
new file mode 100644
index 0000000..2b5d9c1
--- /dev/null
+++ b/xscj/studentAction.php
@@ -0,0 +1,308 @@
+
+alert(\"姓名不能为空\");";
+ exit();
+ }
+ $sql = "select xm from xs where xm = '$name'";
+ $result = mysqli_query($db,$sql);
+ if(mysqli_num_rows($result))
+ {
+ echo "";
+ exit();
+ }
+
+ $sql = "insert into xs(xm,xb,cssj,kcs) values('$name','$sex','$birthday','$kcs')";
+ $result = mysqli_query($db,$sql);
+
+ if($result)
+ {
+ echo "";
+ $result = mysqli_query($db,"select xm,xb,cssj,kcs from xs where xm = '$name'");
+ $row = mysqli_fetch_array($result);
+ echo "姓名 | 性别 | 出生日期 | 已修课程数 |
";
+ echo "".$row['姓名']." | ";
+ echo "";
+ if($row['性别'] == 1) echo "男";
+ else echo "女";
+ echo " | ";
+ echo "".$row['出生日期']." | ";
+ echo "".$row['已修课程数']." | ";
+ echo "
---|
";
+ }
+ else
+ {
+ echo "";
+ }
+ }
+ if(isset($_POST['查询']))
+ {
+ if(strlen($name)&&!strlen($sex)&&!strlen($kcs))
+ {
+ $sql = "select xm from xs where xm = '$name'";
+ $result = mysqli_query($db,$sql);
+ if(!mysqli_num_rows($result))
+ {
+ echo "";
+ exit();
+ }
+
+ $sql = "select xm,xb,cssj,kcs from xs where xm = '$name'";
+ $result = mysqli_query($db,$sql);
+ if($result)
+ {
+ echo " 姓名 | 性别 | 出生日期 | 已修课程数 |
";
+ while($row = mysqli_fetch_array($result))
+ {
+ echo "".$row['xm']." | ";
+ echo "";
+ if($row['xb']==1)echo"男";
+ else echo"女";
+ echo " | ";
+ echo "".$row['cssj']." | ";
+ echo "".$row['kcs']." |
";
+ }
+ echo "
";
+ }
+
+ }
+ else if(strlen($sex)&&!strlen($kcs)&&!strlen($name))
+ {
+ $sql = "select xm,xb,cssj,kcs from xs where xb = '$sex'";
+ $result = mysqli_query($db,$sql);
+ if($result)
+ {
+ echo " 姓名 | 性别 | 出生日期 | 已修课程数 |
";
+ while($row = mysqli_fetch_array($result))
+ {
+ echo "".$row['xm']." | ";
+ echo "";
+ if($row['xb']==1)echo"男";
+ else echo"女";
+ echo " | ";
+ echo "".$row['cssj']." | ";
+ echo "".$row['kcs']." |
";
+ }
+ echo "
";
+ }
+ else
+ {
+ echo "";
+ exit();
+ }
+ }
+ else if(strlen($kcs)&&!strlen($name)&&!strlen($sex))
+ {
+ $sql = "select xm,xb,cssj,kcs from xs where kcs = '$kcs'";
+ $result = mysqli_query($db,$sql);
+ if($result)
+ {
+ echo " 姓名 | 性别 | 出生日期 | 已修课程数 |
";
+ while($row = mysqli_fetch_array($result))
+ {
+ echo "".$row['xm']." | ";
+ echo "";
+ if($row['xb']==1)echo"男";
+ else echo"女";
+ echo " | ";
+ echo "".$row['cssj']." | ";
+ echo "".$row['kcs']." |
";
+ }
+ echo "
";
+ }
+ else
+ {
+ echo "";
+ exit();
+ }
+ }
+ else if(!strlen($name)&&strlen($sex)&&strlen($kcs))
+ {
+ $sql = "select xm,xb,cssj,kcs from xs where kcs = '$kcs' and xb = '$sex'";
+ $result = mysqli_query($db,$sql);
+ if($result)
+ {
+ echo " 姓名 | 性别 | 出生日期 | 已修课程数 |
";
+ while($row = mysqli_fetch_array($result))
+ {
+ echo "".$row['xm']." | ";
+ echo "";
+ if($row['xb']==1)echo"男";
+ else echo"女";
+ echo " | ";
+ echo "".$row['cssj']." | ";
+ echo "".$row['kcs']." |
";
+ }
+ echo "
";
+ }
+ else
+ {
+ echo "";
+ exit();
+ }
+ }
+ else if(strlen($name)&&!strlen($sex)&&strlen($kcs))
+ {
+ $sql = "select xm,xb,cssj,kcs from xs where kcs = '$kcs' and xb = '$sex'";
+ $result = mysqli_query($db,$sql);
+ if($result)
+ {
+ echo " 姓名 | 性别 | 出生日期 | 已修课程数 |
";
+ while($row = mysqli_fetch_array($result))
+ {
+ echo "".$row['xm']." | ";
+ echo "";
+ if($row['xb']==1)echo"男";
+ else echo"女";
+ echo " | ";
+ echo "".$row['cssj']." | ";
+ echo "".$row['kcs']." |
";
+ }
+ echo "
";
+ }
+ else
+ {
+ echo "";
+ exit();
+ }
+ }
+ else if(strlen($name)&&strlen($sex)&&!strlen($kcs))
+ {
+ $sql = "select xm,xb,cssj,kcs from xs where kcs = '$kcs' and xb = '$sex'";
+ $result = mysqli_query($db,$sql);
+ if($result)
+ {
+ echo " 姓名 | 性别 | 出生日期 | 已修课程数 |
";
+ while($row = mysqli_fetch_array($result))
+ {
+ echo "".$row['xm']." | ";
+ echo "";
+ if($row['xb']==1)echo"男";
+ else echo"女";
+ echo " | ";
+ echo "".$row['cssj']." | ";
+ echo "".$row['kcs']." |
";
+ }
+ echo "
";
+ }
+ else
+ {
+ echo "";
+ exit();
+ }
+ }
+ else
+ {
+ $sql = "select xm,xb,cssj,kcs from xs";
+ $result = mysqli_query($db,$sql);
+ if($result)
+ {
+ echo " 姓名 | 性别 | 出生日期 | 已修课程数 |
";
+ while($row = mysqli_fetch_array($result))
+ {
+ echo "".$row['xm']." | ";
+ echo "";
+ if($row['xb']==1)echo"男";
+ else echo"女";
+ echo " | ";
+ echo "".$row['cssj']." | ";
+ echo "".$row['kcs']." |
";
+ }
+ echo "
";
+ }
+ else
+ {
+ echo "";
+ exit();
+ }
+ }
+}
+
+if(isset($_POST['删除']))
+{
+ if(!strlen($name))
+ {
+ echo "";
+ exit();
+ }
+
+ $sql = "select xm from xs where xm = '$name'";
+ $result = mysqli_query($db,$sql);
+
+ if(!mysqli_num_rows($result))
+ {
+ echo "";
+ exit();
+ }
+
+ $sql = "delete from xs where xm = '$name'";
+ $result = mysqli_query($db,$sql);
+ if($result)
+ {
+ echo "";
+ }
+ else
+ {
+ echo "";
+ }
+
+}
+if(isset($_POST['更新']))
+{
+ if(!strlen($name))
+ {
+ echo "";
+ exit();
+ }
+ if(!strlen($sex) || !strlen($birthday) || !strlen($kcs))
+ {
+ echo "";
+ exit();
+ }
+ $sql = "select xm from xs where xm = '$name'";
+ $result = mysqli_query($db,$sql);
+ if(!mysqli_num_rows($result))
+ {
+ echo "";
+ exit();
+ }
+
+ $sql = "update xs set xb = '$sex', cssj = '$birthday', kcs = '$kcs' where xm = '$name'";
+ $result = mysqli_query($db,$sql);
+ if($result)
+ {
+ echo "";
+ $result = mysqli_query($db,"select xm,xb,cssj,kcs from xs where xm = '$name'");
+ $row = mysqli_fetch_array($result);
+ echo " 姓名 | 性别 | 出生日期 | 已修课程数 |
";
+ echo "".$row['xm']." | ";
+ echo "";
+ if($row['xb']==1)echo"男";
+ else echo"女";
+ echo " | ";
+ echo "".$row['cssj']." | ";
+ echo "".$row['kcs']." |
";
+ echo "
";
+ }
+ else
+ {
+ echo "";
+ exit();
+ }
+}
+
+?>
\ No newline at end of file
diff --git a/xscj/student_manage.php b/xscj/student_manage.php
new file mode 100644
index 0000000..98033f5
--- /dev/null
+++ b/xscj/student_manage.php
@@ -0,0 +1,59 @@
+
+
+
+
+
+学生管理
+
+
+
+
+
+
+
+
+
\ No newline at end of file