Esempio n. 1
0
echo $storeId;
?>
][AMOUNT]" id="PRODUCT[<?php 
echo $val["ID"];
?>
][STORES][<?php 
echo $storeId;
?>
][AMOUNT]" type="hidden" value="<?php 
echo $arStore["AMOUNT"];
?>
">
												</div>
												<script type="text/javascript"> //store selector change
													BX.bind(BX('<? echo $strSelectID; ?>'), 'change', function() {
																		return fChangeStoreSelector(this, '<? echo $val["ID"]; ?>', '<? echo $ind; ?>', '<? echo CUtil::JSEscape(CUtil::PHPToJsObject($arBasketItem[$val["ID"]]["STORES"])); ?>');
													});
												</script>
												<?
												if ($ind > 0)
												{
												?>
												<script type="text/javascript"> //store delete button
													BX.bind(BX('store_select_wrapper_<?php 
echo $val["ID"];
?>
_<?php 
echo $storeId;
?>
'), 'mouseover', function() {
															BX.addClass(BX('store_select_delete_<?php 
Esempio n. 2
0
<script type="text/javascript">
<?php 
if (strlen($str_COMMENTS) <= 0 && !$isEditMode) {
    ?>
tabControl.DisableTab("edit5");
<?php 
}
?>
changeType('<?php 
echo $str_AD_TYPE;
?>
', {params: <?php 
echo CUtil::PHPToJsObject($arPropsTemplate);
?>
, val: <?php 
echo CUtil::PHPToJsObject($arCurVal);
?>
});
</script>
<?php 
if ($isEditMode && (!defined('BX_PUBLIC_MODE') || BX_PUBLIC_MODE != 1)) {
    echo BeginNote();
    ?>
<span class="required"><sup>1</sup></span>&nbsp;<?php 
    echo GetMessage("AD_CONFIRMED_FIELDS");
    ?>
<br><br>
<span class="required"><sup>2</sup></span>&nbsp;<?php 
    echo GetMessage("AD_NOTE_2");
    ?>
<br><br>
Esempio n. 3
0
        ?>
</option>
				<?php 
    }
    ?>
			</select>
		<?php 
    if ($isEditMode) {
        ?>
			<script>
			var V_STAT_TYPE = <?php 
        echo CUtil::PHPToJsObject($str_STAT_TYPE);
        ?>
;
			var V_STAT_TYPE_VALUES = <?php 
        echo CUtil::PHPToJsObject(array("COUNTRY" => array(), "REGION" => array(), "CITY" => array()));
        ?>
;

			function stat_type_values_change()
			{
				var oSelect = document.getElementById('STAT_TYPE_VALUES[]');
				if(oSelect)
				{
					var v = '';
					var n = oSelect.length;
					for(var i=0; i<n; i++)
						if(v.length)
							v += ','+oSelect[i].value;
						else
							v = oSelect[i].value;
Esempio n. 4
0
										<script type="text/javascript"> //store selector change
											BX.bind(BX('PRODUCT[' + <?php 
                    echo $val["ID"];
                    ?>
 + '][STORES][' + <?php 
                    echo $storeId;
                    ?>
 + '][STORE_ID]'), 'change', function() {
													return fChangeStoreSelector(this, '<?php 
                    echo $val["ID"];
                    ?>
', '<?php 
                    echo $ind;
                    ?>
', '<?php 
                    echo CUtil::JSEscape(CUtil::PHPToJsObject($arBasketItem[$val["ID"]]["STORES"]));
                    ?>
');
												}
											);
										</script>
										<?php 
                    if ($ind > 0) {
                        ?>
										<script type="text/javascript"> //store delete button
											BX.bind(BX('store_select_wrapper_<?php 
                        echo $val["ID"];
                        ?>
_<?php 
                        echo $storeId;
                        ?>
		<td><?echo GetMessage("ADV_STAT_WHAT_QUESTION")?>:</td>
		<td>
			<label><input type="radio" name="STAT_TYPE" value="COUNTRY" OnClick="stat_type_changed(this);" <?echo $str_STAT_TYPE!=="CITY" && $str_STAT_TYPE!=="REGION"? "checked" : ""?><?if(!$isEditMode) echo ' disabled'?>><?echo GetMessage("ADV_STAT_WHAT_COUNTRY")?></label><br>
			<label><input type="radio" name="STAT_TYPE" value="REGION" OnClick="stat_type_changed(this);" <?echo $str_STAT_TYPE==="REGION"? "checked" : ""?><?if(!$isEditMode) echo ' disabled'?>><?echo GetMessage("ADV_STAT_WHAT_REGION")?></label><br>
			<label><input type="radio" name="STAT_TYPE" value="CITY" OnClick="stat_type_changed(this);" <?echo $str_STAT_TYPE==="CITY"? "checked" : ""?><?if(!$isEditMode) echo ' disabled'?>><?echo GetMessage("ADV_STAT_WHAT_CITY")?></label><br>
			<select style="width:100%" size="10" id="STAT_TYPE_VALUES[]" name="STAT_TYPE_VALUES[]" multiple OnChange="stat_type_values_change()"<?if(!$isEditMode) echo ' disabled'?>>
				<?foreach($arDisplay as $key => $value):?>
					<option value="<?echo $key?>"><?echo $value?></option>
				<?endforeach;?>
			</select>
		<?if($isEditMode):?>
			<script>
			var V_STAT_TYPE = <?echo CUtil::PHPToJsObject($str_STAT_TYPE);?>;
			var V_STAT_TYPE_VALUES = <?echo CUtil::PHPToJsObject(array(
				"COUNTRY"=>array(),
				"REGION"=>array(),
				"CITY"=>array(),
			))?>;

			function stat_type_values_change()
			{
				var oSelect = document.getElementById('STAT_TYPE_VALUES[]');
				if(oSelect)
				{
					var v = '';
					var n = oSelect.length;
					for(var i=0; i<n; i++)
						if(v.length)
							v += ','+oSelect[i].value;
						else
							v = oSelect[i].value;