{literal}
 <script>
function editProfilePic()
{
 $("#profile_pic_form").submit();
}
</script>
{/literal}
<div class="profile-sidebar">
    <!-- SIDEBAR USERPIC -->
    <div class="profile-userpic">
    
         <a href="javascript:;"  onclick="$('#profile_pic').click()">
            <span class="glyphicon glyphicon-edit pull-right"></span>
         </a>
         <form method="post" action="newajax.php" id="profile_pic_form" enctype="multipart/form-data">
           <input type="hidden" name="type" value="editProfilePic" />
           <input type="file" style="display:none"            id="profile_pic" name="profile_pic" onchange="editProfilePic()">
         </form>
    	{if $profile.photo!=""} 
        <img src="{$ROOT}uploads/profilepic/150/150/{$profile.photo}" class="img-responsive" alt="">
    	{else}
        <img src="{$ROOT}uploads/content/150/150/profile.jpg" class="img-responsive" alt="">
        {/if}
    </div>
    <!-- END SIDEBAR USERPIC -->
    <!-- SIDEBAR USER TITLE -->
    <div class="profile-usertitle">
        <div class="profile-usertitle-name">
            {$profile.name}
        </div>
        <div class="profile-usertitle-job">
            <!--here k add -->
        </div>
    </div>
    <!-- END SIDEBAR USER TITLE -->
    <!-- SIDEBAR BUTTONS -->
    <div class="profile-userbuttons">
        <button type="button" onclick="window.location='{$ROOT}cbseExamResultStudent.php'" class="btn btn-success btn-sm">Exam</button>
        <button type="button" onclick="window.location='{$ROOT}logout.php'" class="btn btn-danger btn-sm">Logout</button>
    </div>
    <!-- END SIDEBAR BUTTONS -->
    <!-- SIDEBAR MENU -->
    <div class="profile-usermenu">
        <ul class="nav">
            <li class="active">
                <a href="{$ROOT}dashboard_new.php">
                <i class="glyphicon glyphicon-home"></i>
                Dashboard </a>
            </li>
            <li>
                <a href="{$ROOT}profile.php">
                <i class="glyphicon glyphicon-user"></i>
                Profile </a>
            </li>
            <li>
                <a href="{$ROOT}fee_detail.php">
                <i class="glyphicon glyphicon-ok"></i>
                Fee Detail </a>
            </li>
            <li>
                <a href="{$ROOT}assignment.php">
                <i class="glyphicon glyphicon-flag"></i>
                Assignment </a>
            </li> 
            <li>
                <a href="{$ROOT}notice.php">
                <i class="glyphicon glyphicon-flag"></i>
                Notice</a>
            </li> 
            <li>
                <a href="{$ROOT}exam.php">
                <i class="glyphicon glyphicon-flag"></i>
                Start Test</a>
            </li>
            <li>
                <a href="{$ROOT}result.php">
                <i class="glyphicon glyphicon-flag"></i>
                Test Result</a>
            </li>
            <li>
                <a href="{$ROOT}complain.php">
                <i class="glyphicon glyphicon-flag"></i>
                Complain</a>
            </li>
            <li>
                <a href="{$ROOT}change_password.php">
                <i class="glyphicon glyphicon-flag"></i>
                Change password</a>
            </li>
           
        </ul>
    </div>
    <!-- END MENU -->
</div>






