Example #1
0
			      nav_container.css({ "height" : "auto" });
			      nav
			      	 .stop()
			      	 .removeClass("sticky")
			         .css("top", nav.outerHeight() + waypoint_offset)
			         .animate({"top" : ""});
			    }
			  },
			  offset: function() {
			    return -(nav.outerHeight() + waypoint_offset);
			  }
			});

		});
    ';
assets_script($script, false);
?>

<div class='block_button'>



	<div class='button_center'>



<script type="text/javascript" language="javascript">
$(document).ready(function() {
	$('div.button').hover(
		function(){
		  $(this).attr("class", "button_select");
Example #2
0
<?php

$path = $config['path']['icons'] . $config['image_config']['dir'] . '/';
$uri_del_foto = '/ajax/?resource=pages_foto_delete/ajax/pages';
$script_foto_delete = "\n\t\tfunction foto_delete()\n\t\t{\n\t\t\t//Получаем параметры\n\t\t\tvar id = \$('#id').val();\n\t\t\t//alert('запущено удаление файла ' + id);\n\t\t\tif (confirm('Вы действительно хотите удалить изображение с сервера? Если Вы желаете оставить изображение, то выберете нет, а в списке ниже выберете нужное поле!')) {\n\n\t\t\t  // Отсылаем паметры\n\t\t\t       \$.ajax({\n\t\t\t             type: \"POST\",\n\t\t\t                url: \"" . $uri_del_foto . "\",\n\t\t\t                data: \"id=\"+id,\n\t\t\t                // Выводим то что вернул PHP\n\t\t\t                success: function(html) {\n\t\t\t \t\t\t\t\t//alert(html);\n\t\t\t \t\t\t\t\t//предварительно очищаем нужный элемент страницы\n\t\t\t                        \$(\"#foto\").empty();\n\t\t\t\t\t\t\t\t//и выводим ответ php скрипта\n\t\t\t                        \$(\"#foto\").append(html);\n\n\t\t\t                }\n\t\t\t        });\n\n\t\t\t} else {\n\t\t\t    // Do nothing!\n\t\t\t}\n\t\t}\n";
$script_image_dropdown = "\n\$(document).ready(function(e) {\n\ttry {\n\t\t\$('#select_img select').msDropDown({childwith:650,width:650,\n\t\t\t\t  visibleRows:4, rowHeight:40\n\t\t});\n\t} catch(e) {\n\t\talert(e.message);\n\t}\n\t});\n";
assets_script($script_foto_delete, false);
//assets_script($script_image_dropdown, false);
?>

<script>
$grid.bind("jqGridAddEditAfterShowForm", function(event, $form)
{
	var row_id = $(this).getGridParam("selrow");
	var imghtml = $(this).getCell(row_id, "foto_upload");
	var select_img = $(this).getCell(row_id, "select.select_img");

	$("#foto_upload").replaceWith(imghtml);
    $('#select_img select').msDropDown({childwith:650,width:650,
				  visibleRows:4, rowHeight:40
		});
});
$grid.bind("jqGridAddEditBeforeShowForm", function(event, $form)
{
    var mygrid=jQuery(”#grid_id”)[0];
	mygrid.updateColumns();


});
</script>
Example #3
0
//assets_script('jquery/jquery-ui/jquery-ui-1.8.23.custom.min.js', false);
//---- jQuery UI Plugin Timepicker --------
assets_script('jquery-ui/plugins/jquery-ui-timepicker-addon.js', false);
//---- jQuery UI Plugin multiselect --------
//assets_script('jquery-ui/plugins/ui.multiselect.js', false);
//---- jQuery UI Plugin multiselect-master --------
$this->assets->script->package('jquery-ui/plugins/multiselect-master', array('jquery-ui/plugins/multiselect-master/css/common.css', 'jquery-ui/plugins/multiselect-master/css/ui.multiselect.css', 'jquery-ui/plugins/multiselect-master/js/plugins/localisation/jquery.localisation-min.js', 'jquery-ui/plugins/multiselect-master/js/plugins/scrollTo/jquery.scrollTo-min.js', 'jquery-ui/plugins/multiselect-master/js/ui.multiselect.js', 'jquery-ui/plugins/multiselect-master/js/locale/ui-multiselect-ru.js'), false);
$multiselect = '
		$(function(){
			//$.localise(\'ui-multiselect\', {/*language: \'ru\',*/ path: \'/{assets}jquery-ui/plugins/multiselect-master/js/locale/\'});
			$(".multiselect").multiselect();
			//$(\'#switcher\').themeswitcher();
		});
	';
//assets_script($multiselect, false);
//---- Code highslide -- создания галерей
//assets_script('highslide/highslide-full.js');
//---- jQuery UI Plugin ajaxupload --------
assets_script('jquery/plugins/ajaxupload.js', false);
// общий код для всего сайта
assets_script('public.js', false);
//---- JQGrid --------------------------------
$this->assets->script->package('jqgrid', array('jqgrid/css/jquery-ui/themes/redmond/jquery.ui.all.min.css', 'jqgrid/css/ui.jqgrid.css', 'jqgrid/js/i18n/grid.locale-ru.js', 'jqgrid/js/jquery.jqGrid.min.js', 'jqgrid/client/jqgrid-ext.css', 'jqgrid/client/jqgrid-ext.js', 'jqgrid/js/jquery/form/2.67/jquery.form.min.js', 'jqgrid/js/highlightjs/6.0/styles/vs.css', 'jqgrid/js/highlightjs/6.0/highlight.min.js'), false);
//---- jQuery Plugin Form --------
//assets_script('jquery/plugins/jquery.form.js', false);
//---- jQuery arcticModal - Модальные окна --------
$this->assets->script->package('jquery/plugins/arcticmodal', array('jquery/plugins/arcticmodal/jquery.arcticmodal-0.3.css', 'jquery/plugins/arcticmodal/jquery.arcticmodal-0.3.min.js'), false);
//---- jQuery UI Plugin DateRangePicker --------
$this->assets->script->package('jquery-ui/plugins/DateRangePicker2', array('jquery-ui/plugins/DateRangePicker2/css/ui.daterangepicker.css', 'jquery-ui/plugins/DateRangePicker2/js/daterangepicker.jQuery.compressed.js'), false);
//---- JQuery Uploadify — мультизагрузка файлов с использованием флэш --------------------------------
$this->assets->script->package('jquery/plugins/uploadify', array('jquery/plugins/uploadify/jquery.uploadify.min.js', 'jquery/plugins/uploadify/uploadify.css'), false);
Example #4
0
File: modal.php Project: Moro3/duc
\t\t\t    content: c
\t\t\t});
\t\t}
      idleState = true;

    }, idleWait);
  });


  \t\$("body").trigger("mousemove"); // сгенерируем ложное событие, для запуска скрипта

});

SCRIPT;
    if ($config['user']['modal']['active'] == 1) {
        assets_script($script);
    }
    //echo $script;
}
?>

<div class="b-text g-hidden">
<marquee behavior="scroll" direction="up" scrollamount="2" height="100%" scrolldelay="<?php 
echo $config['user']['modal']['speed'];
?>
" truespeed>
<div style="font-size:34px;">
<?php 
assets_style('modal.css', 'adverts');
if (isset($objects) && is_array($objects)) {
    foreach ($objects as $items) {
Example #5
0
<?php

assets_script('jquery/jquery-1.11.2.min.js');
assets_script('jquery/plugins/jquery.corner.js');
assets_script('highslide/highslide-full.js');
//assets_script('jquery/jquery-min.js');
//assets_script("hs.graphicsDir = '{assets}js/highslide/graphics/';hs.align = 'center';hs.transitions = ['expand', 'crossfade'];hs.outlineType = 'rounded-white';hs.minWidth = 220;hs.minHeight = 220;hs.fadeInOut = true;hs.dimmingOpacity = 0.55;hs.useBox = true;hs.addSlideshow({interval: 3000, repeat: false, useControls: true,fixedControls: true, overlayOptions: {opacity: .7,position: 'bottom center',hideOnMouseOut: true} });");
//assets_script('jquery/plugins/jquery.simplemodal-1.4.3.js');
//----- jsurl: Манипулирование URL'ами --------
//assets_script('jsurl/url.min.js');
//---- Модальное окно
assets_script('jquery/plugins/jquery.arcticmodal-0.2/jquery.arcticmodal-0.2.min.js');
// сортировка таблиц
//assets_script('jquery/plugins/jquery.tablesorter.js');
//---- JQuery Plugin:  TABLESORTER --------------------------------
$this->assets->script->package('jquery/plugins/tablesorter', array('jquery/plugins/tablesorter/jquery.tablesorter.js', 'jquery/plugins/tablesorter/blue/style.css'), false);
//---- Flash Pleer:  Flowplayer HTML5--------------------------------
$this->assets->mixed->package('flashpleer/flowplayer', array('flashpleer/flowplayer/flowplayer.min.js', 'flashpleer/flowplayer/config.js', 'flashpleer/flowplayer/skin/playful.css'), false);
$flowplayer = '
	flowplayer.conf = {
   	engine: "flash",
   	swf: "/{assets}mixed/flashpleer/flowplayer/flowplayer.swf"
};
';
//$this->assets->script->load($flowplayer, false);
//---- Flash Pleer:  Flowplayer Flash --------------------------------
/*
$this->assets->mixed->package('flashpleer/flowplayer_flash',
							 //public file
							 array(
							 			//--js flowplayer--
Example #6
0
$sortable = isset($sortable) ? 'true' : 'false';
$searchable = isset($searchable) ? 'true' : 'false';
$multiselect = '
	function gridEditMultiselect(field)
	{
              $(".ui-"+field).remove();
              $("."+field).show().multiselect(
              {
              	sortable: ' . $sortable . ',
              	searchable: ' . $searchable . '
              });

	}
';
//регистрируем скрипт
assets_script($multiselect, false);
if (!isset($selector)) {
    $selector = 'multiselect';
}
if (!is_array($selector)) {
    $selector = array($selector);
}
echo '<script>
		$grid.bind("jqGridAddEditAfterShowForm", function(event, $form)
		{
		   var row_id = $(this).getGridParam("selrow");
		';
foreach ($selector as $item) {
    echo '
				gridEditMultiselect("' . $item . '");
			    ';