ID: 550761 --
عرائض - ملف المحامي
ID: 550591 --
Error x012; Loading XML XSLXMLProcessing.GenerateXMLXSLResultFromSQL:93
Error x012;XSLXMLProcessing .(Load Xsl) error Message:System.Xml.XmlException: '<', hexadecimal value 0x3C, is an invalid attribute character. Line 129, position 45.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.ParseAttributeValueSlow(Int32 curPos, Char quoteChar, NodeData attr)
at System.Xml.XmlTextReaderImpl.ParseAttributes()
at System.Xml.XmlTextReaderImpl.ParseElement()
at System.Xml.XmlTextReaderImpl.ParseElementContent()
at System.Xml.Xsl.Xslt.XsltInput.ReadElement()
at System.Xml.Xsl.Xslt.XsltInput.ReadNextSibling()
at System.Xml.Xsl.Xslt.XsltLoader.LoadInstructions(List`1 content, InstructionFlags flags)
at System.Xml.Xsl.Xslt.XsltLoader.LoadLiteralResultElement(Boolean asStylesheet)
at System.Xml.Xsl.Xslt.XsltLoader.LoadInstructions(List`1 content, InstructionFlags flags)
at System.Xml.Xsl.Xslt.XsltLoader.LoadLiteralResultElement(Boolean asStylesheet)
at System.Xml.Xsl.Xslt.XsltLoader.LoadInstructions(List`1 content, InstructionFlags flags)
at System.Xml.Xsl.Xslt.XsltLoader.LoadLiteralResultElement(Boolean asStylesheet)
at System.Xml.Xsl.Xslt.XsltLoader.LoadInstructions(List`1 content, InstructionFlags flags)
at System.Xml.Xsl.Xslt.XsltLoader.LoadLiteralResultElement(Boolean asStylesheet)
at System.Xml.Xsl.Xslt.XsltLoader.LoadInstructions(List`1 content, InstructionFlags flags)
at System.Xml.Xsl.Xslt.XsltLoader.LoadLiteralResultElement(Boolean asStylesheet)
at System.Xml.Xsl.Xslt.XsltLoader.LoadInstructions(List`1 content, InstructionFlags flags)
at System.Xml.Xsl.Xslt.XsltLoader.LoadTemplate(NsDecl stylesheetNsList)
at System.Xml.Xsl.Xslt.XsltLoader.LoadRealStylesheet()
at System.Xml.Xsl.Xslt.XsltLoader.LoadDocument()
at System.Xml.Xsl.Xslt.XsltLoader.LoadStylesheet(XmlReader reader, Boolean include)XSLT compile error., Source:System.Data.SqlXml
XSLContent:<?xml version="1.0" encoding="UTF-16"?>
<xsl:stylesheet
version="1.0"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:fn="http://www.w3.org/2005/xpath-functions"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:msxsl="urn:schemas-microsoft-com:xslt"
xmlns:math="http://exslt.org/math"
xmlns:commonfn="http://exslt.org/commonfn"
xmlns:xlink="http://xlink/"
exclude-result-prefixes="atom math msxsl commonfn xs fn xlink"
extension-element-prefixes="math msxsl">
<xsl:import href="http://cdn.cscoitcdn.com/General/Adminv4.7.5/RTL/GlobalFunctionsv2.xsl" ></xsl:import>
<xsl:output method="html" encoding="UTF-16" indent="yes" omit-xml-declaration="yes" version="4.0"></xsl:output>
<xsl:param name="AllowEditMode"></xsl:param>
<xsl:decimal-format name="euro" decimal-separator="." grouping-separator=","></xsl:decimal-format>
<xsl:template name="string-replace-all">
<xsl:param name="text" />
<xsl:param name="replace" />
<xsl:param name="by" />
<xsl:choose>
<xsl:when test="contains($text, $replace)">
<xsl:value-of select="substring-before($text,$replace)" />
<xsl:value-of select="$by" />
<xsl:call-template name="string-replace-all">
<xsl:with-param name="text"
select="substring-after($text,$replace)" />
<xsl:with-param name="replace" select="$replace" />
<xsl:with-param name="by" select="$by" />
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$text" />
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="Empty">
<xsl:if test="$gisLocal='True' or $gisLocal='yes'">
<div class="alert alert-danger alert-nobottom alert-dismissable " style="direction:ltr;max-width:800px;float:left;">
<!--XMLReturnIfEmptySQLExecution-->
<button class="close" aria-hidden="true" type="button" data-dismiss="alert" onclick="$(this).parent().remove();"></button>
at NameSpace:<xsl:value-of select="$NameSpace"/><br/>
DBNameSpace = <xsl:value-of select="$DBNameSpace"/> <br/>
ModuleKey = <xsl:value-of select="$ModuleKey"/> <br/>
iLanguage = <xsl:value-of select="@iLanguage"/> <br/>
gPageID = <xsl:value-of select="$gPageID"/> <br/>
gTemplateID = <xsl:value-of select="@TemplateID"/> <br/>
gisLocal = <xsl:value-of select="$gisLocal"/> <br/>
gPageVariableName = <xsl:value-of select="$gPageVariableName"/> <br/>
this.VariableName = 3raid.comPersonalProfile <br/>
<br/>
<br/>550761 <br/>
There is an error in retriving data, no data.
<br/>
<br/>
<pre lang="xml" style="height: auto;max-height: 200px;resize: both;overflow: auto; background-color: #eeeeee;word-break: normal !important;word-wrap: normal !important;white-space: pre !important;"><xsl:value-of select="."/></pre>
</div>
</xsl:if>
</xsl:template>
<xsl:param name="MemberID"></xsl:param>
<xsl:template match="Tree"><!--
////550761.ملف المحامي Start
/////550761.ملف المحامي END
-->
<xsl:if test="$AllowEditMode='True'"><xsl:call-template name="EditMode"/></xsl:if><!--and Bool01='1'-->
<xsl:element name="ul" >
<xsl:attribute name="id">top_menu</xsl:attribute>
<xsl:if test="$MemberID!= '' "><xsl:attribute name="class">drop_user</xsl:attribute></xsl:if>
<xsl:if test="$MemberID= '' "><xsl:apply-templates select="Data/children[Num01=0 or Num01 =2]" mode="Part" /></xsl:if>
<xsl:if test="$MemberID!= '' "><xsl:apply-templates select="Data/children[Num01=1 or Num01 =2]" mode="PartLogin" /></xsl:if>
<li>
<div class="styled-select lang-selector">
<select>
<option value="KSA" selected="selected">المملكة العربية السعودية</option>
<option value="UAE" >الإمارات العربية المتحدة</option>
<option value="Jordan">المملكة الاردنية الهاشمية</option>
<option value="Lebanon">الجمهورية اللبنانية</option>
<option value="Egypt">جمهورية مصر العربية</option>
</select>
</div>
</li>
</xsl:element>
</xsl:template>
<xsl:template match="children" mode="Part">
<xsl:element name="li" >
<xsl:if test="children">
<a href="#" class="{AttClass}">
<xsl:value-of select="RecordTitleAR"/><xsl:text>	</xsl:text>
</a>
<div class="dropdown-menu ">
<xsl:apply-templates select="children" mode="Block"/>
</div>
</xsl:if>
<xsl:if test="not(children)">
<xsl:element name="a" >
<xsl:attribute name="id"><xsl:value-of select="AttId"/></xsl:attribute>
<xsl:attribute name="class"><xsl:value-of select="AttClass"/></xsl:attribute>
<xsl:attribute name="href"><xsl:value-of select="AttHref"/></xsl:attribute>
<xsl:if test="MediaURL!=''"><img class="{Text25003}" src="{MediaURL}"/></xsl:if>
<xsl:if test="RecordTitleAR!=''"><xsl:text>	</xsl:text><xsl:value-of select="RecordTitleAR"/></xsl:if>
</xsl:element>
</xsl:if>
</xsl:element>
</xsl:template>
<xsl:template match="children" mode="PartLogin">
<li>
<div class="dropdown user clearfix">
<a href="#" data-toggle="dropdown">
<figure><img src="{//Tree/MembershipBase/ThumbPictureFileName}" alt=""/></figure><xsl:value-of select="//Tree/MembershipBase/FullNameAR"/>
</a>
<div class="dropdown-menu">
<div class="dropdown-menu-content">
<ul>
<li><a href="#0"><i class="icon_cog"></i>لوحة التحكم</a></li>
<li><a href="#0"><i class="icon_document"></i>عروض الاسعار</a></li>
<li><a href="ID: 550790 -- <div class='HAEError'>Error x012; Loading XML XSLXMLProcessing.GenerateXMLXSLResultFromSQL:93<br/>Error x012;XSLXMLProcessing .(Load Xsl) error Message:The variable or parameter 'gisLocal' is either not defined or it is out of scope., Source:System.Xml<br><b>XSLContent:</b><?xml version="1.0" encoding="UTF-16"?>
<xsl:stylesheet
version="1.0"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:fn="http://www.w3.org/2005/xpath-functions"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:msxsl="urn:schemas-microsoft-com:xslt"
xmlns:math="http://exslt.org/math"
xmlns:commonfn="http://exslt.org/commonfn"
xmlns:xlink="http://xlink/"
exclude-result-prefixes="atom math msxsl commonfn xs fn xlink"
extension-element-prefixes="math msxsl">
<xsl:import href="http://cdn.cscoitcdn.com/General/Adminv4.7.5/RTL/GlobalFunctionsv2.xsl" ></xsl:import>
<xsl:output method="html" encoding="UTF-16" indent="yes" omit-xml-declaration="yes" version="4.0"></xsl:output>
<xsl:param name="AllowEditMode"></xsl:param>
<xsl:decimal-format name="euro" decimal-separator="." grouping-separator=","></xsl:decimal-format>
<xsl:template name="string-replace-all">
<xsl:param name="text" />
<xsl:param name="replace" />
<xsl:param name="by" />
<xsl:choose>
<xsl:when test="contains($text, $replace)">
<xsl:value-of select="substring-before($text,$replace)" />
<xsl:value-of select="$by" />
<xsl:call-template name="string-replace-all">
<xsl:with-param name="text"
select="substring-after($text,$replace)" />
<xsl:with-param name="replace" select="$replace" />
<xsl:with-param name="by" select="$by" />
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$text" />
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="Empty">
<xsl:if test="$gisLocal='True' or $gisLocal='yes'">
<div class="alert alert-danger alert-nobottom alert-dismissable " style="direction:ltr;max-width:800px;float:left;">
<!--XMLReturnIfEmptySQLExecution-->
<button class="close" aria-hidden="true" type="button" data-dismiss="alert" onclick="$(this).parent().remove();"></button>
at NameSpace:<xsl:value-of select="$NameSpace"/><br/>
DBNameSpace = <xsl:value-of select="$DBNameSpace"/> <br/>
ModuleKey = <xsl:value-of select="$ModuleKey"/> <br/>
iLanguage = <xsl:value-of select="@iLanguage"/> <br/>
gPageID = <xsl:value-of select="$gPageID"/> <br/>
gTemplateID = <xsl:value-of select="@TemplateID"/> <br/>
gisLocal = <xsl:value-of select="$gisLocal"/> <br/>
gPageVariableName = <xsl:value-of select="$gPageVariableName"/> <br/>
this.VariableName = 3raid.comPersonalProfile <br/>
<br/>
<br/>550761 <br/>
There is an error in retriving data, no data.
<br/>
<br/>
<pre lang="xml" style="height: auto;max-height: 200px;resize: both;overflow: auto; background-color: #eeeeee;word-break: normal !important;word-wrap: normal !important;white-space: pre !important;"><xsl:value-of select="."/></pre>
</div>
</xsl:if>
</xsl:template>
<xsl:template match="Tree"><![CDATA[srvLoginWebPartConfig?FormName=LogOutForm&FormAction=logout&FormType=json&iLanguage=2&FormID=]]><xsl:value-of select="Form/FormID/GDBKeyID" disable-output-escaping="yes" /><![CDATA[&ret_page=?C=3raid.com]]></xsl:template>
</xsl:stylesheet></div>"><i class="icon_key"></i>خروج من النظام</a></li>
</ul>
</div>
</div>
</div>
<!-- /dropdown -->
</li>
</xsl:template>
<xsl:template match="children" mode="Link" >
<li ><a href="{Text50002}"><xsl:value-of select="RecordTitleAR"/></a></li>
</xsl:template>
</xsl:stylesheet>
Menu
عبدالرحمن بن محمد عبدالرحمن الغملاس
مقدمة
تفاصيل عن المحامي يكتبها صاحب الحساب
المزيد
ID: 550605 -- Error x012; Loading XML XSLXMLProcessing.GenerateXMLXSLResultFromSQL:93
Error x012;XSLXMLProcessing .(Load Xsl) error Message:The variable or parameter 'gisLocal' is either not defined or it is out of scope., Source:System.Xml
XSLContent:<?xml version="1.0" encoding="UTF-16"?>
<xsl:stylesheet
version="1.0"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:fn="http://www.w3.org/2005/xpath-functions"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:msxsl="urn:schemas-microsoft-com:xslt"
xmlns:math="http://exslt.org/math"
xmlns:commonfn="http://exslt.org/commonfn"
xmlns:xlink="http://xlink/"
exclude-result-prefixes="atom math msxsl commonfn xs fn xlink"
extension-element-prefixes="math msxsl">
<xsl:import href="http://cdn.cscoitcdn.com/General/Adminv4.7.5/RTL/GlobalFunctionsv2.xsl" ></xsl:import>
<xsl:output method="html" encoding="UTF-16" indent="yes" omit-xml-declaration="yes" version="4.0"></xsl:output>
<xsl:param name="AllowEditMode"></xsl:param>
<xsl:decimal-format name="euro" decimal-separator="." grouping-separator=","></xsl:decimal-format>
<xsl:template name="string-replace-all">
<xsl:param name="text" />
<xsl:param name="replace" />
<xsl:param name="by" />
<xsl:choose>
<xsl:when test="contains($text, $replace)">
<xsl:value-of select="substring-before($text,$replace)" />
<xsl:value-of select="$by" />
<xsl:call-template name="string-replace-all">
<xsl:with-param name="text"
select="substring-after($text,$replace)" />
<xsl:with-param name="replace" select="$replace" />
<xsl:with-param name="by" select="$by" />
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$text" />
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="Empty">
<xsl:if test="$gisLocal='True' or $gisLocal='yes'">
<div class="alert alert-danger alert-nobottom alert-dismissable " style="direction:ltr;max-width:800px;float:left;">
<!--XMLReturnIfEmptySQLExecution-->
<button class="close" aria-hidden="true" type="button" data-dismiss="alert" onclick="$(this).parent().remove();"></button>
at NameSpace:<xsl:value-of select="$NameSpace"/><br/>
DBNameSpace = <xsl:value-of select="$DBNameSpace"/> <br/>
ModuleKey = <xsl:value-of select="$ModuleKey"/> <br/>
iLanguage = <xsl:value-of select="@iLanguage"/> <br/>
gPageID = <xsl:value-of select="$gPageID"/> <br/>
gTemplateID = <xsl:value-of select="@TemplateID"/> <br/>
gisLocal = <xsl:value-of select="$gisLocal"/> <br/>
gPageVariableName = <xsl:value-of select="$gPageVariableName"/> <br/>
this.VariableName = 3raid.comPersonalProfile <br/>
<br/>
<br/>550761 <br/>
There is an error in retriving data, no data.
<br/>
<br/>
<pre lang="xml" style="height: auto;max-height: 200px;resize: both;overflow: auto; background-color: #eeeeee;word-break: normal !important;word-wrap: normal !important;white-space: pre !important;"><xsl:value-of select="."/></pre>
</div>
</xsl:if>
</xsl:template>
<!--
https://jqueryvalidation.org/documentation/
-->
<xsl:variable name="HideFieldCaption" select="//Tree/EditForm/Bool01"/>
<xsl:variable name="HideFieldHelpText" select="//Tree/EditForm/Bool02"/>
<xsl:variable name="FormTableName" select="//Tree/EditForm/FormTableName"/>
<xsl:variable name="FormPKFieldName" select="//Tree/EditForm/FormPKFieldName"/>
<xsl:variable name="FormFKFieldName" select="//Tree/EditForm/FormFKFieldName"/>
<xsl:variable name="FormID" select="//Tree/EditForm/AttId"/>
<xsl:variable name="FormName" select="//Tree/EditForm/Text25007"/>
<xsl:variable name="FormAction" select="//Tree/EditForm/Text25006"/>
<xsl:variable name="ListWebPartID" select="//Tree/ListWebPart/GDBID"/>
<xsl:variable name="ListWebPartUniqueBlockID" select="//Tree/ListWebPart/UniqueBlockID"/>
<xsl:variable name="ListWebPartVariableName" select="//Tree/ListWebPart/VariableName"/>
<xsl:variable name="RepositoryID" select="//Tree/Repository/GDBID"/>
<xsl:variable name="RecordEditFlag" select="//Tree/RecordEditFlag"/>
<xsl:template match="Tree"><!--
////550761.ملف المحامي Start
/////550761.ملف المحامي END
-->
<xsl:if test="$AllowEditMode='True'"><xsl:call-template name="EditMode"/></xsl:if><!--and Bool01='1'-->
<div id="sign-in-dialog" class="zoom-anim-dialog mfp-hide">
<div class="modal_header">
<h3>دخول لحسابك</h3>
</div>
<xsl:apply-templates select="EditForm"/>
</div>
</xsl:template>
<xsl:template match="EditForm" >
<xsl:element name="form">
<xsl:call-template name="ApplyTagAttribute"/>
<xsl:attribute name="action"><xsl:value-of select="Text25001"/></xsl:attribute>
<xsl:attribute name="method">post</xsl:attribute>
<xsl:attribute name="onsubmit">jQuery('#<xsl:value-of select="AttId"/>FormErrorSummary').empty();</xsl:attribute>
<div class="sign-in-wrapper">
<!--
<a href="#0" class="social_bt facebook">بإستخدام الفيس بوك</a>
<a href="#0" class="social_bt google">بإستخدام جوجل</a>
<div class="divider"><span>أو</span></div>
-->
<xsl:element name="div">
<xsl:attribute name="class">form-body</xsl:attribute>
<div class="form-group">
<xsl:if test="RecordTitleAR !='' "><h2 class="form-title"><xsl:value-of select="RecordTitleAR"/></h2></xsl:if>
<xsl:if test="RecordShortDescriptionAR !='' ">
<p class=""><xsl:value-of select="RecordShortDescriptionAR" disable-output-escaping="yes"/></p>
</xsl:if>
</div>
<div class="row">
<div class="FormErrorSummary alert alert-danger hidden" id="{AttId}FormErrorSummaryDiv">
<button class="close" data-close="alert" onclick="jQuery('#{AttId}FormErrorSummary').empty();"></button>
<div id="{AttId}FormErrorSummary"></div>
</div>
</div>
<xsl:apply-templates select="children[GDBTypeID='2000000061']/
children[GDBTypeID='2000000061.1']/children[not(AttType= 'hidden')]" mode="prozimField-input-icon"/>
<xsl:apply-templates
select="children[GDBTypeID='2000000061']/
children[GDBTypeID='2000000066']" mode="ProxyFunction"/>
<xsl:apply-templates select="children[GDBTypeID='2000000064']" mode="ButtonsSection"/> <!--Buttons Section -->
<xsl:apply-templates select="children[GDBTypeID='2000000066']" mode="ProxyFunction"/>
</xsl:element>
<input id="FormName" name="FormName" type="hidden" value="{Text25007}"/>
<input id="FormAction" name="FormAction" type="hidden" value="{Text25006}"/>
<input id="FormType" name="FormType" type="hidden" value="json"/>
<xsl:if test="$RecordEditFlag ='1' "> <!-- Edit Mode -->
<input id="PKID" name="PKID" type="hidden" value="{//Tree/RecordData/GDBPublicKeyID}"/>
<input id="PK_ID" name="PK_ID" type="hidden" value="{//Tree/RecordData/GDBPublicKeyID}"/>
<input id="ParentPKID" name="ParentGDBID" type="hidden" value="{$RepositoryID}"/>
</xsl:if>
<input id="{$FormPKFieldName}" name="{$FormPKFieldName}" type="hidden" value="{//Tree/RecordData/FormPKFieldValue}"/>
<input id="PK_{$FormPKFieldName}" name="PK_{$FormPKFieldName}" type="hidden" value="{//Tree/RecordData/FormPKFieldValue}"/>
<input id="FormID" name="FormID" type="hidden" value="{GDBKeyID}"/>
<!--<input id="{$FormFKFieldName}" name="{$FormFKFieldName}" type="hidden" value="{//Tree/RecordData/FormFKFieldValue}"/>-->
<input id="ret_page" name="ret_page" type="hidden" value=""/>
<xsl:apply-templates select="." mode="FormJS"/>
<xsl:apply-templates select="children[GDBTypeID='2000000063']" mode="NavButtons"/>
</div>
</xsl:element> <!-- Close Form -->
</xsl:template>
<xsl:template match="children" mode="ProxyFunction">
<xsl:call-template name="ProxyFunction"/>
</xsl:template>
<xsl:template match="EditForm" mode="FormJS">
<script><![CDATA[
/* ID:5172 */
jQuery(document).ready(function ($) {
var FormGDBPublicKeyID = ']]><xsl:value-of select="../GDBPublicKeyID"/><![CDATA[';
// Single alert slot to avoid stacking
function ensureAlertSlot($formEl) {
var $slot = $formEl.siblings(".alert.js-form-alert");
if ($slot.length === 0) $slot = $('<div class="alert js-form-alert" style="display:none;"></div>').insertBefore($formEl);
return $slot;
}
// Safe JSON parse (string or object)
function safeParseJSON(resp) {
if (resp && typeof resp === "object") return resp;
if (typeof resp === "string") { try { return JSON.parse(resp); } catch (e) {} }
return {};
}
// Prefer server RedirectTo, else hidden input 'landing_page'
function resolveRedirect(formEl, serverRedirect) {
var s = (serverRedirect || "").trim();
if (s) return s;
var lp = (formEl && formEl.elements && formEl.elements["landing_page"])
? (formEl.elements["landing_page"].value || "")
: "";
return (lp || "").trim();
}
// --- Response messages map (from XML) ---
]]><xsl:apply-templates select="children[GDBTypeID='FormResponseList']" mode="GenerateResponseMessageList"/><![CDATA[
var $form = $("#]]><xsl:value-of select="AttId"/><![CDATA[");
var $summaryDiv = $("#]]><xsl:value-of select="AttId"/><![CDATA[FormErrorSummaryDiv");
var $summaryText = $("#]]><xsl:value-of select="AttId"/><![CDATA[FormErrorSummary");
if ($form.length === 0) return;
var ]]><xsl:value-of select="AttId"/><![CDATA[_validator = $form
.on("invalid-form.validate", function () {
$summaryText.html("]]><xsl:value-of select="Text02" disable-output-escaping="yes"/><![CDATA[");
$summaryDiv.removeClass("hidden").show();
})
.validate({
debug: false,
ignore: [], // validate even hidden fields if you bind rules to them
errorElement: "span",
errorClass: "error",
errorContainer: $summaryDiv,
// Render messages into per-field <span class="error"> placeholders
errorPlacement: function (error, element) {
var $el = $(element);
var name = $el.attr("name") || $el.prop("name") || "";
var id = $el.attr("id") || $el.prop("id") || "";
var $target = id ? $("#" + id + "-error") : $();
if ($target.length === 0 && name) $target = $("#" + name + "-error");
if ($target.length === 0 && name) $target = $('.error[data-error-for="' + name.replace(/"/g,'"') + '"]').first();
if ($target.length === 0) { var $sib = $el.next("span.error"); if ($sib.length) $target = $sib; }
error.addClass("help-block");
if ($target.length) { $target.empty(); error.appendTo($target); }
else { error.insertAfter($el); }
},
highlight: function (el) { $(el).addClass("is-invalid").removeClass("is-valid"); },
unhighlight: function (el) { $(el).removeClass("is-invalid").addClass("is-valid"); },
rules: {]]>
<xsl:apply-templates select="children[GDBTypeID='2000000061']/children[GDBTypeID='2000000061.1']/children[GDBTypeID='2000000061.1.1']/children[GDBTypeID=2000000050]" mode="FieldRuleList"/><![CDATA[
},
messages: {]]>
<xsl:apply-templates select="children[GDBTypeID='2000000061']/children[GDBTypeID='2000000061.1']/children[GDBTypeID='2000000061.1.1']/children[GDBTypeID=2000000050]" mode="FieldMessageList"/><![CDATA[
},
submitHandler: function (formEl) {
var $formEl = $(formEl);
$summaryDiv.hide();
var $alert = ensureAlertSlot($formEl).hide().removeClass().addClass("alert js-form-alert");
$.ajax({
url: formEl.action,
type: formEl.method || "POST",
data: $formEl.serialize(),
success: function (response) {
var obj = safeParseJSON(response);
var arr = Array.isArray(obj.Form) ? obj.Form : [];
var first = arr[0] || {};
var FormResponseAction = first.Action || "New"; // "New" or "Update"
var FormResponseActionResult = first.ActionResult || "Failed";
var FormResponseRedirectTo = resolveRedirect(formEl, first.RedirectTo);
// Map via generated <AttId>Response
var sActionFinalMessage = "Form submitted.";
var sActionAttClass = "alert alert-info";
var sActionRedirectTo = "";
$.each(]]><xsl:value-of select="AttId"/><![CDATA[Response.Response, function (_, oValue) {
if (oValue.Action === FormResponseAction && oValue.ActionResult === FormResponseActionResult) {
sActionFinalMessage = oValue.Message;
sActionAttClass = oValue.AttClass;
sActionRedirectTo = (oValue.RedirectTo || "").trim();
return false; // break
}
});
// Prefer server/landing_page redirect if present
if (FormResponseRedirectTo) sActionRedirectTo = FormResponseRedirectTo;
// Show message banner
$alert.removeClass().addClass(sActionAttClass + " js-form-alert")
.html("<strong></strong> " + sActionFinalMessage)
.fadeIn(120);
if (FormResponseActionResult === "Success") {
]]>
<!-- WORKFLOWS:
1 = Show Result / Stop
2 = Show Result / Wait / Show Form
3 = Show Result / Wait / Redirect
4 = Show Result / Redirect (immediate)
-->
<xsl:choose>
<!-- 1 = Show Result / Stop -->
<xsl:when test="Text25005 = '1'"><![CDATA[
]]><xsl:value-of select="AttId"/><![CDATA[_validator.resetForm();
formEl.reset();
$formEl.hide();
$("#" + FormGDBPublicKeyID + " .NavButtons").show();
]]></xsl:when>
<!-- 2 = Show Result / Wait / Show Form -->
<xsl:when test="Text25005 = '2'"><![CDATA[
// Reset values
formEl.reset();
]]><xsl:value-of select="AttId"/><![CDATA[_validator.resetForm();
// Clear validation styling
$formEl.find(".is-valid, .is-invalid, .error").removeClass("is-valid is-invalid error");
$formEl.hide();
var $nav = $("#" + FormGDBPublicKeyID + " .NavButtons");
if ($nav.length) $nav.show();
setTimeout(function () {
if ($nav.length) $nav.hide();
$formEl.fadeIn(100);
$alert.remove();
}, ]]><xsl:value-of select="Num01"/><![CDATA[ || 150);
]]></xsl:when>
<!-- 3 = Show Result / Wait / Redirect -->
<xsl:when test="Text25005 = '3'"><![CDATA[
]]><xsl:value-of select="AttId"/><![CDATA[_validator.resetForm();
formEl.reset();
$formEl.hide();
$("#" + FormGDBPublicKeyID + " .NavButtons").show();
if (sActionRedirectTo) {
setTimeout(function () { window.location = sActionRedirectTo; }, 2000);
} else {
setTimeout(function () {
$("#" + FormGDBPublicKeyID + " .NavButtons").hide();
formEl.reset();
$formEl.fadeIn(100);
$alert.remove();
}, ]]><xsl:value-of select="Num01"/><![CDATA[ || 150);
}
]]></xsl:when>
<!-- 4 = Show Result / Redirect (immediate) -->
<xsl:when test="Text25005 = '4'"><![CDATA[
]]><xsl:value-of select="AttId"/><![CDATA[_validator.resetForm();
formEl.reset();
$("#" + FormGDBPublicKeyID + " .NavButtons").show();
if (sActionRedirectTo) {
window.location = sActionRedirectTo;
} else {
$("#" + FormGDBPublicKeyID + " .NavButtons").hide();
formEl.reset();
$formEl.fadeIn(1);
$alert.remove();
}
]]></xsl:when>
</xsl:choose>
<![CDATA[
} else {
// Failure: keep form, show danger
$alert.removeClass().addClass("alert alert-danger js-form-alert")
.html("<strong></strong> " + (FormResponseActionResult || "Failed"))
.fadeIn(120);
}
// Optional block updates — THIS VARIANT USES iLanguage=1
]]>
<xsl:if test="$ListWebPartUniqueBlockID != '' and $ListWebPartVariableName != ''"><![CDATA[
UpdateBlock(
"#]]><xsl:value-of select="$ListWebPartUniqueBlockID"/><![CDATA[",
"AJAXFunctionCaller?Function1=UpdateBlock&VariableName=]]><xsl:value-of select="$ListWebPartVariableName"/><![CDATA[&iLanguage=1",
"Replace",
""
);
]]></xsl:if>
<![CDATA[
},
error: function (xhr) {
var msg = (xhr && (xhr.status + ": " + xhr.statusText)) || "Unexpected error";
var $alert = ensureAlertSlot($formEl);
$alert.removeClass().addClass("alert alert-danger js-form-alert")
.html("<strong>Error: </strong>" + msg).fadeIn(120);
}
});
return false; // prevent native submit
}
});
}); // close jQuery(document).ready
]]></script>
<xsl:if test="Bool07 and Bool07 = 1">
<script><![CDATA[
function ]]><xsl:value-of select="AttId"/><![CDATA[_DeleteThis(pkID) {
$.ajax({
url: "]]><xsl:value-of select="Text25001"/><![CDATA[",
type: "GET",
data: jQuery.param({ FormType: "json", PK_GDBID: pkID, FormName: "GlobalDatabase", FormAction: "delete" }),
contentType: "application/x-www-form-urlencoded; charset=UTF-8",
success: function (response) {
var obj = (function (r) { try { return JSON.parse(r); } catch(e) { return {}; } })(response);
var ok = obj && obj.Form && obj.Form[0] && obj.Form[0].ActionResult === "Success";
if (ok) {
]]>
<xsl:if test="$ListWebPartUniqueBlockID != '' and $ListWebPartVariableName != ''"><![CDATA[
UpdateBlock(
"#]]><xsl:value-of select="$ListWebPartUniqueBlockID"/><![CDATA[",
"AJAXFunctionCaller?Function1=UpdateBlock&VariableName=]]><xsl:value-of select="$ListWebPartVariableName"/><![CDATA[&iLanguage=2",
"Replace",
""
);
]]></xsl:if>
<![CDATA[
}
}
});
}
]]></script>
</xsl:if>
</xsl:template>
<xsl:template match="children" mode="FieldRuleList"><![CDATA[
/* FieldRuleList (2000000051)
Rules Count :]]><xsl:value-of select="count(children)"/><![CDATA[ID:]]><xsl:value-of select="GDBID"/><![CDATA[*/]]>
<xsl:if test="count(children)>0">
<xsl:value-of select="../AttId"/><![CDATA[: {]]>
<xsl:apply-templates select="children" mode="FieldRuleItem"/>
<![CDATA[}]]><xsl:if test="position() != last()">,
</xsl:if>
</xsl:if>
</xsl:template>
<xsl:template match="children" mode="FieldRuleItem">
<xsl:value-of select="Text25001"/><![CDATA[:]]><xsl:value-of select="Text25002"/>
<xsl:if test="position() != last()">,
</xsl:if>
</xsl:template>
<xsl:template match="children" mode="ButtonsSection"> <!--GDBTypeID= 2000000064 -->
<!--<xsl:value-of select="GDBID"/>-->
<xsl:if test="Bool10 ='1'">
<div class="{AttClass}">
<xsl:apply-templates select="children[GDBTypeID='2000000064.1']" mode="FormButtonsGroup"/>
</div>
</xsl:if>
<xsl:if test="Bool10 !='1'">
<xsl:apply-templates select="children[GDBTypeID='2000000064.1']" mode="FormButtonsGroup"/>
</xsl:if>
</xsl:template>
<xsl:template match="children" mode="FormButtonsGroup"> <!--GDBTypeID= 2000000064.1 -->
<!--<xsl:value-of select="GDBID"/>-->
<xsl:if test="Bool10 ='1'">
<div class="{AttClass}">
<xsl:apply-templates select="children" mode="FormButtonsItem"/>
</div>
</xsl:if>
<xsl:if test="Bool10 !='1'">
<xsl:apply-templates select="children" mode="FormButtonsItem"/>
</xsl:if>
</xsl:template>
<!-- Slip Button-->
<xsl:template match="children[GDBTypeID = 'InsertButton' and not (//Tree/EditForm/Bool05 ='1')]" mode="FormButtonsItem"/>
<xsl:template match="children[GDBTypeID = 'UpdateButton' and not (//Tree/EditForm/Bool06 ='1')]" mode="FormButtonsItem"/>
<xsl:template match="children[GDBTypeID = 'DeleteButton' and not (//Tree/EditForm/Bool07 ='1')]" mode="FormButtonsItem"/>
<xsl:template match="children[GDBTypeID = 'CancelButton' and not (//Tree/EditForm/Bool08 ='1')]" mode="FormButtonsItem"/>
<xsl:template match="children[GDBTypeID = 'DuplicateButton' and not (//Tree/EditForm/Bool09 ='1')]" mode="FormButtonsItem"/>
<xsl:template match="children" mode="FormButtonsItem">
<!--GDBTypeID = 'InsertButton' and $AllowInsert ='1' -->
<xsl:element name="button">
<xsl:call-template name="ApplyTagAttribute"/>
<xsl:attribute name="GDBTypeID"><xsl:value-of select="GDBTypeID"/></xsl:attribute>
<xsl:attribute name="data-wow-duration">0.5s</xsl:attribute>
<xsl:if test="GDBTypeID ='InsertButton'"> <!-- standard AddNew button -->
<xsl:attribute name="onclick">document.<xsl:value-of select="$FormID"/>.FormAction.value = 'insert';</xsl:attribute>
</xsl:if>
<xsl:if test="GDBTypeID ='UpdateButton'"> <!-- standard Update button -->
<xsl:attribute name="onclick">document.<xsl:value-of select="$FormID"/>.FormAction.value = 'update';</xsl:attribute>
</xsl:if>
<xsl:if test="GDBTypeID ='DublicateButton'"> <!-- standard Duplicate button -->
<xsl:attribute name="onclick">document.<xsl:value-of select="$FormID"/>.FormAction.value = 'dublicate';</xsl:attribute>
</xsl:if>
<xsl:if test="GDBTypeID ='DeleteButton'"> <!-- standard Delete button -->
<xsl:attribute name="onclick">document.<xsl:value-of select="$FormID"/>.FormAction.value = 'delete';</xsl:attribute>
</xsl:if>
<xsl:if test="GDBTypeID ='CancelButton'"> <!-- standard Cancel button -->
<xsl:attribute name="onclick">$("#<xsl:value-of select="$FormID"/>").hide();window.location.href = "<xsl:value-of select="AttHref"/>";</xsl:attribute>
</xsl:if>
<!--<xsl:attribute name="data-wow-delay">{0.5 + (position()*.2)}s</xsl:attribute>-->
<xsl:if test="MediaThumbFN !=''"><i class="{MediaThumbFN}"></i><xsl:text>	</xsl:text></xsl:if>
<xsl:value-of select="RecordTitleAR"/>
</xsl:element>
<!--<input type="{AttType}" value="{RecordTitleAR}" class="{AttClass}"/>-->
</xsl:template>
<xsl:template match="children" mode="FieldMessageList"> <![CDATA[
/* FieldMessageList (2000000051)
Messages Count :]]><xsl:value-of select="count(children)"/><![CDATA[ID:]]><xsl:value-of select="GDBID"/><![CDATA[*/]]>
<xsl:if test="count(children)>0">
<xsl:value-of select="../AttId"/><![CDATA[: {]]><xsl:apply-templates select="children" mode="FieldMessageItem"/><![CDATA[}]]><xsl:if test="position() != last()">,</xsl:if>
</xsl:if></xsl:template>
<xsl:template match="children" mode="FieldMessageItem"><xsl:value-of select="Text25001"/><![CDATA[:"]]><xsl:value-of select="RecordMoreDescriptionAR" disable-output-escaping="yes"/><![CDATA["]]><xsl:if test="position() != last()">,</xsl:if></xsl:template>
<xsl:template match="children" mode="GenerateResponseMessageList">
<![CDATA[
var ]]><xsl:value-of select="../AttId"/><![CDATA[Response= {"Response": [
]]><xsl:apply-templates select="children" mode="GenerateResponseMessageItem"/>
<![CDATA[
]
}
]]>
</xsl:template>
<xsl:template match="children" mode="GenerateResponseMessageItem">
<![CDATA[
{
"Action": "]]><xsl:value-of select="Text25001"/><![CDATA[",
"ActionResult": "]]><xsl:value-of select="Text25002"/><![CDATA[",
"Message": "]]><xsl:value-of select="RecordShortDescriptionAR" disable-output-escaping="yes"/><![CDATA[",
"AttClass": "]]><xsl:value-of select="AttClass"/><![CDATA[",
"RedirectTo": "]]><xsl:value-of select="Text50001"/><![CDATA["
}]]><xsl:if test="position() != last()">,</xsl:if>
</xsl:template>
<xsl:template match="children" mode="ButtonsList">
<div class="{AttClass}">
<xsl:apply-templates select="children" mode="ButtonsItem"/>
</div>
</xsl:template>
<xsl:template match="children" mode="NavButtons">
<xsl:element name="div">
<xsl:call-template name="ApplyTagAttribute"/>
<xsl:attribute name="class">NavButtons <xsl:value-of select="AttClass"/></xsl:attribute>
<xsl:apply-templates select="children" mode="ButtonsItem"/>
</xsl:element>
</xsl:template>
<xsl:template match="children" mode="ButtonsItem">
<xsl:element name="a">
<xsl:call-template name="ApplyTagAttribute"/>
<xsl:attribute name="data-wow-duration">0.5s</xsl:attribute>
<!--<xsl:attribute name="data-wow-delay">{0.5 + (position()*.2)}s</xsl:attribute>-->
<xsl:if test="MediaFN"><img src="{MediaFN}" width="35" alt=""/></xsl:if>
<xsl:if test="MediaThumbFN"> <i class="{MediaThumbFN}"></i><xsl:text>
</xsl:text></xsl:if>
<xsl:value-of select="RecordTitleAR" disable-output-escaping="yes" />
</xsl:element>
</xsl:template>
<xsl:template match="children" mode="OptionsList">
<ul class="{AttClass}">
<xsl:apply-templates select="children" mode="OptionsItem"/>
</ul>
</xsl:template>
<xsl:template match="children" mode="OptionsItem">
<li class="wow bounceIn" data-wow-duration="0.2s" data-wow-delay="{0.4 + (position()*.1)}s">
<xsl:if test="MediaThumbFN"><i class="{MediaThumbFN}"></i><xsl:text>
</xsl:text></xsl:if>
<xsl:value-of select="RecordTitleAR" disable-output-escaping="yes" />
<xsl:if test="RecordMoreDescriptionAR"><xsl:value-of select="RecordMoreDescriptionAR" disable-output-escaping="yes" /></xsl:if>
</li>
</xsl:template>
<xsl:template match="children" mode="FormHiddenFieldList">
<xsl:element name="input">
<xsl:call-template name="ApplyTagAttribute"/>
<xsl:attribute name="value"><xsl:choose>
<xsl:when test="RecordTitleAR!='' "><xsl:value-of select="RecordTitleAR" disable-output-escaping="yes"/></xsl:when>
<xsl:otherwise></xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:attribute name="defaultvalue"><xsl:value-of select="Text25021"/></xsl:attribute>
</xsl:element>
</xsl:template>
<xsl:template match="children" mode="MetronicFieldsGroup">
<xsl:if test="GDBTypeID = '2000000066'">
<!-- Apply templates in ProxyFunction mode -->
<xsl:apply-templates select="." mode="ProxyFunction"/>
</xsl:if>
<xsl:if test="GDBTypeID != '2000000066'">
<!--<xsl:value-of select="GDBID"/>-<br/>-->
<!--<xsl:apply-templates select="node()[ (position() mod Text25005)=1 ]" mode="row"/>-->
<!-- Fields Group (2000000061.1)-->
<xsl:variable name="cols" select="Text25005"/> <!-- Text25005 = Number of columns -->
<xsl:if test="Bool01 = 1"><!-- isHidden -->
<!--<xsl:apply-templates select="children[not(AttType= 'hidden')]" mode="MetronicRowSwitcher"/>-->
<xsl:apply-templates select="children[not(AttType= 'hidden')]" mode="Field"/>
</xsl:if>
<xsl:if test="Bool01 != 1"> <!-- not Hidden -->
<xsl:if test="$cols=1">
<xsl:element name="div">
<xsl:attribute name="GDBID"><xsl:value-of select="GDBID"/></xsl:attribute>
<xsl:attribute name="class"><xsl:value-of select="AttClass"/> fgrp<xsl:value-of select="GDBID"/> div5157</xsl:attribute>
<div class="col-md-12">
<xsl:apply-templates select="children" mode="Field"/>
</div>
</xsl:element>
</xsl:if>
<!--<br/><xsl:value-of select="$cols"/>sssssssssssssss<br/>-->
<xsl:if test="$cols > 1">
<xsl:apply-templates select="children[ not(AttType= 'hidden') and ( position() mod $cols )= 1 ]" mode="row">
<xsl:with-param name="cols" select="$cols"/>
</xsl:apply-templates>
</xsl:if>
</xsl:if>
</xsl:if>
</xsl:template>
<xsl:template match="children" mode="row">
<xsl:param name = "cols" />
<xsl:element name="div">
<xsl:attribute name="GDBID"><xsl:value-of select="GDBID"/></xsl:attribute>
<xsl:attribute name="class">row</xsl:attribute>
<xsl:apply-templates select="self::node() | following-sibling::*[position() < $cols]" mode="MetronicFieldWithCol" >
<xsl:with-param name="cols" select="$cols"/>
</xsl:apply-templates>
</xsl:element>
</xsl:template>
<xsl:template match="children" mode="MetronicFieldWithCol">
<xsl:param name = "cols" />
<xsl:element name="div">
<xsl:attribute name="GDBID"><xsl:value-of select="GDBID"/></xsl:attribute>
<xsl:attribute name="class">col-md-<xsl:value-of select="12 div $cols"/> <xsl:text>	</xsl:text> <xsl:value-of select="Text25015"/> </xsl:attribute>
<xsl:apply-templates select="self::node()" mode="Field" />
</xsl:element>
</xsl:template>
<xsl:template match="children" mode="Field">
<xsl:choose>
<xsl:when test="Text25004='form-blank' "><xsl:apply-templates select="." mode="MetronicField-form-blank"/></xsl:when>
<xsl:when test="Text25004='form-section' "><xsl:apply-templates select="." mode="MetronicField-form-section"/></xsl:when>
<xsl:when test="Text25004='input-icon' "><xsl:apply-templates select="." mode="MetronicField-input-icon"/></xsl:when>
<xsl:when test="Text25004='input-group' "><xsl:apply-templates select="." mode="MetronicField-input-group"/></xsl:when>
<xsl:when test="Text25004='FieldShort' "><xsl:apply-templates select="." mode="MetronicFieldShort"/></xsl:when>
<xsl:otherwise><xsl:apply-templates select="." mode="MetronicFieldNone"/></xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="children" mode="prozimField-input-icon">
<div class="form-group">
<xsl:if test="RecordTitleAR !='' and $HideFieldCaption !='1' ">
<xsl:element name="label">
<xsl:attribute name="class"><xsl:value-of select="Text25008"/> col-md-<xsl:value-of select="12-Text25015"/></xsl:attribute>
<xsl:value-of select="RecordTitleAR"/>
<xsl:if test="Bool01=1"><span class="required">* </span></xsl:if>
</xsl:element>
</xsl:if>
<xsl:choose>
<xsl:when test="Text25001='select2' and AttType ='text' "><!-- ControlType and AttType-->
<xsl:apply-templates select="." mode="ctrSelect2"/>
</xsl:when>
<xsl:when test="Text25001='input' and AttType ='checkbox' "><!-- ControlType and AttType-->
<xsl:apply-templates select="." mode="MetronicCheckBoxControl"/>
</xsl:when>
<xsl:when test="Text25001='' and AttType ='' "><!-- ControlType and AttType--></xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="." mode="MetronicGeneralControl"/>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="Text25006 != ''"><i class="{Text25006}"></i></xsl:if><!-- Control Icon -->
</div>
<xsl:if test="RecordShortDescriptionAR !='' and $HideFieldHelpText !='1'" >
<div class="help-block" GDBID="{GDBID}"> <xsl:value-of select="RecordShortDescriptionAR" disable-output-escaping="yes"/> </div>
</xsl:if>
</xsl:template>
<xsl:template match="children" mode="MetronicHiddenField">
<xsl:element name="input">
<xsl:call-template name="ApplyTagAttribute"/>
<xsl:attribute name="value"><xsl:choose>
<xsl:when test="RecordTitleAR!='' "><xsl:value-of select="RecordTitleAR" disable-output-escaping="yes"/></xsl:when>
<xsl:otherwise></xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:attribute name="defaultvalue"><xsl:value-of select="Text25021"/></xsl:attribute>
</xsl:element>
</xsl:template>
<xsl:template match="children" mode="MetronicGeneralControl">
<!--
<xsl:value-of select="GDBID"/><br/>
<xsl:value-of select="Text25001"/><br/>
<xsl:value-of select="AttType"/><br/>
-->
<xsl:element name="{Text25001}">
<xsl:call-template name="ApplyTagAttribute"/>
<xsl:attribute name="GDBID"><xsl:value-of select="GDBID"/></xsl:attribute>
<xsl:attribute name="thisGDBID">5165</xsl:attribute>
<xsl:if test="Bool02=1"><xsl:attribute name="autofocus">autofocus</xsl:attribute></xsl:if>
<xsl:attribute name="value"><![CDATA[]]></xsl:attribute>
<xsl:attribute name="defaultvalue"><xsl:value-of select="Text25021"/></xsl:attribute>
<xsl:if test="Text25023"><xsl:attribute name="maxlength"><xsl:value-of select="Text25023"/></xsl:attribute></xsl:if>
<xsl:if test="Text25011!=''"><xsl:attribute name="placeholder"><xsl:value-of select="Text25011"/></xsl:attribute></xsl:if>
<xsl:if test="$RecordEditFlag ='1' "><!-- Edit Mode --></xsl:if>
<xsl:if test="$RecordEditFlag !='1' "><!-- Edit Mode -->
<xsl:attribute name="value"></xsl:attribute>
</xsl:if>
</xsl:element>
</xsl:template>
<xsl:template match="children" mode="MetronicCheckBoxControl">
<!--
<xsl:value-of select="RecordTitleAR"/>
<input type="checkbox"
data-toggle="toggle"
class="make-switch"
id="{AttId}" name="{AttId}"
data-size="mini" />
-->
<xsl:element name="div">
<xsl:attribute name="class">col-xs-<xsl:value-of select="Text25015"/></xsl:attribute>
<label class="{Text25008}" for="{AttId}">
<xsl:element name="{Text25001}">
<xsl:call-template name="ApplyTagAttribute"/>
<xsl:attribute name="value">1</xsl:attribute>
<xsl:attribute name="data-toggle">switch</xsl:attribute>
<xsl:attribute name="data-on-text">نعم</xsl:attribute>
<xsl:attribute name="data-off-text">لا</xsl:attribute>
<xsl:attribute name="data-on-color">success</xsl:attribute> <!-- primary , info, success, warning, danger, default-->
<xsl:attribute name="data-off-color">danger</xsl:attribute>
<xsl:attribute name="data-size">normal</xsl:attribute><!-- mini, small , normal, large -->
<xsl:attribute name="data-checkvalue"><![CDATA[]]></xsl:attribute>
</xsl:element>
</label>
<!--
<xsl:element name="div">
<xsl:attribute name="class">col-xs-<xsl:value-of select="Text25015"/></xsl:attribute>
</xsl:element>
-->
</xsl:element>
</xsl:template>
<xsl:template match="children" mode="ctrSelect2">
<div class="form-group">
<div class="input-group input-group-sm select2-bootstrap-prepend">
<xsl:element name="select">
<xsl:call-template name="ApplyTagAttribute"/>
<xsl:if test="Bool03 = '1'"><xsl:attribute name="multiple"></xsl:attribute></xsl:if>
<xsl:attribute name="style">width: 100%</xsl:attribute>
<xsl:attribute name="title"><xsl:value-of select="Name"/> : <xsl:value-of select="Title"/></xsl:attribute>
<xsl:attribute name="placeholder"><xsl:value-of select="AttPlaceholder"/></xsl:attribute>
<xsl:attribute name="value"><![CDATA[]]></xsl:attribute>
<xsl:attribute name="PKFieldName"><xsl:value-of select="Text50001"/></xsl:attribute>
<xsl:attribute name="LookupVariableName"><xsl:value-of select="Text50002"/></xsl:attribute>
<xsl:attribute name="lookupvariablenamebyid"><xsl:value-of select="Text50003"/></xsl:attribute>
<xsl:attribute name="formatresponsetemplate"><xsl:value-of select="Text50004"/></xsl:attribute>
<xsl:if test="Attributes"><xsl:attribute name="isAttr">True</xsl:attribute></xsl:if>
</xsl:element>
</div>
</div>
</xsl:template>
</xsl:stylesheet>