Location: PHPKode > projects > SimpleHRM > simplehrm-1.0-beta1/simplehrm-1.0-beta1/templates/default/admin/home.tpl.html
{* notag *}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>HRM ADMIN</title>
<!--<link REL="SHORTCUT ICON" HREF="{$smarty.const.LBL_SITE_URL}/image/icon_sqr_polar.gif">-->
{assign var=css value=$util->get_values_from_config('ADMIN_THEME')}
<link rel="stylesheet" type="text/css" href="##LBL_SITE_URL##templates/css_theme/css/{$css.css}.css" />
<!--[if lte IE 7.0]><link rel="stylesheet" type="text/css" href="##LBL_SITE_URL##templates/css_theme/ie.css" media="screen, projection, tv" /><![endif]-->
<!--[if IE 8.0]>
    {literal}
    <style type="text/css">
        form.fields fieldset {margin-top: -10px;}
    </style>
    {/literal}
<![endif]-->
<script type="text/javascript" src="##JS_PATH##libsext/jquery/jquery.js"></script>
<script type="text/javascript" src="##JS_PATH##libsext/fancybox/jquery.fancybox-1.3.2.pack.js"></script>
<script type="text/javascript" src="##LBL_SITE_URL##templates/flexyjs/flexymessage.js"></script>

<script type="text/javascript" src="##JS_PATH##libsext/fckeditor/fckeditor.js"></script>
<script type="text/javascript" src="##JS_PATH##libsext/jquery/jquery.autocomplete.js"></script>
<script type="text/javascript" src="##JS_PATH##libsext/jquery/overlib.js"></script>
<script type="text/javascript" src="##JS_PATH##libsext/jquery/jquery.validate.js"></script>
<script type="text/javascript" src="##JS_PATH##libsext/jquery/jquery.metadata.js"></script>
<script type="text/javascript" src="##JS_PATH##libsext/jquery/ajaxfileupload.js"></script>
<script type="text/javascript" src="##JS_PATH##libsext/jquery/ajaxupload.js"></script>
<script type="text/javascript" src="##JS_PATH##libsext/jquery/jquery-ui.js"></script>

<link rel="stylesheet" type="text/css" href="##LBL_SITE_URL##templates/css_theme/jquery-ui-1.7.3.css"/>
<link rel="stylesheet" type="text/css" href="##LBL_SITE_URL##templates/css_theme/fancybox/jquery.fancybox-1.3.2.css"/>

{literal}
<!--[if gte IE 5.5]>
<![if lt IE 7]>
<style type="text/css">
div#fixme {
  /* IE5.5+/Win - this is more specific than the IE 5.0 version */
  left: expression( ( 0 + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );
  top: expression( ( ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' );
}
</style>
<![endif]>
<![endif]-->

<!--for fancybox scroll 
<style type="text/css">
	#fancybox-wrap {
		position: fixed;
	}
</style>-->

{/literal}
<!--[if lte IE 6]><script type="text/javascript" src="js/ddpng.js"></script><script type="text/javascript">
        DD_belatedPNG.fix('#nav #h-wrap .h-ico');
        DD_belatedPNG.fix('.ico img');
        DD_belatedPNG.fix('.msg p');
        DD_belatedPNG.fix('table.calendar thead th.month a img');
        DD_belatedPNG.fix('table.calendar tbody img');
    </script><![endif]-->
<script type="text/javascript">
	var pagi_divid = "{$sm.AJAX}";
</script>
{literal}
<script type="text/javascript">
	$(document).ready(function() {
		fixheader();
		$(" #nav_list ul ").css({display: "none"}); // Opera Fix
		$(" #nav_list li").hover(
			function(){
				$(this).find('ul:first').css({visibility: "visible",display: "none"}).fadeIn(350);
			},
			function(){
				$(this).find('ul:first').css({visibility: "hidden"});
			}
		);

		var $searchq = $("#search-q").attr("value");
		$('#search-q.text').css('color', '#999');
		$('#search-q').focus(function(){
			if ( $(this).attr('value') == $searchq) {
				$(this).css('color', '#555');
				$(this).attr('value', '');
			}
		});
		$('#search-q').blur(function(){
			if ( $(this).attr('value') == '' ) {
				$(this).attr('value', $searchq);
				$(this).css('color', '#999');
			}
		});
		$('#h-wrap').hover(function(){
				$(this).toggleClass('active');
				$("#h-wrap ul").css('display', 'block');
			}, function(){
				$(this).toggleClass('active');
				$("#h-wrap ul").css('display', 'none');
		});
		css_even_odd();
		$('form.fields fieldset:last-child').addClass('last');
		$('ul.simple li:even').addClass('even');
		$('.grid .line:even').addClass('even');
		$('.grid .line:first-child').addClass('firstline');
		$('.grid .line:last-child').addClass('lastline');
		$('#box1 .content#box1-grid').hide();
		
		$('#box1 .header ul a').click(function(){
			$('#box1 .header ul a').removeClass('active');
			$(this).addClass('active'); 
			$('#box1 .content').hide(); 
			$('#box1').find('#' + $(this).attr('rel')).show();
			return false;
		});
	});
	function fixheader(){
		var viewportwidth;
		var viewportheight;
		if (typeof window.innerWidth != 'undefined') {
			viewportwidth = window.innerWidth,
			viewportheight = window.innerHeight
		} else if (typeof(document.documentElement) != 'undefined' && typeof(document.documentElement.clientWidth)!='undefined' && document.documentElement.clientWidth != 0) {
			viewportwidth = document.documentElement.clientWidth,
			viewportheight = document.documentElement.clientHeight
		} else {
			viewportwidth = document.getElementsByTagName('body')[0].clientWidth,
			viewportheight = document.getElementsByTagName('body')[0].clientHeight
		}
		$('#fixme').css({width:viewportwidth+'px'});
	}
	function get_next_page(url, start, limit, div_id) {
		if (!document.getElementById(div_id)) {
			div_id = "content";
		}
		$("#"+div_id).load(url, {'qstart':start, 'limit':limit, 'ce':0,'pg':1}, function(){
			css_even_odd();
		});
	}
	function css_even_odd() {
		$('tbody tr:even').addClass('even');
		$('table.grid tbody tr:last-child').addClass('last');
		$('tr th:first-child, tr td:first-child').addClass('first');
		$('tr th:last-child, tr td:last-child').addClass('last');
	}
	
	
	//Show fancybox modal with content
	function show_fancybox(res){
		$.fancybox(res,{centerOnScroll:true,hideOnOverlayClick:false});
		//$.fancybox(res,{margin:600,hideOnOverlayClick:false});				
	}

	//show error message in case of multiple options for ajax update   -- ex:-config management
	function showmsg(id,msg){
		if(!id)
		var id="errmsg";
		$('#'+id).html(msg).css({'position':'fixed','top':'120px','left':'450px','zIndex':'10055'}).show('slow');
		setTimeout("hidemsg('"+id+"')",3000);
	}
	function hidemsg(id){
		$('#'+id).hide('slow');
	}
	//End show error message




//Below scripts are for different modules
	function addcoup() {
		var url="##LBL_ADMIN_SITE_URL##index.php/page-coupon-choice-show_coupon-ce-0";
		$.post(url,function(response){
			$("#mymodal").html(response);
			cal_position(460,720);
			$('.blockUI').css({zIndex:5});
			$('#validto').datepicker({dateFormat:'yy-mm-dd'});
		});
	}
	function checkall() {
		$('.chkbox').each(function(){
			$(this).attr('checked','checked');	
		});
	}
	function uncheckall() {
		$('.chkbox').each(function(){
			$(this).removeAttr('checked');
		});
	}
	function deleteKey(){
		var keys='';
		$('.chkbox').each(function(){
			if($(this).is(':checked'))
			keys +="'"+$(this).val()+"',";
		});
		//alert(keys);return false;
		var url="##LBL_ADMIN_SITE_URL##index.php/page-coupon-choice-delete_coupon-ce-0";
		if(!keys) {
			alert("Select one checkbox.");
			return false;
		}else {
			$.post(url,{keys:keys}, function(res){
				window.location.href=res;
			});
		}
	}
//faq module----------------------------------
	function addfaq() {
		var url="##LBL_ADMIN_SITE_URL##index.php/page-faq-choice-add_faq";
		$.post(url,{ce:0},function(res){
			$("#mymodal").html(res);
			cal_position(350,500);
		});
	}
	
	function addfaq_Category() {
		var url="##LBL_ADMIN_SITE_URL##index.php/page-faq_category-choice-add_faq";
		$.post(url,{ce:0},function(res){
			$("#mymodal").html(res);
			cal_position(350,500);
		});
	}
	
	function editfaq(faqid) {
		var url="##LBL_ADMIN_SITE_URL##index.php/page-faq-choice-add_faq-edit-1-faq_code-"+faqid;
		$.post(url,{ce:0},function(res){
			$("#mymodal").html(res);
			cal_position(350,500);
		});
	}
	function deleteFaq() {
		var keys='';
		$('.chkbox').each(function(){
			if($(this).is(':checked'))
			keys +=","+$(this).val();
		});
		if(!keys){
			alert("Select one checkbox.");
			return false;
		}else{
			var choice=confirm('Do you want to delete?');
			if(choice){
				var url="##LBL_ADMIN_SITE_URL##index.php/page-faq-choice-delete_faq-ce-0";
				$.post(url,{faqcode:keys}, function(res){
					window.location.href=res;
				});
			}
		}
	}
	
//Coupon module----------------------------------------
	function coup_del(url) {
		var choice=confirm('Do you want to delete?');
		if(choice){
			window.location.href = url ;
		}else {
			return false;
		}
	}

//Product module---------start-------------------------
/*<!--		$(document).ready(function(){
			$("#product_name").autocomplete('##LBL_ADMIN_SITE_URL##index.php/page-product-choice-auto_product_name-ce-0',{
					delay: 500
			});
			$("#product_code").autocomplete('##LBL_ADMIN_SITE_URL##index.php/page-product-choice-auto_product_code-ce-0',{
					delay: 500
			});
			$("#product_desc").autocomplete('##LBL_ADMIN_SITE_URL##index.php/page-product-choice-auto_product_description-ce-0',{
					delay: 500
			});
		});
	function search_list(){
	 	var name=$('#product_name').val();
		var code=$('#product_code').val();
		var desc=$('#product_desc').val();
		var url="##LBL_ADMIN_SITE_URL##index.php/page-product-choice-search";
		$.post(url,{name:name,code:code,desc:desc,ce:0},function(res){
			$('#dv4').html(res);
		});
	}
	var code;
	function add(){
	 var url="##LBL_ADMIN_SITE_URL##index.php/page-product-choice-add-ce-0";  
		$.post(url,function(response){
			$("#mymodal").html(response);
			cal_position(437,712);
		});
	}
	function edit(code){
	 var url="##LBL_ADMIN_SITE_URL##index.php/page-product-choice-edit-ce-0-code-"+code;
		$.post(url,function(response){
			$("#mymodal").html(response);
			cal_position(450,680);
		});
	}
	function del(code){
	 var url="##LBL_ADMIN_SITE_URL##index.php/page-product-choice-delete";
	 var conf=confirm('Are you sure to delete this record?');
	 if(conf){
		 $.post(url,{ce:0,code:code,jv:1},function(res){
			$('#dv4').html(res);
		 });
	 }else
	 	return false;
	}
	function show_detail(code){
	 var url="##LBL_ADMIN_SITE_URL##index.php/page-product-choice-show_detail";
		$.post(url,{ce:0,code:code},function(response){
			$("#mymodal").html(response);
			cal_position(550,550);
		});
	}
	function show_images(code){
	 var url="##LBL_ADMIN_SITE_URL##index.php/page-product-choice-show_images";
		$.post(url,{ce:0,code:code},function(response){
			$("#mymodal").html(response);
			cal_position(300,300);
		});
	}
-->
//Product module---------end-------------------------
*/
</script>

{/literal}
</head>
<body>
<div id="errmsg" class="errmsg"></div>
<div id="mymodal" style="display:none"></div>
	<div id="fixme">
        <div id="header">
            <div class="inner-container clearfix">
                <div class="clear"></div>
                <span class="admin_title">HRM Admin</span>
            	<div class="clearfix"></div>
                <h1 id="logo" class="fl">
                    <div class="menu-inner-container">
                        {include file="admin/menu"}                
                    </div>
                </h1>
                
          <div id="userbox">
                    <div class="inner">
                        <strong>{$smarty.session.username}</strong>
                            <ul class="clearfix">
                                <li><a href="##LBL_ADMIN_SITE_URL##index.php/page-user-choice-profile">Modify profile</a></li>
                            </ul>
                    </div>
<!-- <a id="logout" title="Logout" href="##LBL_SITE_URL##index.php/page-user-choice-logout-a-1">log out<span class="ir"></span></a>-->
                    <a id="logout" title="Logout" href="##LBL_SITE_URL##logout">log out<span class="ir"></span></a>            </div>
          </div>
        </div>
    </div>
    <div class="clearfixme"></div>
     
    <div>
        <div class="inner-container">
		<div id="target" align="center"><font color="red">{myinclude file="common/messages" module="global"}</font></div>
		{if $smarty.request.page!=''}
			<div id="content">{include file=$content}</div>
		{else}
			<div style="min-height:300px"></div>
		{/if}  
		<div id="footer"><p>&copy; Copyright 2011 <a href="http://simplehrm.com" target="_blank">SimpleHRM.com</a></p>

		</div>        
        </div>
    </div>    
</body>
</html>
Return current item: SimpleHRM