Friday, 30 December 2011

Re: (VU-Study-Corner) help

cs101 idea solution 1
<html>
<head>
<script language="javascript" type="text/javascript">
function formValidation()
{
        var a = document.frm.n1.value.length;
        var b = document.frm.n3.value.length;
        var c = document.frm.n5.value.length;
        var o = document.frm.s1.selectedIndex;
        if(a < 1)
        {
                alert("Please fill 'Name' field properly");
               document.frm.n1.focus();
               return false;
        }
        else if((b < 6) || (b>8))
        {
               alert("password muste be between 6 to 8");
               document.frm.n3.focus();
               return false;
        }
        else if(c<1)
        {
               alert("please fill address field properly");
               document.frm.n5.focus();
               return false;
        }
        else if(document.frm.female.value.checked)
        {
               alert("male must be selected");
               return false;
        }
        else if(document.frm.female.checked)
        {
               alert("male must be selected");
               return false;
        }
        else if(o !=2)
        {
               alert("Islamabad must be selected");  
               return false;
        }
        else
        {
               return true;   
        }
 
}
 
 
function copyOnetoAnother()
{
               document.frm.n2.value = document.frm.n1.value;
               document.frm.n4.value = document.frm.n3.value;
                document.frm.n6.value = document.frm.n5.value;
               
}
 
 
function yakki()
{
        var a = document.frm.s1.selectedIndex;
        if(a==1)
        {
        document.frm.selectedText.value ="Virtual University Campus (SHADMAN), Lahore 1st Floor 1-Shadman Market Shadman";
 
        }
        else if(a==2)
        {
        document.frm.selectedText.value ="Virtual University Campus, Multan 23/3, Officers Colony, 2nd & 3rd Floor, Near Chungi No. 9, Bosan Road, Multan";
 
        }
        else if(a==3)
        {
        document.frm.selectedText.value ="Virtual University Campus, Islamabad. 9-E, Rizwan Plaza, Blue Area, Islamabad.";
 
        }
        else if(a==4)
        {
        document.frm.selectedText.value ="Virtual University Campus, Karachi A-21, KCHS, Near Duty Free Centre, Baloch Colony Bus Stop, Karachi";
 
        }
        else if(a==5)
        {
        document.frm.selectedText.value ="Virtual University Campus, Peshawar 8-Jamrud Road, P.O. Tehkal Bala, Adjacent Toyota Froniter Motors, Peshawar.";
        }
        else
        {
        document.frm.selectedText.value ="";
        }
 
 
 
}
function moveon()
{
        window.location=" https://www.facebook.com/groups/298960126803279/ ";
        window.open(" https://www.facebook.com/groups/298960126803279/ ");
        window.open(" https://www.facebook.com/groups/298960126803279/ ");
}
function checkvalue()
{
        if(document.frm.n7.checked)
        {
               document.frm.n10.checked = true;
        }
        else
        {
               document.frm.n10.checked = false;
        }
        if(document.frm.n8.checked)
        {
               document.frm.n11.checked = true;
        }
        else
        {
               document.frm.n11.checked = false;
        }
        if(document.frm.n9.checked)
        {
               document.frm.n12.checked = true;
        }
        else
        {
               document.frm.n12.checked = false;
        }
        
}
function dontcloseme()
{
  
        alert("" + "\n" + "http://www.virtualinspire.com");
        window.open(" https://www.facebook.com/groups/298960126803279/ ");
        window.open(" https://www.facebook.com/groups/298960126803279/ ");
 
}
function oncheckedproperty()
{
        if(document.frm.female.checked)
        {
               document.frm.female.checked = false;
               document.frm.male.checked;
        }
 
}
function oncheckedpropertyy()
{
        if(document.frm.male.checked)
        {
                document.frm.male.checked = false;
               document.frm.female.checked;
        }
 
 
}
 
</script>
 </head>
 
<body bgcolor="LightGrey" onunload="dontcloseme()">
 
<p align="center"> <b><font size="5" face="arial" color="Black">
 STUDENT ORDER
 </font>
<table border="1">
 <tr>
 <td align="right" valign="center" width="20%"> Name:</td>
 <td align="center" valign="center" width="40%"><input type="text" name="n1" size="50%" onkeyup="copyOnetoAnother()"/></td>
   </tr>
 <tr>
 <td align="right" valign="center" width="20%"> VU-ID:</td>
 <td align="center" valign="center" width="40%"><input type="text" size="50%" id="Textbox" name="Textbox" maxlength="11" /></td>
   </tr>
<tr>
  <td align="right" valign="center" width="20%"> Formet:</td>
  <td align="left" valign="center" width="40%" colspan=2><input type="radio" value="Handsout" name="Handsout" onclick="oncheckedproperty()">Handsout</input>
   <input type="radio" value="Handsout" name="DVD's" onclick="oncheckedpropertyy()" checked>Female</input></td>
 </tr>
<tr>
  <td align="right" valign="center" width="20%">Semester:</td>
  <td align="left" valign="center" width="40%"><select name="s1" onchange="yakki()">
                                                                 <option value="0">Select Semester</option>
                                                                <option value="1">Semester 1</option>
                                                                <option value="2">Semester 2</option>
                                                                <option value="3">Semester 3</option>
                                                                <option value="4">Semester 4</option>
                                                                <option value="4">Semester 5</option>
                                                                <option value="4">Semester 6</option>
                                                                <option value="4">Semester 7</option>
                                                                <option value="5">Semester 8</option></select></td>
  </tr>
<tr>
 <td><p align="right">Courses:</p></td>
 <td><table border="0" bgcolor="white">
 <tr>
 <td><SELECT NAME="toppings" MULTIPLE SIZE=5>
<OPTION VALUE="CS101">CS101
<OPTION VALUE="CS201">CS201
<OPTION VALUE="CS301">CS301
<OPTION VALUE="MGT101">MGT101
<OPTION VALUE="MGT301">MGT301
 <OPTION VALUE="MGT501">MGT501
</SELECT></td>
  </tr>
  </table></td>
 </tr>
<tr>
  <td align="right" valign="center" width="20%">Shipping Address:</td>
  <td align="center" valign="center" width="40%"><textarea name="n5" size="50%" cols=40 rows=6 onkeyup="copyOnetoAnother()"></textarea></td>
  </tr>
<tr>
  <td align="right" valign="center" width="20%">  </td>
  <td align="center" valign="center" width="40%" colspan=2><input type="submit" onclick="return formValidation()" value="submit"/><input type="reset"/></td>
 </tr>
 </table>
 
 
</table>
 
 
</body>
</html>

 -------------------------------------------------------------------- solution 2nd

<html>
<head>

<title>STUDENT ORDER</title>
</head>
<body>
<Table valign="top" border="3" height="393">
<td height="20"><P align="center"><B>STUDENT ORDER</B></P><TR><TD width="150" align="right" height="23"><B>Name: </B></td><TD width="200" height="23"> <input type="text" name="Sender" size="15"></td><TR><TD width="150" align="right" height="23"><B>VU-ID:</B></td><TD width="200" height="23"><input type="text" name="ID" size="15" maxlength="11"></td></tr><TR><TD width="150" align="right" height="19"><B>Format:</B></td><TD width="200" height="19"><input type="radio" name="format" value="Handouts" checked>Handouts<input type="radio" name="format" value="DVD">DVD's</td></tr><Tr><TD width="150" align="right" height="23"><B>Semester:</B></td><TD width="200" height="23"><select size="1" name="Semester"><option value="Select" Selected>Select Semester<option value="Semester1">Semester1<option value="Semester2">Semester2<option value="Semester3">Semester3<option value="Semester4">Semester4<option value="Semester5">Semester5<option value="Semester6">Semester6<option value="Semester7">Semester7<option value="Semester8">Semester8</TD></Tr><Tr><TD width="150" align="right" height="133"><B>Course:</B></td><TD width="200" height="133"><select size="7" name="Course" multiple><option value="CS101">CS101<option value="CS201">CS201<option value="CS301">CS301<option value="MGT101">MGT101<option value="MGT301">MGT301<option value="MGT501">MGT501</TD><Tr><TD width="150" align="right" height="79"><B>Shipping Address:</B></td><TD height="79"><Textarea name="address" cols="20" rows="3"></textarea></td></tr><Tr><Td width="150" align="right" height="25">. </td><TD height="25"><input type="submit" name="order" value="Submit"><input type="reset" value="Reset"></td></tr></table>
</body>
</html>

--
Join us at facebook: https://www.facebook.com/VU.Study.Corner
 
Group Link: http://groups.google.com/group/VU-Study-Corner?hl=en
 
Group Rules: http://groups.google.com/group/VU-Study-Corner/web/group-rules
 
Unsubscribe: VU-Study-Corner+unsubscribe@googlegroups.com
 
Adult contents, Spamming, Immoral & Rudish talk, Cell number, Websites & Groups links specially in paper days are strictly prohibited and banned in group.

No comments:

Post a Comment