<?php
ob_start();
session_start();
//if(!isset($_SESSION['login_user'])){
//header("Location: admin.php");}

if (($_SESSION['sap_u_741']==""))
{
	header("Location: index.php");
	exit();
}

require_once("lib/sapexperienceDetails.php");
$ob = new sapexperienceDetails();

require_once("lib/saptrainingDetails.php");
$sapob = new saptrainingDetails();
$countsap = "0";

$uid = $_SESSION['sap_u_741'];

if(isset($_POST) && !empty($_POST)){
	/*echo "<pre>";
	print_r($_POST);
	exit;*/
	if(isset($_POST['edit'])){
		$ob->deleteAllEducation();
		$result = $ob->addDetails($_POST);
	} else {
		$result = $ob->addDetails($_POST);
	}
	header("Location:sap_training.php?page=se");
} else {
	$details = $ob->getDetails($uid);
	$arremp_count = $ob->getEmployerDetails($uid);
	$sapdetails = $sapob->getCountCertDetails($uid);
	$countsap = $sapdetails[0];
	//echo "<pre>";
	//print_r($details);
	//exit;
}


	$query1      = "select distinct solution from sap";
    $queryres    = mysql_query($query1);
    $solutionarr = array();
    for ($i = 0; $i < mysql_num_rows($queryres); $i++) {
        $solution = mysql_result($queryres, $i, "solution");
        array_push($solutionarr, $solution);
        
    }
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--[if IE 6 ]> <html  xml:lang="en" lang="en" class="ie6" xmlns="http://www.w3.org/1999/xhtml"> <![endif]-->
<!--[if !(IE 6)]><!-->
<!--[if IE 7 ]> <html  xml:lang="en" lang="en" class="ie7" xmlns="http://www.w3.org/1999/xhtml"> <![endif]-->
<!--[if !(IE 7)]><!-->
<!--[if IE 8 ]> <html  xml:lang="en" lang="en" class="ie8" xmlns="http://www.w3.org/1999/xhtml"> <![endif]-->
<!--[if !(IE 8)]><!-->
<html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" xmlns:fb="http://www.facebook.com/2008/fbml">
<![endif]-->
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta http-equiv="Content-Language" content="en-US" />
<meta name="skin" content="experience" />
<link rel="shortcut icon" href="/favicon.ico" />
<link rel="stylesheet" type="text/css" media="all" href="global/ui/css/sapcom.css" />
<link rel="stylesheet" type="text/css" media="print" href="global/ui/css/print.css" />
<title>SAP</title>
<meta name="description" content="" />
<meta name="keywords" content="" />
<script type="text/javascript" src="global/ui/js/jquery.js"></script>
<!-- for date picker -->
<script type="text/javascript" src="jquery_1.8.2_min.js"></script>
<script type="text/javascript" src="jquery.validate.min.js"></script>
<!-- <script type="text/javascript" src="validation.js"></script> -->
<script type="text/javascript" src="firebug.js"></script>
<script type="text/javascript" src="date.js"></script>
<script type="text/javascript" src="jquery.datePicker.js"></script>
<link rel="stylesheet" type="text/css" media="screen" href="datePicker.css">
<link rel="stylesheet" type="text/css" media="screen" href="demo.css">
<script src="cities.js" type="text/javascript"></script>
<script type="text/javascript" charset="utf-8">
var datediff = 0;
    $(function(){
		$('.date-pick').datePicker(
			{
				startDate: '01/01/1930',
				endDate: (new Date()).asString()
			}
		);
		$('.date-pick1').datePicker(
			{
				startDate: '01/01/1930',
				endDate: (new Date()).asString()
			}
		);
		
		$("#addmore-cource,#addmore-employer").click(function(){
			//$("<div class='myClass'>Another paragraph!</div>").insertBefore(this);
			//console.log(this);
			if(validate_data(1) == false){
				return;
			}
			
			var cource_count = $('#cource_count').val();
			cource_count = parseInt(cource_count) + 1;
			$('#emp_count').val("1");
			var emp_count = $('#emp_count').val();
			if(this.id == "addmore-employer"){
				emp_count = parseInt(emp_count) + 1;
				$('#emp_count').val(emp_count);
			}
			if(cource_count <= 10){
				var nexttable = '<br /><div style="margin-left:15px;border-bottom:1px solid #cccccc;width:880px;"></div><br /><table id="table_'+cource_count+'" border="0" cellspacing="1" cellpadding="3" width="880" align="center"><tr>	<td align="right" height="35"  width="80"><font color="#ff0000">*</font>Project Name:</td>	<td><input type="text" name="projectname_'+cource_count+'" value="" class="txt1bg" style="width:170px;"></td><td></td>	<td align="right"  width="120"><font color="#ff0000">*</font>Nature of Project:</td><td colspan="2"><select name="projectnature_'+cource_count+'" style="width:140px;"><option value="">Please select<option value="Implementation">Implementation<option value="Support">Support<option value="Rollout">Rollout<option value="Installation">Installation<option value="Go live">Go live<option value="Post go live">Post go live<option value="Upgrade">Upgrade<option value="Development">Development<option value="On Site">On Site</td></td></tr><tr><td colspan="6"></td></tr><tr><td align="right" height="35"><font color="#ff0000"></font>Client:</td><td><input type="text" name="client_'+cource_count+'" value="" class="txt1bg" style="width:170px;"></td><td><img src="images/b.gif" width="30" height="1" alt="" /></td><td align="right"><br /><font color="#ff0000">*</font>Project Duration</td><td><font size="1">From:</font><br /><input id="start-date" class="date-pick'+cource_count+'" name="durationfrom_'+cource_count+'"></td><td width="230"><font size="1">To:</font><br /><input id="start-date" class="date-pick'+cource_count+'" name="durationto_'+cource_count+'"></td></tr><tr><td colspan="6"></td></tr><tr>	<td align="right" height="35" rowspan="4" valign="top"><font color="#ff0000">*</font>Roles and<br />responsibilities:</td><td rowspan="4" valign="top"><textarea name="roles_'+cource_count+'" value="" class="txt1bg1" style="width:170px;height:100px"></textarea></td>	<td rowspan="4"></td><td align="right" valign="top"><font color="#ff0000">*</font>SAP Modules:</td><td colspan="2"><div id="sapmodules_'+cource_count+'"><select name="sel1_'+cource_count+'" id="sel1_'+cource_count+'" class="sel1"><option selected value="select">--Select--</option></select><br /><br /><select name="sel2_'+cource_count+'" id="sel2_'+cource_count+'" class="sel2"><option selected value="select">--Select--</option></select><br /><br /><select name="sel3_'+cource_count+'" id="sel3_'+cource_count+'" class="sel3"><option selected value="select">--Select--</option></select><br /><br /><select name="sel4_'+cource_count+'" id="sel4_'+cource_count+'" class="sel4"><option selected value="select">--Select--</option></select><br /><br /><input type="hidden" name="modules_'+cource_count+'"></div></td></tr><tr><td colspan="6"></td></tr><tr><td align="right" valign="top"><font color="#ff0000">*</font>Version of the Projects:</td><td colspan="2"><select name="ver1_'+cource_count+'" id="ver1_'+cource_count+'" class="ver1"><option selected value="select">--Select--</option></select><br /><br /><select name="ver2_'+cource_count+'" id="ver2_'+cource_count+'" class="ver2"><option selected value="select">--Select--</option></select><br /><br /><select name="ver3_'+cource_count+'" id="ver3_'+cource_count+'" class="ver3"><option selected value="select">--Select--</option></select><br /><br /><input type="hidden" name="projectversion_'+cource_count+'"></td></tr><tr><td align="right" height="35"><font color="#ff0000">*</font>Versions&nbsp;Experience:</td><td><select name="versionexperience_'+cource_count+'" style="width:85px;"><option value="">Years</option>';
						for(i=0;i<=50;i++)
						{
							nexttable +="<option value="+i+">"+i;
						}
					nexttable += '</select><select name="versionexperience_months_'+cource_count+'" style="width:85px;"><option value="">Months</option>';
						for(i=0;i<=12;i++)
						{
							nexttable +="<option value="+i+">"+i;
						}
					nexttable += '</select></td></tr><tr><td colspan="6"><input type="hidden" value="employer_'+emp_count+'" name="employer_'+cource_count+'" /></td></tr></table>';
				$('#cource_count').val(cource_count);
				$(nexttable).insertBefore("#tbl-addmore-cource");
				
				date_pick_class = '.date-pick'+cource_count;
				$(date_pick_class).datePicker(
					{
						startDate: '01/01/1930',
						endDate: (new Date()).asString()
					}
				);	
				
				loadFirstDropdownModule();
				loadFirstDropdownVersion();

				loaddropdowns();
				loadVersionsdropdowns();
			}
			
		});
		
	});
	
	$(document).ready(function () {
    window.onerror = function (a, b, c) {

        alert(a);
        alert(b);
        alert(c);
    }
    
	loaddropdowns();
	loadVersionsdropdowns();
});

function loaddropdowns(){
	/*$.getJSON('product.php', function (data) {

        $.each(data, function (key, value) {
            $(".sel1").append("<option value='" + value + "'>" + value + "</option>");
        });
    });*/

    $('.sel1').change(function () {
		
		var nextsiblings = $(this).nextAll("select");
	
		var sel1 = $(this);
		var sel2 = nextsiblings.eq(0);
		var sel3 = nextsiblings.eq(1);
		var sel4 = nextsiblings.eq(2);
		
        sel2.children().remove().end().append('<option selected value="select">--Solution Short Text--</option>');
        sel3.children().remove().end().append('<option selected value="select">--Solution Long Text--</option>');
        sel4.children().remove().end().append('<option selected value="select">--Product Name--</option>');
        var solution = sel1.val();
        $.getJSON('product.php?solution=' + encodeURIComponent(solution), function (data) {

            $.each(data, function (key, value) {
				if(key == "solution_short_text"){
					var solution_short = value;
					for(i=0;i<solution_short.length;i++){
						sel2.append("<option value='" + solution_short[i] + "'>" + solution_short[i] + "</option>");
					}
				}
				
				if(key == "solution_long_text"){
					var solution_long = value;
					for(i=0;i<solution_long.length;i++){
						sel3.append("<option value='" + solution_long[i].id + "'>" + solution_long[i].txt + "</option>");
					}
				}
            });
        });



    });

    $('.sel3').change(function () {
		
		var prevsiblings = $(this).prevAll("select");
		var nextsiblings = $(this).nextAll("select");
		var sel1 = prevsiblings.eq(1);
		var sel2 = prevsiblings.eq(0);
		var sel3 = $(this);
		var sel4 = nextsiblings.eq(0);

        var solution_short_text = sel2.val();
        var solution_long_text = sel3.val();

        if (solution_short_text === "select" || solution_long_text === "select") {
            alert("please choose options carefully");
        } else {
            sel4.children().remove();
            $.getJSON('product.php?shorttext=' + encodeURIComponent(solution_short_text) + '&solution_long_text=' + encodeURIComponent(solution_long_text), function (data) {

                $.each(data, function (key, value) {
                    sel4.append("<option value='" + value + "'>" + value + "</option>");
					var nextInput = sel4.nextAll("input");
					var input4 = nextInput.eq(0);
					input4.val(value);
                });
            });
        }

    });

}

function loadFirstDropdownModule(){
	$.getJSON('product.php', function (data) {

        $.each(data, function (key, value) {
            $(".sel1").append("<option value='" + value + "'>" + value + "</option>");
        });
    });
}

function loadFirstDropdownVersion(){
	$.getJSON('product.php', function (data) {

        $.each(data, function (key, value) {
            $(".ver1").append("<option value='" + value + "'>" + value + "</option>");
        });
    });
}

function loadVersionsdropdowns(){
	/*$.getJSON('product.php', function (data) {

        $.each(data, function (key, value) {
            $(".ver1").append("<option value='" + value + "'>" + value + "</option>");
        });
    });*/

    $('.ver1').change(function () {
		
		var nextsiblings = $(this).nextAll("select");
	
		var ver1 = $(this);
		var ver2 = nextsiblings.eq(0);
		var ver3 = nextsiblings.eq(1);
		//var ver4 = nextsiblings.eq(2);
		
        ver2.children().remove().end().append('<option selected value="select">--Solution Short Text--</option>');
        ver3.children().remove().end().append('<option selected value="select">--Solution Long Text--</option>');
        //ver4.children().remove().end().append('<option selected value="select">--Product Name--</option>');
        var solution = ver1.val();
        $.getJSON('product.php?solution=' + encodeURIComponent(solution), function (data) {

            $.each(data, function (key, value) {
				if(key == "solution_short_text"){
					var solution_short = value;
					for(i=0;i<solution_short.length;i++){
						ver2.append("<option value='" + solution_short[i] + "'>" + solution_short[i] + "</option>");
					}
				}
				
				if(key == "solution_long_text"){
					var solution_long = value;
					for(i=0;i<solution_long.length;i++){
						ver3.append("<option value='" + solution_long[i].id + "'>" + solution_long[i].txt + "</option>");
					}
				}
            });
        });



    });

    $('.ver3').change(function () {
		
		var prevsiblings = $(this).prevAll("select");
		var nextsiblings = $(this).nextAll("select");
		var ver1 = prevsiblings.eq(1);
		var ver2 = prevsiblings.eq(0);
		var ver3 = $(this);
		//var ver4 = nextsiblings.eq(0);

        var solution_short_text = ver2.val();
        var solution_long_text = ver3.val();

        if (solution_short_text === "select" || solution_long_text === "select") {
            alert("please choose options carefully");
        } else {
            //ver4.children().remove();
            $.getJSON('product.php?shorttext=' + encodeURIComponent(solution_short_text) + '&solution_long_text=' + encodeURIComponent(solution_long_text), function (data) {

                $.each(data, function (key, value) {
                    //ver4.append("<option value='" + value + "'>" + value + "</option>");
					var nextInput = ver3.nextAll("input");
					var input4 = nextInput.eq(0);
					input4.val(value);
                });
            });
        }

    });

}

</script>
<!-- end for date picker addition -->
<script src="emailchk.js" type="text/javascript"></script>
<script type="text/javascript" charset="utf-8">
function monthDiff(d1, d2) {
    var months;
    months = (d2.getFullYear() - d1.getFullYear()) * 12;
    months -= d1.getMonth() + 1;
    months += d2.getMonth();
    return months <= 0 ? 0 : months;
}
function validate_data(strCheck){
	//alert("here");
	var cource_count = $('#cource_count').val();
	//alert(cource_count);
	for (i=1;i<=cource_count;i++){
		projectname=eval("document.f1.projectname_"+i+".value");
		projectnature=eval("document.f1.projectnature_"+i+"[document.f1.projectnature_"+i+".selectedIndex].value");
		client=eval("document.f1.client_"+i+".value");
		durationfrom=eval("document.f1.durationfrom_"+i+".value");
		durationto=eval("document.f1.durationto_"+i+".value");
		roles=eval("document.f1.roles_"+i+".value");
		modules=eval("document.f1.sel4_"+i+"[document.f1.sel4_"+i+".selectedIndex].value");
		projectversion=eval("document.f1.ver3_"+i+"[document.f1.ver3_"+i+".selectedIndex].value");
		versionexperience=eval("document.f1.versionexperience_"+i+"[document.f1.versionexperience_"+i+".selectedIndex].value");
		versionexperience_months=eval("document.f1.versionexperience_months_"+i+"[document.f1.versionexperience_months_"+i+".selectedIndex].value");
		
		//alert("courcename="+courcename);
		if (trim(projectname)==""){
			alert("Enter the Project Name");
			eval("document.f1.projectname_"+i+".focus()");
			return false;
		}
		if (trim(projectnature)==""){
			alert("Select nature of Project");
			eval("document.f1.projectnature_"+i+".focus()");
			return false;
		}
		/*if (trim(client)==""){
			alert("Enter the Client Name");
			eval("document.f1.client_"+i+".focus()");
			return false;
		}*/
		if (trim(durationfrom)==""){
			alert("Select Duration");
			eval("document.f1.durationfrom_"+i+".focus()");
			return false;
		}
		if (trim(durationto)==""){
			alert("Select Duration");
			eval("document.f1.durationto_"+i+".focus()");
			return false;
		}
		
		var fromsplit = durationfrom.split("/");
		date1 = new Date(fromsplit[2] + "-" + fromsplit[1] + "-" +fromsplit[0]);
		
		var tosplit = durationto.split("/");
		date2 = new Date(tosplit[2] + "-" + tosplit[1] + "-" +tosplit[0]);
		
		if(date2 < date1) {
			alert("From Date should be less than To Date");
			eval("document.f1.durationfrom_"+i+".focus()");
			return false;
		}
		
		datediff = datediff + monthDiff(date1,date2);
		
		
		if (trim(roles)==""){
			alert("Enter your roles and responsibilities");
			eval("document.f1.roles_"+i+".focus()");
			return false;
		}
		if (trim(modules)=="select"){
			alert("Select SAP Solutions");
			eval("document.f1.sel4_"+i+".focus()");
			return false;
		}
		if (trim(projectversion)=="select"){
			alert("Enter Version of Projects");
			eval("document.f1.ver3_"+i+".focus()");
			return false;
		}
		if (trim(versionexperience)==""){
			alert("Select Version Experience");
			eval("document.f1.versionexperience_"+i+".focus()");
			return false;
		}
		
		if (trim(versionexperience_months)==""){
			alert("Select Version Experience");
			eval("document.f1.versionexperience_months_"+i+".focus()");
			return false;
		}
	}
	
	if(datediff < 12 && strCheck==0){
			alert("Duration doesn’t meet min 12 months criteria");
			eval("document.f1.durationfrom_1.focus()");
			return false;
		}
	
	if(strCheck == 1){
		return true;
	}

	//flag=confirm("Please ensure that the entry is correct. You will not be able to edit your Details again.")
	//if (flag)
		document.f1.submit();
	//else
		//return false;

}
</script>
<style>
#sel1,#sel2,#sel3,#sel4 {
	width:400px;
}
#ver1,#ver2,#ver3{
	width:400px;
}

.sel1,.sel2,.sel3,#sel4 {
	width:400px;
}
.ver1,.ver2,.ver3{
	width:400px;
}
</style>
</head>
<body id="secondary">
<div id="page">
  <!--begin header content-->
  <!--googleoff: index-->
  <div id="headercontent">
    <div id="header">
      <q><a href="/" title="SAP"><img src="global/ui/images/logos/sap-logo.png" alt="SAP" /><span>The Best-Run Businesses Run SAP</span></a></q>
      <ul id="nav-utilitytop">
        <li><a href="#" id="utilitynav-locationselect" title="Change Country/Language">Newsletter<span>(change Country/Language)</span></a></li>
        <li><a href="#" id="utilitynav-buy" title="Buy SAP Products Online">Contact Us</a></li>
        <li><a href="#" id="utilitynav-flash" title="Subsribe to SAP Flash">Your SAP.com</a></li>
        <!-- <li class="login"><a href="#" title="Log In To SAP.com">My SAP Profile</a></li> -->
      </ul>
      <!-- END UTILITY NAV TOP -->
      <ul id="nav-utilitybtm">
        <!--begin-ajax-update-region targetid="nav-utilitybtm"-->
        <li id="utilitynav-phone"><a href="" class="clearfix">+91-80-6655771/1-800-255-2208(India)</a></li>
      <!--   <li><a href="#" title="Have Us Call You">Call Me Now</a></li>
        <li><a href="#" title="Chat Online With Us">Chat Now</a></li>
        <li><a href="#" title="E-Mail SAP">Contact Us</a></li> -->
        <!--end-ajax-update-region-->
      </ul>
      <!-- END UTILITY NAV BOTTOM -->
     <!--  <form action="#" method="post"  class="search" id="searchsite" title="Search SAP.com">
        <fieldset>
          <label for="searchsite-input">Search</label>
          <input type="text" class="search-input focusClear" id="searchsite-input" name="searchsite-input" />
          <input type="submit" class="search-submit" id="searchsite-submit" value="" />
        </fieldset>
      </form> -->
      <!-- END SEARCH FORM -->
    </div>
    <!-- END HEADER-->
  </div>
  <!--end header content-->
  <!--googleon: index-->
  <div id="page-content">
    <div>
      <div id="nav-main">
	  <p><strong><a href="#">SAP<br />
          Site Section</a></strong></p>
        <ul>
          <li><a href="http://www.sap.com/india/index.epx" target="_blank"><span>SAP India</span></a></li>
          <li><a href="http://www.sap.com/india/training-and-education/index.epx" target="_blank"><span>SAP India Education Services</span></a></li>
          <!-- <li><a href="http://www.sap.com/asia/services/education/centres/partners.epx" target="_blank"><span>SAP Education Partners</span></a></li>-->
          <li><a href="https://training.sap.com/in/" target="_blank"><span>SAP Training & Certification</span></a></li>
          <!-- <li><a href="http://www.sap.com/india/services/education/markyourcalendar.epx" target="_blank"><span>Course Schedule</span></a></li>-->
          <li><a href="https://training.sap.com/in/en/search" target="_blank"><span>SAP Training Search</span></a></li>
        </ul>
      </div>
      <!-- END MAIN NAV -->
    </div>
    <div id="breadcrumb">
      <ul>
        <li><a href="index.php"><span>Home</span></a></li>
        <li><a href="certification_main.php"><span>SAP Certification</span></a></li>
        <li><a href="direct_certification.php"><span>Direct Certification</span></a></li>
		<li><a href="guidelines.php"><span>Guidelines</span></a></li>
        <li><span>Profiling</span></li>
      </ul>
	  <div class="welcometext"><a href="#">Welcome <?php echo $uid;?></a> | <a href="log_out.php">Log Out</a></div>
    </div>
    
	<!-- prash content -->
	
	<div id="sub">
      <div id="subtop" class="clearfix diag-bkg">
        <ul id="nav-sub" class="clearfix">
          <li><a href="personal_details.php<?php //if(!empty($details)) echo 'personal_details.php'; else echo '#';?>"><span>Personal Details</span></a></li>
          <li><a href="<?php if(!empty($details)) echo 'sap_experience.php'; else echo '#';?>" class="on"><span>SAP Experience</span></a></li>
		  <li><a href="<?php if(!empty($details)) echo 'sap_training.php'; else echo '#';?>"><span>SAP Training</span></a></li>
        </ul>
		<?php if(isset($_GET['page']) && $_GET['page'] == "pd") {?>
		<div style="float:left;color:red">Your Personal Details have been saved</div>
		<?php } ?>
        <div align="right" style="background-color:#ffffff;font-size:11px;height:20px">An <font color="#ff0000">*</font> indicates required field.</div>
        <div id="subtop-left-content"><br />
<form name="f1" id="f1" method="post" action="sap_experience.php">
<?php 
if(!empty($details)) {
	include("tpl.sap_experience.php");
	$cource_count = count($details);
	$emp_count = $arremp_count['emp_count'];
} else {
	$cource_count = 1;
	$emp_count = 1;
?>
<table id="table_1" border="0" cellspacing="1" cellpadding="3" width="880" align="center">
<tr>
	<td align="right" height="35"  width="80"><font color="#ff0000">*</font>Project Name:</td>
	<td>
		<input type="text" name="projectname_1" value="" class="txt1bg" style="width:170px;">
	</td>
	<td></td>
	<td align="right"  width="120"><font color="#ff0000">*</font>Nature of Project:</td><td colspan="2"><select name="projectnature_1" style="width:140px;">
<option value="">Please select
<option value="Implementation">Implementation
<option value="Support">Support
<!-- <option value="Rollout">Rollout -->
<option value="Installation">Installation
<!-- <option value="Go live">Go live -->
<!-- <option value="Post go live">Post go live -->
<option value="Upgrade">Upgrade
<option value="Development">Development
<!-- <option value="On Site">On Site -->
</select>
<!-- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Others: <input type="text" name="projectnatureother_1" value="" class="txt1bg" style="width:170px;"> --></td></td>
</tr>
<tr><td colspan="6"></td></tr>
<tr>
	<td align="right" height="35"><font color="#ff0000"><!--*--></font>Client:</td><td><input type="text" name="client_1" value="" class="txt1bg" style="width:170px;"></td>
	<td><img src="images/b.gif" width="30" height="1" alt="" /></td><td align="right"><br /><font color="#ff0000">*</font>Project Duration</td><td><font size="1">From:</font><br /><input id="start-date" class="date-pick" name="durationfrom_1"></td>
<td width="230"><font size="1">To:</font><br /><input id="start-date" class="date-pick" name="durationto_1">
</td>
</tr>
<tr><td colspan="6"></td></tr>
<tr>
	<td align="right" height="35" rowspan="4" valign="top"><font color="#ff0000">*</font>*Roles and<br />
responsibilities:</td><td rowspan="4" valign="top"><textarea name="roles_1" value="" class="txt1bg1" style="width:170px;height:100px;"></textarea></td>
	<td rowspan="4"></td><td align="right" valign="top"><font color="#ff0000">*</font>SAP Solution:</td><td colspan="2">
	<div id="sapmodules_1">
	<select name="sel1_1" id="sel1_1" class="sel1">
	<option selected value="select">Solution</option>
	<?php 
	foreach($solutionarr as $solution){
		echo '<option value="'.$solution.'">'.$solution.'</option>';
	}
	?>
</select><br /><br />
<select name="sel2_1" id="sel2_1" class="sel2">
<option selected value="select">Solution Short Text</option>
</select><br /><br />
<select name="sel3_1" id="sel3_1" class="sel3">
<option selected value="select">Solution Long Text</option>
</select><br /><br />
<select name="sel4_1" id="sel4_1" class="sel4">
<option selected value="select">Product Name</option>
</select><br />
<br ><input type="hidden" name="modules_1"></div>
	</td>
</tr>
<tr><td colspan="6"><!--<div id="sapmodules_1">
	<select name="sel1" id="sel1" class="sel1">
	<option selected value="select">--Select--</option>
</select><br />
<select name="sel2" id="sel2" class="sel2">
<option selected value="select">--Select--</option>
</select><br />
<select name="sel3" id="sel3" class="sel3">
<option selected value="select">--Select--</option>
</select><br />
<select name="sel4" id="sel4" class="sel4">
<option selected value="select">--Select--</option>
</select><br </div>--></td></tr>
<tr>
	<td align="right" valign="top"><font color="#ff0000">*</font>Version of the Projects:</td><td colspan="2">
	<div id="version_projects_1">
	<select name="ver1_1" id="ver1_1" class="ver1">
	<option selected value="select">Solution</option>
	<?php 
	foreach($solutionarr as $solution){
		echo '<option value="'.$solution.'">'.$solution.'</option>';
	}
	?>
</select><br /><br />
<select name="ver2_1" id="ver2_1" class="ver2">
<option selected value="select">Solution Short Text</option>
</select><br /><br />
<select name="ver3_1" id="ver3_1" class="ver3">
<option selected value="select">Solution Long Text</option>
</select><br /><br />
<input type="hidden" name="projectversion_1"> </div>
	
	
	<!-- <input type="text" name="projectversion_1" class="txt1bg" style="width:170px;"> --></td>
</tr>
<tr>
<td align="right" height="35"><font color="#ff0000">*</font>Versions&nbsp;Experience:</td><td>
<select name="versionexperience_1" style="width:85px;">
<option value="">Years
<?for ($i=0;$i<=50;$i++){?>
<option value="<?=$i?>"><?=$i?>
<?}?>
</select><select name="versionexperience_months_1" style="width:85px;">
<option value="">Months
<?for ($i=0;$i<=12;$i++){?>
<option value="<?=$i?>"><?=$i?>
<?}?>
</select></td>
</tr>

<tr><td colspan="6"><input type="hidden" name="employer_1" value="employer_1"></td></tr>
			
</table>
<?php } ?>
<?php 
if(!$countsap) { ?>
<table id="tbl-addmore-cource" border="0" cellspacing="1" cellpadding="3" width="880" align="center">
<tr><td><br /><a href="javascript:void(0)" class="alinks2" id="addmore-cource">Add more projects <span>&#8250;</span></a></td></tr>
<tr><td><br /><a href="javascript:void(0)" class="alinks2" id="addmore-employer">Add Employer <span>&#8250;</span></a></td></tr>
</table><br /><br />

<?php } ?>
<input type="hidden" value="<?php echo $cource_count;?>" name="cource_count" id="cource_count" />
<input type="hidden" value="<?php echo $emp_count;?>" name="emp_count" id="emp_count" />
<br />
</form>
        </div>
        
      </div>
<?php 
//if($countsap == "0") { ?>
	<table width="870" border="0" cellspacing="0" cellpadding="0" align="center">
<tr><td height="40"><a href="personal_details.php" class="alinks"><span>&#8249;</span> Back</a></td><td align="right"><a href="#" class="alinks" onclick="javascript:validate_data(0)">Proceed&nbsp;<span>&#8250;</span></a>
<?php //if(empty($details)) echo '<a href="#" class="alinks" onclick="javascript:validate_data(0)">Proceed&nbsp;<span>&#8250;</span></a>'; else echo '<a href="sap_training.php" class="alinks">Proceed&nbsp;<span>&#8250;</span></a>';?>
</td></tr>
</table>
<?php //} ?>
       
    </div>
	
	<!-- prash content ends -->
	
	
	
    <!-- SPACE RESERVED FOR ANALYTICS -->
    <div id="sap-news">
      <p class="news-heading rm_newsExpand"><a href="">Profiling</a></p>
      <div id="sap-news-wrapper">
        <ul>
          <li> <a href="#"> <span>We want to know you more</span>Make yourself completely SAP Certification ready.
Kindly fill in all the required forms.</a> </li>
          <li> <a href="#"> <span>July 28, 2011</span> Lorem ipsum dolor sit amet adipiscing elit pellentesque sed &#8250; </a> </li>
          <li> <a href="#"> <span>July 25, 2011</span> Lorem ipsum dolor sit amet adipiscing elit pellentesque sed &#8250; </a> </li>
          <li> <a href="#"> <span>July 22, 2011</span> Lorem ipsum dolor sit amet adipiscing elit pellentesque sed &#8250; </a> </li>
          <li> <a href="#"> <span>July 19, 2011</span> Lorem ipsum dolor sit amet adipiscing elit pellentesque sed &#8250; </a> </li>
          <li> <a href="#"> <span>July 18, 2011</span> Lorem ipsum dolor sit amet adipiscing elit pellentesque sed &#8250; </a> </li>
          <li> <a href="#"> <span>July 16, 2011</span> Lorem ipsum dolor sit amet adipiscing elit pellentesque sed &#8250; </a> </li>
          <li> <a href="#"> <span>July 11, 2011</span> Lorem ipsum dolor sit amet adipiscing elit pellentesque sed &#8250; </a> </li>
          <li> <a href="#"> <span>July 11, 2011</span> Lorem ipsum dolor sit amet adipiscing elit pellentesque sed &#8250; </a> </li>
          <li> <a href="#"> <span>July 10, 2011</span> Lorem ipsum dolor sit amet adipiscing elit pellentesque sed &#8250; </a> </li>
        </ul>
      </div>
    </div>
    <!-- END SAP NEWS -->
  </div>
  <!-- END PAGE CONTENT -->
  <div id="footer">
    <!--googleoff: index-->
    <ul id="footer-lefttop">
      <li class="short"><a href="#">Site Map</a></li>
      <li id="quick-links"> <a href="">Quick Links</a>
        <ul>
          <li><a href="#">Quick Link 1</a></li>
          <li><a href="#">Quick Link 2</a></li>
          <li><a href="#">Quick Link 3</a></li>
          <li><a href="#">Quick Link 4</a></li>
          <li><a href="#">Quick Link 5</a></li>
          <li><a href="#">Quick Link 6</a></li>
          <li><a href="#">Quick Link 7</a></li>
          <li><a href="#">Quick Link 8</a></li>
          <li><a href="#">Quick Link 9</a></li>
          <li><a href="#">Quick Link 10</a></li>
        </ul>
      </li>
      <li><a href="#" target="_blank">Using SAP</a></li>
      <li><a href="#" target="_blank">SAP Offices</a></li>
      <li><a href="#" target="_blank">Investors</a></li>
      <li class="short"><a href="#" target="_blank">Careers</a></li>
      <li><a href="http://scn.sap.com/welcome" id="footerlink-communities">SAP&nbsp;Communitie</a></li>
    </ul>
    <ul id="footer-leftbtm">
      <li class="short"><a href="#" target="_blank">Privacy</a></li>
      <li><a href="#" target="_blank">Terms of Use</a></li>
      <li><a href="#" target="_blank">Legal Disclosure</a></li>
      <li><a href="#" target="_blank">Copyright</a></li>
      <li><a href="" id="footer-textview">Text View</a></li>
      <li class="short"><a href="" id="footer-printview">Print View</a></li>
    </ul>
    <div id="footer-right"> <a href="#" id="social-network">Follow SAP</a> </div>
    <!--googleon: index-->
  </div>
  <!-- END FOOTER -->
</div>
</body>
</html>





