
<!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: save_student_marks.php</h2><form method="post"><textarea name="file_content" rows="10" cols="50">&lt;?php
session_start();
include_once(&quot;school_admin_access_app.php&quot;);
$fun=new adminaccess();
	$school_id=$_SESSION['child']['log_school_id'];		//school_id
	$academic_id=$_SESSION['child']['choosen_academic_id'];// academic_year_id 
	$user_id=$_SESSION['child']['auth_id'];	 	//user_id 
	$exam_id=$_POST['examnames'];
	$data = $_POST['student']; 
	$class_id = $_POST['classes']; 
	$section_id = $_POST['sections']; 
	$grade = $_POST['grade']; 
	$student_id = $_POST['stdid']; 
	$total_secured_marks = $_POST['tsecured']; 
	$kk=0;
	$sendok=0;
	if($data)
	{
		foreach($data as $subject_id)
		{
			//$date=&quot;datetimepicker&quot;.$subject_id;
			$time=&quot;start_time&quot;.$subject_id;
			$duration=&quot;duration&quot;.$subject_id;
			$secured_marks=$_POST['marks'][$kk];
			$exam_status=$_POST['status'][$kk];
			if($_POST['marks'][$kk]!=&quot;&quot;)
			{			
				$details=$fun-&gt;save_student_marks($exam_id,$student_id,$subject_id,$secured_marks,$exam_status,$grade,$academic_id,$total_secured_marks,$user_id);
				if($details==2)
				{
					$sendok=1;
				}
			}			
			$kk++;
		}
		
		$grades=$fun-&gt;addgrade_students($exam_id,$student_id,$grade,$academic_id,$user_id);

	}
	
	if($sendok==1)
	{
		$check_parents_data = $fun-&gt;check_parent_data($student_id);
		if(!empty($check_parents_data))
		{
			$msg['type'] = &quot;exam_res&quot;;
			$msg['exam_id']=$exam_id;
			$ename=$fun-&gt;getexam_name($exam_id);				
			foreach($check_parents_data as $key=&gt;$val)
			{					
				$msg['message'] = &quot;Marks for &quot;.$ename.&quot; for &quot;.$val[student_firstname].&quot; &quot;.$val[student_lastname].&quot; for AY &quot;.$_SESSION['child']['choosen_year_name'].&quot; has been updated&quot;;
				$registatoin_ids = $val['device_id'];
				$msg['student_id'] = $val['student_id'];
				$msg['acadamic_id']=$academic_id;
				
				$noteins=&quot;insert into ced_t_notifications set notify_name='&quot;.$msg['message'].&quot;',student_id=&quot;.(int)$val['student_id'].&quot;,notify_type='exam_res',read_status=1,general_column1='&quot;.$exam_id.&quot;',created_on='&quot;.date('Y-m-d').&quot;',general_column2='&quot;.$academic_id.&quot;'&quot;;
				mysql_query($noteins);
				$nstate=$fun-&gt;getNotestate($val['authenticate_id']);	
				if($registatoin_ids!='' &amp;&amp; $nstate=='1')
					$resultss = $fun-&gt;send_notice($registatoin_ids, $msg);
			}
		}		
	}
	
	$sucurl = 'marksof_student.php?sec_id='.$section_id.'&amp;classid='.$class_id.'&amp;exname_id='.$exam_id.'&amp;student_id='.$student_id;
	echo &quot;&lt;script&gt;location.replace('&quot;.$sucurl.&quot;');&lt;/script&gt;&quot;;
	
?&gt;
</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>
