Exemplo n.º 1
0
echo NavigationControl::getNavigationLink($module, "users");
?>
" class="btn btn-inverse">
							<i class="icon-white icon-remove-sign"></i> <?php 
echo _('Cancel');
?>
</a>  
							<input type="submit" class="btn btn-primary" value="<?php 
echo _('Save');
?>
"/>
						</div>
						<div class="clear_float"></div>
					</form>
				</div>
			</div><!--/row-->
		</div><!--/span-->
	</div><!--/row-->
</div>
<script>
<?php 
echo $do_crmfields->get_js_form_validation($module_id, $module . "__addRecord", "add");
?>
$.validator.addMethod("notEqual", function(value,element,param) {
	return this.optional(element) || value != param;
},"Please select a value ");

$.validator.addMethod("alphaNumericUnderscore", function(value,element,param) {
	return this.optional(element) || /^[a-zA-Z0-9_]+$/i.test(value);
},"Only letter numbers and underscore is allowed for username "); 
</script>
Exemplo n.º 2
0
Arquivo: edit.php Projeto: sQcrm/sqcrm
echo NavigationControl::getNavigationLink($module, "users");
?>
" class="btn btn-default active">
						<i class="glyphicon glyphicon-remove"></i> <?php 
echo _('Cancel');
?>
</a>  
						<input type="submit" class="btn btn-primary" value="<?php 
echo _('Save');
?>
"/>
					</div>
					<div class="clear_float"></div>
					</form>
				</div>
			</div><!--/row-->
		</div><!--/span-->
	</div><!--/row-->
</div>
<script>
<?php 
echo $do_crmfields->get_js_form_validation($module_id, $module . "__editRecord", "edit", $sqcrm_record_id);
?>
$.validator.addMethod("notEqual", function(value,element,param) {
	return this.optional(element) || value != param;
},"Please select a value ");

$.validator.addMethod("alphaNumericUnderscore", function(value,element,param) {
	return this.optional(element) || /^[a-zA-Z0-9_]+$/i.test(value);
},"Only letter numbers and underscore is allowed for username "); 
</script>