Beispiel #1
0
    string ShowNewForm()
    {
        string s    = "";
        string star = "<font color='red'>*</font>";

        s += "<tr><td>First Name:" + star + "</td><td><input type='text' maxlength='100' id='txtFirstName' name='txtFirstName' value='" + this.user.first_name + "'></td></tr>";
        s += "<tr><td>Last Name:" + star + "</td><td><input type='text' maxlength='100' id='txtLastName' name='txtLastName' value='" + this.user.last_name + "'></td></tr>";
        s += "<tr><td>Email:" + star + "</td><td><input type='text' maxlength='100' id='txtEmail' name='txtEmail' value='" + this.user.email + "'></td></tr>";
        s += "<tr><td>Login:"******"</td><td><input type='text' maxlength='100' id='txtLogin' name='txtLogin' value='" + this.user.login + "'></td></tr>";
        s += "<tr><td>Password:"******"</td><td><input type='password' maxlength='100' id='txtPwd' name='txtPwd' value='" + ClsUtil.getPostVal(Request["txtPwd"]) + "'></td></tr>";
        s += "<tr><td>Password (repeat):" + star + "</td><td><input type='password' maxlength='100' id='txtPwd2' name='txtPwd2' value='" + ClsUtil.getPostVal(Request["txtPwd2"]) + "'></td></tr>";
        s += "<tr><td>Note:</td><td><input type='text' maxlength='100' id='txtNote' name='txtNote' value='" + this.user.note + "'></td></tr>";
        s += "<tr><td>User Type:" + star + "</td><td>" + ClsUser.writeUserTypeList("txtUserType", "txtUserType", this.user.gid) + "</td></tr>";
        s += "<tr><td>Disabled:</td><td>" + ClsUser.writeUserStatusList("txtDisabled", "txtDisabled", this.user.disabled) + "</td></tr>";

        s = "<table class='T1'>" + s + "</table>";

        return("<table><tr><td valign='top'>" + s + "</td></table>" +
               "<br/><input value=\"Add New User\" type=\"button\" onclick=\"javascript:add();\" />");
    }
Beispiel #2
0
    string ShowEditForm()
    {
        string s    = "";
        string star = "<font color='red'>*</font>";

        s += "<tr><td>First Name:" + star + "</td><td><input type='text' maxlength='10' id='txtFirstName' name='txtFirstName' value='" + this.user.first_name + "'></td></tr>";
        s += "<tr><td>Last Name:" + star + "</td><td><input type='text' maxlength='100' id='txtLastName' name='txtLastName' value='" + ClsUtil.textboxEncode(this.user.last_name) + "'></td></tr>";
        s += "<tr><td>Email:" + star + "</td><td><input type='text' maxlength='100' id='txtEmail' name='txtEmail' value='" + ClsUtil.textboxEncode(this.user.email) + "'></td></tr>";
        s += "<tr><td>Login:</td><td>&nbsp;" + ClsUtil.textboxEncode(this.user.login) + "</td></tr>";
        s += "<tr><td>Note:</td><td><input type='text' maxlength='100' id='txtNote' name='txtNote' value='" + ClsUtil.textboxEncode(this.user.note) + "'></td></tr>";

        s += "<tr><td>User Type:" + star + "</td><td>&nbsp;" + ClsUser.writeUserTypeList("txtUserType", "txtUserType", this.user.gid) + "</td></tr>";

        s += "<tr><td>Created By:</td><td>&nbsp;" + ClsUtil.textboxEncode(this.user.create_by) + "</td></tr>";
        s += "<tr><td>Created Datetime:</td><td>&nbsp;" + ClsUtil.textboxEncode(this.user.create_datetime) + "</td></tr>";
        s += "<tr><td>Last Updated By:</td><td>&nbsp;" + ClsUtil.textboxEncode(this.user.last_update_by) + "</td></tr>";
        s += "<tr><td>Last Updated Datetime:</td><td>&nbsp;" + ClsUtil.textboxEncode(this.user.last_update_datetime) + "</td></tr>";
        s += "<tr><td>Disabled:</td><td>&nbsp;" + ClsUser.writeUserStatusList("txtDisabled", "txtDisabled", this.user.disabled) + "</td></tr>";

        s = "<table class='T1'>" + s + "</table>";

        return("<table>" + s + "</table>" +
               "<br/><input value=\"Submit Change\" type=\"button\" onclick=\"javascript:update();\" />");
    }