Plugin Directory

Changeset 958136


Ignore:
Timestamp:
07/31/2014 03:05:41 PM (12 years ago)
Author:
rohitashv
Message:

minor bug resolved

Location:
emarksheet
Files:
4 edited
11 copied

Legend:

Unmodified
Added
Removed
  • emarksheet/tags/1.31/emarksheet.php

    r958028 r958136  
    55Description: This is a simple and unique wordpress plugin to create a simple marksheet using wordpress. You can also give a link to your users to see the result and print it.
    66Author: rohitashv
    7 Version: 1.3
     7Version: 1.31
    88Author URI: http://eexamhall.com/
    99*/
  • emarksheet/tags/1.31/lordlinus_marksheet_shortcode.php

    r958028 r958136  
    112112        echo "</table>";
    113113        echo "<h4><center>Results</center></h4>";
    114         $per = $om_total/$tm_total*100;
    115         $per = round($per,2);
     114if($tm_total != '0')
     115        {
     116            $per = $om_total/$tm_total*100;
     117            $per = round($per,2);
    116118
    117         $req_per = $mm_total/$tm_total*100;
    118         $req_per = round($req_per,2);
    119         if($fail2 == '1')
    120             $div = "Fail";
    121         elseif($per>=60 && $per<=100)
    122             $div = "First Division";
    123         elseif($per<=60 && $per>=50)
    124             $div = "Second Division";
    125         elseif($per<=50 && $per>=$req_per)
    126             $div = "Third Division";
    127         else
    128             $div = "Fail";
    129         echo "<table class='table' border='1' style='width:100%;'><tr><th>Percentage : </th><td> $per %</td><th>Minimum Passing Percentage : </th><td> $req_per % </td><th>Final Result : </th><td> $div </td></table>";
    130         echo "</div>";
     119            $req_per = $mm_total/$tm_total*100;
     120            $req_per = round($req_per,2);
     121            if($fail2 == '1')
     122                $div = "Fail";
     123            elseif($per>=60 && $per<=100)
     124                $div = "First Division";
     125            elseif($per<=60 && $per>=50)
     126                $div = "Second Division";
     127            elseif($per<=50 && $per>=$req_per)
     128                $div = "Third Division";
     129            else
     130                $div = "Fail";
     131            echo "<table class='table' border='1' style='width:100%;'><tr><th>Percentage : </th><td> $per %</td><th>Minimum Passing Percentage : </th><td> $req_per % </td><th>Final Result : </th><td> $div </td></table>";
     132            echo "</div>";
     133       
    131134?>
    132135<input type="button" class="btn btn-info" value="Print This Marksheet !!!" onclick="print_this();">
    133136<?php
    134     }
     137}
     138        else
     139        {
     140            echo "<div class='alert_lor alert-error-lord'>Please Add Marks to the subjects </div>";
     141        }
     142}   
    135143    else
    136144    {
  • emarksheet/tags/1.31/menu-pages/print.php

    r958028 r958136  
    9090        echo "</table>";
    9191        echo "<h4><center>Results</center></h4>";
    92         $per = $om_total/$tm_total*100;
    93         $per = round($per,2);
     92        if($tm_total != '0')
     93        {
     94            $per = $om_total/$tm_total*100;
     95            $per = round($per,2);
    9496
    95         $req_per = $mm_total/$tm_total*100;
    96         $req_per = round($req_per,2);
    97         if($fail2 == '1')
    98             $div = "Fail";
    99         elseif($per>=60 && $per<=100)
    100             $div = "First Division";
    101         elseif($per<=60 && $per>=50)
    102             $div = "Second Division";
    103         elseif($per<=50 && $per>=$req_per)
    104             $div = "Third Division";
    105         else
    106             $div = "Fail";
    107         echo "<table class='table' border='1' style='width:100%;'><tr><th>Percentage : </th><td> $per %</td><th>Minimum Passing Percentage : </th><td> $req_per % </td><th>Final Result : </th><td> $div </td></table>";
    108         echo "</div>";
     97            $req_per = $mm_total/$tm_total*100;
     98            $req_per = round($req_per,2);
     99            if($fail2 == '1')
     100                $div = "Fail";
     101            elseif($per>=60 && $per<=100)
     102                $div = "First Division";
     103            elseif($per<=60 && $per>=50)
     104                $div = "Second Division";
     105            elseif($per<=50 && $per>=$req_per)
     106                $div = "Third Division";
     107            else
     108                $div = "Fail";
     109            echo "<table class='table' border='1' style='width:100%;'><tr><th>Percentage : </th><td> $per %</td><th>Minimum Passing Percentage : </th><td> $req_per % </td><th>Final Result : </th><td> $div </td></table>";
     110            echo "</div>";
     111       
    109112?>
    110113<input type="button" class="btn btn-info" value="Print This Marksheet !!!" onclick="print_this();">
    111114<?php
     115}
     116        else
     117        {
     118            echo "<div class='alert alert-error'>Please Add Marks to the subjects </div>";
     119        }
    112120}
    113121else if(isset($_POST['get_st_lt']))
  • emarksheet/tags/1.31/readme.txt

    r958028 r958136  
    44Tags: emarksheet, online marksheet creator, create marksheet online, online marksheet
    55Requires at least: 3.2
    6 Stable tag: 1.3
     6Stable tag: 1.31
    77
    88This is a simple and unique wordpress plugin to create a simple marksheet using wordpress. You can also give a link to your users to see the result and print it.
     
    6363and you can minimum passing marks on each Subject
    6464Uninstall feature is also available
     65
     66=1.31=
     67minor bug resolved
  • emarksheet/trunk/emarksheet.php

    r958028 r958136  
    55Description: This is a simple and unique wordpress plugin to create a simple marksheet using wordpress. You can also give a link to your users to see the result and print it.
    66Author: rohitashv
    7 Version: 1.3
     7Version: 1.31
    88Author URI: http://eexamhall.com/
    99*/
  • emarksheet/trunk/lordlinus_marksheet_shortcode.php

    r958028 r958136  
    112112        echo "</table>";
    113113        echo "<h4><center>Results</center></h4>";
    114         $per = $om_total/$tm_total*100;
    115         $per = round($per,2);
     114if($tm_total != '0')
     115        {
     116            $per = $om_total/$tm_total*100;
     117            $per = round($per,2);
    116118
    117         $req_per = $mm_total/$tm_total*100;
    118         $req_per = round($req_per,2);
    119         if($fail2 == '1')
    120             $div = "Fail";
    121         elseif($per>=60 && $per<=100)
    122             $div = "First Division";
    123         elseif($per<=60 && $per>=50)
    124             $div = "Second Division";
    125         elseif($per<=50 && $per>=$req_per)
    126             $div = "Third Division";
    127         else
    128             $div = "Fail";
    129         echo "<table class='table' border='1' style='width:100%;'><tr><th>Percentage : </th><td> $per %</td><th>Minimum Passing Percentage : </th><td> $req_per % </td><th>Final Result : </th><td> $div </td></table>";
    130         echo "</div>";
     119            $req_per = $mm_total/$tm_total*100;
     120            $req_per = round($req_per,2);
     121            if($fail2 == '1')
     122                $div = "Fail";
     123            elseif($per>=60 && $per<=100)
     124                $div = "First Division";
     125            elseif($per<=60 && $per>=50)
     126                $div = "Second Division";
     127            elseif($per<=50 && $per>=$req_per)
     128                $div = "Third Division";
     129            else
     130                $div = "Fail";
     131            echo "<table class='table' border='1' style='width:100%;'><tr><th>Percentage : </th><td> $per %</td><th>Minimum Passing Percentage : </th><td> $req_per % </td><th>Final Result : </th><td> $div </td></table>";
     132            echo "</div>";
     133       
    131134?>
    132135<input type="button" class="btn btn-info" value="Print This Marksheet !!!" onclick="print_this();">
    133136<?php
    134     }
     137}
     138        else
     139        {
     140            echo "<div class='alert_lor alert-error-lord'>Please Add Marks to the subjects </div>";
     141        }
     142}   
    135143    else
    136144    {
  • emarksheet/trunk/menu-pages/print.php

    r958028 r958136  
    9090        echo "</table>";
    9191        echo "<h4><center>Results</center></h4>";
    92         $per = $om_total/$tm_total*100;
    93         $per = round($per,2);
     92        if($tm_total != '0')
     93        {
     94            $per = $om_total/$tm_total*100;
     95            $per = round($per,2);
    9496
    95         $req_per = $mm_total/$tm_total*100;
    96         $req_per = round($req_per,2);
    97         if($fail2 == '1')
    98             $div = "Fail";
    99         elseif($per>=60 && $per<=100)
    100             $div = "First Division";
    101         elseif($per<=60 && $per>=50)
    102             $div = "Second Division";
    103         elseif($per<=50 && $per>=$req_per)
    104             $div = "Third Division";
    105         else
    106             $div = "Fail";
    107         echo "<table class='table' border='1' style='width:100%;'><tr><th>Percentage : </th><td> $per %</td><th>Minimum Passing Percentage : </th><td> $req_per % </td><th>Final Result : </th><td> $div </td></table>";
    108         echo "</div>";
     97            $req_per = $mm_total/$tm_total*100;
     98            $req_per = round($req_per,2);
     99            if($fail2 == '1')
     100                $div = "Fail";
     101            elseif($per>=60 && $per<=100)
     102                $div = "First Division";
     103            elseif($per<=60 && $per>=50)
     104                $div = "Second Division";
     105            elseif($per<=50 && $per>=$req_per)
     106                $div = "Third Division";
     107            else
     108                $div = "Fail";
     109            echo "<table class='table' border='1' style='width:100%;'><tr><th>Percentage : </th><td> $per %</td><th>Minimum Passing Percentage : </th><td> $req_per % </td><th>Final Result : </th><td> $div </td></table>";
     110            echo "</div>";
     111       
    109112?>
    110113<input type="button" class="btn btn-info" value="Print This Marksheet !!!" onclick="print_this();">
    111114<?php
     115}
     116        else
     117        {
     118            echo "<div class='alert alert-error'>Please Add Marks to the subjects </div>";
     119        }
    112120}
    113121else if(isset($_POST['get_st_lt']))
  • emarksheet/trunk/readme.txt

    r958028 r958136  
    44Tags: emarksheet, online marksheet creator, create marksheet online, online marksheet
    55Requires at least: 3.2
    6 Stable tag: 1.3
     6Stable tag: 1.31
    77
    88This is a simple and unique wordpress plugin to create a simple marksheet using wordpress. You can also give a link to your users to see the result and print it.
     
    6363and you can minimum passing marks on each Subject
    6464Uninstall feature is also available
     65
     66=1.31=
     67minor bug resolved
Note: See TracChangeset for help on using the changeset viewer.