Preview: innersubject_bk.php
                Size: 6.95 KB
              
              
                
              
            
            /home/jambtst2015/public_html/protected/views/layouts/innersubject_bk.php
            <!doctype html>
<html>
<head>
<meta charset="utf-8">
<title><?php echo CHtml::encode($this->pageTitle); ?></title>
<!--fav icon start-->
<link href="<?php echo Yii::app()->request->baseUrl; ?>/images/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<!--fav icon end-->
<!--[if IE 7]>
	<body class="ie7">
<![endif]-->
<!--[if IE 8]>
	<body class="ie8">
<![endif]-->
<!--[if IE 9]>
	<body class="ie9">
<![endif]-->
<!--[if lt IE 9]><script  type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/html5.js"></script><![endif]-->
 <link type="text/css" rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl; ?>/css/jquery.custom-scrollbar.css"/>
<!--general css start-->
<link href="<?php echo Yii::app()->request->baseUrl; ?>/css/style.css" rel="stylesheet" type="text/css" media="all">
<!--general css end-->
<link href="<?php echo Yii::app()->request->baseUrl; ?>/css/responsive.css" rel="stylesheet" type="text/css" media="all">
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" />
<!--viewport tag start-->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<!--viewport tag end-->
<!-- accordian for ie---------------->
<!--[if lte IE 6]>
<style type='text/css'>
  * html #main, * html #container, #side a, a.trigger, .accordion .inner {height:1%}
  #lenta{height:52px}
</style>
<script type="text/javascript">
   try { document.execCommand( "BackgroundImageCache", false, true); } catch(e) {};
</script>
<![endif]-->
<!--[if lte IE 7]>
<style type="text/css">
  .accordion .inner {position:static; overflow:visible}
</style>
<![endif]-->
<!--[if !lt IE 6]><!-->
 <!-- for ie responsive -->      
<!--[if !lte IE 6]><!-->
	<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/respond.min.js"></script>
<!--<![endif]-->
</head>
<body>
<!--wrapper start-->
<section class="wrapper">
<?php echo $content; ?>
</section>
<!--wrapper end-->
<?php /*?><script src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery.js"></script>
<!--js for accordian---------------------->
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery_002.js"></script>
<script type="text/javascript">
<!--//--><![CDATA[//><!--
$("html").addClass("js");
$(function() {
  $("#side").accordion({
    event: "click", 
    interval: 400,
    initShow : "#current"
  });
  $("#main").accordion({
      obj: "div", 
      wrapper: "div", 
      el: ".h", 
      head: "h4", 
      next: "div", 
      initShow : "div.outer:first",
      event : "click",
      collapsible : false
    });
  $("html").removeClass("js");
});
//--><!]]>
</script><?php */?>
<script src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery-1.7.2.js"></script>
<!-- for custome scroller---------------->
	<!--<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>-->
	<script src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery.custom-scrollbar.js"></script>
    <script type="text/javascript">
    $(window).load(function () {
        $(".demo").customScrollbar();
    });
    </script>
<!-- for custome scroller---------------->
<!--for responsive_menu-->
<script>
	 // DOM ready
	 $(function() {
      // Create the dropdown base
      $("<select />").appendTo("nav");
      // Create default option "Go to..."
      $("<option />", {
         "selected": "selected",
         "value"   : "",
         "text"    : "Menu..."
      }).appendTo("nav select");
      // Populate dropdown with menu items
      $("nav a").each(function() {
       var el = $(this);
       $("<option />", {
           "value"   : el.attr("href"),
           "text"    : el.text()
       }).appendTo("nav select");
      });
	   // To make dropdown actually work
	   // To make more unobtrusive: http://css-tricks.com/4064-unobtrusive-page-changer/
      $("nav select").change(function() {
        window.location = $(this).find("option:selected").val();
      });
	 
	 });
	</script>
    
    <!--for responsive_menu-->
	<script type="text/javascript">
	$(document).ready(function(e) {
		/*======move div on click========*/
		$( ".avsubjects" ).delegate( ".sortable-item", "dblclick", function() {
			var val = '0';
			var list = $(".mysubjects .sortable-item").map(function(){
				val++;
			}).get();
			if(val < subCount){
				$(this).appendTo('.clicksubjects').hide().fadeIn(1000);
			}
			var val = '0';
			var list = $(".mysubjects .sortable-item").map(function(){
				val++;
			}).get();
			if(val == subCount){
				$(".avsubjects").addClass("subdisable");
			}
    	});
		$( ".clicksubjects" ).delegate( ".sortable-item", "dblclick", function() {
        	$(this).appendTo('.avsubjects').hide().fadeIn(1000);
			$(".avsubjects").removeClass("subdisable");
    	});
		/*======move div on click========*/
		$('#savesubject').click(function(){
			//alert(1111);
			var ids = '';
			var sep = '';
			var list = $(".mysubjects .sortable-item").map(function(){
				//alert($(this).attr("id"));
				//return parseInt($(this).attr("id"), 10);
				var id = $(this).attr("id");
				ids = ids + sep + id;
				sep = ',';
			}).get();
			//alert(ids);
			if(ids!=''){
				$.ajax({
				url : '<?php echo Yii::app()->request->baseUrl; ?>/home/ajax/',
				type : 'POST',
				data : 'type=userSub&ids='+ids,
				//dataType : 'json',
				beforeSend : function(jqXHR, settings ){
					//alert(1);
				},
				success : function( data, textStatus, jqXHR){
					
					//alert(data);
					//location.href = 'data';
					if(data!=''){
						//$("#"+id).remove();
						location.href = data; 
					}
				},
				error : function( jqXHR, textStatus, errorThrown){
				}
			});
			}else{
				//$("#nosubject").fadeIn(1500).slideUp("slow");
				$("#nosubject").fadeIn(2000,function(){
					setTimeout(function(){
						$("#nosubject").slideUp(1000);
					},5000);
				});
			}
		});
	});
	</script>
    <?php /*?><script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.0/jquery-ui.min.js"></script>	
    <script type="text/javascript">
	$(document).ready(function(){
	
		// Example 1.1: A single sortable list
		$('#example-1-1 .sortable-list').sortable();
	
		// Example 1.2: Sortable and connectable lists
		$('#example-1-2 .sortable-list').sortable({
			connectWith: '#example-1-2 .sortable-list'
		});
	
		// Example 1.3: Sortable and connectable lists with visual helper
		$('#example-1-3 .sortable-list').sortable({
			connectWith: '#example-1-3 .sortable-list',
			placeholder: 'placeholder',
		});
	
		// Example 1.4: Sortable and connectable lists (within containment)
		$('#example-1-4 .sortable-list').sortable({
			connectWith: '#example-1-4 .sortable-list',
			containment: '#containment'
		});
	
	});
	
	</script><?php */?>
</body>
</html>
                                          Directory Contents
Dirs: 0 × Files: 10