<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<link rel="shortcut icon" href="{$URL_ROOT}images/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<head id="Head1">
{include file='mss_meta.html'}
</head>
<body onload="MM_preloadImages('{$URL_ROOT}images/admision-o.png','{$URL_ROOT}images/online-appli-o.png','{$URL_ROOT}images/achievent-o.png','{$URL_ROOT}images/enqury-form-o.png')">

{include file='mss_head.html'}

<div class="container">
  <div class="row profile">
  	{if $SESSION.msg!=""}
  	<label class="label label-success">{$SESSION.msg}</label>
    {else if $SESSION.error!=""}
    <label class="label label-danger">{$SESSION.error}</label>
    {/if}
  
    <div class="col-md-3"> {include file='usersidebar.html'} 
    </div>
    
    
    <div class="col-md-9">
      <div class="profile-content"> 
        <!--Some user related content goes here...-->
        
        <div class="panel panel-primary">
          <div class="panel-heading">
            <h2 class="panel-title"> Profile Detail </h2>
          </div>
          <div class="panel-body"> Name: {$profile.fname}<br />
            Email:{$profile.email}<br />
            Class: {$profile.class}<br />
          </div>
        </div>
<style>
.readmore{
font-size:10px;	
border:solid 2px #00FF33;

color:black;
}

</style>        

        <div class="panel panel-primary">
          <div class="panel-heading">
            <h2 class="panel-title"> Notice </h2>
          </div>
          <div class="panel-body"> 
            <table class="table table-striped custab">
            <thead>
            
                <tr>
                    <th>Sr no.</th>
                    <th>Notice type</th>
                    <th>Notice detail</th>
                    <th>Date</th>
                    <th class="text-center">Action</th>
                </tr>
            </thead>
             {foreach from=$stu_notice item=ppr name=foo}
                <tr>
                    <td>{$smarty.foreach.foo.index+1}</td>
                    <td>{$ppr.notice_type_name}</td>
                    <td>{$ppr.notice_detail|truncate:20}{if $ppr.notice_detail|count_characters>20 }  &nbsp;&nbsp; <a href="pop{$smarty.foreach.foo.index}" data-type="div" data-css="width:800px" class="mss-popup readmore" >Read More</a>
                    <div id="pop{$smarty.foreach.foo.index}" style="display:none">{$ppr.notice_detail}</div> {/if}        
                    
                    </td>
                    
                    <td>{$ppr.date}</td> 
                    <td class="text-center">
                    
                  <a  href="uploads/notice/{$ppr.upload_notice}" ><span class="glyphicon glyphicon-edit"></span> Download</a>
                
                      
             </td>
                </tr>
             {/foreach}
    </table>
          </div>
        </div> 
        
<script>
function openwin(id,uid) {
   
   window.open("result_view.php?pid="+id+"&uid="+uid,"", "width=800px, height=600px");
}
</script>       
        <div class="panel panel-primary">
          <div class="panel-heading">
            <h2 class="panel-title"> Recently given Exams </h2>
          </div>
          
          <div class="panel-body"> 
          
   <table class="table table-striped custab">
    <thead>
        <tr>
            <th>Exam Name</th>
            <th>Attended Date</th>
            <th>Obtained Marks</th>
            <th class="text-center">View Result</th>
        </tr>
    </thead>
    
        {foreach from=$pprs item=ppr}
            <tr>
                <td>{$ppr.papername}</td>
                <td>{$ppr.date}</td>
                <td>{$ppr.finaltotal}/{$ppr.marks}</td>
                <td class="text-center"><a class='btn btn-info btn-xs' href="javascript:;" onclick="openwin({$ppr.pid},{$SESSION.user.uid})">view result</a></td>
            </tr>
        {/foreach}   
            <!--<tr>
                <td>2</td>
                <td>Products</td>
                <td>Main Products</td>
                <td class="text-center"><a class='btn btn-info btn-xs' href="#"><span class="glyphicon glyphicon-edit"></span> Edit</a> <a href="#" class="btn btn-danger btn-xs"><span class="glyphicon glyphicon-remove"></span> Del</a></td>
            </tr>-->
            
    </table>
          
          </div>
        
        </div>
        
        
      </div>
    </div>
  </div>
</div>
{include file='mss_footer.html'}
</body>
</html>
