需要高级登录功能帮助 [英] advanced login functionality help needed

查看:64
本文介绍了需要高级登录功能帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

这些天,我正在使用codeigniter,php和jquery开发一个系统,但仍处于登录表单,在我的登录场景中,我认为有一个高级情况.

我的系统中有不同类型的用户,这是一个医院系统,首先有一个要注册人员的人员,一个要查找旧记录(文件)的人员,一个要检查人员视线的人员和一名护士在病人去看医生后指导病人.因此我必须授予系统中所有这些人的许可.

现在,我将告诉您有关我的并发症的情况,有4个医生单元,每个单独的医生单元有2位医生,其中一名是初级医生,另一名是高级医生.因此,我的系统中总共有8位医生.患者分为这4个医生单位,因此我必须为每个医生提供一个UI,该UI能够处理在其所在单位注册的人员.

因为我认为如果可以将医生重定向到相关UI的登录名会更好.所以我需要创建一个登录名,一个人来输入用户名和密码,然后选择用户类型,在选择了该用户类型之后,如果用户是医生,则应该动态显示另一个组合框,并应给他有机会选择他相关的医生部门.

你们可以帮我实现此功能吗?参考链接或此类实现的教程,有关实现此功能的说明?一切都欢迎! :)

问候,
Rangana

Hi guys,

I''m developing a system with codeigniter, php and jquery these days, still in the login form, in my login scenario i have a advanced situation i think.

i have different kinds of users in my system,this is a hospital system, first of all there is a person to register people, a person to search old records(files), a person to check eye sight of the people, and a nurse to instruct the patients after they visit the doctor. so i have to give permission to all these people in my system.

now i will tell you about the complication i have, there are 4 doctor units, each separate doctor unit have 2 doctors, a junior one and a senior one. so altogether there are 8 doctors in my system. patients are divided to these 4doctor units, so i have to provide each doctor with a UI that is capable of handling people registered to his or her unit.

as i think form the login if i can redirect the doctors to relevant UI''s is will be better. so i need to create a login where a person come enter user name and password, then select the user type, after the selection of that user type, if the user is a doctor ,then another combo box should appear dynamically and he should be given the opportunity to select his relevant doctor unit.

can you guys help me to achieve this functionality?reference links or tutorials to such kind of implementations, instructions about implementing this functionality? all are welcome! :)

regards,
Rangana

推荐答案

那会很烦人,每次我想登录系统时都必须从许多不同的下拉菜单中进行选择?

选择用户类型",如果用户是医生",他的相关医生单位"-这是有关个人的所有信息,只需将其存储在数据库中即可.

用户只需输入用户名+密码即可登录系统.然后,您应该转到数据库并检索有关用户的信息,并采取所需的任何操作
That would be very annoying, every time I want to login to the system I have to select from lots of different drop downs?

''select the user type'', ''if the user is a doctor'', ''his relevant doctor unit'' - this is all information about an individual, just store it in the database.

the user should only have to enter username + password to login to your system. You should then go off to the database and retrieve the information about the user and take whatever actions you need to


如果我忘记了动态内容,它将真正保存下来时间,而是预先填充不可见的下拉菜单,并且仅在选择某些内容后才显示.

使下拉菜单可见,具体取决于其他用户的选定值,
在表单上创建一个下拉列表,将"AutoPostBack"属性设置为True,
在该下拉菜单的事件中,将代码放置在"SelectedItemChanged"事件或类似的
因此,当用户从该下拉菜单中选择一项时,
if i were u i''d forget the dynamic stuff, it wuddnt really save time, instead have invisible drop downs pre-populated and only show them if certain things are selected.

to make a dropdown visible depending on another''s selected value,
create a dropdown on your form, set the ''AutoPostBack'' Property to True,
in the events for that dropdown, place code in the ''SelectedItemChanged'' event or similar
so when the user selects an item from this dropdown,
if(DropDown1.SelectedItem.Text = "Surgeon")
{
    DropDownSurgeon.visible = true;
}


依此类推,对于每个下拉菜单,您将拥有一个下拉列表层次结构,该层次结构显示并隐藏基于先前选定项目的每个列表.

重定向到基于所选项目的url,其基本思路相同-
在上一个下拉列表中的on selected item changes事件中,您要放置2个case语句或一些if语句,


and so on, for each dropdown, then you''l have a dropdown heirarchy that show''s and hides each based on the previous selected item.

to redirect to an url based on a selected item its basically the same idea-
in the on selected item changed event for the last dropdown, your gonna hav 2 put a case statement, or some if statements,

if(DropDownFinalDrpDwn.selectedItem.Text = "SurguryScreen"){
 Response.Redirect("~SurgeryScreen.aspx");
}


这篇关于需要高级登录功能帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆