Saturday, February 1, 2014

BANBEIS jsp page

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link  type="text/css"  href="./css/solaimanLipiFont.css" rel="stylesheet">  
<link  type="text/css" href="./css/tableStyle.css" rel="stylesheet">


<title>BANBEIS</title>
<script type="text/javascript" src="js/tabColorManage.js"></script>
<script language="javascript">
function printPage(id)
{
// alert(id);
   var html="<html>";
   html+="<head>";
   html+="<link type='text/css' href='css/solaimanLipiFont.css' rel='stylesheet'>";
   html+="<link type='text/css' href='css/tableStyle.css' rel='stylesheet'> ";
   html+="</head>";
   html+="<body>";
   html+= document.getElementById(id).innerHTML;
   html+="</body>";
   html+="</html>";
 
   var width=document.getElementById(id).style.width;
   var height=document.getElementById(id).style.height;
   // alert("width "+width +"height "+height);
   var printWin = window.open('','','left=0,top=0,width='+width+',height='+height+',toolbar=0,scrollbars=0,status=0');
   printWin.document.write(html);
   printWin.document.close();
   printWin.focus();
   printWin.print();
   printWin.close();

 }

 var check = '';

   function checkForm(){

      if(check == 'Save And Go Forward'){
verifyForm()
if(verifyForm()==true)
  {
 return confirm('Do you want to save the changes ?');
  }
  else{
return false;
  }
}
else if(check == 'Cancel'){
var cancelRes=cancelResult();
// alert(cancelRes);
if(cancelRes == false){
return false;
}else{
return true;
}
}
else {
return false;
}
       return false;
   }

          function setSubmit(id){
// alert(id);
              check = id;
           }

function verifyForm(){

/*var tinNumber = check_InputField('tinNumber', 'tinNumberverify');
var annualIncome = check_InputField('annualIncome', 'annualIncomeverify');
var nationality = check_InputField('nationality', 'nationalityverify');

if(tinNumber == false || annualIncome == false || nationality == false ){

return false;
}
else{
return true;
} */
// alert('hi');
return true;
}


 function cancelResult(){
return confirm('If you cancel now your every changes that you have done after opening the form will not save? Are you sure to cancel?');

 }













// Start SixPointOne  
function isDisableSixPointOne(){
//alert("1");
 var computerYn=document.getElementById('computerYn').value;
 
 if(computerYn==1){
 document.getElementById('computerWorking').disabled=false;
 document.getElementById('computerNotworking').disabled=false;

 document.getElementById('dsktopNumber').disabled=true;
 document.getElementById('laptopNumber').disabled=true;

 //start update com organ
 document.getElementById('moe').disabled=false;
 document.getElementById('bcc').disabled=false;
 document.getElementById('dshe').disabled=false;
 document.getElementById('board').disabled=false;
 document.getElementById('ngo').disabled=false;
 document.getElementById('other').disabled=false;
//End update com organ
 }

 if(computerYn==2 ){
 //alert("2");
 document.getElementById('computerWorking').disabled=true;
 document.getElementById('computerNotworking').disabled=true;
 document.getElementById('computerWorking').value='';
 document.getElementById('computerNotworking').value='';


 document.getElementById('dsktopNumber').disabled=true;
 document.getElementById('laptopNumber').disabled=true;
 document.getElementById('dsktopNumber').value='';
 document.getElementById('laptopNumber').value='';


 //start update com organ
  document.getElementById('moe').disabled=true;
  document.getElementById('bcc').disabled=true;
  document.getElementById('dshe').disabled=true;
  document.getElementById('board').disabled=true;
  document.getElementById('ngo').disabled=true;
  document.getElementById('other').disabled=true;
 
  document.getElementById('moe').value='';
  document.getElementById('bcc').value='';
  document.getElementById('dshe').value='';
  document.getElementById('board').value='';
  document.getElementById('ngo').value='';
  document.getElementById('other').value='';
  //End update com organ
 }

}

// End SixPointOne




// Start activeComputerValue
function activeComputerValue(id){
  var val = document.getElementById(id).value;
  var y= document.getElementById('dsktopNumber').value;
  var z= document.getElementById('laptopNumber').value;
//alert("val "+val);
if(val==''){
val=0;
}


if(val==0){
//alert("if");
document.getElementById('dsktopNumber').disabled=true;
document.getElementById('laptopNumber').disabled=true;
document.getElementById('dsktopNumber').value='';
document.getElementById('laptopNumber').value='';
}
else{
//alert("else");
document.getElementById('dsktopNumber').disabled=false;
document.getElementById('laptopNumber').disabled=false;
}

if(parseInt(val)!=(parseInt(y)+parseInt(z))){
document.getElementById('dsktopNumber').value='';
document.getElementById('laptopNumber').value='';
}


}
// End activeComputerValue


//Start for desktopLaptopCount
function desktopLaptopCount(id){

 var x= document.getElementById('computerWorking').value;
 var y= document.getElementById('dsktopNumber').value;
 var z= document.getElementById('laptopNumber').value;
if(x==''){
x=0;
}
 if(y==''){
y=0;
}
 if(z==''){
z=0;
}
if(x==0){
alert("Please Provide Active Computer Data At First");
document.getElementById('dsktopNumber').value='';
document.getElementById('laptopNumber').value='';
}

if(id=="dsktopNumber"){

if(parseInt(x)>=parseInt(y)){
  document.getElementById('laptopNumber').value=parseInt(x)-parseInt(y);
}
else{
alert("Desktop and Laptop Computer Number cannot be greater than Total Active Computer ");
document.getElementById('dsktopNumber').value='';
document.getElementById('laptopNumber').value='';
}


//document.getElementById('laptopNumber').disabled=true;
}else{
if(parseInt(x)>=parseInt(z)){
  document.getElementById('dsktopNumber').value=parseInt(x)-parseInt(z);
}
else{
alert("Desktop and Laptop Computer Number cannot be greater than Total Active Computer");
document.getElementById('dsktopNumber').value='';
document.getElementById('laptopNumber').value='';
}


}
 
}
//End for desktopLaptopCount










// Start summComOrgan kaniz
function summComOrgan(id){

  //var val = document.getElementById(id).value;
  var x= document.getElementById('computerWorking').value;
  var y= document.getElementById('computerNotworking').value;
  if(x==''){
     x=0;
  }
  if(y==''){
     y=0;
  }
  var totalComputer = parseInt(x)+parseInt(y);
  alert("totalComputer "+totalComputer);
 
  var a= document.getElementById('moe').value;
  var b= document.getElementById('bcc').value;
  var c= document.getElementById('dshe').value;
  var d= document.getElementById('board').value;
  var e= document.getElementById('ngo').value;
  var f= document.getElementById('other').value;
 
 
  if(a==''){
     a=0;
  }
  if(b==''){
     b=0;
  }
  if(c==''){
     c=0;
  }
  if(d==''){
     d=0;
  }
  if(e==''){
     e=0;
  }
  if(f==''){
     f=0;
  }
 

  var sumOrganization=parseInt(a)+parseInt(b)+parseInt(c)+parseInt(d)+parseInt(e)+parseInt(f);
  //alert("sumOrganization  "+sumOrganization);



if(totalComputer==sumOrganization){
 
  alert("equal");
 }
 
    if(totalComputer<sumOrganization){
     if(id=='moe'){
     alert("Total organization computer is greater than total of active and inactive computer");
     document.getElementById('moe').value='';
     }
if(id=='bcc'){
     alert("Total organization computer is greater than total of active and inactive computer");
     document.getElementById('bcc').value='';
     }

if(id=='dshe'){
     alert("Total organization computer is greater than total of active and inactive computer");
     document.getElementById('dshe').value='';
     }
if(id=='board'){
     alert("Total organization computer is greater than total of active and inactive computer");
     document.getElementById('board').value='';
     }
if(id=='ngo'){
     alert("Total organization computer is greater than total of active and inactive computer");
     document.getElementById('ngo').value='';
     }
if(id=='other'){
     alert("Total organization computer is greater than total of active and inactive computer");
     document.getElementById('other').value='';
     }
  }



}
// End summComOrgan kaniz



// Start inactiveInactiveTotalComputer(this function depend on summComOrgan) kaniz
function inactiveInactiveTotalComputer(id){
  var x= document.getElementById('computerWorking').value;
  var y= document.getElementById('computerNotworking').value;
  if(x==''){
     x=0;
  }
  if(y==''){
     y=0;
  }
  var totalComputer = parseInt(x)+parseInt(y);
  alert("totalComputer "+totalComputer);
 
  var a= document.getElementById('moe').value;
  var b= document.getElementById('bcc').value;
  var c= document.getElementById('dshe').value;
  var d= document.getElementById('board').value;
  var e= document.getElementById('ngo').value;
  var f= document.getElementById('other').value;
  if(a==''){
     a=0;
  }
  if(b==''){
     b=0;
  }
  if(c==''){
     c=0;
  }
  if(d==''){
     d=0;
  }
  if(e==''){
     e=0;
  }
  if(f==''){
     f=0;
  }
 

  var sumOrganization=parseInt(a)+parseInt(b)+parseInt(c)+parseInt(d)+parseInt(e)+parseInt(f);
  alert("sumOrganization  "+sumOrganization);


 
    if(totalComputer<sumOrganization){
     alert("sumOrganization is small than total value");
document.getElementById('moe').value='';
document.getElementById('bcc').value='';
document.getElementById('dshe').value='';
document.getElementById('board').value='';
document.getElementById('ngo').value='';
document.getElementById('other').value='';
    }

 
 
}
// End inactiveInactiveTotalComputer(this function depend on summComOrgan) kaniz



// Start Solar panel
function isDisableSolarPanel(){
 var solarPanelYn=document.getElementById('solarPanelYn').value;
 
 if(solarPanelYn==1){
 document.getElementById('solarLight').disabled=false;
  document.getElementById('solarFan').disabled=false;
 }

 if(solarPanelYn==2 ){
 document.getElementById('solarLight').disabled=true;
 document.getElementById('solarLight').value='';

 document.getElementById('solarFan').disabled=true;
 document.getElementById('solarFan').value='';
 }

}

// End Solar panel




// Start multimedia
function isDisableMultiPtoject(){
 var multimediaYn=document.getElementById('multimediaYn').value;
 
 if(multimediaYn==1){
 document.getElementById('multimediaNo').disabled=false;
 }

 if(multimediaYn==2 ){
 document.getElementById('multimediaNo').disabled=true;
 document.getElementById('multimediaNo').value='';
 }

}

// End multimedia



</script>
<SCRIPT TYPE="text/javascript">
function numbersonly(myfield, e, dec)
{
//alert("myfield :"+myfield);
//alert("Event :"+e);
//alert("dec :"+dec);
var key;
var keychar;

if (window.event)
   key = window.event.keyCode;
else if (e)
   key = e.which;
else
   return true;
keychar = String.fromCharCode(key);

// control keys
if ((key==null) || (key==0) || (key==8) ||
    (key==9) || (key==13) || (key==27) )
   return true;

// numbers
else if ((("0123456789").indexOf(keychar) > -1))
   return true;

// decimal point jump
else if (dec && (keychar == "."))
   {
   myfield.form.elements[dec].focus();
   return false;
   }
else
   return false;
}

</SCRIPT>



<!-- on load  function -->
<SCRIPT type="text/javascript">
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}



addLoadEvent(function() {
isDisableSixPointOne();
activeComputerValue('computerWorking');
isDisableSolarPanel();
isDisableMultiPtoject();
});
</SCRIPT>
<!-- on load  function -->




</head>
<body>

 <form name="VoutoFacilitiesForm2" id="VoutoFacilitiesForm2" method="post" onSubmit="return checkForm();" action="addVoutoFacilitiesInfo2School.do" >




<div id="msgDiv" style="width:812px;height:auto; background-color:#D9E9DA; color:#FF0000" align="center">
<s:fielderror >
      <s:param >saveMsg</s:param>
</s:fielderror>
</div>
 <div id="root" style="width:812px; height:auto; background:none; ">

<div id="form_main_div_for_print" style="width:812px; height:680px !important; height:600px; background:#DEF5DE;">


<div style="width:812px; height:680px; background:#DEF5DE;">
 <div style="width:810px; height:45px; margin-top:0px; border:1px solid #8CD891;">
  <div style=" float:left;width:810px !important; width:800px;text-align:center; font-weight:bold;" class="banglaText">স্কুল সম্পর্কিত তথ্য ছক -
 <s:if test='%{institutesInfo.year != null && institutesInfo.year!=""}'>
<input id="year" name="year" type="text" value="<s:property value='institutesInfo.year'/>"  readonly="true" style="width:45px; border:none; background:none;">
<input id="eiin" name="eiin" type="hidden" value="<s:property value='institutesInfo.eiin'/>" >
</s:if>
<s:else>
<input id="year" name="year" type="text" value="<s:property value='#session.year'/>"  readonly="true" style="width:45px; border:none; background:none;">
<input id="eiin" name="eiin" type="hidden" value="<s:property value='#session.eiin'/>" >
 </s:else>
 <input id="submitFrom" name="submitFrom" type="hidden" value="onLine" >
</div>
     <div style=" float:left; width:810px; height:auto;  text-align:center;  margin-top: 2px;" class="banglaText" >খ. ভৌত সুযোগ-সুবিধা   </div>
 </div>


<div id="row_div" style="float:left;width:810px !important; width:800px; height:auto; margin-top:5px;background:#D9E9DA;">
<fieldset>
<legend class="banglaText"><span class="banglaTextMini"><span class="banglaTextBold">৬.১</span></span> </legend>
 <div style="float:left; width:700px;">
 <div style="float:left; width:155px; margin-left:15px !important; margin-left:20px; text-align:right;" class="banglaText">ক) কম্পিউটার আছে কি? &nbsp;</div> <div style="float:left; width:200px; text-align:left;">
  <select name="computerYn" id="computerYn" style="width:150px;" class="banglaText" onChange="isDisableSixPointOne();" onFocus="this.style.backgroundColor='#ffff66';" onBlur="this.style.backgroundColor='#d4e3e5';" >
     <!-- <option value="" selected="selected">নির্দিষ্ট করুন</option>-->
      <s:if test='%{institutesComputersInfo.computerYn == "1"}'>
 <option value="<s:property value='institutesComputersInfo.computerYn'/>" selected="selected">হ্যাঁ</option>
 <option value="2">না</option>
</s:if>
<s:elseif test='%{institutesComputersInfo.computerYn == "2"}'>
<option value="<s:property value='institutesComputersInfo.computerYn'/>" selected="selected">না</option>
<option value="1">হ্যাঁ</option>
</s:elseif>
<s:else>
<option value="1" selected="selected">হ্যাঁ</option>
<option value="2" >না</option>
</s:else>
 </select>
</div>
 </div>

  <div style="float:left; width:750px !important; width:750px; ">
    <div id="right_side" style="float:left; width:370px  !important; width:320px;height:auto; margin-left:10px;">

<fieldset>
<legend class="banglaText">খ) উত্তর হ্যাঁ হলে, কম্পিউটারের সংখ্যা - </legend>

<div style="float:left;  width:150px; margin-top:5px;">
    <div style="float:left; width:70px; text-align:right;" class="banglaText">সচলঃ&nbsp;</div>
<div style="float:left; width:70px; text-align:left;" class="banglaText">
 <input id="computerWorking" name="computerWorking" type="text" disabled="true"  value="<s:property value='institutesComputersInfo.computerWorking'/>" style="width:40px !important;width:40px;" maxlength="3" onKeyPress="return numbersonly(this, event)"  onFocus="this.style.backgroundColor='#ffff66';" onkeyUp="activeComputerValue('computerWorking');" onBlur="this.style.backgroundColor='#d4e3e5';inactiveInactiveTotalComputer(this.id);" />
</div>
</div>
<div style="float:left;  width:150px; margin-top:5px;">
    <div style="float:left; width:70px;text-align:right;" class="banglaText">অচলঃ &nbsp;</div>
<div style="float:left; width:70px; text-align:left;" class="banglaText">
<input id="computerNotworking" name="computerNotworking" type="text" disabled="true" value="<s:property value='institutesComputersInfo.computerNotworking'/>" style="width:40px !important;width:40px;" maxlength="3" onKeyPress="return numbersonly(this, event)"  onFocus="this.style.backgroundColor='#ffff66';" onBlur="this.style.backgroundColor='#d4e3e5';inactiveInactiveTotalComputer(this.id);" ></div>
 </div>



</fieldset>
</div>
    <div id="right_side" style="float:left;width:350px !important;width:320px;height:auto; margin-left:10px;">

<fieldset>
<legend class="banglaText">গ) সচল কম্পিউটারের ধরন অনুযায়ী সংখ্যাঃ</legend>

<div style="float:left; width:150px; margin-top:5px;">
    <div style="float:left; width:70px;text-align:right;" class="banglaText">ডেস্কটপঃ &nbsp;</div>
<div style="float:left; width:70px; text-align:left;" class="banglaText">
<input id="dsktopNumber" name="dsktopNumber" disabled="true" type="text" value="<s:property value='institutesComputersInfo.dsktopNumber'/>" style="width:40px !important;width:40px;" maxlength="3" onKeyUp="desktopLaptopCount('dsktopNumber');" onKeyPress="return numbersonly(this, event)" onFocus="this.style.backgroundColor='#ffff66';" onBlur="this.style.backgroundColor='#d4e3e5';" >
</div>
 </div>
<div style="float:left; width:150px; margin-top:5px;">
    <div style="float:left; width:70px;text-align:right;" class="banglaText">ল্যাপটপঃ &nbsp;</div>
<div style="float:left; width:70px; text-align:left;" class="banglaText">
<input id="laptopNumber" name="laptopNumber" type="text" disabled="true" value="<s:property value='institutesComputersInfo.laptopNumber'/>" style="width:40px !important;width:40px;" maxlength="3" onKeyPress="return numbersonly(this, event)" onKeyUp="desktopLaptopCount('laptopNumber');" onFocus="this.style.backgroundColor='#ffff66';" onBlur="this.style.backgroundColor='#d4e3e5';" >
</div>
 </div>



</fieldset>
</div>
  </div>
 




 <div id="right_side" style="float:left;width:700 !important; width:620px;height:auto; margin-left:10px;">

<fieldset>
<legend class="banglaText">ঘ) কম্পিউটার প্রদানকারী সংস্থা অনুযায়ী সংখ্যাঃ</legend>
 <div style="float:left; width:700px; margin-top:5px;">
 <table width="76%" border="0" cellpadding="0" cellspacing="3" >
  <tr>
    <td width="23%" align="right" class="banglaText">শিক্ষামন্ত্রনালয়ঃ </td>
    <td width="13%" align="left" class="banglaText">
      <input id="moe" name="moe" type="text" value="<s:property value='institutesComputersInfo.moe'/>" style="width:30px !important;width:30px;" maxlength="2" onKeyPress="return numbersonly(this, event)" onKeyUp="summComOrgan(this.id);" onFocus="this.style.backgroundColor='#ffff66';" onBlur="this.style.backgroundColor='#d4e3e5';" >    </td>
    <td width="18%" align="right" class="banglaText">বিসিসিঃ &nbsp;</td>
    <td width="13%" align="left" class="banglaText"><input id="bcc" name="bcc" type="text" value="<s:property value='institutesComputersInfo.bcc'/>" style="width:30px !important;width:30px;" maxlength="2" onKeyPress="return numbersonly(this, event)" onKeyUp="summComOrgan(this.id);" onFocus="this.style.backgroundColor='#ffff66';" onBlur="this.style.backgroundColor='#d4e3e5';" ></td>
    <td width="17%" align="left" class="banglaText" style="text-align:right">    মাউশিঃ &nbsp;      </td>
    <td width="16%" align="left" class="banglaText"><input id="dshe" name="dshe" type="text" value="<s:property value='institutesComputersInfo.dshe'/>" style="width:30px !important;width:30px;" maxlength="2" onKeyPress="return numbersonly(this, event)" onKeyUp="summComOrgan(this.id);" onFocus="this.style.backgroundColor='#ffff66';" onBlur="this.style.backgroundColor='#d4e3e5';" ></td>
  </tr>
  <tr>
    <td class="banglaText" align="right">শিক্ষাবোর্ডঃ &nbsp;</td>
    <td class="banglaText" align="left"><input id="board" name="board" type="text" value="<s:property value='institutesComputersInfo.board'/>" style="width:30px !important;width:30px;" maxlength="2" onKeyPress="return numbersonly(this, event)" onKeyUp="summComOrgan(this.id);" onFocus="this.style.backgroundColor='#ffff66';" onBlur="this.style.backgroundColor='#d4e3e5';" >
          </td>
    <td class="banglaText" align="right">এনজিওঃ &nbsp;</td>
    <td class="banglaText" align="left"><input id="ngo" name="ngo" type="text" value="<s:property value='institutesComputersInfo.ngo'/>" style="width:30px !important;width:30px;" maxlength="2" onKeyPress="return numbersonly(this, event)" onKeyUp="summComOrgan(this.id);" onFocus="this.style.backgroundColor='#ffff66';" onBlur="this.style.backgroundColor='#d4e3e5';" ></td>
    <td class="banglaText" align="left" style="text-align:right">   অন্যান্যঃ &nbsp;       </td>
    <td class="banglaText" align="left"><input id="other" name="other" type="text" value="<s:property value='institutesComputersInfo.other'/>" style="width:30px !important;width:30px;" maxlength="2" onKeyPress="return numbersonly(this, event)" onKeyUp="summComOrgan(this.id);" onFocus="this.style.backgroundColor='#ffff66';" onBlur="this.style.backgroundColor='#d4e3e5';" ></td>
  </tr>
    </table>
</div>



</fieldset>
</div>



  <div style="float:left; width:700px; margin-top:5px;">
 <div style="float:left; width:300px; margin-left:25px;text-align:right;" class="banglaText">ঙ) কম্পিউটার বিষয়ে পাঠদান করা হয় কি?&nbsp; </div>
<div style="float:left; width:200px;">
  <select name="computerTeachingYn" id="computerTeachingYn" style="width:150px;" class="banglaText" onFocus="this.style.backgroundColor='#ffff66';" onBlur="this.style.backgroundColor='#d4e3e5';" >
    <!-- <option value="<s:property value='institutesComputersInfo.'/>" selected="selected">নির্দিষ্ট করুন</option>-->
      <s:if test='%{institutesComputersInfo.computerTeachingYn == "1"}'>
 <option value="<s:property value='institutesComputersInfo.computerTeachingYn'/>" selected="selected">হ্যাঁ</option>
 <option value="2">না</option>
</s:if>
<s:elseif test='%{institutesComputersInfo.computerTeachingYn == "2"}'>
<option value="<s:property value='institutesComputersInfo.computerTeachingYn'/>" selected="selected">না</option>
<option value="1">হ্যাঁ</option>
</s:elseif>
<s:else>
<option value="1" selected="selected">হ্যাঁ</option>
<option value="2" >না</option>
</s:else>
   </select>
</div>
 </div>
 <div style="float:left; width:700px; margin-top:5px;">
 <div style="float:left; width:300px;margin-left:25px;text-align:right;" class="banglaText">চ) কম্পিউটার বিষয়ে শিক্ষক আছে কি? </div>
<div style="float:left; width:200px;">
  <select name="compTeacherYn" id="compTeacherYn" style="width:150px;" class="banglaText" onFocus="this.style.backgroundColor='#ffff66';" onBlur="this.style.backgroundColor='#d4e3e5';" >
         <!-- <option value="<s:property value='institutesComputersInfo.'/>" selected="selected">নির্দিষ্ট করুন</option>-->
  <s:if test='%{institutesComputersInfo.compTeacherYn == "1"}'>
 <option value="<s:property value='institutesComputersInfo.compTeacherYn'/>" selected="selected">হ্যাঁ</option>
 <option value="2">না</option>
</s:if>
<s:elseif test='%{institutesComputersInfo.compTeacherYn == "2"}'>
<option value="<s:property value='institutesComputersInfo.compTeacherYn'/>" selected="selected">না</option>
<option value="1">হ্যাঁ</option>
</s:elseif>
<s:else>
<option value="1" selected="selected">হ্যাঁ</option>
<option value="2" >না</option>
</s:else>
   </select>
</div>
 </div>
 <div style="float:left; width:700px; margin-top:5px;">
 <div style="float:left; width:300px;margin-left:25px;text-align:right;" class="banglaText">ছ) উত্তর হ্যাঁ হলে শিক্ষাগত যোগ্যতা কী (সর্ব্বোচ্চ)? </div>
<div style="float:left; width:200px;">
  <select name="compTeacherQual" id="compTeacherQual" style="width:190px;" class="banglaText"  onfocus="this.style.backgroundColor='#ffff66';" onBlur="this.style.backgroundColor='#d4e3e5';" >
         <!-- <option value="<s:property value='institutesComputersInfo.'/>" selected="selected">নির্দিষ্ট করুন</option>-->
         <s:if test='%{institutesComputersInfo.compTeacherQual == "1"}'>
 <option value="<s:property value='institutesComputersInfo.compTeacherQual'/>" selected="selected">স্নাতক ডিগ্রী</option>
 <option value="2">বিএসিস ইঞ্জিঃ (কম্পিউটার)</option>
<option value="3">ডিপ্লোমা ইঞ্জিঃ (কম্পিউটার)</option>
         <option value="4">স্নাতকোত্তর</option>
<option value="5">অন্যান্য</option>
</s:if>
<s:elseif test='%{institutesComputersInfo.compTeacherQual == "2"}'>
<option value="1">স্নাতক ডিগ্রী</option>
<option value="<s:property value='institutesComputersInfo.compTeacherQual'/>" selected="selected">বিএসিস ইঞ্জিঃ (কম্পিউটার)</option>
<option value="3">ডিপ্লোমা ইঞ্জিঃ (কম্পিউটার)</option>
         <option value="4">স্নাতকোত্তর</option>
<option value="5">অন্যান্য</option>
</s:elseif>
<s:elseif test='%{institutesComputersInfo.compTeacherQual == "3"}'>
 <option value="1">স্নাতক ডিগ্রী</option>
 <option value="2">বিএসিস ইঞ্জিঃ (কম্পিউটার)</option>
<option value="<s:property value='institutesComputersInfo.compTeacherQual'/>" selected="selected">ডিপ্লোমা ইঞ্জিঃ (কম্পিউটার)</option>
         <option value="4">স্নাতকোত্তর</option>
<option value="5">অন্যান্য</option>
</s:elseif>
<s:elseif test='%{institutesComputersInfo.compTeacherQual == "4"}'>
<option value="1">স্নাতক ডিগ্রী</option>
 <option value="2">বিএসিস ইঞ্জিঃ (কম্পিউটার)</option>
<option value="3">ডিপ্লোমা ইঞ্জিঃ (কম্পিউটার)</option>
<option value="<s:property value='institutesComputersInfo.compTeacherQual'/>" selected="selected">স্নাতকোত্তর</option>
 <option value="5">অন্যান্য</option>
</s:elseif>
<s:elseif test='%{institutesComputersInfo.compTeacherQual == "5"}'>
 <option value="1">স্নাতক ডিগ্রী</option>
 <option value="2">বিএসিস ইঞ্জিঃ (কম্পিউটার)</option>
<option value="3">ডিপ্লোমা ইঞ্জিঃ (কম্পিউটার)</option>
         <option value="4">স্নাতকোত্তর</option>
<option value="<s:property value='institutesComputersInfo.compTeacherQual'/>" selected="selected">অন্যান্য</option>
</s:elseif>
 <s:elseif test='%{institutesComputersInfo.compTeacherQual == "5"}'>
 <option value="1">স্নাতক ডিগ্রী</option>
 <option value="2">বিএসিস ইঞ্জিঃ (কম্পিউটার)</option>
<option value="3">ডিপ্লোমা ইঞ্জিঃ (কম্পিউটার)</option>
         <option value="4">স্নাতকোত্তর</option>
<option value="<s:property value='institutesComputersInfo.compTeacherQual'/>" selected="selected">অন্যান্য</option>
</s:elseif>
<s:else>
 <option value="1" selected="selected">স্নাতক ডিগ্রী</option>
 <option value="2">বিএসিস ইঞ্জিঃ (কম্পিউটার)</option>
<option value="3">ডিপ্লোমা ইঞ্জিঃ (কম্পিউটার)</option>
         <option value="4">স্নাতকোত্তর</option>
<option value="5">অন্যান্য</option>
</s:else>
   </select>
</div>
 </div>
 <div style="float:left; width:700px; margin-top:5px;">
 <div style="float:left; width:300px;margin-left:25px;text-align:right;" class="banglaText">জ) সর্ব্বোচ্চকী ধরনের প্রশিক্ষন নিয়েছেন ? (স্নাতক ও স্নাতকোত্তর ডিগ্রী প্রাপ্ত শিক্ষকের জন্য প্রজোয্য) </div>
<div style="float:left; width:200px;">
  <select name="compTrainingType" id="compTrainingType" style="width:180px;" class="banglaText"  onfocus="this.style.backgroundColor='#ffff66';" onBlur="this.style.backgroundColor='#d4e3e5';" >
         <!-- <option value="<s:property value='institutesComputersInfo.'/>" selected="selected">নির্দিষ্ট করুন</option>-->
         <s:if test='%{institutesComputersInfo.compTrainingType == "1"}'>
 <option value="<s:property value='institutesComputersInfo.compTrainingType'/>" selected="selected">সার্টিফিকেট কোর্স</option>
         <option value="2">ডিপ্লোমা কোর্স</option>
<option value="3">অন্যান্য</option>
</s:if>
<s:elseif test='%{institutesComputersInfo.compTrainingType == "2"}'>
<option value="1">সার্টিফিকেট কোর্স</option>
<option value="<s:property value='institutesComputersInfo.compTrainingType'/>" selected="selected">ডিপ্লোমা কোর্স</option>
<option value="3">অন্যান্য</option>
</s:elseif>
<s:elseif test='%{institutesComputersInfo.compTrainingType == "3"}'>
 <option value="1">সার্টিফিকেট কোর্স</option>
         <option value="2">ডিপ্লোমা কোর্স</option>
<option value="<s:property value='institutesComputersInfo.compTrainingType'/>" selected="selected">ডিপ্লোমা ইঞ্জিঃ (কম্পিউটার)</option>
</s:elseif>
<s:else>
 <option value="1" selected="selected">সার্টিফিকেট কোর্স</option>
         <option value="2">ডিপ্লোমা কোর্স</option>
<option value="3">ডিপ্লোমা ইঞ্জিঃ (কম্পিউটার)</option>
</s:else>
       </select>
</div>
 </div>
 <div style="float:left; width:700px; margin-top:5px;">
 <div style="float:left; width:300px;margin-left:25px;text-align:right;" class="banglaText">ঝ) সোলার প্যানেল আছে কি? </div>
<div style="float:left; width:200px;">
  <select name="solarPanelYn" id="solarPanelYn" style="width:150px;" class="banglaText" onChange="isDisableSolarPanel();"  onfocus="this.style.backgroundColor='#ffff66';" onBlur="this.style.backgroundColor='#d4e3e5';" >
         <!-- <option value="<s:property value='institutesComputersInfo.'/>" selected="selected">নির্দিষ্ট করুন</option>-->
         <s:if test='%{institutesComputersInfo.solarPanelYn == "1"}'>
 <option value="<s:property value='institutesComputersInfo.solarPanelYn'/>" selected="selected">হ্যাঁ</option>
 <option value="2">না</option>
</s:if>
<s:elseif test='%{institutesComputersInfo.solarPanelYn == "2"}'>
<option value="<s:property value='institutesComputersInfo.solarPanelYn'/>" selected="selected">না</option>
<option value="1">হ্যাঁ</option>
</s:elseif>
<s:else>
<option value="1">হ্যাঁ</option>
<option value="2" >না</option>
</s:else>
       </select>
</div>
 </div>
 <div id="right_side" style="float:left;width:400 !important; width:400px;height:auto; margin-left:10px;">

<fieldset>
<legend class="banglaText">ঞ) উত্তর হ্যাঁ হলে কয়টি ফ্যান ও লাইট চলে? </legend>
<div id="left_side" style="float:left;  width:450;";>
<div style="float:left; width:150px; ">
    <div style="float:left; width:60px;text-align:right;" class="banglaText">লাইটঃ&nbsp;</div>
<div style="float:left; width:60px; text-align:left;" class="banglaText"><input id="solarLight" name="solarLight" disabled="true" type="text" value="<s:property value='institutesComputersInfo.solarLight'/>" style="width:40px !important;width:40px;" maxlength="3" onKeyPress="return numbersonly(this, event)"  onfocus="this.style.backgroundColor='#ffff66';" onBlur="this.style.backgroundColor='#d4e3e5';" ></div>
 </div>
<div style="float:left; width:150px; ">
    <div style="float:left; width:60px;text-align:right;" class="banglaText">ফ্যানঃ&nbsp;</div>
<div style="float:left; width:60px; text-align:left;" class="banglaText"><input id="solarFan" name="solarFan" type="text" disabled="true" value="<s:property value='institutesComputersInfo.solarFan'/>" style="width:40px !important;width:40px;" maxlength="3" onKeyPress="return numbersonly(this, event)"  onfocus="this.style.backgroundColor='#ffff66';" onBlur="this.style.backgroundColor='#d4e3e5';" ></div>
 </div>
</div>

</fieldset>
</div>
 <div style="float:left; width:700px; margin-top:5px;">
 <div style="float:left; width:300px;margin-left:25px;text-align:right;" class="banglaText">ট) ইন্টারনেট সংযোগ আছে কি?</div>
<div style="float:left; width:200px;">
  <select name="internetConnYn" id="internetConnYn" style="width:150px;" class="banglaText"  onfocus="this.style.backgroundColor='#ffff66';" onBlur="this.style.backgroundColor='#d4e3e5';" >
         <!-- <option value="<s:property value='institutesComputersInfo.'/>" selected="selected">নির্দিষ্ট করুন</option>-->
  <s:if test='%{institutesComputersInfo.internetConnYn == "1"}'>
 <option value="<s:property value='institutesComputersInfo.internetConnYn'/>" selected="selected">হ্যাঁ</option>
 <option value="2">না</option>
</s:if>
<s:elseif test='%{institutesComputersInfo.internetConnYn == "2"}'>
<option value="<s:property value='institutesComputersInfo.internetConnYn'/>" selected="selected">না</option>
<option value="1">হ্যাঁ</option>
</s:elseif>
<s:else>
<option value="1">হ্যাঁ</option>
<option value="2" >না</option>
</s:else>
       </select>
</div>
 </div>
 <div style="float:left; width:700px; margin-top:5px;">
 <div style="float:left; width:300px;margin-left:25px;text-align:right;" class="banglaText">ঠ) বিদ্যুৎ সংযোগ আছে কি?</div>
<div style="float:left; width:200px;">
  <select name="electricityYn" id="electricityYn" style="width:150px;" class="banglaText"  onfocus="this.style.backgroundColor='#ffff66';" onBlur="this.style.backgroundColor='#d4e3e5';" >
        <!-- <option value="<s:property value='institutesComputersInfo.'/>" selected="selected">নির্দিষ্ট করুন</option>-->
        <s:if test='%{institutesComputersInfo.electricityYn == "1"}'>
 <option value="<s:property value='institutesComputersInfo.electricityYn'/>" selected="selected">হ্যাঁ</option>
 <option value="2">না</option>
</s:if>
<s:elseif test='%{institutesComputersInfo.electricityYn == "2"}'>
<option value="<s:property value='institutesComputersInfo.electricityYn'/>" selected="selected">না</option>
<option value="1">হ্যাঁ</option>
</s:elseif>
<s:else>
<option value="1">হ্যাঁ</option>
<option value="2" >না</option>
</s:else>
       </select>
</div>
 </div>
  <div style="float:left; width:700px; margin-top:5px;">
 <div style="float:left; width:300px;margin-left:25px;text-align:right;" class="banglaText">ড) মাল্টিমিডিয়া প্রোজেক্টর আছে কি?</div>
<div style="float:left; width:200px;">
  <select name="multimediaYn" id="multimediaYn" style="width:150px;" class="banglaText"  onChange="isDisableMultiPtoject();"  onfocus="this.style.backgroundColor='#ffff66';" onBlur="this.style.backgroundColor='#d4e3e5';" >
        <!-- <option value="<s:property value='institutesComputersInfo.'/>" selected="selected">নির্দিষ্ট করুন</option>-->
        <s:if test='%{institutesComputersInfo.multimediaYn == "1"}'>
 <option value="<s:property value='institutesComputersInfo.multimediaYn'/>" selected="selected">হ্যাঁ</option>
 <option value="2">না</option>
</s:if>
<s:elseif test='%{institutesComputersInfo.multimediaYn == "2"}'>
<option value="<s:property value='institutesComputersInfo.multimediaYn'/>" selected="selected">না</option>
<option value="1">হ্যাঁ</option>
</s:elseif>
<s:else>
<option value="1">হ্যাঁ</option>
<option value="2" >না</option>
</s:else>
       </select>
</div>
 </div>
 <div style="float:left; width:720px !important; width:750px; margin-left:20px;">
 <div id="right_side" style="float:left;width:320 !important; width:320px;height:auto; margin-left:10px;">

<fieldset>

<div style="float:left; width:600px; margin-top:5px;">
    <div style="float:left; width:360px; text-align:right;" class="banglaText"> উত্তর হ্যাঁ হলে,মাল্টিমিডিয়া প্রোজেক্টর সংখ্যাঃ &nbsp;</div>
<div style="float:left; width:70px; text-align:left;" class="banglaText"><input id="multimediaNo" name="multimediaNo" disabled="true" type="text" value="<s:property value='institutesComputersInfo.multimediaNo'/>" style="width:40px !important;width:70px;" maxlength="3" onKeyPress="return numbersonly(this, event)"  onfocus="this.style.backgroundColor='#ffff66';" onBlur="this.style.backgroundColor='#d4e3e5';" ></div>
 </div>

</fieldset>
</div>
</div>

</fieldset>
</div>



</div>
</div>


<!-- Start print button -->
<div id="printGo_div" style="width:812px; height:70px; background:#DEF5DE;">
    <div id="2nd_div" style="float:left;width:810px !important; width:800px;height:auto;background-color:none; margin-top:10px;">
 <div style="width:650px; height:auto; margin-top:5px; margin-left:150px;">
   <div style="float:left;width:55px; height:auto;"> <input name="Back" type="button" value=" Back " onClick="history.back();return true;" style=" font-family:Arial; font-size:12px; font-weight:bold;" /></div>
    <div style="float:left;width:65px; height:auto;"><input id="button" name="button" type="submit" value="Cancel" style=" font-family:Arial; font-size:12px; font-weight:bold;" onClick="setSubmit('Cancel');" ></div>
    <div style="float:left;width:150px; height:auto;"><input id="button" name="button" type="submit" value="Save And Go Forward" onClick="setSubmit('Save And Go Forward');" style="font-family:Arial; font-size:12px; font-weight:bold;" ></div>
<div style="float:left;width:58px; height:auto;"> <input id="" name="" type="reset" value="Reset" style=" font-family:Arial; font-size:12px; font-weight:bold;" ></div>
 <div style="float:left;width:50px; height:auto;"><input type="button" value="Print" onClick="printPage('form_main_div_for_print')" style=" font-family:Arial; font-size:12px; font-weight:bold;"/></div>
 </div>
</div>
</div>
<!-- End print button -->

</div>
 </form>

</body>


<script>
document.getElementById("vouto_two").style.backgroundColor='#DEF5DE';      
</script>

No comments:

Post a Comment