DwZone Forum DwZone Forum
Welcome to the DwZone-it Forum
 
  FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups  
    RegisterRegister -->   LoginLogin  
Form Validator  
DwZone Forum Index -> Form Validator
.
Moderators: AdministratorsModerators 
Hint: For improved responsiveness, use Internet Explorer 4 (or above) with Javascript enabled, choose 'Dynamic' from the View dropdown and hit 'Set Options' to save your changes.
New Topic Search for
 View     Per page     Messages Since 
Messages 1 to 10 of 23 (Total: 23) First |  Prev |  Next |  Last  
 Subject Author Date  
   Php Bootstrap Validator   
View this persons public profile  MichelKant   9:26 3 Jun 2018  
   Php Bootstrap Validator  
View this persons public profile  Gerardo   18:29 17 May 2017  
   Re: Php Bootstrap Validator  
View this persons public profile  Gianluigi   9:49 18 May 2017  
    Re: Php Bootstrap Validator  
View this persons public profile  Gerardo   15:28 21 May 2017  
 
Now I create this

<?php
//****************
// Bootstrap Validator
//****************
require_once('dwzBootstrapValidator/dwzBootstrapValidator.php');
?><?php
//*********************************
// http://www.DwZone-it.com
// Bootstrap Validator
// Version 1.0.1
// Start Code
//*********************************
$dwzBV = new dwzBootstrapValidator();
$dwzBV->Init();
$dwzBV->SetParams("form1@dwz@500@dwz@false@dwz@true@dwz@true@dwz@false@dwz@false@dwz@false@dwz@true@dwz@glyphicon glyphicon-ok@dwz@@dwz@glyphicon glyphicon-remove@dwz@@dwz@The field is not valid@dwz@None@dwz@Label@dwz@@dwz@default");
$dwzBV->addField("cmbCategory", "select", "required@col@Required@col@The field is not valid@col@@col@@col@@col@@col@@col@", "Inherited@col@@col@@col@@col@");
$dwzBV->addField("txtName", "text", "alphabetic@col@Alphabetic [a-z]@col@The field is not valid@col@@col@@col@@col@@col@@col@", "Inherited@col@@col@@col@@col@");
$dwzBV->addField("txtMail", "text", "email@col@E-mail@col@The field is not valid@col@false@col@@col@@col@@col@@col@", "Inherited@col@@col@@col@@col@");
$dwzBV->addField("txtAmount", "text", "numeric@col@Numeric [0-9]@col@The field is not valid@col@@col@@col@@col@@col@@col@", "Inherited@col@@col@@col@@col@");
$dwzBV->Validate();
//***********************
//End Code
//***********************
?><!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/bootstrap-combobox.css">
<link rel="stylesheet" type="text/css" href="css/bootstrap-datetimepicker.min.css">
<link rel="stylesheet" type="text/css" href="css/select2.min.css">
<link rel="stylesheet" type="text/css" href="css/select2-bootstrap.css">


<style type="text/css">
.central_left{
padding-left:35px;
padding-right:35px;
}
.central_right{
padding-left:35px;
padding-right:35px;
}
.container{
padding-left:30px;
padding-right:30px;
}
</style>
</head>

<body class="panel-footer">

<form id="form1" name="form1">

<div class="container col-xs-12 " >

<div class="row">
<div class="form-group col-xs-12 " style="text-align:center">
<h2 class="alert alert-info" style="padding:10px;"><span style="text-decoration:underline;" >Bootstrap Validation Demo</span></h2>
</div>
</div>

<div class="row">
<div class="form-group col-xs-12 col-sm-6 central_right">
<label for="cmbCategory" class="control-label">Default combobox<font color="#999999"><i> - Required</i></font></label>
<div class="input-group">
<div class="input-group-addon"><span class="glyphicon glyphicon-tags" ></span> </div>
<select id="cmbCategory" class="combobox form-control" >
<option value="" ></option>
<option value="1">Desktop</option>
<option value="2">Portable</option>
<option value="3">Monitor</option>
<option value="4">Printer</option>
<option value="5">Router</option>
</select>
</div>
</div>




<div class="row">
<div class="form-group col-xs-12 col-sm-6 central_right">
<label for="txtName" class="control-label">Textfield without addon<font color="#999999"><i> - Required</i></font></label>
<input type="text" class="form-control" id="txtName" placeholder="Name" >
</div>
<div class="form-group col-xs-12 col-sm-6 central_left ">
<label for="txtMail" class="control-label">Textfield with single addon<font color="#999999"><i> - Required valid e-mail</i></font></label>
<div class="input-group">
<div class="input-group-addon">@</div>
<input type="text" class="form-control" id="txtMail" placeholder="E-Mail" >
</div>
</div>
</div>


<div class="row">
<div class="form-group col-xs-12 col-sm-6 central_right">
<label for="txtAmount" class="control-label">Textfield with double addon<font color="#999999"><i> - Required Double max value 9999,99</i></font></label>
<div class="input-group">
<div class="input-group-addon"> <span class="glyphicon glyphicon-cog" style="height:20px;top:5px;" ></span> </div>
<input type="text" class="form-control" id="txtAmount" placeholder="Amount" >
<div class="input-group-addon"> <span class="glyphicon glyphicon-euro" style="height:20px;top:5px;" ></span> </div>
</div>
</div>

</div>
</div>




<div class="row">
<div class="col-xs-12 col-sm-4 col-sm-offset-2">
<button type="submit" class="btn btn-primary btn-lg btn-block">Submit</button>
</div>
</div>
</form>

<script src="js/jquery-3.2.1.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/bootstrap-combobox.js"></script>
<script src="js/moment.js"></script>
<script src="js/bootstrap-datetimepicker.min.js"></script>
<script src="js/bootstrap-checkbox.min.js"></script>
<script src="js/select2.full.min.js"></script><script type="text/javascript" src="dwzBootstrapValidator/validator.js"></script>


</body><?php
//*********************************
// Bootstrap Validator
//*********************************
$dwzBV->Insert();
//*********************************
?>
</html>


But not work.

In the dwzBootstrapValidator directory I have this files:

dwzBootstrapValidator.php
dwzDataBase.php
dwzString.php
validator.js

The examples codes in the DEMO are very differents.


What am I doing wrong?

Thanks.


 
Reply to this current thread  View this persons public profile  Send Private Message
   Re: Php Bootstrap Validator  
View this persons public profile  Gianluigi   10:17 22 May 2017  
   Re: Php Bootstrap Validator  
View this persons public profile  Gerardo   16:42 22 May 2017  
   Re: Php Bootstrap Validator  
View this persons public profile  Gianluigi   0:14 23 May 2017  
   Re: Php Bootstrap Validator  
View this persons public profile  Gerardo   13:19 23 May 2017  
   Re: Php Bootstrap Validator  
View this persons public profile  Gianluigi   13:52 23 May 2017  
   DWZone not appearing in behaviors  
View this persons public profile  MeganDouglas   4:15 30 Nov 2015  
Last Visit: Thursday 9 Apr, 2020 3:42 am First |  Prev |  Next |  Last  
 Login
Username:  Password:    
Read Message Read Message   Unread message Unread message
Read message [popular] Read message [popular]   Unread message [popular] Unread message [popular]
Read message [locked] Read message [locked]   Unread message [locked] Unread message [locked]
All times are GMT+7

Jump to: