public AdminMenuLink(string name, string link, ObjectRank rank) { this.name = name; this.link = link; this.rank = rank; this.idsuffix = link.Trim('/').Replace(':', '_').Replace('/', '_').Replace('\\', '_').Replace('.', '_').Replace(' ', '_'); }
public AdminMenuLink(string name, string link, ObjectRank rank, string idsuffix) { this.name = name; this.link = link; this.rank = rank; this.idsuffix = idsuffix; }
public AjaxFormSelectField(string fieldLabel, string fieldName, AjaxJavaScript runScript, string clientValidationFunctionReference, ObjectRank rank, string onchangeScript, string nothingSelectedLabel, string selectedValue) { SetFields(fieldLabel, fieldName, "", runScript, clientValidationFunctionReference, validateOnServer, rank); OnchangeScript = onchangeScript; NothingSelectedLabel = nothingSelectedLabel; SelectedValue = selectedValue; }
protected void SetFields(string fieldLabel, string fieldName, string fieldHTML, AjaxJavaScript runScript, string clientValidationFunctionReference, bool validateOnServer, ObjectRank rank) { this.fieldLabel = fieldLabel; this.fieldName = fieldName; this.fieldHTML = fieldHTML; this.validateOnServer = validateOnServer; this.runScript = runScript; this.rank = rank; this.clientValidationFunctionReference = clientValidationFunctionReference; }
public AjaxFormStandardField(string fieldLabel, string fieldName, string fieldHTML, AjaxJavaScript runScript, string clientValidationFunctionReference, bool validateOnServer, ObjectRank rank) { SetFields(fieldLabel, fieldName, fieldHTML, runScript, clientValidationFunctionReference, validateOnServer, rank); }
public AjaxFormTextAreaField(string fieldLabel, string fieldName, bool readOnly, string className, string style, string fieldValue, AjaxJavaScript runScript, string clientValidationFunctionReference, bool validateOnServer, ObjectRank rank) { this.readOnly = readOnly; this.fieldValue = fieldValue; this.className = className; this.style = style; this.fieldName = fieldName; this.fieldLabel = fieldLabel; this.fieldName = fieldName; this.validateOnServer = validateOnServer; this.runScript = runScript; this.rank = rank; this.clientValidationFunctionReference = clientValidationFunctionReference; this.fieldHTML = Generate(); }
public AdminSection(SprocketScript script, ObjectRank rank) { this.script = script; this.rank = rank; }
public AdminSection(object text, ObjectRank rank) { this.text = text.ToString(); this.rank = rank; }
public AjaxFormField(string fieldHTML, AjaxJavaScript runScript, string clientValidationFunctionName, ObjectRank rank) { FieldHTML = fieldHTML; RunScript = runScript; ClientValidationFunctionReference = clientValidationFunctionName; this.rank = rank; }
public AdminSection(Template template, ObjectRank rank) { this.template = template; this.rank = rank; }
public AdminSection(string text, ObjectRank rank) { this.text = text; this.rank = rank; }
public AjaxFormPasswordField(string fieldLabel, int?maxLength, string className, string style, ObjectRank rank, bool multilingual, bool requiredField, bool allowBlankPassword) { string errNoMatch = multilingual ? "{?form-error-different-passwords?}" : "The passwords entered must match"; string errNoPassword = multilingual ? "{?form-error-password-required?}" : "Please enter a password"; string pwvf = "function(value){" + "if($('Password2').value != value) " + "return '" + errNoMatch + "'; " + "else if(value.length == 0) return '" + errNoPassword + "'; " + " else return null;}" ; string pwvf2 = "function(value){" + "if($('Password2').value != value) " + "return '" + errNoMatch + "'; " + "else return null;}" ; string fld = "<input type=\"password\" name=\"Password2\" id=\"Password2\""; if (maxLength != null) { fld += " maxlength=\"" + maxLength + "\""; } if (className != null) { fld += " class=\"" + className + "\""; } if (style != null) { fld += " style=\"" + style + "\""; } fld += " />"; fld += "<input type=\"password\" name=\"Password1\" id=\"Password1\""; if (maxLength != null) { fld += " maxlength=\"" + maxLength + "\""; } if (className != null) { fld += " class=\"" + className + "\""; } if (style != null) { fld += " style=\"" + style + "\""; } fld += " />"; SetFields(fieldLabel, "Password1", fld, null, allowBlankPassword ? pwvf2 : pwvf, true, rank); }
public AjaxFormCheckboxField(string fieldLabel, string fieldName, bool isChecked, bool readOnly, AjaxJavaScript runScript, string clientValidationFunctionReference, bool validateOnServer, ObjectRank rank) { this.isChecked = isChecked; this.readOnly = readOnly; SetFields(fieldLabel, fieldName, null, runScript, clientValidationFunctionReference, validateOnServer, rank); }