user_manager.sh
来自「机房管理系统」· Shell 代码 · 共 36 行
SH
36 行
#!/bin/ksh. $HOME/cms/include/cms.h. $HOME/cms/func/user_manager_fun.sh#鐢ㄦ埛绠$悊鍏ュ彛绋嬪簭user_manager(){ while : do #娓呴櫎灞忓箷 erase_fun 4 20 hide_cursor xy 5 26 "***User Management***" xy 6 26 "1. Select the UserInfo" xy 7 26 "2. Add User" xy 8 26 "3. Delete User" xy 9 26 "4. Modify the UserInfo" xy 10 26 "5. Modify the Pasword" xy 11 26 "q. Return" xy 13 26 "Please Choice[1|2|3|4|5|q|Q]:" display_cursor read _CHOICE_2 if [ "$CMS_USER_LEVEL"="01" -a "$__USER_LEVEL"="01" ] then case $_CHOICE_2 in 1)user_query;; 2)user_add;; 3)user_del;; 4)user_mod;; 5)user_chg_pwd;; q|Q) return 0;; *) hint_msg "Wrong choice [${_CHOICE_2}],Please choice[1|2|3|4|5|q|Q]";; esac fi done}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?