//复制脚本到导航窗口脚本定义:nag_win_open //图标放在程序目录 如:oit_setup\ico //只需修改图片文件名为导航图标,同名即可 //可自由替换,图片格式:png int main() { gui_set_text("Label_Oem2",pub_para_get('corp_name')); gui_hide("SpeedButton_Hand_Shake"); gui_hide("Label_Ad"); gui_set_text("Label_Sys_Name",'江枫渔火对愁眠 ,'); gui_show("Label_Sys_Name"); gui_set_x("Label_Sys_Name",630); gui_set_y("Label_Sys_Name",16); gui_set_font_size("Label_Sys_Name",11); gui_set_text("Label_Sys_Name_2",'不与弱智论长短 。'); gui_show("Label_Sys_Name_2"); gui_set_x("Label_Sys_Name_2",706); gui_set_y("Label_Sys_Name_2",42); gui_set_font_size("Label_Sys_Name_2",11); string sql,uid; uid=get_user_id(); sql="select mup_user_nag_group.name,mup_user_nag_group_item.name from mup_user_nag_group_item,mup_user_nag_group where item_type='A'"; sql+="and mup_user_nag_group.frame_id=mup_user_nag_group_item.frame_id and mup_user_nag_group_item.frame_id in (select frame_id from mup_user_frame where user_id ='"+uid+"')"; sql+="and mup_user_nag_group_item.nag_group_id=mup_user_nag_group.nag_group_id"; db_run(sql); int id; for(id=1;id <= db_row_count();id++) { nag_ico_set_img_file(db_res(0),db_res(1),get_home_path()+"\ico\"+db_res(1)+".png"); db_next(); } return 1; }; |