Exemplo n.º 1
0
 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(' ', '_');
 }
Exemplo n.º 2
0
 public AdminMenuLink(string name, string link, ObjectRank rank, string idsuffix)
 {
     this.name     = name;
     this.link     = link;
     this.rank     = rank;
     this.idsuffix = idsuffix;
 }
Exemplo n.º 3
0
 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;
 }
Exemplo n.º 4
0
 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;
 }
Exemplo n.º 5
0
 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 AdminMenuLink(string name, string link, ObjectRank rank, string idsuffix)
 {
     this.name = name;
     this.link = link;
     this.rank = rank;
     this.idsuffix = idsuffix;
 }
Exemplo n.º 7
0
 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();
 }
Exemplo n.º 8
0
 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;
 }
Exemplo n.º 10
0
 public AjaxFormField(string fieldHTML, AjaxJavaScript runScript, string clientValidationFunctionName, ObjectRank rank)
 {
     FieldHTML = fieldHTML;
     RunScript = runScript;
     ClientValidationFunctionReference = clientValidationFunctionName;
     this.rank = rank;
 }
 public AdminSection(SprocketScript script, ObjectRank rank)
 {
     this.script = script;
     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;
 }
Exemplo n.º 14
0
 public AdminSection(string text, ObjectRank rank)
 {
     this.text = text;
     this.rank = rank;
 }
Exemplo n.º 15
0
        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);
        }
Exemplo n.º 16
0
 public AdminSection(Template template, ObjectRank rank)
 {
     this.template = template;
     this.rank     = rank;
 }
Exemplo n.º 17
0
 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);
 }
Exemplo n.º 18
0
 public AdminSection(object text, ObjectRank rank)
 {
     this.text = text.ToString();
     this.rank = rank;
 }
 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(' ', '_');
 }