?? manage.js
字號(hào):
// ***********************************************************************************||
// 系統(tǒng)配置
// ***********************************************************************************||
// 修改配置信息時(shí)檢測(cè)
function on_modify_config(){
}
// ***********************************************************************************||
// 管理員
// ***********************************************************************************||
// 重新排序
function do_manager_order(){
document.Form1.submit();
}
// 修改分組為
function do_manager_grade(){
if (trim(document.Form1.gradeid.value)=="" || trim(document.Form1.gradeid.value)=="0"){
window.alert("請(qǐng)先選擇目標(biāo)會(huì)員分組");
}else{
if (sc_select_count($n('Manager'))>0){
document.Form1.Command.value = "Manager_Grade";
document.Form1.action = "../service/option_action.aspx";
document.Form1.submit();
}else{
window.alert("您沒(méi)有選擇任何管理員,無(wú)法繼續(xù)操作");
}
}
}
// 添加管理員
function do_manager_add(){
if (trim(document.Form1.manage_grade.value)=="" || trim(document.Form1.manage_grade.value)=="0"){
window.alert("請(qǐng)先選擇管理分組");
}else{
if (trim(document.Form1.email.value)==""){
window.alert("您沒(méi)有輸入會(huì)員帳號(hào),無(wú)法繼續(xù)操作");
}else{
document.Form1.Command.value = "Manager_Add";
document.Form1.action = "../service/option_action.aspx";
document.Form1.submit();
}
}
}
// ***********************************************************************************||
// 會(huì)員分組
// ***********************************************************************************||
// 編輯會(huì)員分組信息
function do_grade_edit_ready(id){
window.open("Grade_Detail.aspx?gradeid=" + id, "_self", "");
}
// 增加新的會(huì)員分組
function do_grade_add_ready(){
window.open("Grade_Detail.aspx?gradeid=0", "_self", "");
}
// 修改會(huì)員分組信息時(shí)檢測(cè)腳本
function on_grade_edit_check(){
this.imageaffix = function(myimage){
var idotindex = myimage.lastIndexOf(".");
var affix = myimage.substring(idotindex, myimage.length);
return affix.toLowerCase();
}
if (trim(document.Form1.name.value)==""){
window.alert("分組名稱不能為空。");
document.Form1.name.focus();
return false;
}
if (trim(document.Form1.icon.value)!=""){
this.myaffixs = ".jpeg.jpg.gif.bmp.png";
if (myaffixs.indexOf(this.imageaffix(document.Form1.icon.value))<0){
window.alert("標(biāo)識(shí)圖片格式不正確,標(biāo)識(shí)圖片僅支持 JPEG GIF BMP PNG 格式。");
document.Form1.icon.focus();
return false;
}
}
document.Form1.bok.disabled = true;
return true;
}
// 刪除會(huì)員分組
function do_grade_delete(id){
if (confirm("您確定要?jiǎng)h除此會(huì)員分組嗎?")){
window.open("../service/option_action.aspx?Command=Grade_Delete&gradeid="+id, "_self", "");
}
}
// 設(shè)置分組為默認(rèn)分組
function do_grade_default(id){
window.open("../service/option_action.aspx?Command=Grade_Default&gradeid="+id, "_self", "");
}
// ***********************************************************************************||
// 日志
// ***********************************************************************************||
// 查詢管理日志
function do_log_search(){
document.Form1.submit();
}
// ***********************************************************************************||
// 推薦標(biāo)簽
// ***********************************************************************************||
// 修改標(biāo)簽樣式
function do_tag_style(){
if (sc_select_count($n('Tag'))>0){
document.Form1.Command.value = "Tag_Style";
document.Form1.action = "../Service/Option_Action.aspx";
document.Form1.submit();
}else{
window.alert("沒(méi)有選擇任何標(biāo)簽,無(wú)法執(zhí)行修改樣式操作");
}
}
// 推薦標(biāo)簽
function do_tag_vouch(){
if (trim(document.Form1.newtags.value)==""){
window.alert("沒(méi)有輸入要推薦的標(biāo)簽");
}else{
document.Form1.Command.value = "Tag_Vouch";
document.Form1.action = "../Service/Option_Action.aspx";
document.Form1.submit();
}
}
// 取消推薦標(biāo)簽
function do_tag_unvouch(){
if (sc_select_count($n('Tag'))>0){
if (confirm("您確定要取消推薦選中的標(biāo)簽嗎?")){
document.Form1.Command.value = "Tag_Unvouch";
document.Form1.action = "../Service/Option_Action.aspx";
document.Form1.submit();
}
}else{
window.alert("沒(méi)有選擇任何標(biāo)簽,無(wú)法執(zhí)行取消推薦操作。");
}
}
// ***********************************************************************************||
// 分類
// ***********************************************************************************||
// 增加新的分類
function do_sort_add_ready(obj, parentid){
obj.disabled = true;
window.open("../option/sort_detail.aspx?parentid="+parentid, "_self", "");
}
// 修改主題分類信息
function do_sort_edit_ready(obj, id, parentid){
obj.disabled = true;
window.open("../option/sort_detail.aspx?sortid="+id+"&parentid="+parentid, "_self", "");
}
// 修改主題分類信息檢測(cè)腳本
function on_sort_edit_check(){
this.imageaffix = function(myimage){
var idotindex = myimage.lastIndexOf(".");
var affix = myimage.substring(idotindex, myimage.length);
return affix.toLowerCase();
}
if (trim(document.Form1.name.value)==""){
window.alert("分類名稱不能為空。");
document.Form1.name.focus();
return false;
}
if (trim(document.Form1.icon.value)!=""){
this.myaffixs = ".jpeg.jpg.gif.bmp.png";
if (myaffixs.indexOf(this.imageaffix(document.Form1.icon.value))<0){
window.alert("標(biāo)識(shí)圖片格式不正確,標(biāo)識(shí)圖片僅支持 JPEG GIF BMP PNG 格式。");
document.Form1.icon.focus();
return false;
}
}
document.Form1.bok.disabled = true;
return true;
}
// 刪除主題分類
function do_sort_delete(obj, id, parentid){
if (confirm("您確定要?jiǎng)h除此分類嗎?此操作將不可恢復(fù)。")){
obj.disabled = true;
window.open('../Service/Option_Action.aspx?Command=Sort_Delete&sortid='+id+'&parentid='+parentid, "_self", "");
}
}
// 分類權(quán)限設(shè)置
function do_sort_popem_ready(obj, id, parentid){
obj.disabled = true;
window.open("../option/sort_popem.aspx?sortid="+id+"&parentid="+parentid, "_self", "");
}
// ***********************************************************************************||
// 文件管理
// ***********************************************************************************||
// 重新排序
function do_file_order(){
document.Form1.submit();
}
// 查詢文件
function do_file_search(){
if (trim($("searchkey").value)==""){
window.alert("查詢關(guān)鍵字不能為空");
}else{
document.Form1.submit();
}
}
// 刪除文件
function do_file_deletes(){
if (sc_select_count($n('File'))>0){
if (confirm("您確定要?jiǎng)h除選中的文件嗎?")){
document.Form1.Command.value = "File_Deletes";
document.Form1.action = "../service/file_action.aspx";
document.Form1.submit();
}
}else{
window.alert("您沒(méi)有選擇任何文件,無(wú)法繼續(xù)操作");
}
}
// ***********************************************************************************||
// 注冊(cè)會(huì)員管理
// ***********************************************************************************||
// 重新排序
function do_user_order(){
document.Form1.submit();
}
// 查詢文件
function do_user_search(){
if (trim($("searchkey").value)==""){
window.alert("查詢關(guān)鍵字不能為空");
}else{
document.Form1.submit();
}
}
// 刪除會(huì)員
function do_user_deletes(){
if (sc_select_count($n('User'))>0){
if (confirm("您確定要?jiǎng)h除選中的會(huì)員嗎?")){
document.Form1.Command.value = "User_Deletes";
document.Form1.action = "../service/user_action.aspx";
document.Form1.submit();
}
}else{
window.alert("您沒(méi)有選擇任何會(huì)員,無(wú)法繼續(xù)操作");
}
}
// 修改分組為
function do_user_grade(){
if (trim(document.Form1.togradeid.value)=="" || trim(document.Form1.togradeid.value)=="0"){
window.alert("請(qǐng)先選擇目標(biāo)會(huì)員分組");
}else{
if (sc_select_count($n('User'))>0){
document.Form1.Command.value = "User_Grade";
document.Form1.action = "../service/user_action.aspx";
document.Form1.submit();
}else{
window.alert("您沒(méi)有選擇任何會(huì)員,無(wú)法繼續(xù)操作");
}
}
}
// ***********************************************************************************||
// 專輯管理
// ***********************************************************************************||
// 專輯重新排序
function do_special_order(){
document.Form1.submit();
}
// 查詢專輯
function do_special_search(){
if (trim($("searchkey").value)==""){
window.alert("查詢關(guān)鍵字不能為空");
}else{
document.Form1.submit();
}
}
// 刪除專輯
function do_special_deletes(){
if (sc_select_count($n('Special'))>0){
if (confirm("您確定要?jiǎng)h除選中的專輯嗎?")){
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -